#cfp-client-files-table .image-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
	padding: 18px 10px;
}

#cfp-client-files-table .img-item{
    text-align:center;
}

#cfp-client-files-table .img-label{
    font-size:12px;
    font-weight:600;
    margin-bottom:4px;
}

#cfp-client-files-table .cfp-img-thumb{
    max-width:70px;
    max-height:70px;
    border:1px solid #ccc;
    border-radius:4px;
    cursor:pointer;
}

.cfp-upload-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:650px;
	padding: 0.5em 0;
}

.cfp-upload-item{
    text-align:center;
}

.cfp-upload-item label{
    display:block;
    font-weight:600;
    margin-bottom:10px;
    color:#333;
}

.cfp-upload-box{
    position:relative;
    height:110px;
    border:2px dashed #dcdcdc;
    border-radius:10px;
    background:#fafafa;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;
    cursor:pointer;
}

.cfp-upload-box:hover{
    border-color:#0d6efd;
    background:#f4f8ff;
}

.cfp-upload-box span{
    font-size:14px;
    color:#777;
}

.cfp-upload-box input{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer;
}

#cfp-img-modal{
	display:none;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.7);
	z-index:9999;
	align-items:center;
	justify-content:center;
}

.cfp-modal-box{
	position:relative;
	max-width:800px;
	width:90%;
	background:#fff;
	padding:20px;
	border-radius:10px;
	text-align:center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#cfp-img-modal-img{
	max-width:100%;
	max-height:70vh;
}

#cfp-img-label{
	font-size:20px;
	font-weight:600;
	margin-top:10px;
}

#cfp-img-modal-close{
	position:absolute;
	top:10px;
	right:15px;
	font-size:28px;
	cursor:pointer;
}

.cfp-slide-prev,.cfp-slide-next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:35px;
cursor:pointer;
padding:10px;
color:#333;
}

.cfp-slide-prev{ left:0; }
.cfp-slide-next{ right:0; }

.cfp-edit-btn {
	border: 2px solid #0073aa;
	background: #fff;
	color: #0073aa;
	font-weight: bold;
	padding: 6px 18px;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s, color 0.2s;
}
.cfp-edit-btn:hover {
	background: #0073aa;
	color: #fff;
	border-color: #005177;
}
.dataTables_wrapper {
    margin-top: 25px;
}
td.sorting_1 {
    word-break: break-all;
}
.btn-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Professional admin dashboard buttons */
.cfp-admin-btn,#cfp-client-form button[type="submit"] {
	background: #0073aa;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 14px;
	margin: 0;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s;
}
.cfp-admin-btn:hover { color:#fff !important; }
.cfp-admin-btn:hover,#cfp-client-form button[type="submit"]:hover {
	background: #005177;
}
.cfp-view-btn {
	border: 2px solid #000;
	background: #fff;
	color: #000;
	font-weight: bold;
	padding: 6px 18px;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s, color 0.2s;
}
.cfp-view-btn:hover {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}
/* DataTables override for professional look */
#cfp-client-table_wrapper .dataTables_length  { padding: 0 5px; }
#cfp-client-table_wrapper .dataTables_length select,#cfp-client-files-table_wrapper .dataTables_length select { padding: 4px 20px 0 8px !important; }
#cfp-client-table_wrapper table.dataTable, #cfp-client-files-table_wrapper table.dataTable { padding:1em 0;}
.cfp-admin-files, .cfp-client-files-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.cfp-admin-files th, .cfp-admin-files td, .cfp-client-files-table th, .cfp-client-files-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.cfp-admin-files th, .cfp-client-files-table th {
	background: #f7f7f7;
	font-weight: bold;
}
.cfp-admin-files tr:last-child td, .cfp-client-files-table tr:last-child td {
	border-bottom: none;
}
.cfp-admin-dashboard-actions {
	margin-bottom: 24px;
}
/* --- Dashboard Layout Enhancements --- */
.cfp-admin-dashboard-row {
	display: flex;
	gap: 2em;
	flex-wrap: wrap;
	margin-bottom: 2.5em;
}
.cfp-admin-dashboard-col {
	flex: 1 1 320px;
	min-width: 320px;
	max-width: 480px;
}

