:root{
    --header-height: 75px;
	--input-font-size: 14px;
	--input-padding: 10px;
	--container-padding: 15px;
	/* Vertical rhythm for .climanage-form (login, registration, reset, profile, etc.) */
	--climanage-form-row-gap: 1.125rem;
	--climanage-form-links-margin-top: 1.35rem;
	--climanage-form-links-margin-bottom: 0.75rem;
	/* Inputs/selects/textareas using .form-row (login, registration, profile, etc.) */
	--form-input-background: #222222;
	--form-input-border-color: #3c3c3c;
}

.climanage-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Global field-row spacing: one margin per .form-row (avoids flex “between columns” hacks) */
.climanage-form .form-row {
	margin-bottom: var(--climanage-form-row-gap);
}

/* Full-row errors sit under the row that failed — shrink row margin so gap isn’t doubled */
.climanage-form .form-row:has(+ .error-message--full-row) {
	margin-bottom: 0.35rem;
}

.climanage-form .error-message--full-row {
	margin-top: 0;
	margin-bottom: var(--climanage-form-row-gap);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
}

.climanage-form .error-message--full-row .error-text {
	flex: 1;
	min-width: 0;
}

/* Auth & plugin forms: .input-field outside .form-row (e.g. OTP digits) */
.climanage-form .input-field {
	border: 1px solid var(--form-input-border-color, #3c3c3c);
	background-color: var(--form-input-background, #222222);
}

.form-row {
    display: flex;
    /*margin-bottom: 10px;*/
    gap: 10px;
}

.form-row .form-field {
    width: calc(50% - 5px);
    /*margin-bottom: 10px;*/
}

.form-row label {
    flex: 0 0 100%;
    margin-bottom: 10px;
    display: block;
}

.form-row.conditions label {
    margin-bottom: 0;
}

.form-row.conditions label::last-child {
     margin-bottom: 10px;
}

.form-row input,
.form-row select,
.client-details input,
.client-details select,
.client-details textarea, .stat-info select {
    display: block;
    width: -webkit-fill-available;
    padding: var(--input-padding);
    border: 1px solid var(--cliM-border-color);
    color: var(--sub-color);
    border-radius: 4px;
    font-size: var(--input-font-size);
    background: var(--hover-background);
}

.form-row input[type="date"] {
    padding: var(--input-padding);
}

.form-row input.error-field,
.form-row input.error-field:focus {
    border-color: #dc3232;
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.5);
}

.form-row input:focus,
.form-row select:focus {
    box-shadow: none;
    outline: 0;
}

#mark_payment_verified.error {
    outline: 2px solid red;
    outline-offset: 2px;
    border-radius: 3px;
}

.form-row input:last-child,
.form-row select:last-child {
    margin-right: 0;
}

.full-width {
    flex-direction: column;
    gap: 0 !important;
}

.full-width .form-field {
    width: 100%;
}

.full-width input,
.full-width textarea,
.full-width select {
    width: -webkit-fill-available;
    padding: 10px;
    font-size: 16px;
    text-align: left;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.button {
    padding: var(--input-padding) 20px;
    color: var(--color);
    border: 1px solid var(--cliM-border-color);
    border-radius: 4px;
    font-size: var(--input-font-size);
    text-decoration: none;
    line-height: 1.2em;
    min-width: 95px;
    cursor: pointer;
}

.edit-button, .save-button{
    background-color: var(--e-global-color-accent);
    color: var(--active-color);
}

.button:focus {
    outline: 0;
}

.other-buttons .button {
    display: inline-block;
}


/* CSS for the climanage-client-review table styling */

.climanage-dashboard {
    max-width: 100%;
    width: 100%;
}

.climanage-dashboard table {
    /*width: 100%;*/
    border-collapse: collapse;
}

.climanage-dashboard th,
.climanage-dashboard td {
    padding: 10px;
    border-bottom: 1px solid var(--cliM-border-color);
}

.climanage-dashboard th {
    background-color: var(--hover-background);
    font-weight: bold;
    text-align: left;
}

.climanage-payouts-page .climanage-dashboard th {
    width: 12.5%;
}

.climanage-payouts-page .climanage-project-tabs{
    padding: 0;
}

.climanage-dashboard tr:nth-child(even) {
    background-color: var(--hover-background);
}

.climanage-dashboard .check-column {
    width: 40px !important;
    text-align: center;
}

.tablenav {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    justify-content: flex-start;
    background: #f1f1f1;
    padding: 10px;
}

.bulkactions {
    display: flex;
    gap: 10px;
}

.bulk-action-btn {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.tablenav.bottom {
    border-top: 0;
}

.tablenav .select-all-bottom {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

input,
select,
textarea {
    outline: 0;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}


/*Client View/Edit Page*/
.client-details {
    width: 100%;
    border-collapse: collapse;
}

.client-details th,
.client-details td {
    border: 1px solid #ddd;
    padding: 10px;
}

.client-details th {
    background-color: #f4f4f4;
    text-align: left;
}

.form-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bulkactions select, .bulkactions .button{
    padding: 7px;
}

.form-value {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.form-value p:first-child {
    margin-top: 0;
}

.form-value p:last-child {
    margin-bottom: 0;
}

.associated-projects,
.associated-clients {
    background: var(--background-color);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--cliM-border-color);
    border-radius: 4px;
}

.associated-projects p,
.associated-clients p {
    margin: 0;
}

.associated-projects a,
.associated-clients a,
.project-name, .client-name{
    padding: 5px 10px;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    color: var(--color) !important;
}

.climanage-projects, .climanage-clients div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.credential-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.credential-row .input-fields {
    display: flex;
    flex-grow: 1;
    gap: 10px;
    width: 100%;
}

.add-btn,
.remove-btn {
    font-size: 25px;
    border-radius: 4px;
    border: 1px solid #000;
    width: 45px;
    height: 45px;
    cursor: pointer;
    text-align: center;
    line-height: 1;
}

.password-field {
    position: relative;
    display: inline-block;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.climanage-dashboard .search-box {
    margin: 0 15px;
}

.climanage-dashboard .search-box input[type="search"] {
    min-width: 250px;
    transition: all 0.3s ease;
    padding: 10px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 1.2em;
}

.climanage-dashboard .search-box input[type="search"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 2px rgba(34, 113, 177, 0.3);
    outline: none;
}

/* Fixed table layout styles */
.climanage-dashboard .wp-list-table {
    table-layout: fixed;
    border-collapse: collapse;
    border-left: 1px solid var(--cliM-border-color);
    border-right: 1px solid var(--cliM-border-color);
}

.climanage-dashboard .column2 {
    width: 25%;
}

.climanage-dashboard .column4 {
    width: 40%;
}

.climanage-dashboard .column3, .climanage-client-section .column2 {
    width: 40%;
}

.climanage-client-section .column3 {
    width: 60%;
}

.climanage-dashboard .check-column {
    width: 40px;
}

.climanage-dashboard.team-member-view .column2 {
    width: 40%;
}

.climanage-dashboard.team-member-view .column3 {
    width: 60%;
}

.climanage-dashboard a{
    color: var(--color);
}

.climanage-dashboard .wp-list-table th,
.climanage-dashboard .wp-list-table td {
    padding: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Sticky header and scrollable body */
.climanage-dashboard .tablenav.bottom {
    position: sticky;
    top: 70px;
    background: var(--hover-background);
    z-index: 10;
    padding: 10px;
    margin: 0;
    border-bottom: 1px solid var(--cliM-border-color);
    width: 100%;
    align-items: center;
}

.climanage-dashboard .wp-list-table thead tr {
    position: sticky;
    top: 60px;
    background: var(--background-color);
    z-index: 9;
}

.climanage-dashboard .wp-list-table tbody {
    /*overflow-y: auto;*/
    font-size: 16px;
    line-height: 1.2em;
}

/* Pagination styles */
.climanage-dashboard .tablenav-pages {
    float: right;
}

.climanage-dashboard .pagination-links {
    display: inline-block;
}

.climanage-dashboard .pagination-links .page-numbers {
    display: inline-block;
    min-width: 28px;
    padding: 10px;
    border: 1px solid var(--cliM-border-color);
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    line-height: 1.2em;
}

.climanage-dashboard .pagination-links .page-numbers.current {
    background-color: var(--e-global-color-primary);
    color: white;
    border-color: var(--e-global-color-primary);
}

.pagination-links .page-numbers:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}

.chat-button {
    padding: 4px 20px;}

/* Status Styles */
.climanage-dashboard .climanage-status span,
.climanage-dashboard .climanage-payment span {
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    text-transform: capitalize;
    font-size: 16px;
}

/* Project Status Colors */
.climanage-dashboard .status-not-started {
    background-color: #af90c933;
    color: #986cb9;
}

.climanage-dashboard .status-running {
    background-color: #007dff1c;
    color: #3e84d0;
}

.climanage-dashboard .status-paused {
    background-color: #fff3cd;
    color: #856404;
}

.climanage-dashboard .status-completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: #66a875;
}

/* Payment Status Colors */
.climanage-dashboard .payment-pending {
    background-color: var(--pending-bg);
    color: var(--pending-color);
}

.climanage-dashboard .payment-completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: #66a875;
}

.climanage-dashboard .payment-failed {
    background-color: rgba(220, 53, 69, 0.1);
    color: #d28289;
}

/* View all link style */
.climanage-dashboard .view-all-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f1;
    border-radius: 4px;
    color: #2271b1;
    text-decoration: none;
    font-size: 16px;
}

.climanage-dashboard .view-all-link:hover {
    background-color: #e5e5e5;
    color: #135e96;
}

.climanage-form .profile-details {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 90px;
    margin-bottom: 40px;
}

.profile-details .profile-name{
    font-size: 24px;
    margin-bottom: 5px;
}

.climanage-form .profile {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 50%;
    text-transform: capitalize;
}

.climanage-form .profile img {
    width: auto;
    height: 90px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.climanage-form .other-details {
    display: flex;
    flex-direction: row;
    width: 50%;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 1024px){
    .climanage-form .other-details {
    width: 100%;
}
}

.climanage-form .profile-status,
.climanage-form .client-number,
.climanage-form .registration-date,
.climanage-form .project-number {
    background: var(--hover-background);
    padding: 10px;
    border-radius: 4px;
    width: -webkit-fill-available;
}

.project-number span, .registration-date span, .other-details .client-number span{
    color: var(--sub-color);
    background: var(--hover-background);
    padding: 10px;
    border: 1px solid var(--cliM-border-color);
    border-radius: 4px;
    width: auto;
    display: block;
}

.climanage-form .profile-picture {
    position: relative;
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
    height: 90px;
}

.climanage-form .change-avatar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    /*padding: 5px;*/
    text-align: center;
    display: none;
}

.climanage-form .change-avatar input[type="file"] {
    display: none;
}

.climanage-form .change-avatar label {
    color: white;
    cursor: pointer;
    font-size: 12px;
    margin: 0;
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 0;
    z-index: 2;
}

/* Add hover effect */
.climanage-form .change-avatar:hover {
    background: rgba(0, 0, 0, 0.8);
}

.climanage-form #image-preview {
    /*margin-top: 10px;*/
    position: absolute;
    bottom: 0;
    left: 0;
}