/* Assigned Files as Cards */
.cfp-assigned-files-grid {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
	margin-top: 1em;
}
.cfp-assigned-files-card {
	background: #f9fafb;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
	padding: 1.2em 1em 1em 1em;
	min-width: 220px;
	max-width: 260px;
	flex: 1 1 220px;
}
.cfp-assigned-files-card strong {
	color: #0073aa;
	font-size: 1.08em;
	margin-bottom: 0.5em;
	display: block;
}
.cfp-assigned-files-card ul {
	margin: 0.5em 0 0 1em;
	padding: 0;
}
.cfp-assigned-files-card li {
	margin-bottom: 0.3em;
}
.cfp-assigned-files-card em {
	color: #888;
}
.cfp-admin-dashboard {
	margin: 2em auto;
	padding: 2em 1.5em;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.cfp-admin-dashboard h3 {
	font-size: 1.3em;
	color: #222;
	    margin: 0;
	font-weight: 600;
}

.cfp-admin-section {
	margin-bottom: 2.5em;
}

.cfp-admin-dashboard-form {
	max-width: 350px;
	margin: 0 auto 1.5em auto;
	padding: 1.5em 1.2em;
	background: #f9fafb;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cfp-admin-dashboard-form label {
	font-weight: 500;
	margin-bottom: 0.3em;
}

.cfp-admin-dashboard-form input,
.cfp-admin-dashboard-form select {
	padding: 0.5em;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	font-size: 1em;
}

.cfp-admin-dashboard-form button {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 0.7em 1.5em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.2s;
	margin-top: 0px;
}
.cfp-admin-dashboard-form button:hover {
	background: #005177;
}

.cfp-error {
	color: #b32d2e;
	background: #fbeaea;
	border: 1px solid #b32d2e;
	padding: 0.7em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}
.cfp-success {
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	padding: 0.7em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

/* Dashboard tables */

.cfp-admin-files {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cfp-admin-files th, .cfp-admin-files td {
	border: 1px solid #e2e2e2;
	padding: 0.7em 1em;
	text-align: left;
}
.cfp-admin-files th {
	background: #f3f4f6;
	font-weight: 600;
	color: #222;
}
.cfp-admin-files tr:nth-child(even) td {
	background: #f9fafb;
}
.hed-box {
    display: flex;
	align-items: center;
    justify-content: space-between;
	flex-wrap: wrap;
    gap: 15px;
}
/* Assigned files list */
.cfp-admin-section ul {
	margin: 0.5em 0 1em 1.5em;
	padding: 0;
}
.cfp-admin-section strong {
	display: inline-block;
	margin-top: 1em;
	font-size: 1.08em;
	color: #0073aa;
}
.cfp-admin-section em {
	color: #888;
}

@media (max-width: 900px) {
	.cfp-admin-dashboard {
		max-width: 98vw;
		padding: 1em 0.5em;
	}
}

@media (max-width: 600px) {
	.cfp-admin-dashboard-form {
		padding: 1em;
		max-width: 98vw;
	}
	.cfp-admin-files {
		font-size: 0.95em;
		overflow-x: auto;
		display: block;
	}
}
/* Minimal CSS for Client File Portal */
.cfp-login-form, .cfp-otp-form, .cfp-admin-dashboard-form {
	max-width: 500px;
	margin: 2em auto;
	padding: 2em;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cfp-login-form label, .cfp-otp-form label, .cfp-admin-dashboard-form label {
	font-weight: 500;
	margin-bottom: 0px;
	font-size: 16px;
}

.cfp-login-form input, .cfp-otp-form input, .cfp-admin-dashboard-form input, .cfp-admin-dashboard-form select {
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
}

.cfp-login-form input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    top: 2px;
    display: inline-block;
    margin: 0;
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 0;
    border-style: solid;
    border-width: 0.1rem;
    border-color: #dcd7ca;
    box-shadow: none;
    cursor: pointer;
}

.cfp-login-form input[type="checkbox"]:checked::before {
    content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E);
    position: absolute;
    display: inline-block;
    margin: -0.55rem 0 0 -0.7rem;
    height: 1.75rem;
    width: 1.75rem;
}

.cfp-login-form button, .cfp-otp-form button, .cfp-admin-dashboard-form button, .button {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 1em 1.5em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	text-decoration: none;
	transition: background 0.2s;
}
.button {
	padding: 0.7em 1.5em;
	font-size: 1em;	
}
.cfp-login-form button:hover, .cfp-otp-form button:hover, .cfp-admin-dashboard-form button:hover, .button:hover {
	background: #005177;
}

.cfp-error {
	color: #b32d2e;
	background: #fbeaea;
	border: 1px solid #b32d2e;
	padding: 0.7em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

/* Dashboard tables */
.cfp-client-files, .cfp-admin-files {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
}
.cfp-client-files th, .cfp-client-files td, .cfp-admin-files th, .cfp-admin-files td {
	border: 1px solid #e2e2e2;
	padding: 0.7em 1em;
	text-align: left;
}
.cfp-client-files th, .cfp-admin-files th {
	background: #f7f7f7;
}

/* Client Dashboard Layout */
.cfp-client-dashboard-wrapper {
  display: flex;
  gap: 32px;
  align-items: inherit;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 40px 32px;
}
.cfp-client-sidebar {
  min-width: 200px;
  background: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cfp-client-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cfp-client-tabs li {
  margin-bottom: 8px;
}
.cfp-tab-link, .logout-link {
  display: block;
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  font-weight: 500;
  font-size: 18px;	
  transition: background 0.2s, color 0.2s;
}
.cfp-tab-panel h3 {
	margin-top: 0;
}
.cfp-tab-link.active, .cfp-tab-link:hover {
  background: #0073aa;
  color: #fff;
}
.cfp-client-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
}
.cfp-tab-panel {
  display: none;
}
.cfp-tab-panel[style*="display:block"] {
  display: block !important;
}
.cfp-client-files {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.cfp-client-files th, .cfp-client-files td {
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  text-align: left;
}
.cfp-client-files th {
  background: #f1f1f1;
}
.cfp-client-profile-form {
  max-width: 100%;
  margin-top: 16px;
}
table#cfp-client-table {
    padding-bottom: 0 !important;
}
.cfp-client-profile-form label {
  display: flex;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  color: #666;	
  flex-wrap: wrap;
}
.cfp-client-profile-form input[type="text"],
.cfp-client-profile-form input[type="email"],
.cfp-client-profile-form input[type="url"],
.cfp-client-profile-form input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 15px;
}
.cfp-client-profile-form button[type="submit"] {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.cfp-client-profile-form button[type="submit"]:hover {
  background: #005177;
}
.cfp-client-profile-result {
  margin-top: 12px;
}
.cfp-client-content table.dataTable,table.dataTable,.dataTables_wrapper {
	font-size: 15px;
}

/* Client Form Styles */

#cfp-client-form > div { position: relative; }

.cfp-autocomplete-wrapper {
    position: relative;
}

.cfp-loader {
    position:absolute;
    right: 20px;
    top: 35px;
    height: 16px;
	width: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#cfp-client-suggestions {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    z-index: 999;
    max-height: 200px;
	overflow-y: auto;
}

.cfp-suggestion-item {
    padding: 10px;
    cursor: pointer;
	font-size:16px;
}

.cfp-suggestion-item strong {
width: 100%;
display: block;
}

.cfp-suggestion-item:hover {
    background: #f1f1f1;
}

#cfp-client-form {
    max-width: 480px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    font-family: 'Montserrat', Arial, sans-serif;
}

#cfp-client-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 0px;
    font-weight: 500;
}

#cfp-client-form input[type="text"],
#cfp-client-form input[type="email"],
#cfp-client-form input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

#cfp-client-form-message {
    margin-top: 16px;
    font-size: 0.9em;
	color: #008000;
    font-weight: 500;
}

#cfp-client-form #cfp-loader{
    margin-top:10px;
    font-weight:600;
}

#cfp-client-form .cfp-spinner {
    width: 24px;
    height: 24px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: cfp-spin 1s linear infinite;
    display:inline-block;
    vertical-align:middle;
    margin-right:8px;
}

@keyframes cfp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@media (max-width: 600px) {
	.cfp-login-form, .cfp-otp-form, .cfp-admin-dashboard-form {
		padding: 1em;
		max-width: 98vw;
	}
	.cfp-client-files, .cfp-admin-files {
		font-size: 0.95em;
		overflow-x: auto;
		display: block;
	}
	
	.cfp-upload-grid { gap:10px; }
}


.wp-block-template-part(
 display: none !important;
)