.climanage-form #image-preview img {
    display: block;
    object-fit: cover;
}

.reg-step-details{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.phone-field {
    display: block;
}

.form-field.phone-field div{
    display: flex;
}

.phone-field .phone-input-row {
    display: flex;
}

.phone-field select {
    width: 100px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--hover-background);
    border-color: var(--cliM-border-color);
}

.phone-field select:focus {
    width: 250px;
}

.phone-field input[type="tel"] {
    flex: 1;
    border-left-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    min-width: 0;
    background-color: var(--hover-background);
    border-color: var(--cliM-border-color);
}

.climanage-registration-form .phone-field input[type="tel"] {
    background-color: var(--form-input-background);
    border-color: var(--form-input-border-color);
}

/* Custom dropdown arrow */
.phone-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}


.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
}

.copy-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    padding: 5px;
}

.copy-icon:hover {
    color: #000;
}

.copied-text {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.copy-icon.show-copied .copied-text {
    opacity: 1;
    visibility: visible;
}

.password-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.input-with-copy {
    position: relative;
    display: flex;
    align-items: center;
}

.copy-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s;
}

.copy-icon:hover {
    color: #000;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Add to existing styles */
.password-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.generate-password {
    padding: 5px 10px;
    background-color: var(--running-bg);
    border: 1px solid var(--cliM-border-color);
    color: var(--color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.generate-password:hover {
    background-color: var(--running-hover);
}

/* Add to existing styles */
.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.password-hint {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.remove-avatar {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 3;
    background: unset;
}

.remove-avatar svg {
    width: 16px;
    height: 16px;
}

/*Registration form*/

    .phone-field button {
        margin-left: 10px;
    }

    #send-otp.verified {
        background-color: var(--e-global-color-accent);
        color: var(--e-global-color-text);
    }

    #otp-section {
        margin-top: 10px;
    }
    
    .otp-field{
        width: 100%;
        display: block !important;
        gap: 10px;
    }

    #otp-timer {
        font-size: 0.9em;
        color: #666;
        margin-top: 5px;
    }
    
    
    /*login Form*/
    .climanage-login-form, .climanage-registration-form{
        margin: 0 auto;
        padding: 20px;
    }
    
.climanage-login-form input:not([type="submit"]):not([type="button"]),
.climanage-registration-form input:not([type="submit"]):not([type="button"]),
.climanage-reset-request-form input:not([type="submit"]):not([type="button"]) {
    color: #fff !important;
}

    .password-field {
        position: relative;
        display: flex;
        align-items: center;
    }

    .climanage-form .form-links {
        display: flex;
        justify-content: space-between;
        margin-top: var(--climanage-form-links-margin-top);
        margin-bottom: var(--climanage-form-links-margin-bottom);
        font-size: 0.9em;
    }

    .climanage-form .form-links a {
        color: #666;
        font-weight: 500;
        text-decoration: none;
    }

    .climanage-form .form-links a:hover {
        text-decoration: underline;
        opacity: 0.9;
    }

    .climanage-login-form .button-sign-in {
        width: 100%;
        font-weight: 600;
    }

    .login-error {
        display: none;
        color: #d63638;
        background: #ffebe8;
        border: 1px solid #d63638;
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 4px;
    }
    
    .dashicons-hidden:before, .dashicons-visibility:before {
    position: absolute;
    right: 0px;
    top: 0;
}

/* Climanage Settings*/
    .climanage-form .form-row {
        display: flex;
        gap: 20px;
        
    }

    .climanage-form .form-field {
        flex: 1;
    }

    .logo-upload-container {
        position: relative;
    }

    .logo-upload-container input[type="file"] {
        display: none;
    }

    .logo-preview {
        padding: 8px 10px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-browse {
     cursor: pointer;
     border: none;
     background: none;
     line-height: 0;
    }

    .color-picker-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .color-picker-container input[type="color"]::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    .color-picker-container input[type="color"]::-webkit-color-swatch {
        border: none;
    }

    .color-picker-container input[type="color"]::-moz-color-swatch {
        border: none;
    }

    .color-hex-input {
        width: 100px;
        padding: 5px;
        border: 1px solid #ddd;
    }

    .settings-message {
        display: none;
        padding: 15px;
        margin: 0 0 20px;
        border-radius: 4px;
        font-size: 14px;
        line-height: 1.5;
        color: white;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
        background-color: #4CAF50;
    }

    .settings-message.error {
        background-color: #f44336;
        color: white;
    }
    
    .settings-message.success {
        background-color: #4CAF50;
        color: white;
    }


@media screen and (max-width: 1024px) {
    /* Tables: keep default layout; no zoom */
}

/* Mobile: stack tablenav and card-style table rows */
@media screen and (max-width: 768px) {
    :root{
    --header-height: 70px;
    }

    /* Stack Bulk Actions, Search, and item count vertically */
    .climanage-client-section .tablenav.bottom,
    .climanage-project-section .tablenav.bottom {
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .climanage-dashboard .search-box {
        margin: 0;
    }

    .climanage-client-section .tablenav.bottom .bulkactions,
    .climanage-project-section .tablenav.bottom .bulkactions {
        width: 100%;
        flex-wrap: wrap;
    }
    .climanage-client-section .search-box,
    .climanage-project-section .search-box {
        flex: 1 1 100%;
        order: 2;
    }
    .climanage-client-section .search-box input,
    .climanage-project-section .search-box input {
        width: 100%;
        min-height: 44px;
    }
    .climanage-client-section .tablenav-pages,
    .climanage-project-section .tablenav-pages {
        float: none;
        order: 3;
        width: 100%;
    }

    /* Card-style table: each row becomes a block card (reference UI) */
    .climanage-client-section .wp-list-table,
    .climanage-project-section .wp-list-table {
        display: block;
        border: none;
    }
    .climanage-client-section .wp-list-table thead,
    .climanage-project-section .wp-list-table thead {
        display: none;
    }
    .climanage-client-section .wp-list-table tbody,
    .climanage-project-section .wp-list-table tbody {
        display: block;
    }
    /* Card row: flex so row1 = checkbox+name, row2 = status+payment, row3 = invoice */
    .climanage-client-section .wp-list-table tbody tr,
    .climanage-project-section .wp-list-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 12px;
        margin-bottom: 20px;
        padding: 18px;
        border: 1px solid var(--cliM-border-color);
        border-radius: 12px;
        background: var(--background-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    /* Force line break so status+payment always start on second line (Projects only) */
    .climanage-project-section .wp-list-table tbody tr::after {
        content: '';
        width: 100%;
        flex-basis: 100%;
        height: 0;
        overflow: hidden;
        order: 1;
    }
    .climanage-client-section .wp-list-table tbody td,
    .climanage-client-section .wp-list-table tbody th,
    .climanage-project-section .wp-list-table tbody td,
    .climanage-project-section .wp-list-table tbody th {
        display: block;
        text-align: left;
        border: none;
    }
    /* Row 1: Checkbox and project/client name on same row */
    .climanage-client-section .wp-list-table tbody td.check-column,
    .climanage-client-section .wp-list-table tbody th.check-column,
    .climanage-project-section .wp-list-table tbody td.check-column,
    .climanage-project-section .wp-list-table tbody th.check-column {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
        margin: 0;
        border-bottom: none;
    }

    .climanage-dashboard .check-column {
        width: 22px !important;
    }

    .climanage-client-section .wp-list-table tbody td:nth-child(2),
    .climanage-project-section .wp-list-table tbody td:nth-child(2) {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 0 14px 0;
        margin-bottom: 0;
        overflow: hidden;
    }
    /* Order so row1 = checkbox+name, then break, then status+payment, then invoice */
    .climanage-project-section .wp-list-table tbody th.check-column,
    .climanage-project-section .wp-list-table tbody td:nth-child(2) {
        order: 0;
    }
    .climanage-project-section .wp-list-table tbody td.climanage-status,
    .climanage-project-section .wp-list-table tbody td.climanage-payment {
        order: 2;
    }
    .climanage-project-section .wp-list-table tbody td.climanage-invoice {
        order: 3;
    }
    .climanage-client-section .wp-list-table tbody td.check-column input,
    .climanage-project-section .wp-list-table tbody th.check-column input {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        min-height: 22px;
        border-radius: 6px;
        border: 2px solid var(--cliM-border-color);
        accent-color: var(--accent-color, #453750);
    }
    /* Row 2 (Projects): Project status and Payment status side by side – force same row */
    .climanage-project-section .wp-list-table tbody td.climanage-status,
    .climanage-project-section .wp-list-table tbody td.climanage-payment {
        flex: 1 1 0;
        min-width: 0;
        max-width: 50%;
        padding: 10px 6px 10px 0;
        box-sizing: border-box;
    }
    .climanage-project-section .wp-list-table tbody td.climanage-payment {
        padding-left: 6px;
        padding-right: 0;
    }
    /* Row 2 (Clients): Projects cell full width */
    .climanage-client-section .wp-list-table tbody td.climanage-projects {
        flex: 1 1 100%;
        padding: 10px 0;
    }
    /* Row 3 (Projects): Invoice full width, single horizontal row */
    .climanage-project-section .wp-list-table tbody td.climanage-invoice {
        flex: 1 1 100%;
        padding: 10px 0 0;
    }
    /* Labels: uppercase, grey, small (reference) */
    .climanage-client-section .wp-list-table tbody td[data-label]::before,
    .climanage-client-section .wp-list-table tbody th[data-label]::before,
    .climanage-project-section .wp-list-table tbody td[data-label]::before,
    .climanage-project-section .wp-list-table tbody th[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--sub-color);
        margin-bottom: 6px;
    }
    .climanage-client-section .wp-list-table tbody td.check-column::before,
    .climanage-project-section .wp-list-table tbody th.check-column::before {
        content: none;
    }
    /* Project/Client name: primary identifier – bold, up to 2 lines then ellipsis */
    .climanage-project-section .wp-list-table tbody tr > td:nth-child(2) a,
    .climanage-client-section .wp-list-table tbody tr > td:nth-child(2) a {
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--color);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    /* Status & payment badges: rounded pills (reference) */
    .climanage-project-section .wp-list-table .climanage-status span,
    .climanage-project-section .wp-list-table .climanage-payment span {
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        display: inline-block;
    }
    /* Projects list: tags wrap nicely */
    .climanage-client-section .wp-list-table .climanage-projects,
    .climanage-project-section .wp-list-table .climanage-status {
        word-wrap: break-word;
    }
    .climanage-client-section .wp-list-table .climanage-projects .project-name,
    .climanage-client-section .wp-list-table .climanage-projects .view-all-link {
        display: inline-block;
        margin: 2px 6px 2px 0;
    }
    .climanage-client-section .wp-list-table .climanage-projects .project-name {
        padding: 4px 10px;
        border-radius: 8px;
    }
    /* First row: no label above name so checkbox + name read as one row (reference) */
    .climanage-project-section .wp-list-table tbody td:nth-child(2)::before,
    .climanage-client-section .wp-list-table tbody td:nth-child(2)::before {
        content: none;
    }
    /* Invoice row: one horizontal row – status text left, buttons right (reference) */
    .climanage-project-section .wp-list-table .climanage-invoice {
        margin-top: 10px;
        border-top: 1px solid var(--cliM-border-color);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .climanage-project-section .wp-list-table .climanage-invoice .invoice-buttons {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .climanage-project-section .wp-list-table .view-invoice-btn,
    .climanage-project-section .wp-list-table .generate-invoice-btn,
    .climanage-project-section .wp-list-table .download-invoice-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 14px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .climanage-form .profile-details {
    flex-direction: column;
    gap: 20px;
    height: auto;
    }
    
    .climanage-form .profile{
        width: 100%;
    }
    
    .climanage-form .other-details, .form-row{
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .form-row .form-field{
        width: 100%;
    }
    
    .tab-buttons {
        overflow-y: hidden;
        overflow-x: auto;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }
    
    .tab-button{
        min-width: fit-content;
    }
}

/* Incomplete profile notice */
.clm-incomplete-card{
    background:var(--hover-background);
    padding:20px;
    border:1px solid var(--cliM-border-color);
    border-radius:6px;
    margin-bottom:25px;
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:15px;
}
.clm-incomplete-card .clm-icon{
    flex:0 0 24px;
    height:24px;
    width:24px;
    fill:var(--pending-color);
}
.clm-incomplete-card h4{
    margin:0 0 6px;
    font-size:0.95rem;
    color:var(--pending-color);
}
.clm-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px 10px;
    border-radius:14px;
    font-size:0.75rem;
    margin:3px;
    border:1px solid var(--cliM-border-color);
}
.clm-chip svg{fill:var(--success-color,#4caf50);}
.clm-filled{
    background:rgba(76,175,80,0.15);
    color:var(--success-color,#4caf50);
    border-color:var(--success-color,#4caf50);
}
.clm-missing{
    background:var(--background-color);
    color:var(--sub-color);
}
.clm-btn{
    background:var(--pending-color);
    color:#fff;
    border:none;
    border-radius:4px;
    padding:6px 14px;
    cursor:pointer;
    text-decoration:none;
    font-size:0.8rem;
    display:inline-block;
    margin-top:8px;
}
.clm-close{
    position:absolute;
    top:6px;
    right:8px;
    border:none;
    background:none;
    font-size:16px;
    line-height:1;
    color:var(--sub-color);
    cursor:pointer;
}