/* Shared screen table typography. Layered important declarations keep module
   overrides from diverging; surfaces, sorting, widths and print remain owned
   by their existing components. */
@layer datacore-table-typography {
    @media screen {
        body table thead th {
            font-family: inherit !important;
            font-size: .695rem !important;
            font-weight: 700 !important;
            line-height: 1.5 !important;
            letter-spacing: .06em !important;
            text-transform: uppercase !important;
        }
    }
}

/*Write your custom css in this file.*/
.datepicker {
    z-index: 9999 !important;
}
.modal-dialog-compact {
    max-width: 400px;
}
.upload-file-button-muted {
    color: #7988a2;
}
.cart-grid-item .cart-grid-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cart-grid-item .store-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-image-container .cart-item-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item-quantity-control {
    width: 92px;
}
.store-empty-state {
    min-height: 400px;
}
.store-empty-state-content {
    vertical-align: middle;
}
.store-empty-icon {
    color: #d8d8d8;
}
.public-store-setting-image-preview {
    display: block;
    width: 100%;
    object-fit: cover;
    border: 1px solid #e4e9ef;
    border-radius: 5px;
}
.public-store-setting-image-preview-wide {
    max-width: 520px;
    max-height: 180px;
}
.checkbox-checked {
    width: 15px;
    height: 15px;
    /* border: 2px solid rgba(166, 166, 166, 0.2); */
    background-size: 12px 10px;
}
.checkbox-blank {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(166, 166, 166, 0.2);
    border-radius: 1px;
}
.min_height_35{
    min-height : 35px;
}
.w40p {
    width: 40%;
}
.card table .badge {
    margin-top: 0px;
}
.badge {
    font-size: 75%;
}
.py-4 {
    padding-top: 1.1rem!important;
    padding-bottom: 1.5rem!important;
}
.dataTable .badge {
    margin-bottom: 0px;
}
.dataTable .badge.badge-normal{
    white-space: normal;
}

table.dataTable tbody th, table.dataTable tbody td {
    padding: 10px 10px !important;
}
.general-form .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
.general-form .form-control {
    background-color: #ffffff;
    opacity: 1;
}
.dataTables_empty{
    padding: 15px 10px !important;
    text-align: center;
}
/* table.dataTable.display tbody th, table.dataTable.display tbody td,table.dataTable.no-footer tbody td {
    border-top: 1px solid #0000003d !important;
} */
.selectedreadonly{
    pointer-events: none;
    touch-action: none;
}
/* .display.dataTable thead{ 
    background: #38a4f8;
    border: 1px solid #38a4f8;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important;
} */
.w3p {
    width: 3%; 
}
.w4p {
    width: 4%; 
}
.w8p {
    width: 8%; 
}
a.disabled{
    pointer-events: none;
}
.collapse-title {
    position: relative;
  }
    
  .collapse-title::after {
    content: "+";
    top: 0px;
    right: 0px;
    position: absolute;
    padding: 0px 10px;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
  }
  
  .collapse-title[aria-expanded="true"]::after {
    content: "-";
  }

/* table.dataTable tbody>tr.selected, table.dataTable tbody>tr>.selected{ */
    /* background: #38a4f8; */
    /* border: 1px solid #38a4f8; */
/* } */
.dataTable tbody tr:hover.selected td {
    color: #4e5e6a !important;
}
table.dataTable tbody td.select-checkbox:before, table.dataTable tbody th.select-checkbox:before {
    content: ' ';
    margin-top: -6px;
    margin-left: -6px;
    border: 2px solid rgba(166, 166, 166, 0.2);
    border-radius: 3px;
}
table.dataTable tbody td.select-checkbox:before, table.dataTable tbody td.select-checkbox:after, table.dataTable tbody th.select-checkbox:before, table.dataTable tbody th.select-checkbox:after {
    display: block;
    position: absolute;
    top: 1.2em;
    left: 50%;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #38a4f8;
}
.general-form .form-control::placeholder {
    font-size: 12px;
    color: #4e5e6a5e;
  }
  .form-control{
    color: #4e5e6a !important;
  }
  label{
    font-size: 12px;
    color: #4e5e6a;
}
.general-form .form-control {
    font-size: 12px;
    border-color: #7877774d;
}
.general-form .unit-type-drop {
    border-color: #7877774d;
}
.general-form .select2-container .select2-choice,.general-form .select2-container .select2-choices,.general-form .select2-container .select2-choices .select2-search-field input{
    border-color: #7877774d !important;
}
.general-form input,.general-form textarea{
    border-color: #7877774d !important;
}
.general-form.white .select2-container .select2-choice,.general-form.white .select2-container-multi.form-control{
    border-color: #7877774d !important;
}
.general-form textarea.form-note{
    height: 35px;
}
/* table.dataTable.row-border tbody td{
    border: 1px solid #0000003d;
    background-color: #fff;
    color : #000 !important;
} */
/* table.dataTable.row-border thead th
{
    background: #38a4f8;
    border: 1px solid #38a4f8;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important;
} */
.btn-warning{
    background: #ffb822 !important;
    border-color: #ffb822 !important;
}
.capitalize{
    text-transform: capitalize;
}
.app-alert.animate {
    top: calc(var(--dc-shell-safe-top, 0px) + 12px) !important;
    right: var(--dc-shell-float-right, 15px) !important;
    height: 55px;
    z-index: 9999;
}
.back-btn{
    width: auto;
    height: auto;
    z-index: auto;
    position: static;
    bottom: auto;
    right: auto;
    box-shadow: none;
    border-radius: 4px;
    text-align: center;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.back-btn .back-btn-label{
    line-height: 1;
}
.form-control-timesheet {
    text-align: center;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #f2f4f6;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.timesheet-page .timesheet-page-title {
    padding: 0;
}
.timesheet-page .timesheet-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 0 24px;
}
.timesheet-page .timesheet-title {
    min-width: 180px;
}
.timesheet-page .timesheet-title h4 {
    margin: 0;
}
.timesheet-page .timesheet-header-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.timesheet-page .timesheet-filter {
    flex: 0 0 auto;
}
.timesheet-page .timesheet-toolbar-controls {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 24px 14px;
}
.timesheet-page .timesheet-toolbar-controls.is-ready {
    padding: 0;
}
.timesheet-page .timesheet-staff-filter {
    width: 190px;
}
.timesheet-page .timesheet-date-filter {
    width: 120px;
}
.timesheet-page .timesheet-staff-filter .select2-container {
    width: 100% !important;
}
.timesheet-page .form-control-timesheet {
    height: 36px;
    border: 1px solid #f1f1f5;
    border-radius: 5px;
    font-size: 13px;
}
.timesheet-page .timesheet-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
/* Only the work-entry grid owns a locked viewport; list/report tabs use the page scroller. */
body.timesheet-page:has(#work_assign_container) {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}
html.timesheet-viewport-lock:has(#work_assign_container) {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}
.timesheet-page:has(#work_assign_container) .page-container {
    height: calc(100vh - 65px) !important;
}
.timesheet-page:has(#work_assign_container) .page-container,
.timesheet-page:has(#work_assign_container) .main-scrollable-page {
    overflow-y: hidden !important;
}
.timesheet-page:has(#work_assign_container) #page-content {
    height: 100%;
    overflow: hidden;
}
.timesheet-page:has(#work_assign_container) #page-content > .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.timesheet-page #work_assign_container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
    overflow: hidden;
}

body.timesheet-main-page {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

html.timesheet-main-viewport-lock {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.timesheet-main-page .page-container {
    height: calc(100vh - 65px) !important;
}

.timesheet-main-page .page-container,
.timesheet-main-page .main-scrollable-page {
    overflow-y: hidden !important;
}

.timesheet-main-root {
    height: 100%;
    overflow: hidden;
}

.timesheet-main-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.timesheet-main-page-title {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex: 0 0 auto;
    gap: 20px;
    justify-content: space-between;
    min-height: 74px;
    padding: 14px 24px;
}

.timesheet-main-heading h4 {
    color: #334155;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.timesheet-main-filters {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.timesheet-main-staff-filter {
    width: 190px;
}

.timesheet-main-staff-filter .select2-container {
    width: 100% !important;
}

.timesheet-main-date-filter {
    width: 122px;
}

.timesheet-main-filter-input,
.timesheet-main-date-filter .form-control-timesheet {
    height: 40px;
    border: 1px solid #edf1f6;
    border-radius: 7px;
    color: #334155;
    font-size: 13px;
}

.timesheet-main-search-wrap {
    display: block;
}

.timesheet-main-back {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
}

.timesheet-main-container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.timesheet-main-board {
    background: #fff;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-color: #cbd5e1 #f8fafc;
    scrollbar-width: thin;
}

.timesheet-main-board::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.timesheet-main-board::-webkit-scrollbar-track {
    background: #f8fafc;
}

.timesheet-main-board::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid #f8fafc;
    border-radius: 999px;
}

.timesheet-main-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #334155;
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
}

.timesheet-main-col-no {
    width: 64px;
}

.timesheet-main-col-name {
    width: 210px;
}

.timesheet-main-col-project {
    width: 300px;
}

.timesheet-main-table th,
.timesheet-main-table td {
    border-bottom: 1px solid #e8eef6;
    border-right: 1px solid #eef2f7;
    box-sizing: border-box;
}

.timesheet-main-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.35;
    padding: 10px 14px;
    position: sticky;
    text-transform: uppercase;
    z-index: 5;
}

.timesheet-main-bulk-row th {
    background: #fbfdff;
    height: 64px;
    top: 0;
    z-index: 7;
}

.timesheet-main-label-row th {
    height: 66px;
    top: 64px;
}

.timesheet-main-table tbody td,
.timesheet-main-table tbody th {
    background: #fff;
    color: #475569;
    font-size: 13px;
    height: 74px;
    padding: 9px 14px;
    vertical-align: middle;
}

.timesheet-main-table tbody tr:nth-child(even) td,
.timesheet-main-table tbody tr:nth-child(even) th {
    background: #fcfdff;
}

.timesheet-main-table tbody tr:hover td,
.timesheet-main-table tbody tr:hover th {
    background: #f8fbff;
}

.timesheet-main-sticky {
    position: sticky;
    z-index: 8;
}

.timesheet-main-sticky-no {
    left: 0;
    text-align: center;
}

.timesheet-main-sticky-name {
    left: 64px;
    z-index: 9;
}

.timesheet-main-table thead .timesheet-main-sticky {
    z-index: 11;
}

.timesheet-main-table thead .timesheet-main-sticky-name {
    z-index: 12;
}

.timesheet-main-table tbody .timesheet-main-sticky {
    box-shadow: 1px 0 0 #e2e8f0;
}

.timesheet-main-employee {
    align-items: center;
    display: flex;
    gap: 10px;
    height: 74px;
}

.timesheet-main-employee .timesheet-employee-avatar {
    position: relative; display: block; flex: 0 0 30px;
    width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
    background: #f7f9fc; border: 1px solid #dde4ec;
}
.timesheet-main-employee .timesheet-employee-avatar img {
    position: relative; display: block; width: 100%; height: 100%;
    border: 0; box-shadow: none; border-radius: inherit;
    object-fit: cover; object-position: center;
}
.timesheet-main-employee .timesheet-avatar-initials {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; line-height: 1;
    text-transform: uppercase; color: #283646;
}
.timesheet-main-employee .timesheet-employee-name {
    color: #2b3645; font-size: 13px; font-weight: 500;
    line-height: 1.35; white-space: normal; overflow-wrap: break-word;
}
body[data-color="1E202D"] .timesheet-main-employee .timesheet-employee-avatar {
    background: #20242c; border-color: #3b4253;
}
body[data-color="1E202D"] .timesheet-main-employee .timesheet-avatar-initials,
body[data-color="1E202D"] .timesheet-main-employee .timesheet-employee-name { color: #cbd5e1; }

.timesheet-main-bulk-cell {
    text-align: center;
}

.timesheet-main-bulk-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 36px;
    min-width: 154px;
    padding: 7px 14px;
    text-transform: uppercase;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.timesheet-main-bulk-toggle input {
    appearance: none;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    height: 22px;
    margin: 0;
    position: relative;
    width: 40px;
}

.timesheet-main-bulk-toggle input::before {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    content: "";
    height: 18px;
    left: 1px;
    position: absolute;
    top: 1px;
    transition: transform .16s ease;
    width: 18px;
}

.timesheet-main-bulk-toggle input:checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.timesheet-main-bulk-toggle input:checked::before {
    transform: translateX(18px);
}

.timesheet-main-bulk-toggle:hover {
    border-color: #c4b5fd;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

.timesheet-main-bulk-done {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    min-width: 132px;
    padding: 7px 12px;
    text-transform: uppercase;
}

.timesheet-main-project-head {
    overflow: visible;
}

.timesheet-main-project-sort {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    gap: 7px;
    width: calc(100% - 78px);
    max-width: calc(100% - 78px);
    min-width: 0;
    padding: 5px 4px;
    text-align: left;
}

.timesheet-main-project-sort:hover .timesheet-main-project-title {
    color: #1e293b;
}

.timesheet-main-project-sort:focus-visible {
    border-radius: 5px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .22);
    outline: none;
}

.timesheet-main-project-title {
    color: #334155;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 800;
    max-width: 30ch;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-main-sort-indicator {
    color: #94a3b8;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.timesheet-main-sort-indicator::before {
    content: "\2195";
}

.timesheet-main-project-head[aria-sort="ascending"] .timesheet-main-sort-indicator,
.timesheet-main-project-head[aria-sort="descending"] .timesheet-main-sort-indicator {
    color: #475569;
}

.timesheet-main-project-head[aria-sort="ascending"] .timesheet-main-sort-indicator::before {
    content: "\2191";
}

.timesheet-main-project-head[aria-sort="descending"] .timesheet-main-sort-indicator::before {
    content: "\2193";
}

.timesheet-main-column-tools {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    display: inline-flex;
    gap: 3px;
    opacity: 0;
    padding: 4px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .12s ease;
}

.timesheet-main-project-head:hover .timesheet-main-column-tools,
.timesheet-main-project-head:focus-within .timesheet-main-column-tools {
    opacity: 1;
    pointer-events: auto;
}

.timesheet-main-tool {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #64748b;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.timesheet-main-tool:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.timesheet-main-hidden-choice {
    display: none;
}

.timesheet-main-shift {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    line-height: 1.25;
    min-height: 52px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
    white-space: normal;
    width: 100%;
}

.timesheet-main-shift:hover {
    transform: translateY(-1px);
}

.timesheet-main-shift-pending {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #3f2a00 !important;
}

.timesheet-main-shift-active {
    background: #3b82f6;
    border-color: #2563eb;
    color: #fff !important;
}

.timesheet-main-shift-done {
    background: #4f5fbf;
    border-color: #4353a8;
    color: #fff !important;
}

.timesheet-main-shift-off {
    background: #6f7a84;
    border-color: #5f6a73;
    color: #fff !important;
}

.timesheet-main-shift-empty {
    background: #f8fafc;
    border-color: #eef2f7;
    color: #94a3b8 !important;
}

.timesheet-main-empty-head {
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .timesheet-main-search,
    .timesheet-main-bulk-toggle,
    .timesheet-main-bulk-toggle input::before,
    .timesheet-main-column-tools,
    .timesheet-main-project-sort,
    .timesheet-main-shift {
        transition: none;
    }

    .timesheet-main-shift:hover {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .timesheet-main-page-title,
    .timesheet-main-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .timesheet-main-filters,
    .timesheet-main-staff-filter,
    .timesheet-main-date-filter,
    .timesheet-main-search,
    .timesheet-main-back {
        width: 100%;
    }
}
.app-alert-message{
    max-width: 100%;
}
#client-form #address{
    height: 45px;
}
/* .sidebar{
	font-size: 13px;
} */
.form-group #remark{
	height: 100px !important;
}
.modal-w20{
    width: 50%;
}
.edit-image-file.vehicle .delete-saved-file {
    top: -10px !important;
    left: 90% !important;
    min-width: 25px;
    padding: 3px 4px;
    display: unset;
}
.edit-image-file.vehicle .download-saved-file {
    top: -10px !important;
    left: 90% !important;
    min-width: 25px;
    padding: 3px 4px;
    display: unset;
}
.edit-image-file .download-saved-file:hover{
    background: #0ABB89;
    color: #fff;
    border: 1px solid #0ABB89;
}
.edit-image-file.vehicle {
    height: 120px !important;
}

/* The container */
.container-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 50px;
}

/* Hide the browser's default checkbox */
.container-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.container-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 50px;
    background-color: #eee;
    border-radius: 30px;
    border: 3px solid #cdc8c8;
}

/* On mouse-over, add a grey background color */
.container-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox input:checked ~ .checkmark {
    background-color: #2196F3;
    border: 1px solid #2196f3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.container-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark:after {
    left: 17px;
    top: 10px;
    width: 12px;
    height: 25px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.toggle.ios, .toggle-on.ios, .toggle-off.ios { border-radius: 20rem; }
.toggle.ios .toggle-handle { border-radius: 20rem; }
.toggle.btn {
    min-width: 4.7rem;
}
#date_filter,#staff_category{
    background-color: #fff;
}
.checkinoutcls .toggle.btn{
    min-width: 4.8rem;
}
.undo_leave_class .toggle.btn{
    min-width: 10.8rem;
}
html, body{
    color : #7d8489 !important;
    /* font-size: 12px !important; */
}
.btn {
    font-size: 12px !important;
}

.th-icon a{
    cursor: pointer;
    min-width: 28px;
    background: #fff;
    color: #a1a3a5;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center;
    margin: 0 5px;
    padding: 2px 0 2.5px 0;
    border: 1px solid #e2e7f1;
    font-size: 14px;
}

.th-icon a:hover {
    background: #0ABB87;
    color: #fff;
    border: 1px solid #0ABB87;
}
.th-icon a.delete:hover {
    background: #FD397A;
    color: #fff;
    border: 1px solid #FD397A;
}
.th-edit-delete .div-edit-delete {
    display: none;
  }

/* Hide favorite-client topbar icon on small-tablet through small-laptop widths */
@media (max-width: 1366px) {
    #topbar-favorite-clients {
        display: none !important;
    }
}
  
  .th-edit-delete:hover .div-edit-delete {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 0px;
  }
  .avatar-lg {
    border-radius: 50%;
    background-color: #fff;
}
div.dataTables_scrollBody {
    background: unset !important;
    top: -30px;
    max-height: calc(100vh - 420px) !important;
}
.dataTables_scrollHead,.dataTables_scrollHead th{
/* border: 1px solid #f2f2f2 !important; */
z-index: 9;
/* background-color: #38a4f8; */
}
.timsheet_check_tr th{
    background: #fff !important;
    border: unset !important;
}

.padding0-th.dataTable thead .p0 th,.padding0-th.dataTable tbody td.p0{
    padding: 0px !important;
}
.th-div-first{
width: 50%;
float: left;
border-right: 1px solid #f2f2f2;
padding: 10px;
text-align: center;
}
.th-div-second{
    width: 50%;
    float: left;
    padding: 10px;
    text-align: center;
}

.intime_a,.intime_delete{
    cursor: pointer;
    min-width: 28px;
    background: #fff;
    color: #a1a3a5;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center;
    margin: 0 5px;
    padding: 2px 0 2.5px 0;
    border: 1px solid #e2e7f1;
    font-size: 14px;
}
.intime_a:hover {
    background: #0ABB87;
    color: #fff;
    border: 1px solid #0ABB87;
}
.intime_delete:hover {
    background: #FD397A;
    color: #fff;
    border: 1px solid #FD397A;
}
.min-h70{
    height: 50px;
}
.select2-result-unselectable{
    background-color: #eee;
}
#attendance-tabs.nav-tabs{
    border-bottom: unset;
}
/* .btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #884ea0;
    border-color: #884ea0;
} */
.icon-12 {
    width: 14px;
    height: 14px;
    color:#1d82f5;
    font-size: 12px;
}
.icon-12.fill {
    fill:#1d82f5;
}
.text-lightest {
    color: #99a5b5;
}
@media (max-width: 990px){

    .th-div-first{
        width: 100%;
        float: left;
        border-right: 1px solid #f2f2f2;
        padding: 10px;
        text-align: center;
        }
        .th-div-second{
            width: 100%;
            float: left;
            padding: 10px;
            text-align: center;
        }

/* th, td { white-space: nowrap; } */
    div.dataTables_wrapper {
        width: 348px;
        /* margin: 0 auto; */
    }
    .dtfc-fixed-left{
        background-color: white;
        color:#000 !important;
        z-index: 1;
    }
    table.dataTable thead tr>.dtfc-fixed-left, table.dataTable thead tr>.dtfc-fixed-right, table.dataTable tfoot tr>.dtfc-fixed-left, table.dataTable tfoot tr>.dtfc-fixed-right {
        top: 0;
        bottom: 0;
        z-index: 3;
        /* background: #38a4f8; */
        /* border: 1px solid #38a4f8; */
        --bs-text-opacity: 1;
        color: rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important;
    }
    table.dataTable tbody tr>.dtfc-fixed-left{
        background-color: white;
        color:#000 !important;
    }
    

/* .sidebar .sidebar-toggle-btn {
    float: right;
    display: inline-block !important;
    margin: 0 !important; 
    background-color: #fff;
    width: 2rem;
    height: 4.8rem;
    padding-top: 20px;
} */

table.dataTable thead th:first-child, table.dataTable tbody td:first-child{
	padding-left: 25px !important;
}

.dataTables_scrollHead table tr th:first-child{
    width: 2px !important;
    padding-left: 5px !important;
}
.dataTables_scrollHead table tr th:nth-child(2){
    width: 50px !important;
}
.modal-w20 {
    width: 80%;
}
}
@media only screen and (max-width: 768px) {
    div.dataTables_wrapper {
        width: 325px;
    }
}
@media only screen  and (min-width: 375px)  and (max-width: 812px)  {
    div.dataTables_wrapper {
        width: 352px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    div.dataTables_wrapper {
        width: 705px;
    }

    .dataTables_scrollHead table tr th:first-child{
        width: 2px !important;
        padding-left: 5px !important;
    }
}
@media (max-width: 767px) {
    .sidebar-off{
        z-index: 1080;
    }
}

#team-form .select2-container.select2-container-disabled .select2-choices div {
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: #22B9FF !important;
    /* font-size: 75%; */
}
#team-form .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice{
    background-color: #22B9FF !important;
    border: 1px solid #22B9FF;
}
.settings .settings-anchor {
    font-size: 13px;
}

/* Keep navigation compact so the settings form retains its working space. */
.settings-overview-content {
    min-width: 0;
}

@media (min-width: 768px) {
    .settings-overview-nav {
        flex: 0 0 196px;
        width: 196px;
    }
}

/* Core settings submenu — Datacore native */
.app-settings-nav {
    position: sticky;
    top: 12px;
    padding: 4px 2px 20px 0;
}

.app-settings-nav .app-settings-search {
    float: none;
    margin: 0 0 12px;
    list-style: none;
}

.app-settings-nav .app-settings-search .FilterSearch {
    height: 38px;
    font-size: 13px;
    color: #4e5e6a;
    background: #fff;
    border: 1px solid #7877774d;
    border-radius: 5px;
    box-shadow: none;
}

.app-settings-nav .app-settings-search .FilterSearch::placeholder {
    color: #7b8190;
    opacity: 1;
}

.app-settings-nav .app-settings-search .FilterSearch:focus {
    border-color: #c5ccd3;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
    outline: none;
}

.app-settings-nav .settings .settings-anchor {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    text-align: start;
    color: #4e5e6a;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.app-settings-nav .settings .settings-anchor:hover {
    background: rgba(0, 0, 0, 0.025);
    color: #1e293b;
}

.app-settings-nav .settings .settings-anchor:first-of-type {
    margin-top: 0;
}

.app-settings-nav .settings .settings-anchor:focus-visible {
    outline: 2px solid var(--dc-primary-bg, #2563eb);
    outline-offset: -2px;
}

.app-settings-nav .settings .settings-anchor:not(.hide-collapse)::after {
    margin-top: 6px;
    opacity: 0.65;
}

.app-settings-nav .help-catagory.list-group {
    position: relative;
    margin: 0 0 8px 12px;
    padding-left: 4px;
}

.app-settings-nav .help-catagory.list-group::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background: #e8ecf1;
}

.app-settings-nav .help-catagory.list-group .list-group-item {
    position: relative;
    display: block;
    padding: 8px 10px 8px 13px;
    margin: 0 0 2px;
    border-radius: 5px !important;
    border: 1px solid transparent !important;
    background: transparent;
    color: #4e5e6a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: normal;
    word-break: break-word;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.app-settings-nav .help-catagory.list-group .list-group-item:hover,
.app-settings-nav .help-catagory.list-group .list-group-item:focus {
    background: #f6f8fb;
    border-color: transparent !important;
    border-left: 1px solid transparent !important;
    text-indent: 0;
    color: #1e293b;
}

.app-settings-nav .help-catagory.list-group .list-group-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.app-settings-nav .help-catagory.list-group .list-group-item.active,
.app-settings-nav .help-catagory.list-group .list-group-item.active:hover,
.app-settings-nav .help-catagory.list-group .list-group-item.active:focus {
    background: #f1f5fa;
    border: 1px solid transparent !important;
    border-left: 1px solid #4e5e6a !important;
    text-indent: 0;
    color: #1e293b;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .app-settings-nav {
        position: static;
        padding: 0 0 15px;
        margin-bottom: 10px;
        border-bottom: 1px solid #f1f1f5;
    }

    .app-settings-nav .help-catagory.list-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 0;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .app-settings-nav .help-catagory.list-group::before {
        display: none;
    }

    .app-settings-nav .help-catagory.list-group .list-group-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        margin: 0;
        text-align: center;
    }

    .app-settings-nav .help-catagory.list-group .list-group-item.active,
    .app-settings-nav .help-catagory.list-group .list-group-item.active:hover,
    .app-settings-nav .help-catagory.list-group .list-group-item.active:focus {
        border-left-width: 1px !important;
        box-shadow: inset 0 -2px 0 #4e5e6a;
    }
}

html[dir="rtl"] .app-settings-nav {
    padding: 4px 0 20px 2px;
}

html[dir="rtl"] .app-settings-nav .help-catagory.list-group {
    margin: 0 10px 8px 0;
    padding-right: 9px;
    padding-left: 0;
}

html[dir="rtl"] .app-settings-nav .help-catagory.list-group::before {
    right: 0;
    left: auto;
}

html[dir="rtl"] .app-settings-nav .help-catagory.list-group .list-group-item.active,
html[dir="rtl"] .app-settings-nav .help-catagory.list-group .list-group-item.active:hover,
html[dir="rtl"] .app-settings-nav .help-catagory.list-group .list-group-item.active:focus {
    border-left: 1px solid transparent !important;
    border-right: 1px solid #4e5e6a !important;
}

body[data-color="1E202D"] .app-settings-nav .app-settings-search .FilterSearch {
    background: #1e222a;
    border-color: #697386;
    color: #edf1f7;
}

body[data-color="1E202D"] .app-settings-nav .app-settings-search .FilterSearch::placeholder {
    color: #aeb7c8 !important;
}

body[data-color="1E202D"] .app-settings-nav .app-settings-search .FilterSearch:focus {
    border-color: #5867dd;
    box-shadow: 0 0 0 3px rgba(88, 103, 221, 0.24);
}

body[data-color="1E202D"] .app-settings-nav .settings.nav-tabs {
    padding: 8px;
    background: #252932 !important;
    border: 1px solid #2f3541 !important;
    border-radius: 6px !important;
}

body[data-color="1E202D"] .app-settings-nav .settings .settings-anchor,
body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item {
    color: #aeb7c8;
}

body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group::before {
    background: #343948;
}

body[data-color="1E202D"] .app-settings-nav .settings .settings-anchor:hover,
body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item:hover,
body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item:focus {
    background: #303644 !important;
    color: #edf1f7 !important;
}

body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item {
    background: transparent !important;
}

body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item.active,
body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item.active:hover,
body[data-color="1E202D"] .app-settings-nav .help-catagory.list-group .list-group-item.active:focus {
    background: rgba(88, 103, 221, 0.18) !important;
    color: #edf1f7 !important;
    border-left-color: #5867dd !important;
    text-indent: 0;
}

body[data-color="1E202D"].settings-page #page-content .card-header h4 {
    color: #edf1f7;
}

body[data-color="1E202D"] .settings-overview-page .card-body label {
    color: #aeb7c8;
}

body[data-color="1E202D"].settings-page #page-content .general-form label:not(.error):not(.text-danger) {
    color: #aeb7c8;
}

body[data-color="1E202D"].settings-page #page-content .general-form .form-control {
    color: #edf1f7 !important;
    background: #1e222a !important;
    border-color: #697386 !important;
}

body[data-color="1E202D"].settings-page #page-content .general-form .form-control::placeholder {
    color: #aeb7c8 !important;
    opacity: 1;
}

body[data-color="1E202D"].settings-page #page-content .general-form .form-control:focus {
    border-color: #5867dd !important;
    box-shadow: 0 0 0 3px rgba(88, 103, 221, 0.24) !important;
}

body[data-color="1E202D"].settings-page #page-content .general-form .select2-container .select2-choice,
body[data-color="1E202D"].settings-page #page-content .general-form .select2-container .select2-selection {
    color: #edf1f7 !important;
    background: #1e222a !important;
    border-color: #697386 !important;
}

body[data-color="1E202D"].settings-page #page-content .dashed-row .form-group {
    border-bottom-color: #343948;
}

body[data-color="1E202D"] .settings-overview-page .form-control[readonly] {
    color: #edf1f7 !important;
    background: #1e222a !important;
    border-color: #697386 !important;
    opacity: 1;
}

@media (max-width: 767.98px) {
    body[data-color="1E202D"] .app-settings-nav {
        border-bottom-color: #343948;
    }

    body[data-color="1E202D"] .app-settings-nav .settings.nav-tabs {
        padding: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-settings-nav .help-catagory.list-group .list-group-item {
        transition: none;
    }
}
/* table .goal-progress {
    display: inline-block;
}
.goal-progress {
    text-align: center;
    position: relative;
}
table .goal-percent {
    font-size: 10px;
    text-align: center;
    left: 1px;
    top: 22px;
    line-height: 0;
}
.goal-percent {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    text-align: center;
    line-height: 40px;
    font-size: 50px;
} */



.progress-rounded {
    width: 50px;
    height: 50px;
    background: none;
    position: relative;
  }
  
  .progress-rounded::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #eee;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .progress-rounded>span {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 1;
  }
  
  .progress-rounded .progress-left {
    left: 0;
  }
  
  .progress-rounded .progress-bar {
    width: 100%;
    height: 100%;
    background: none;
    border-width: 3px;
    border-style: solid;
    position: absolute;
    top: 0;
  }
  
  .progress-rounded .progress-left .progress-bar {
    left: 100%;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 80px;
    border-left: 0;
    -webkit-transform-origin: center left;
    transform-origin: center left;
  }
  
  .progress-rounded .progress-right {
    right: 0;
  }
  
  .progress-rounded .progress-right .progress-bar {
    left: -100%;
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;
    border-right: 0;
    -webkit-transform-origin: center right;
    transform-origin: center right;
  }
  
  .progress-rounded .progress-value {
    position: absolute;
    top: 0;
    left: 0;
  }
  #journal_entry_form_table #dynamic_field textarea{
    height : 35px;
  }
  .gridview_search{
    width : 100% !important;
  }
  .widget-icon-coral {
    float: left;
    background-color: #FD397A;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-coral .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .widget-icon-purple {
    float: left;
    background-color: #6f42c1;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-purple .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .widget-icon-warning {
    float: left;
    background-color: #ffc107;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-warning .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .widget-icon-orange {
    float: left;
    background-color: #fd7e14;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-orange .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .widget-icon-secondary {
    float: left;
    background-color: #6c757d;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-secondary .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .widget-icon-info {
    float: left;
    background-color: #0dcaf0;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-info .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  .page-tax-returns {
    padding: 1cm;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    /* width: 21cm; */
    margin: 15px auto;
}
.widget-icon-green {
    float: left;
    background-color: #0abb87;
    height: 55px;
    width: 55px;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .widget-icon-green .icon {
    width: 2rem;
    height: 2rem;
    color: #fff;
  }
  table.dataTable.row-border tbody td.textwhite{
    color :#fff !important;
  }
  .dataTable tbody tr:hover td.textwhite {
    color: #4e5e6a !important;
}
tbody td.textwhite{
    color :#fff !important;
  }
tbody tr:hover td.textwhite {
    color: #4e5e6a !important;
}
.bgg-success {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}
.h155{
    height: 155px !important;
}
.project_staff_in_out tr{
    height: 65px;
    font-size: 15px;
}
.project_staff_in_out .avatar-xs {
    width: 50px;
    height: 35px;
}
/*** iPhone and iOS Form Input Zoom Fixes ***/
/* Fix Input Zoom on devices older than iPhone 5: */
@media screen and (device-aspect-ratio: 2/3) {
    select, textarea, input[type="text"], input[type="password"],
    input[type="datetime"], input[type="datetime-local"],
    input[type="date"], input[type="month"], input[type="time"],
    input[type="week"], input[type="number"], input[type="email"],
    input[type="url"]{ font-size: 16px; }
}

/* Fix Input Zoom on iPhone 5, 5C, 5S, iPod Touch 5g */
@media screen and (device-aspect-ratio: 40/71) {
    select, textarea, input[type="text"], input[type="password"],
    input[type="datetime"], input[type="datetime-local"],
    input[type="date"], input[type="month"], input[type="time"],
    input[type="week"], input[type="number"], input[type="email"],
    input[type="url"]{ font-size: 16px; }
}

/* Fix Input Zoom on iPhone 6, iPhone 6s, iPhone 7  */
@media screen and (device-aspect-ratio: 375/667) {
    select, textarea, input[type="text"], input[type="password"],
    input[type="datetime"], input[type="datetime-local"],
    input[type="date"], input[type="month"], input[type="time"],
    input[type="week"], input[type="number"], input[type="email"], 
    input[type="tel"], input[type="url"]{ font-size: 16px; }
}

/* Fix Input Zoom on iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus, iPhone 8, iPhone X, XS, XS Max  */
@media screen and (device-aspect-ratio: 9/16) {
    select, textarea, input[type="text"], input[type="password"],
    input[type="datetime"], input[type="datetime-local"],
    input[type="date"], input[type="month"], input[type="time"],
    input[type="week"], input[type="number"], input[type="email"],
    input[type="tel"], input[type="url"]{ font-size: 16px; }
}
.topbar-brand {
    padding: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.02em;
    z-index: 999;
}

/* --------------------------------------------------------------------------
 * Topbar — modern icon buttons & header polish (theme color files untouched)
 * -------------------------------------------------------------------------- */
#default-navbar.navbar-custom {
    min-height: 64px;
    border-bottom: 1px solid #e8ecf1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#default-navbar .navbar-nav {
    align-items: center;
}

#default-navbar .navbar-nav.me-auto {
    gap: 2px;
    padding-left: 4px;
}

#default-navbar .d-flex > .navbar-nav {
    gap: 2px;
    padding-right: 10px;
}

/* Rounded icon buttons — toolbar actions */
#default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon),
#default-navbar #topbar-timer-icon-container .nav-item > .nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 12px 3px;
    border-radius: 12px;
    color: #64748b !important;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

#default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):hover,
#default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):focus,
#default-navbar #topbar-timer-icon-container .nav-item > .nav-link:hover,
#default-navbar #topbar-timer-icon-container .nav-item > .nav-link:focus {
    background: #f8fafc;
    color: #334155 !important;
    border-color: #e8ecf1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#default-navbar .nav-item.show > .nav-link:not(#user-dropdown):not(#start-timer-icon) {
    background: #eef2ff;
    color: #4f46e5 !important;
    border-color: #c7d2fe;
}

#default-navbar .navbar-nav .nav-link .icon,
#default-navbar .navbar-nav .nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

#default-navbar .sidebar-toggle-btn-li .sidebar-toggle-btn {
    margin-left: 6px;
    margin-right: 4px;
}

#default-navbar #global-search-btn:hover,
#default-navbar #quick-add-icon:hover {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
}

/* Hey Anu mic — no background; match other topbar icons */
#default-navbar #topbar-ai-mic-li {
    display: flex;
    align-items: center;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn {
    background: transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: #64748b !important;
    border: 1px solid transparent;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn:hover,
#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn:focus {
    background: #f8fafc !important;
    color: #334155 !important;
    border-color: #e8ecf1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn.listening,
#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn.speaking {
    box-shadow: none !important;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn.muted {
    background: transparent !important;
    color: #dc2626 !important;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn.muted:hover,
#default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn.muted:focus {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab-svg-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    color: inherit;
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab-wave-bar {
    background: rgba(100, 116, 139, 0.55);
}

#default-navbar #topbar-ai-mic-li .hey-anu-fab.listening .hey-anu-fab-wave-bar {
    background: rgba(100, 116, 139, 0.85);
}

#default-navbar #personal-language-icon {
    padding: 0 !important;
}

/* Notification & message badges on icons */
#default-navbar .notification-badge-container {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    line-height: 1;
}

#default-navbar .notification-badge-container .badge.up {
    position: static;
    top: auto;
    margin: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

/* User menu pill */
#default-navbar #user-dropdown {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    padding: 5px 12px 5px 5px !important;
    margin: 10px 2px 10px 6px;
    border-radius: 999px;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    color: #334155 !important;
    max-width: 220px;
}

#default-navbar #user-dropdown:hover,
#default-navbar #user-dropdown:focus {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#default-navbar #user-dropdown .avatar-xs {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

#default-navbar #user-dropdown .avatar-xs img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

#default-navbar #user-dropdown .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clock in / out chip */
#default-navbar #start-timer-icon {
    width: auto !important;
    height: auto !important;
    padding: 10px 4px !important;
    margin: 10px 4px;
    border: none !important;
    background: transparent !important;
}

#default-navbar #start-timer-icon .btn {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    line-height: 1.2;
    box-shadow: none;
    border-width: 1px;
}

#default-navbar #start-timer-icon .btn-success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #15803d;
}

#default-navbar #start-timer-icon .btn-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* App title (center brand) */
#default-navbar .topbar-brand.topbar-logo {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0 10px;
    padding: 0;
}

/* Topbar dropdown panels */
#default-navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    margin-top: 4px;
    overflow: hidden;
}

/* Match the header reminders panel to the app's rounded panel treatment. */
#ajaxModal.reminder-modal .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

#default-navbar .user-dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

#default-navbar .user-dropdown-menu .dropdown-item:hover {
    background: #f8fafc;
}

#default-navbar .notification-dropdown,
#default-navbar .message-dropdown,
#default-navbar .reminder-dropdown {
    padding: 0;
}

#default-navbar .notification-dropdown .card,
#default-navbar .message-dropdown .card,
#default-navbar .reminder-dropdown .card {
    border-radius: 14px;
}

#default-navbar .reminder-dropdown .dropdown-details {
    max-height: min(420px, 60vh);
    overflow-y: auto;
}

#default-navbar .reminder-dropdown-heading {
    padding: 12px 16px 8px;
    font-weight: 600;
}

#default-navbar .reminder-dropdown-status:not(:empty) {
    padding: 8px 16px;
    font-size: 12px;
}

#default-navbar .reminder-dropdown-retry {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#default-navbar .reminder-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
}

#default-navbar .reminder-dropdown-footer button,
#default-navbar .reminder-dropdown-more {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#default-navbar .reminder-dropdown-more {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
}

#default-navbar .reminder-dropdown-more.hide,
#default-navbar .reminder-dropdown-footer .hide {
    display: none !important;
}

#default-navbar .reminder-dropdown-footer .reminder-dropdown-add {
    font-weight: 600;
    white-space: nowrap;
}

#default-navbar .reminder-dropdown-item {
    padding: 10px 16px;
}

#default-navbar .reminder-dropdown-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

#default-navbar .reminder-dropdown-due,
#default-navbar .reminder-dropdown-empty,
#default-navbar .reminder-dropdown-loading {
    font-size: 12px;
    color: #596579;
}

#default-navbar .reminder-dropdown :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

#default-navbar .language-dropdown {
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575px) {
    #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon),
    #default-navbar #topbar-timer-icon-container .nav-item > .nav-link {
        width: 38px;
        height: 38px;
        margin: 12px 2px;
    }

    #default-navbar #user-dropdown {
        padding: 4px !important;
        border-radius: 50%;
        min-width: 40px;
        width: 40px !important;
    }

    #default-navbar #user-dropdown .user-name {
        display: none !important;
    }
}

.sidebar .sidebar-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 18px;
    padding: 2px 8px;
    margin-top: 4px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.sidebar-footer-version {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 250px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px 12px;
    background: inherit;
    pointer-events: none;
    z-index: 3;
}
.cart-grid-item .cart-grid-item-image .cart-grid-rate{
    background: #a1a2a2;
    color: #fff;
}
/* .btn-info {
    background: #5b988c;
    border: 1px solid #5b988c;
} */
/* .process-order-preview { */
    /* max-width: unset; */
    /* min-width: unset; */
    /* margin: auto; */
/* } */
.widget-module {
    border: 1px solid #f2f4f6;
}
/* preview,PDF Logo style */
table.header-style tr td img{
    width: 100%;
}
.float-start.mr15 img{
    width: 50%;
}
#estimate-item-table .option.w80,
#clients_contract-item-table .option.w80,
#company_policy-item-table .option.w80,
#sub_contract_po-item-table .option.w80,
#sales_return_item_table .option,
#sub_contract_return_item_table .option{
    padding: 10px 0px !important;
}
.sidebar-brand.sidebar-brand-shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 66px;
    padding: 12px 20px;
    background: inherit;
    border-bottom-color: transparent;
}

.sidebar-brand-shell .brand-logo,
.sidebar-brand-shell .brand-logo-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 100%;
}

.sidebar-brand-shell .brand-logo img {
    display: block;
    width: auto;
    max-width: 205px;
    max-height: 36px;
    object-fit: contain;
}

.sidebar-brand-shell .brand-logo-mini {
    display: none;
}

.sidebar-brand-shell .brand-logo-mini img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mleft-right {
    margin-left: 1px;
    margin-right: 1px;
}
.widget-details h3 {
    margin: 0;
    color: #000;
}

#dynamic_field .help-block{
    box-shadow: none;
    color: #ec5855;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}
#dynamic_field .select2-container {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
    display: table;
    table-layout: fixed;
  }
  .client-profile-image-thumb{
    width: 125px;
    height: 125px;
}
@media (max-width: 1366px){
    .licensed_to{
        display: none !important;
    }
}
.table>:not(caption)>*>* {
    color: unset;
    background-color: unset;
}
.select-batch a{
    font-size: 10px !important;
    padding: 7px;
}
.del_item{
    cursor: pointer;
    min-width: 28px;
    background: #fff;
    color: #9699a8;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center;
    margin: 0 5px;
    padding: 2px 0 2.5px 0;
    border: 1px solid #f1f1f5;
    font-size: 14px;
}
.del_item:hover {
    background: #fd1361;
    color: #fff;
    border: 1px solid #fd1361;
}
#show_vehicle_prv_km{
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: none;
    display: block;
}
.max-logo-size {
    max-width: 100%;
    max-height: 100%;
}

/* Compact invoice header in browser preview and details view */
.invoice-preview .header-style,
.invoice-details-view .header-style {
    margin-top: 10px;
}
.invoice-preview .header-style td,
.invoice-details-view .header-style td {
    padding: 2px 5px;
}
.invoice-preview .header-style .hidden-invoice-preview-row,
.invoice-details-view .header-style .hidden-invoice-preview-row {
    padding: 0;
}

.app-alert.alert-danger{
    background-color: #09b0ec;
    color: #fff;
}
.send_to_client{
    cursor: pointer;
}
/* Search sits below the fixed logo and shares the sidebar surface */
.side_bar_seach_menu {
    --search-block-padding-top: 15px;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    width: 250px;
    margin: 0;
    padding: var(--search-block-padding-top) 14px 6px;
    z-index: 2;
    box-sizing: border-box;
    background: transparent;
    border: 0;
}

body:not([data-color="F2F2F2"]) .side_bar_seach_menu .sidebar-menu-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

body:not([data-color="F2F2F2"]) .side_bar_seach_menu .sidebar-menu-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

body:not([data-color="F2F2F2"]) .side_bar_seach_menu .sidebar-menu-search-icon {
    color: rgba(255, 255, 255, 0.75);
}

/* Hide search in mini-sidebar (icon-only) mode */
.sidebar-toggled .side_bar_seach_menu {
    display: none;
}

@media (min-width: 641px) {
    .main-scrollable-page {
        height: calc(100vh - 65px);
        overflow: hidden;
        position: relative;
    }

    /* 66px logo block + search block */
    .sidebar-scroll {
        margin-top: 123px !important;
        height: calc(100vh - 165px) !important;
        overflow: hidden;
        position: relative;
        padding-bottom: 42px;
    }

    .sidebar-toggled .sidebar-scroll {
        margin-top: 65px !important;
        height: calc(100vh - 65px) !important;
    }

    #left-menu-preview .sidebar-scroll {
        margin-top: 0 !important;
        height: auto !important;
    }
}

.side_bar_seach_menu .sidebar-menu-search-icon {
    position: absolute;
    left: 24px;
    top: var(--search-block-padding-top);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.side_bar_seach_menu .sidebar-menu-search-icon svg {
    display: block;
}

#seach_menu,
.side_bar_seach_menu .sidebar-menu-search-input {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 68px 8px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.875rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu-search-meta {
    position: absolute;
    top: calc(var(--search-block-padding-top) + 10px);
    right: 23px;
    z-index: 2;
    min-width: 28px;
    color: #64748b;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 20px;
    text-align: center;
    pointer-events: none;
}

.sidebar-menu-search-meta kbd {
    display: inline-flex;
    min-width: 38px;
    height: 21px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e0e8;
    border-bottom-color: #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
}

.sidebar-menu-search-meta.has-results {
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dc-sidebar-active-bg, #2563eb) 12%, transparent);
    color: var(--dc-sidebar-active-bg, #2563eb);
    font-weight: 700;
}

html[dir="rtl"] #seach_menu,
html[dir="rtl"] .side_bar_seach_menu .sidebar-menu-search-input {
    padding-right: 40px;
    padding-left: 68px;
}

html[dir="rtl"] .sidebar-menu-search-meta {
    right: auto;
    left: 23px;
}

body:not([data-color="F2F2F2" i]) .sidebar-menu-search-meta {
    color: rgba(255, 255, 255, 0.72);
}

body:not([data-color="F2F2F2" i]) .sidebar-menu-search-meta kbd {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.82);
}

body:not([data-color="F2F2F2" i]) .sidebar-menu-search-meta.has-results {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

#seach_menu:focus,
.side_bar_seach_menu .sidebar-menu-search-input:focus {
    outline: none;
    border-color: #c7d2fe;
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--left-menu-theme-color, #2563eb) 18%, transparent);
}

#seach_menu::placeholder,
.side_bar_seach_menu .sidebar-menu-search-input::placeholder {
    color: #94a3b8;
}

body:not([data-color="F2F2F2" i]) #seach_menu,
body:not([data-color="F2F2F2" i]) .side_bar_seach_menu .sidebar-menu-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

body:not([data-color="F2F2F2" i]) #seach_menu:focus,
body:not([data-color="F2F2F2" i]) .side_bar_seach_menu .sidebar-menu-search-input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

body:not([data-color="F2F2F2" i]) #seach_menu::placeholder,
body:not([data-color="F2F2F2" i]) .side_bar_seach_menu .sidebar-menu-search-input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 767px) {
    .side_bar_seach_menu {
        --search-block-padding-top: 8px;
        padding: var(--search-block-padding-top) 10px 10px;
    }
}

html[dir="rtl"] .side_bar_seach_menu {
    left: auto;
    right: 0;
}

@media (min-width: 991px) {
    .sidebar-toggled .side_bar_seach_menu {
        width: 70px;
    }
}
.bom_item {
    cursor: pointer;
    background-color: #f5f5f5;
    padding: 5px;
}
.collapse-title.bom_item::after{
    color: #0c0c0c;
}

/* Health Alert Modal Styles */
.health-alert-trigger {
    transition: all 0.3s ease;
}

.health-alert-trigger:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.modal-header.bg-warning {
    border-bottom: 3px solid #f0ad4e;
}

.card.border-success {
    border-width: 2px !important;
}

.card.border-warning {
    border-width: 2px !important;
}

.card.border-danger {
    border-width: 2px !important;
}

.card.border-info {
    border-width: 2px !important;
}

#healthAlertModal .alert {
    border-left: 4px solid;
    border-radius: 0.375rem;
}

#healthAlertModal .alert-danger {
    border-left-color: #dc3545;
}

#healthAlertModal .alert-warning {
    border-left-color: #ffc107;
}

#healthAlertModal .alert-info {
    border-left-color: #0dcaf0;
}
#signature canvas{
    background-color: #eee; 
    border: 1px solid #ccc; 
    padding: 10px;
}
.sidebar-menu .badge {
    margin-right: 15px;
}
.icon-fill-whatsapp{
    color: #25d366;
    fill: #25d366;

}
.hide_item_category_checkboxes label{
    padding: 0 20px;
}
.red-hr{
	border: 0.5px solid; 
	color: #d81b60
}
.org-hr {
    border: 0.5px solid;
    color: #fb8c00;
}
.animated-clock-sec{
    left: 10px;
    top: -15px;
}

#default-navbar #topbar-timer-icon-container #project-timer-icon {
    overflow: hidden;
    --topbar-clock-accent: #f5325c;
    --topbar-clock-soft: rgba(245, 50, 92, 0.16);
    --topbar-clock-border: rgba(245, 50, 92, 0.92);
}

#default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 19px;
    border: 2px solid var(--topbar-clock-border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 0 4px var(--topbar-clock-soft);
    animation: topbarClockPulse 7s ease-in-out infinite;
}

#default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 7px;
    height: 4px;
    border-radius: 3px 3px 1px 1px;
    background: var(--topbar-clock-accent);
    transform: translateX(-50%);
}

#default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--topbar-clock-accent);
    transform: translate(-50%, -50%);
}

#default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock-sec {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 7px;
    margin-top: -7px;
    margin-left: -1px;
    background: var(--topbar-clock-accent);
    border-radius: 999px;
    transform-origin: 50% 100%;
    animation: topbarClockHandRotate 20s linear infinite;
}

@keyframes topbarClockHandRotate {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes topbarClockPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(245, 50, 92, 0.1);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(245, 50, 92, 0.18);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(245, 50, 92, 0.1);
    }
}

@-webkit-keyframes topbarClockHandRotate {
    0% {
        transform: rotate(0deg);
    }

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

@-webkit-keyframes topbarClockPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(245, 50, 92, 0.1);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(245, 50, 92, 0.18);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(245, 50, 92, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock,
    #default-navbar #topbar-timer-icon-container #project-timer-icon .animated-clock-sec {
        animation-duration: 12s;
    }
}

/*
 * macOS / installed PWA safe-area fix.
 * A top safe-area inset appears above our fixed top bar in two situations:
 *   1. an installed PWA window (standalone / minimal-ui), where the top strip is
 *      the OS-owned draggable title bar, and
 *   2. a normal browser window in macOS native fullscreen on a notched MacBook,
 *      where the notch / menu-bar region becomes a top safe-area inset.
 * Because the viewport uses "viewport-fit=cover", page content (the fixed top
 * bar) extends into that strip, so it gets hidden behind the notch and its icon
 * clicks are swallowed by the window drag region.
 * Offsetting the fixed top-anchored elements (and padding the body so flow
 * content clears them) moves everything out of the inset. env() resolves to 0
 * whenever there is no inset, such as an ordinary windowed tab or a non-notch display.
 * macOS docked web apps can still expose a native title strip while reporting a
 * 0px safe-area inset. includes/meta.php tags that case on the html element so
 * only Mac standalone windows receive the conservative 44px fallback.
 */
:root {
    --dc-shell-safe-top: env(safe-area-inset-top, 0px);
    --dc-shell-float-left: max(15px, env(safe-area-inset-left, 0px));
    --dc-shell-float-right: max(15px, env(safe-area-inset-right, 0px));
    --dc-shell-topbar-height: 65px;
    --dc-sidebar-scroll-offset: 165px;
}

body {
    padding-top: var(--dc-shell-safe-top);
}

html.datacore-mac-standalone-app {
    --dc-shell-safe-top: max(env(safe-area-inset-top, 0px), 44px);
    --dc-shell-float-left: max(18px, env(safe-area-inset-left, 0px));
    --dc-shell-float-right: max(18px, env(safe-area-inset-right, 0px));
}

html.datacore-mac-standalone-app body {
    padding-top: 0 !important;
}

.navbar-custom,
.sidebar,
.sidebar-brand {
    top: var(--dc-shell-safe-top) !important;
}

@media (display-mode: standalone) {
    :root {
        --dc-shell-safe-top: env(safe-area-inset-top, 0px);
    }

    html.datacore-mac-standalone-app {
        --dc-shell-safe-top: max(env(safe-area-inset-top, 0px), 44px);
    }

    body {
        padding-top: 0;
    }

    .page-container,
    .public-page-container {
        margin-top: calc(var(--dc-shell-topbar-height) + var(--dc-shell-safe-top)) !important;
    }

    .main-scrollable-page {
        height: calc(100vh - var(--dc-shell-topbar-height) - var(--dc-shell-safe-top)) !important;
    }

    .sidebar-scroll {
        height: calc(100vh - var(--dc-sidebar-scroll-offset) - var(--dc-shell-safe-top)) !important;
    }

    .sidebar-toggled .sidebar-scroll {
        height: calc(100vh - var(--dc-shell-topbar-height) - var(--dc-shell-safe-top)) !important;
    }
}

html.datacore-mac-standalone-app .navbar-custom,
html.datacore-mac-standalone-app .sidebar,
html.datacore-mac-standalone-app .sidebar-brand {
    top: var(--dc-shell-safe-top) !important;
}

html.datacore-mac-standalone-app .page-container,
html.datacore-mac-standalone-app .public-page-container {
    margin-top: calc(var(--dc-shell-topbar-height) + var(--dc-shell-safe-top)) !important;
}

html.datacore-mac-standalone-app .main-scrollable-page {
    height: calc(100vh - var(--dc-shell-topbar-height) - var(--dc-shell-safe-top)) !important;
}

html.datacore-mac-standalone-app .sidebar-scroll {
    height: calc(100vh - var(--dc-sidebar-scroll-offset) - var(--dc-shell-safe-top)) !important;
}

html.datacore-mac-standalone-app .sidebar-toggled .sidebar-scroll {
    height: calc(100vh - var(--dc-shell-topbar-height) - var(--dc-shell-safe-top)) !important;
}

html.datacore-mac-standalone-app #default-navbar .dropdown-menu {
    max-height: calc(100vh - var(--dc-shell-safe-top) - var(--dc-shell-topbar-height) - 18px);
    overflow: hidden auto;
}

html.datacore-mac-standalone-app #default-navbar .language-dropdown {
    max-height: min(200px, calc(100vh - var(--dc-shell-safe-top) - var(--dc-shell-topbar-height) - 18px));
}

html.datacore-mac-standalone-app #default-navbar .dropdown-menu-end {
    right: var(--dc-shell-float-right) !important;
    max-width: calc(100vw - 32px - env(safe-area-inset-right, 0px));
}

html.datacore-mac-standalone-app #default-navbar .dropdown-menu-start {
    left: var(--dc-shell-float-left) !important;
    max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px));
}

html.datacore-mac-standalone-app .modal {
    padding-top: var(--dc-shell-safe-top) !important;
}

html.datacore-mac-standalone-app .modal-dialog:not(.modal-fullscreen) {
    margin-top: 0.75rem;
}

html.datacore-mac-standalone-app .modal-fullscreen .modal-content {
    min-height: calc(100vh - var(--dc-shell-safe-top));
}

html.datacore-mac-standalone-app .app-modal {
    top: var(--dc-shell-safe-top);
    height: calc(100% - var(--dc-shell-safe-top));
}

html.datacore-mac-standalone-app .app-modal-fixed-close-button,
html.datacore-mac-standalone-app .app-modal .compress,
html.datacore-mac-standalone-app .app-modal .expand,
html.datacore-mac-standalone-app .app-modal .app-modal-zoom-in-button,
html.datacore-mac-standalone-app .app-modal .app-modal-zoom-out-button {
    top: 18px !important;
}

html.datacore-mac-standalone-app .datepicker,
html.datacore-mac-standalone-app .bootstrap-timepicker-widget,
html.datacore-mac-standalone-app .select2-drop,
html.datacore-mac-standalone-app .select2-drop-active,
html.datacore-mac-standalone-app .select2-dropdown,
html.datacore-mac-standalone-app .awesomplete > ul,
html.datacore-mac-standalone-app .popover,
html.datacore-mac-standalone-app .app-popover,
html.datacore-mac-standalone-app .tooltip {
    max-height: calc(100vh - var(--dc-shell-safe-top) - 18px);
}

html.datacore-mac-standalone-app div.dropdown-menu.dt-button-collection.fixed {
    top: calc(50% + (var(--dc-shell-safe-top) / 2));
}

html.datacore-mac-standalone-app div.dropdown-menu.dt-button-collection.fixed > :last-child {
    max-height: calc(100vh - var(--dc-shell-safe-top) - 24px);
}

/* --------------------------------------------------------------------------
 * Staff dashboard — modern native-card layout (scoped to the staff dashboard)
 * -------------------------------------------------------------------------- */
.staff-dashboard-page,
.client-dashboard-page,
.dc-quota-dashboard-page {
    --dash-card-radius: 10px;
    --dash-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --dash-card-border: 1px solid #e2e8f0;
    --dash-ink: #172033;
    --dash-muted: #667085;
    --dash-surface: #fff;
    --dash-soft-blue: #f3f8ff;
    --dash-soft-red: #fff7f4;
    --dash-soft-green: #f1fbf7;
    --dash-soft-amber: #fff9eb;
    --dash-blue: #2f80ed;
    --dash-red: #e85d3f;
    --dash-green: #0f9f6e;
    --dash-amber: #c98212;
    --dash-purple: #7c5cc4;
    --dash-teal: #0f8b8d;
    background: #f7f9fc;
}

.staff-dashboard-page .dashboard-page-title,
.client-dashboard-page .dashboard-page-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dash-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 6px;
}

.staff-dashboard-page .dashboard-welcome-text,
.client-dashboard-page .dashboard-welcome-text {
    font-size: 0.9rem;
}

.staff-dashboard-page .dashbaord-header-area h4,
.client-dashboard-page .dashbaord-header-area h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dash-ink);
}

/* KPI & action widget icons — match sales dashboard layout */
.staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget,
.staff-dashboard-page .dashboard-action-items-grid .dashboard-icon-widget {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    margin-bottom: 0;
    border-top: 4px solid #dfe7f1;
    border-left-color: #dfe7f1;
}

.staff-dashboard-page .dashboard-kpi-row .white-link:hover .dashboard-icon-widget,
.staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget:hover,
.staff-dashboard-page .dashboard-action-items-grid .white-link:hover .dashboard-icon-widget,
.staff-dashboard-page .dashboard-action-items-grid .dashboard-icon-widget:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget .card-body,
.staff-dashboard-page .dashboard-action-items-grid .dashboard-icon-widget .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-height: 88px;
    padding: 20px;
    background: var(--dash-surface);
}

.staff-dashboard-page .dashboard-kpi-row .widget-icon,
.staff-dashboard-page .dashboard-kpi-row .widget-icon-info,
.staff-dashboard-page .dashboard-kpi-row .widget-icon-secondary,
.staff-dashboard-page .dashboard-kpi-row .widget-icon-orange,
.staff-dashboard-page .dashboard-action-items-grid .widget-icon {
    float: none;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border-radius: 5px;
    box-shadow: inset 0 -8px 14px rgba(15, 23, 42, 0.1);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="clock"] .dashboard-icon-widget {
    border-top-color: var(--dash-blue);
    border-left-color: var(--dash-blue);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="clock"] .dashboard-icon-widget .card-body {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-blue) 100%);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="clock"] .widget-icon,
.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="clock"] .widget-icon-green,
.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="clock"] .widget-icon-coral {
    background: var(--dash-blue) !important;
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="open_tasks"] .dashboard-icon-widget {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="open_tasks"] .dashboard-icon-widget .card-body {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-red) 100%);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="open_tasks"] .widget-icon,
.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="open_tasks"] .widget-icon-info {
    background: var(--dash-red) !important;
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="events"] .dashboard-icon-widget {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="events"] .dashboard-icon-widget .card-body {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-green) 100%);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="events"] .widget-icon,
.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="events"] .widget-icon-secondary {
    background: var(--dash-green) !important;
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="leads"] .dashboard-icon-widget {
    border-top-color: var(--dash-purple);
    border-left-color: var(--dash-purple);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="leads"] .dashboard-icon-widget .card-body {
    background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%);
}

.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="leads"] .widget-icon,
.staff-dashboard-page .dashboard-kpi-row [data-kpi-key="leads"] .widget-icon-orange {
    background: var(--dash-purple) !important;
}

.staff-dashboard-page .dashboard-kpi-row > [class*="col-"] {
    display: flex;
}

.staff-dashboard-page .dashboard-kpi-row > [class*="col-"] > .white-link {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

.staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget {
    flex: 1 1 auto;
    width: 100%;
}

.staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget .card-body {
    height: 100%;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details,
.staff-dashboard-page .dashboard-action-items-grid .widget-details {
    position: static;
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details h1,
.staff-dashboard-page .dashboard-kpi-row .widget-details h2,
.staff-dashboard-page .dashboard-action-items-grid .widget-details h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--dash-ink);
}

.staff-dashboard-page .dashboard-kpi-row .widget-details > span:not(.kpi-subtext):not(.kpi-trend),
.staff-dashboard-page .dashboard-action-items-grid .widget-details > span:not(.kpi-subtext) {
    line-height: 1.25;
    white-space: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details .kpi-subtext,
.staff-dashboard-page .dashboard-action-items-grid .widget-details .kpi-subtext {
    font-size: 12px;
    color: #898fa9;
    margin-top: 2px;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details .kpi-trend,
.staff-dashboard-page .dashboard-action-items-grid .widget-details .kpi-trend {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details .kpi-trend.text-success,
.staff-dashboard-page .dashboard-action-items-grid .widget-details .kpi-trend.text-success {
    color: #16a34a !important;
}

.staff-dashboard-page .dashboard-kpi-row .widget-details .kpi-trend.text-danger,
.staff-dashboard-page .dashboard-action-items-grid .widget-details .kpi-trend.text-danger {
    color: #dc2626 !important;
}

/* Clock-in widget inside KPI row */
.staff-dashboard-page .dashboard-kpi-row .clock-in-out-card .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-dashboard-page .dashboard-kpi-row .clock-in-out-card .widget-details .btn {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
}

.staff-dashboard-page .dashboard-kpi-row .clock-in-out-card .widget-details h1 {
    white-space: normal;
}

/* Action items section card wrapper */
.staff-dashboard-page .dashboard-action-items-card {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    overflow: hidden;
    background: var(--dash-surface);
}

.staff-dashboard-page .dashboard-action-items-card .dashboard-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* List / table widgets */
.staff-dashboard-page .dashboard-list-card,
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card,
.staff-dashboard-page .dashboard-content-row .dashboard-main-column .card,
.staff-dashboard-page .dashboard-content-row .dashboard-side-column .card,
.staff-dashboard-page .dashboard-content-row > .col-12 .card {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    border-top: 4px solid #dfe7f1;
    box-shadow: var(--dash-card-shadow);
    overflow: hidden;
    margin-bottom: 0;
    background: var(--dash-surface);
}

.staff-dashboard-page .dashboard-content-row .dashboard-main-column,
.staff-dashboard-page .dashboard-content-row .dashboard-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell {
    margin-bottom: 0;
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header,
.staff-dashboard-page .dashboard-chart-widget .card-header {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dash-ink);
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header h5,
.staff-dashboard-page .dashboard-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.staff-dashboard-page .dashboard-card-header {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dash-ink);
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card:hover,
.staff-dashboard-page .dashboard-content-row > .col-12 .card:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.staff-dashboard-page .dashboard-content-row .dashboard-tasks-section > .card,
.staff-dashboard-page .dashboard-content-row .dashboard-tasks-section .dashboard-list-card {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page .dashboard-content-row .dashboard-tasks-section .dashboard-card-header {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-red) 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card,
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell .dashboard-list-card {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card > .card-header,
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell .dashboard-card-header {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-green) 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card,
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card {
    border-top-color: var(--dash-blue);
    border-left-color: var(--dash-blue);
}

.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card > .card-header,
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card > .card-header {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-blue) 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-birthday-widget-shell > .card,
.staff-dashboard-page .dashboard-content-row .dashboard-birthday-widget-shell .dashboard-list-card {
    border-top-color: var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell.dashboard-birthday-widget-shell > .card > .dashboard-card-header,
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell.dashboard-birthday-widget-shell .dashboard-card-header {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-amber) 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-project-timeline-widget-shell > .card,
.staff-dashboard-page .dashboard-content-row .dashboard-project-timeline-widget-shell .dashboard-list-card {
    border-top-color: var(--dash-teal);
    border-left-color: var(--dash-teal);
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell.dashboard-project-timeline-widget-shell > .card > .dashboard-card-header,
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell.dashboard-project-timeline-widget-shell .dashboard-card-header {
    background: linear-gradient(180deg, #fff 0%, #eefafa 100%) !important;
}

.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header > svg.feather,
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell .card > .card-header > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell .card > .card-header > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell .card > .card-header > svg.feather,
.staff-dashboard-page .dashboard-card-header h5 > i[data-feather],
.staff-dashboard-page .dashboard-card-header h5 > svg[data-feather],
.staff-dashboard-page .dashboard-card-header h5 > svg.feather,
.staff-dashboard-page .dashboard-card-header > i[data-feather],
.staff-dashboard-page .dashboard-card-header > svg[data-feather],
.staff-dashboard-page .dashboard-card-header > svg.feather,
.staff-dashboard-page .dashboard-tasks-header-title > i[data-feather],
.staff-dashboard-page .dashboard-tasks-header-title > svg[data-feather],
.staff-dashboard-page .dashboard-tasks-header-title > svg.feather {
    box-sizing: border-box;
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    padding: 7px;
    border-radius: 5px;
    background: var(--dash-soft-blue);
    color: var(--dash-blue);
    stroke-width: 2.25;
}

.staff-dashboard-page .dashboard-tasks-section .dashboard-card-header h5 > i[data-feather],
.staff-dashboard-page .dashboard-tasks-section .dashboard-card-header h5 > svg[data-feather],
.staff-dashboard-page .dashboard-tasks-section .dashboard-card-header h5 > svg.feather,
.staff-dashboard-page .dashboard-tasks-header-title > i[data-feather],
.staff-dashboard-page .dashboard-tasks-header-title > svg[data-feather],
.staff-dashboard-page .dashboard-tasks-header-title > svg.feather {
    background: var(--dash-soft-red);
    color: var(--dash-red);
}

.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card > .card-header {
    justify-content: flex-start;
}

.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card > .card-header > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card > .card-header > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell > .card > .card-header > svg.feather,
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell .dashboard-card-header h5 > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell .dashboard-card-header h5 > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-events-widget-shell .dashboard-card-header h5 > svg.feather {
    background: var(--dash-soft-green);
    color: var(--dash-green);
}

.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card > .card-header,
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card > .card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card > .card-header > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card > .card-header > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-office-clock-widget-shell .card > .card-header > svg.feather,
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card > .card-header > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card > .card-header > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-project-clock-widget-shell .card > .card-header > svg.feather {
    background: var(--dash-soft-blue);
    color: var(--dash-blue);
}

.staff-dashboard-page .dashboard-content-row .dashboard-birthday-widget-shell .dashboard-card-header h5 > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-birthday-widget-shell .dashboard-card-header h5 > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-birthday-widget-shell .dashboard-card-header h5 > svg.feather {
    background: var(--dash-soft-amber);
    color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-content-row .dashboard-project-timeline-widget-shell .dashboard-card-header h5 > i[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-project-timeline-widget-shell .dashboard-card-header h5 > svg[data-feather],
.staff-dashboard-page .dashboard-content-row .dashboard-project-timeline-widget-shell .dashboard-card-header h5 > svg.feather {
    background: #eefafa;
    color: var(--dash-teal);
}

.staff-dashboard-page .dashboard-card-header h5:before,
.staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header h5:before,
.staff-dashboard-page .dashboard-chart-widget .card-header h5:before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dash-red);
    box-shadow: 13px 0 0 var(--dash-blue), 26px 0 0 var(--dash-green);
    flex: 0 0 auto;
    margin-right: 28px;
}

.staff-dashboard-page .dashboard-tasks-section .card-header {
    padding: 14px 18px;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-empty .dashboard-my-tasks-table-wrap,
.staff-dashboard-page .dashboard-my-tasks-card.is-compact .dashboard-my-tasks-table-wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-empty .dashboard-my-tasks-table-wrap {
    padding-bottom: 0;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-empty table.dataTable thead {
    display: none;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-empty table.dataTable tbody tr {
    border-bottom: 0;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-empty table.dataTable td.dataTables_empty {
    border-top: 0 !important;
    color: var(--dash-muted);
    font-size: 0.9rem;
    padding: 20px 12px !important;
}

.staff-dashboard-page .dashboard-my-tasks-card.is-compact table.dataTable tbody td,
.staff-dashboard-page .dashboard-my-tasks-card.is-compact table.dataTable thead th {
    padding-top: 10px;
    padding-bottom: 10px;
}

.staff-dashboard-page .dashboard-list-card .table-responsive,
.staff-dashboard-page .dashboard-tasks-section .table-responsive {
    padding: 0 4px 8px;
}

.staff-dashboard-page .dashboard-list-card table.dataTable,
.staff-dashboard-page .dashboard-tasks-section table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

.staff-dashboard-page .dashboard-list-card table.dataTable thead th,
.staff-dashboard-page .dashboard-tasks-section table.dataTable thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.staff-dashboard-page .dashboard-list-card table.dataTable tbody tr,
.staff-dashboard-page .dashboard-tasks-section table.dataTable tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.staff-dashboard-page .dashboard-list-card table.dataTable tbody tr:hover,
.staff-dashboard-page .dashboard-tasks-section table.dataTable tbody tr:hover {
    background-color: #f3f8ff;
}

.staff-dashboard-page .dashboard-content-row {
    margin-top: 4px;
}

.staff-dashboard-page .widget-container {
    margin-bottom: 16px;
}

.staff-dashboard-page .dashboard-kpi-row {
    margin-bottom: 4px;
}

/* Wrap the KPI widgets in the same surface panel used by the hub / action items */
.staff-dashboard-page .dashboard-kpi-panel {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    background: var(--dash-surface);
    margin: 12px 0 24px;
    padding: 18px 18px 2px;
}

.staff-dashboard-page .dashboard-kpi-panel .dashboard-kpi-row {
    margin-bottom: 0;
}

.client-dashboard-page .client-dashboard-kpi-panel {
    background: var(--dash-surface);
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    margin: 12px 0 22px;
    padding: 18px 18px 2px;
}

.client-dashboard-page .client-kpi-row {
    --client-dashboard-kpi-gap: 16px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-left: calc(var(--client-dashboard-kpi-gap) * -0.5);
    margin-right: calc(var(--client-dashboard-kpi-gap) * -0.5);
}

.client-dashboard-page .client-kpi-col {
    display: flex;
    margin-bottom: var(--client-dashboard-kpi-gap);
    padding-left: calc(var(--client-dashboard-kpi-gap) * 0.5);
    padding-right: calc(var(--client-dashboard-kpi-gap) * 0.5);
}

.client-dashboard-page .client-kpi-link {
    color: inherit;
    display: flex;
    flex: 1 1 auto;
    text-decoration: none;
    width: 100%;
}

.client-dashboard-page .client-kpi-card {
    border: var(--dash-card-border);
    border-left-color: var(--dash-blue);
    border-radius: var(--dash-card-radius);
    border-top: 4px solid var(--dash-blue);
    box-shadow: var(--dash-card-shadow);
    flex: 1 1 auto;
    margin-bottom: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.client-dashboard-page .client-kpi-link:hover .client-kpi-card,
.client-dashboard-page .client-kpi-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.client-dashboard-page .client-kpi-card .card-body {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-blue) 100%);
    display: flex;
    gap: 12px;
    min-height: 88px;
    overflow: hidden;
    padding: 20px;
}

.client-dashboard-page .client-kpi-card .widget-icon {
    border-radius: 5px;
    box-shadow: inset 0 -8px 14px rgba(15, 23, 42, 0.1);
    flex: 0 0 55px;
    float: none;
    height: 55px;
    width: 55px;
}

.client-dashboard-page .client-kpi-card .widget-icon .icon {
    height: 1.7rem;
    width: 1.7rem;
}

.client-dashboard-page .client-kpi-card .widget-details {
    flex: 1 1 auto;
    min-width: 0;
    position: static;
    right: auto;
    text-align: left;
}

.client-dashboard-page .client-kpi-card .client-kpi-value {
    color: var(--dash-ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.client-dashboard-page .client-kpi-card--outstanding_total .client-kpi-value,
.client-dashboard-page .client-kpi-card--due .client-kpi-value {
    font-size: 1.1rem;
}

.client-dashboard-page .client-kpi-card .client-kpi-label {
    color: #334155;
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.client-dashboard-page .client-kpi-card--open_projects {
    border-left-color: var(--dash-blue);
    border-top-color: var(--dash-blue);
}

.client-dashboard-page .client-kpi-card--open_projects .widget-icon {
    background: var(--dash-blue) !important;
}

.client-dashboard-page .client-kpi-card--draft_invoice {
    border-left-color: var(--dash-green);
    border-top-color: var(--dash-green);
}

.client-dashboard-page .client-kpi-card--draft_invoice .card-body {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-green) 100%);
}

.client-dashboard-page .client-kpi-card--draft_invoice .widget-icon {
    background: var(--dash-green) !important;
}

.client-dashboard-page .client-kpi-card--outstanding_total {
    border-left-color: #2563eb;
    border-top-color: #2563eb;
}

.client-dashboard-page .client-kpi-card--outstanding_total .widget-icon {
    background: #2563eb !important;
}

.client-dashboard-page .client-kpi-card--due {
    border-left-color: var(--dash-red);
    border-top-color: var(--dash-red);
}

.client-dashboard-page .client-kpi-card--due .card-body {
    background: linear-gradient(180deg, #fff 0%, var(--dash-soft-red) 100%);
}

.client-dashboard-page .client-kpi-card--due .widget-icon {
    background: var(--dash-red) !important;
}

.client-dashboard-page .client-kpi-card--new_orders {
    border-left-color: var(--dash-teal);
    border-top-color: var(--dash-teal);
}

.client-dashboard-page .client-kpi-card--new_orders .card-body {
    background: linear-gradient(180deg, #fff 0%, #eefafa 100%);
}

.client-dashboard-page .client-kpi-card--new_orders .widget-icon {
    background: var(--dash-teal) !important;
}

.client-dashboard-page .client-kpi-card--processing_orders {
    border-left-color: var(--dash-purple);
    border-top-color: var(--dash-purple);
}

.client-dashboard-page .client-kpi-card--processing_orders .card-body {
    background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%);
}

.client-dashboard-page .client-kpi-card--processing_orders .widget-icon {
    background: var(--dash-purple) !important;
}

.client-dashboard-page .client-dashboard-section {
    margin: 0 0 24px;
}

.client-dashboard-page .client-dashboard-projects-panel > .card {
    background: var(--dash-surface);
    border: var(--dash-card-border);
    border-left-color: var(--dash-blue);
    border-radius: var(--dash-card-radius);
    border-top: 4px solid var(--dash-blue);
    box-shadow: var(--dash-card-shadow);
    margin-bottom: 0;
    overflow: hidden;
}

.client-dashboard-page .client-dashboard-projects-panel > .card .page-title,
.client-dashboard-page .client-dashboard-projects-panel > .card .tab-title {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dash-ink) !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    padding: 14px 18px;
}

.client-dashboard-page .client-dashboard-projects-panel > .card .page-title h1,
.client-dashboard-page .client-dashboard-projects-panel > .card .tab-title h4 {
    color: var(--dash-ink) !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.client-dashboard-page .client-dashboard-projects-panel > .card .table-responsive {
    background: var(--dash-surface);
}

.client-dashboard-page .client-dashboard-projects-panel table.dataTable thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-dashboard-page .client-dashboard-projects-panel table.dataTable tbody tr:hover {
    background-color: #f3f8ff;
}

@media (max-width: 767px) {
    .client-dashboard-page .client-dashboard-kpi-panel {
        margin-bottom: 18px;
        padding: 14px 14px 0;
    }

    .client-dashboard-page .client-kpi-row {
        --client-dashboard-kpi-gap: 12px;
    }

    .client-dashboard-page .client-kpi-card .card-body {
        min-height: 82px;
        padding: 16px;
    }

    .client-dashboard-page .client-kpi-card .widget-icon {
        flex-basis: 48px;
        height: 48px;
        width: 48px;
    }

    .client-dashboard-page .client-kpi-card .client-kpi-value {
        font-size: 1.15rem;
    }

    .client-dashboard-page .client-kpi-card--outstanding_total .client-kpi-value,
    .client-dashboard-page .client-kpi-card--due .client-kpi-value {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-dashboard-page .client-kpi-card {
        transition: none;
    }

    .client-dashboard-page .client-kpi-link:hover .client-kpi-card,
    .client-dashboard-page .client-kpi-card:hover {
        transform: none;
    }
}

/* Dashboard hub — permission-aware shortcuts to every available dashboard */
.staff-dashboard-page .dashboard-hub-panel {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    background: var(--dash-surface);
    margin: 12px 0 24px;
    padding: 20px 22px 22px;
    overflow: hidden;
}

/* Tenant package quota — native dashboard section */
.dc-quota-dashboard-page .dc-quota-panel {
    background: var(--dash-surface);
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    margin: 12px 0 24px;
    overflow: hidden;
    padding: 20px 22px 22px;
}

.dc-quota-dashboard-page .dc-quota-panel-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dc-quota-dashboard-page .dc-quota-panel-heading {
    min-width: 0;
}

.dc-quota-dashboard-page .dc-quota-panel-title {
    color: var(--dash-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.dc-quota-dashboard-page .dc-quota-customize {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    justify-content: center;
}

.dc-quota-dashboard-page .dc-quota-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dc-quota-dashboard-page .dc-quota-grid--priority {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-quota-dashboard-page .dc-quota-more {
    border-top: 1px solid #e2e8f0;
    margin-top: 18px;
    padding-top: 10px;
}

.dc-quota-dashboard-page .dc-quota-more-toggle {
    align-items: center;
    border-radius: 8px;
    color: var(--dash-ink);
    cursor: pointer;
    display: flex;
    font-size: 0.85rem;
    font-weight: 650;
    gap: 8px;
    justify-content: space-between;
    list-style: none;
    padding: 9px 10px;
}

.dc-quota-dashboard-page .dc-quota-more-toggle::-webkit-details-marker {
    display: none;
}

.dc-quota-dashboard-page .dc-quota-more-toggle:hover {
    background: color-mix(in srgb, var(--dash-blue) 7%, transparent);
}

.dc-quota-dashboard-page .dc-quota-more-toggle:focus-visible {
    outline: 2px solid var(--dash-blue);
    outline-offset: 2px;
}

.dc-quota-dashboard-page .dc-quota-more-toggle > span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.dc-quota-dashboard-page .dc-quota-more-count {
    background: color-mix(in srgb, var(--dash-blue) 12%, #fff);
    border-radius: 999px;
    color: var(--dash-ink);
    font-size: 0.72rem;
    line-height: 1;
    padding: 5px 7px;
}

.dc-quota-dashboard-page .dc-quota-more-toggle > svg {
    transition: transform 160ms ease;
}

.dc-quota-dashboard-page .dc-quota-more[open] .dc-quota-more-toggle > svg {
    transform: rotate(180deg);
}

.dc-quota-dashboard-page .dc-quota-grid--other {
    padding-top: 12px;
}

.dc-quota-dashboard-page .dc-quota-card {
    --quota-accent: var(--dash-blue);
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--dash-card-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: block;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.dc-quota-dashboard-page .dc-quota-card--warning {
    --quota-accent: var(--dash-amber);
}

.dc-quota-dashboard-page .dc-quota-card--danger {
    --quota-accent: var(--dash-red);
}

.dc-quota-dashboard-page .dc-quota-card > .card-body {
    align-items: stretch;
    background: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 17px 18px 16px;
    position: relative;
}

.dc-quota-dashboard-page .dc-quota-card .widget-icon {
    float: none;
    height: 46px;
    margin-bottom: 14px;
    width: 46px;
}

.dc-quota-dashboard-page .dc-quota-card .widget-icon .icon {
    height: 1.45rem;
    width: 1.45rem;
}

.dc-quota-dashboard-page .dc-quota-card .widget-details {
    position: static;
    right: auto;
    text-align: left;
}

.dc-quota-dashboard-page .dc-quota-card-top {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 13px;
}

.dc-quota-dashboard-page .dc-quota-card-title {
    color: var(--dash-ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dc-quota-dashboard-page .dc-quota-percent {
    background: color-mix(in srgb, var(--quota-accent) 10%, #fff);
    border-radius: 999px;
    color: var(--dash-ink);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
}

.dc-quota-dashboard-page .dc-quota-value {
    align-items: baseline;
    color: var(--dash-muted);
    display: flex;
    font-size: 0.78rem;
    gap: 5px;
    line-height: 1.2;
    margin-bottom: 12px;
    min-height: 26px;
    min-width: 0;
}

.dc-quota-dashboard-page .dc-quota-value h1 {
    color: var(--dash-ink);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.dc-quota-dashboard-page .dc-quota-value strong {
    color: var(--dash-ink);
    font-size: 1rem;
    font-weight: 700;
}

.dc-quota-dashboard-page .dc-quota-limit {
    align-items: center;
    display: inline-flex;
    gap: 4px;
    min-width: 0;
}

.dc-quota-dashboard-page .dc-quota-limit span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-quota-dashboard-page .dc-quota-progress {
    background: #e9eef5;
    border-radius: 999px;
    height: 6px;
    margin: 0;
    overflow: hidden;
}

.dc-quota-dashboard-page .dc-quota-progress .progress-bar {
    background: var(--quota-accent);
    border-radius: inherit;
    min-width: 0;
}

html[dir="rtl"] .dc-quota-dashboard-page .dc-quota-card-title,
html[dir="rtl"] .dc-quota-dashboard-page .dc-quota-value {
    text-align: right;
}

@media (max-width: 1199px) {
    .dc-quota-dashboard-page .dc-quota-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-quota-dashboard-page .dc-quota-grid--priority {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dc-quota-dashboard-page .dc-quota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .dc-quota-dashboard-page .dc-quota-panel {
        padding: 16px;
    }

    .dc-quota-dashboard-page .dc-quota-panel-header {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 14px;
    }

    .dc-quota-dashboard-page .dc-quota-customize {
        box-sizing: border-box;
        width: 100%;
    }

    .dc-quota-dashboard-page .dc-quota-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.staff-dashboard-page .dashboard-hub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.staff-dashboard-page .dashboard-hub-title-wrap {
    min-width: 0;
}

.staff-dashboard-page .dashboard-hub-title {
    color: var(--dash-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.staff-dashboard-page .dashboard-hub-count {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: var(--dash-muted);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
}

.staff-dashboard-page .dashboard-hub-count span {
    color: var(--dash-ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.staff-dashboard-page .dashboard-hub-count small {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.staff-dashboard-page .dashboard-hub-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-dashboard-page .dashboard-hub-card {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--dash-card-radius);
    border-top: 4px solid var(--dash-blue);
    border-left-color: var(--dash-blue);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 55px minmax(0, 1fr) 20px;
    min-height: 88px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.staff-dashboard-page .dashboard-hub-card:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.staff-dashboard-page .dashboard-hub-icon,
.staff-dashboard-page .dashboard-hub-arrow {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.staff-dashboard-page .dashboard-hub-icon {
    background: var(--dash-soft-blue);
    border-radius: 5px;
    box-shadow: inset 0 -8px 14px rgba(15, 23, 42, 0.1);
    color: var(--dash-blue);
    height: 55px;
    width: 55px;
}

.staff-dashboard-page .dashboard-hub-arrow {
    color: #94a3b8;
    height: 20px;
    width: 20px;
}

.staff-dashboard-page .dashboard-hub-copy {
    display: block;
    min-width: 0;
}

.staff-dashboard-page .dashboard-hub-card-meta,
.staff-dashboard-page .dashboard-hub-card-title {
    display: block;
    min-width: 0;
}

.staff-dashboard-page .dashboard-hub-card-meta {
    color: var(--dash-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-hub-card-title {
    color: var(--dash-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.staff-dashboard-page .dashboard-hub-card--red {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page .dashboard-hub-card--red .dashboard-hub-icon {
    background: var(--dash-soft-red);
    color: var(--dash-red);
}

.staff-dashboard-page .dashboard-hub-card--green {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page .dashboard-hub-card--green .dashboard-hub-icon {
    background: var(--dash-soft-green);
    color: var(--dash-green);
}

.staff-dashboard-page .dashboard-hub-card--amber {
    border-top-color: var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-hub-card--amber .dashboard-hub-icon {
    background: var(--dash-soft-amber);
    color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-hub-card--purple {
    border-top-color: var(--dash-purple);
    border-left-color: var(--dash-purple);
}

.staff-dashboard-page .dashboard-hub-card--purple .dashboard-hub-icon {
    background: #f7f4ff;
    color: var(--dash-purple);
}

.staff-dashboard-page .dashboard-hub-card--teal {
    border-top-color: var(--dash-teal);
    border-left-color: var(--dash-teal);
}

.staff-dashboard-page .dashboard-hub-card--teal .dashboard-hub-icon {
    background: #eefafa;
    color: var(--dash-teal);
}

/* Custom dashboard icon widgets — same sales-dashboard icon layout */
.staff-dashboard-page.dashboard-view .dashboard-icon-widget {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
}

.staff-dashboard-page.dashboard-view .dashboard-icon-widget .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    min-height: 88px;
    overflow: hidden;
}

.staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-icon {
    float: none;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border-radius: 5px;
}

.staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-details {
    position: static;
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-details h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-details span {
    display: block;
    line-height: 1.3;
    white-space: normal;
}

/* DatacoreSaas dashboard widget — same native-card language as dashboard KPIs */
.staff-dashboard-page #widget-datacore_saas_top_stats > .card {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    background: var(--dash-surface);
    overflow: hidden;
}

.staff-dashboard-page #widget-datacore_saas_top_stats > .card > .card-body {
    padding: 20px;
}

.staff-dashboard-page #widget-datacore_saas_top_stats > .card > .card-body > p {
    padding: 0 !important;
    color: var(--dash-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.staff-dashboard-page #widget-datacore_saas_top_stats > .card > .card-body > p strong {
    color: var(--dash-ink);
    font-weight: 600;
}

.staff-dashboard-page #widget-datacore_saas_top_stats hr {
    margin: 12px 0 18px !important;
    border-top-color: #e2e8f0;
    opacity: 1;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .widget-container {
    margin-bottom: 16px;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid {
    display: flex;
    flex-wrap: wrap;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container {
    display: flex;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .widget-container.col-md-12 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .white-link {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow) !important;
    background: var(--dash-surface);
    overflow: hidden;
    margin-bottom: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 146px;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(1) .dashboard-icon-widget,
.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(2) .dashboard-icon-widget {
    border-top: 4px solid var(--dash-blue);
    border-left-color: var(--dash-blue);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(3) .dashboard-icon-widget,
.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(4) .dashboard-icon-widget {
    border-top: 4px solid var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(5) .dashboard-icon-widget {
    border-top: 4px solid var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(6) .dashboard-icon-widget {
    border-top: 4px solid var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .white-link:hover .dashboard-icon-widget {
    border-color: #cbd6e2;
    background: #fcfdff;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(1) .white-link:hover .dashboard-icon-widget,
.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(2) .white-link:hover .dashboard-icon-widget {
    border-top-color: var(--dash-blue);
    border-left-color: var(--dash-blue);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(3) .white-link:hover .dashboard-icon-widget,
.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(4) .white-link:hover .dashboard-icon-widget {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(5) .white-link:hover .dashboard-icon-widget {
    border-top-color: var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-stats-grid > .widget-container:nth-child(6) .white-link:hover .dashboard-icon-widget {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 141px;
    height: 100%;
    padding: 20px;
    background: transparent !important;
    overflow: hidden;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon {
    float: none;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -8px 14px rgba(15, 23, 42, 0.1);
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-primary,
.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-info {
    background: #eef5ff !important;
    color: #2f80ed !important;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-success {
    background: #eefbf5 !important;
    color: #0f9f6e !important;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-warning,
.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-coral {
    background: #fff7e8 !important;
    color: #c98212 !important;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-danger {
    background: #fff1f0 !important;
    color: #e85d3f !important;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon svg,
.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon .icon {
    color: inherit !important;
    stroke: currentColor;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-details {
    position: static;
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-details h1 {
    margin: 0 0 2px;
    color: var(--dash-ink);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-details span {
    display: block;
    color: var(--dash-muted);
    font-size: 0.82rem;
    line-height: 1.3;
    white-space: normal;
}

.staff-dashboard-page #widget-datacore_saas_top_stats #package_invoice_stats {
    min-height: 160px;
    max-height: 180px;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .saas-dashboard-chart-col {
    margin-top: 0;
}

.staff-dashboard-page #widget-datacore_saas_top_stats #package_invoice_stats + .mCSB_scrollTools,
.staff-dashboard-page #widget-datacore_saas_top_stats .mCSB_scrollTools {
    opacity: 0.35;
}

.staff-dashboard-page #widget-datacore_saas_top_stats .col-md-6 > p.text-center {
    margin: 12px 0 0;
    color: var(--dash-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

/* Custom dashboards — native card compatibility skin */
.staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    background: var(--dash-surface);
    padding: 14px 18px;
    margin-bottom: 18px !important;
}

.staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern > .clearfix.float-start {
    display: flex;
    align-items: center;
    min-width: 0;
}

.staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern h4 {
    margin: 0;
    line-height: 1.2;
}

.staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern .color-tag {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern .dropdown-toggle {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--dash-muted);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row {
    row-gap: 16px;
    margin-bottom: 16px;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row .card,
.staff-dashboard-page.legacy-dashboard-page .custom-widget > .bg-white,
.staff-dashboard-page.legacy-dashboard-page .dashboard-legacy-widget-unavailable {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    border-top: 4px solid var(--dash-blue);
    border-left-color: var(--dash-blue);
    box-shadow: var(--dash-card-shadow);
    overflow: hidden;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(2n) .card,
.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(2n) .custom-widget > .bg-white {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(3n) .card,
.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(3n) .custom-widget > .bg-white {
    border-top-color: var(--dash-purple);
    border-left-color: var(--dash-purple);
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(4n) .card,
.staff-dashboard-page.legacy-dashboard-page .dashboards-row > .widget-container:nth-child(4n) .custom-widget > .bg-white {
    border-top-color: var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row .card-header,
.staff-dashboard-page.legacy-dashboard-page .custom-widget-title {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dash-ink);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 650;
    gap: 8px;
    min-height: 48px;
    padding: 14px 18px;
}

.staff-dashboard-page.legacy-dashboard-page.dashboard-view .dashboards-row .card .card-header,
.staff-dashboard-page.legacy-dashboard-page.dashboard-view .dashboards-row .card-header {
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row .card-header:before,
.staff-dashboard-page.legacy-dashboard-page .custom-widget-title:before {
    background: var(--dash-red);
    border-radius: 50%;
    box-shadow: 13px 0 0 var(--dash-blue), 26px 0 0 var(--dash-green);
    content: "";
    flex: 0 0 auto;
    height: 9px;
    margin-right: 28px;
    width: 9px;
}

.staff-dashboard-page.legacy-dashboard-page .dashboards-row .card-body,
.staff-dashboard-page.legacy-dashboard-page .custom-widget > .bg-white {
    background: var(--dash-surface);
}

.staff-dashboard-page.legacy-dashboard-page .custom-widget {
    margin-bottom: 0 !important;
}

.staff-dashboard-page.legacy-dashboard-page .custom-widget-title {
    border: var(--dash-card-border);
    border-bottom: 0;
    border-radius: var(--dash-card-radius) var(--dash-card-radius) 0 0;
    box-shadow: var(--dash-card-shadow);
}

.staff-dashboard-page.legacy-dashboard-page .custom-widget-title + .bg-white {
    border-radius: 0 0 var(--dash-card-radius) var(--dash-card-radius);
    border-top-width: 1px;
}

.staff-dashboard-page.legacy-dashboard-page .dashboard-legacy-widget-unavailable {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container > .card {
    border: var(--dash-card-border);
    border-radius: var(--dash-card-radius);
    box-shadow: var(--dash-card-shadow);
    overflow: hidden;
}

.staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container .page-title {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container .page-title h4 {
    color: var(--dash-ink);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.staff-dashboard-page.legacy-dashboard-edit-page #widget-row-area,
.staff-dashboard-page.legacy-dashboard-edit-page .widget-row {
    background: #f7f9fc !important;
}

.staff-dashboard-page.legacy-dashboard-edit-page .widget-row {
    border: 1px dashed #d8e0ea;
    border-radius: var(--dash-card-radius);
    margin-bottom: 14px;
    padding: 12px 0;
}

.staff-dashboard-page.legacy-dashboard-edit-page .add-column-drop,
.staff-dashboard-page.legacy-dashboard-edit-page .js-widget-container {
    border-radius: 8px;
}

.staff-dashboard-page.legacy-dashboard-edit-page .widget {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Phase 1 — dashboard page header toolbar */
.staff-dashboard-page .dashboard-page-header,
.client-dashboard-page .dashboard-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px !important;
}

.staff-dashboard-page .dashboard-page-header-left,
.client-dashboard-page .dashboard-page-header-left {
    flex: 1 1 280px;
    min-width: 0;
}

.staff-dashboard-page .dashboard-page-header-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.staff-dashboard-page .dashboard-header-meta,
.client-dashboard-page .dashboard-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.staff-dashboard-page .dashboard-period-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: inline-flex;
    flex-wrap: wrap;
    flex: 0 0 326px;
    gap: 6px;
    min-height: 40px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    padding: 3px;
}

.staff-dashboard-page .dashboard-period-select {
    background-color: #f8fafc;
    border-color: transparent;
    border-radius: 9px;
    color: #334155;
    flex: 0 0 124px;
    max-width: 124px;
    min-height: 32px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
    padding-bottom: 4px;
    padding-top: 4px;
}

.staff-dashboard-page .dashboard-customize-btn {
    background: #fff !important;
    border-color: #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: none !important;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    min-height: 40px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-customize-btn:hover,
.staff-dashboard-page .dashboard-customize-btn:focus {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.staff-dashboard-page .dashboard-customize-btn svg,
.staff-dashboard-page .dashboard-customize-btn i {
    color: #64748b;
}

.staff-dashboard-page #dashboard-period-label {
    font-size: 0.78rem;
}

.staff-dashboard-page .dashboard-period-label-pill {
    display: inline-flex;
    align-items: center;
    border-left: 1px solid #e2e8f0;
    color: #64748b;
    flex: 1 1 auto;
    min-height: 26px;
    min-width: 0;
    overflow: visible;
    padding: 0 7px 0 9px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
    .staff-dashboard-page .dashboard-period-wrap {
        flex: 0 1 326px;
    }

    .staff-dashboard-page .dashboard-period-label-pill {
        flex-basis: 170px;
    }
}

/* Phase 1 — My Tasks card header tools */
.staff-dashboard-page .dashboard-tasks-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px !important;
}

.staff-dashboard-page .dashboard-tasks-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    flex: 0 0 auto;
}

.staff-dashboard-page .dashboard-tasks-header-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 320px;
    min-width: 0;
}

.staff-dashboard-page .dashboard-tasks-search-wrap {
    position: relative;
    flex: 1 1 200px;
    max-width: 280px;
    min-width: 160px;
}

.staff-dashboard-page .dashboard-tasks-search-wrap .icon-16 {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.staff-dashboard-page .dashboard-tasks-search {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding-left: 36px;
    min-height: 38px;
    font-size: 0.875rem;
    box-shadow: none;
}

.staff-dashboard-page .dashboard-tasks-search:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.staff-dashboard-page .dashboard-task-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.staff-dashboard-page .dashboard-task-filter-chip {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    border-color: #e2e8f0;
}

.staff-dashboard-page .dashboard-task-filter-chip.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.staff-dashboard-page .dashboard-tasks-view-all {
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 767px) {
    .staff-dashboard-page .dashbaord-header-area.dashboard-header-modern {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .staff-dashboard-page .dashboard-header-modern > .clearfix.float-start {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        float: none !important;
        min-width: 0;
    }

    .staff-dashboard-page .dashboard-header-modern > .clearfix.float-start > .float-start.p10 {
        display: none !important;
    }

    .staff-dashboard-page .dashboard-header-modern h4.float-start {
        float: none !important;
        margin: 0;
    }

    .staff-dashboard-page .dashboard-page-header,
    .client-dashboard-page .dashboard-page-header {
        align-items: stretch;
    }

    .staff-dashboard-page .dashboard-header-meta,
    .client-dashboard-page .dashboard-header-meta {
        gap: 6px;
        justify-content: flex-start;
        text-align: start;
        width: 100%;
    }

    .staff-dashboard-page .dashboard-page-header-left,
    .client-dashboard-page .dashboard-page-header-left {
        flex: 1 1 100%;
        width: 100%;
    }

    .staff-dashboard-page .dashboard-welcome-text,
    .client-dashboard-page .dashboard-welcome-text {
        display: block;
        width: 100%;
    }

    .staff-dashboard-page .dashboard-period-label-pill {
        max-width: 100%;
    }

    .staff-dashboard-page .dashboard-page-header-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: stretch;
    }

    .staff-dashboard-page .dashboard-period-wrap {
        flex: 1 1 0;
        justify-content: space-between;
        width: auto;
    }

    .staff-dashboard-page .dashboard-period-select {
        flex: 0 0 116px;
    }

    .staff-dashboard-page .dashboard-customize-btn {
        display: none !important;
    }

    .staff-dashboard-page .dashboard-tasks-header-tools {
        width: 100%;
        justify-content: stretch;
    }

    .staff-dashboard-page .dashboard-tasks-search-wrap {
        max-width: none;
        flex: 1 1 100%;
    }

    .staff-dashboard-page .dashboard-hub-header {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-dashboard-page .dashboard-hub-count {
        justify-content: center;
        width: 100%;
    }

    .staff-dashboard-page .dashboard-hub-grid {
        grid-template-columns: 1fr;
    }

    .staff-dashboard-page .dashboard-hub-card {
        grid-template-columns: 55px minmax(0, 1fr) 20px;
        min-height: 88px;
    }

    .staff-dashboard-page .dashboard-kpi-row .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .staff-dashboard-page .dashboard-action-items-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .staff-dashboard-page .dashboard-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .staff-dashboard-page .dashboard-action-items-grid > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 360px) {
    .staff-dashboard-page .dashboard-period-wrap {
        flex-basis: 100%;
        width: 100%;
    }
}

/* Phase 4 — grouped action items */
.staff-dashboard-page .dashboard-action-items-body {
    padding: 16px 18px 14px;
}

.staff-dashboard-page .dashboard-action-items-status {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: var(--dash-muted);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 26px;
    padding: 5px 10px;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-action-group {
    margin-bottom: 16px;
}

.staff-dashboard-page .dashboard-action-group:last-of-type {
    margin-bottom: 0;
}

.staff-dashboard-page .dashboard-action-group-title {
    align-items: center;
    color: var(--dash-muted);
    display: flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.staff-dashboard-page .dashboard-action-group-title::after {
    background: #edf2f7;
    content: "";
    flex: 1 1 auto;
    height: 1px;
    min-width: 24px;
}

.staff-dashboard-page .dashboard-action-items-grid {
    row-gap: 12px;
}

.staff-dashboard-page .dashboard-action-item-col {
    display: flex;
    margin-bottom: 0 !important;
}

.staff-dashboard-page .dashboard-action-tile {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-top: 4px solid var(--dash-blue);
    border-left-color: var(--dash-blue);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    min-height: 88px;
    padding: 14px;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    width: 100%;
}

.staff-dashboard-page .dashboard-action-tile:hover,
.staff-dashboard-page .dashboard-action-tile:focus {
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.staff-dashboard-page .dashboard-action-tile-icon,
.staff-dashboard-page .dashboard-action-tile-arrow {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.staff-dashboard-page .dashboard-action-tile-icon {
    background: var(--dash-soft-blue);
    border-radius: 8px;
    color: var(--dash-blue);
    height: 42px;
    width: 42px;
}

.staff-dashboard-page .dashboard-action-tile-copy {
    display: block;
    min-width: 0;
}

.staff-dashboard-page .dashboard-action-tile-value,
.staff-dashboard-page .dashboard-action-tile-label,
.staff-dashboard-page .dashboard-action-tile-subtext {
    display: block;
    min-width: 0;
}

.staff-dashboard-page .dashboard-action-tile-value {
    color: var(--dash-ink);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-action-tile-label {
    color: #334155;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-action-tile-subtext {
    color: var(--dash-muted);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-dashboard-page .dashboard-action-tile-arrow {
    color: #94a3b8;
    height: 20px;
    width: 20px;
}

.staff-dashboard-page .dashboard-action-tile--warning {
    border-top-color: var(--dash-amber);
    border-left-color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-action-tile--warning .dashboard-action-tile-icon {
    background: var(--dash-soft-amber);
    color: var(--dash-amber);
}

.staff-dashboard-page .dashboard-action-tile--danger {
    border-top-color: var(--dash-red);
    border-left-color: var(--dash-red);
}

.staff-dashboard-page .dashboard-action-tile--danger .dashboard-action-tile-icon {
    background: var(--dash-soft-red);
    color: var(--dash-red);
}

.staff-dashboard-page .dashboard-action-tile--success {
    border-top-color: var(--dash-green);
    border-left-color: var(--dash-green);
}

.staff-dashboard-page .dashboard-action-tile--success .dashboard-action-tile-icon {
    background: var(--dash-soft-green);
    color: var(--dash-green);
}

.staff-dashboard-page .dashboard-action-expand-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.staff-dashboard-page .dashboard-action-expand-btn {
    border-radius: 999px;
    padding: 6px 16px;
}

/* Phase 5 — empty states, skeletons, chart */
.staff-dashboard-page .dashboard-empty-state {
    text-align: center;
    padding: 28px 16px;
    color: #94a3b8;
}

.staff-dashboard-page .dashboard-empty-state-inline {
    padding: 20px 12px;
}

.staff-dashboard-page .dashboard-empty-state .icon-32 {
    margin-bottom: 10px;
    opacity: 0.7;
}

.staff-dashboard-page .dashboard-chart-card-body {
    min-height: 260px;
    position: relative;
}

.staff-dashboard-page .dashboard-skeleton {
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e8ecf1 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: dashboard-shimmer 1.2s ease-in-out infinite;
}

@keyframes dashboard-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.staff-dashboard-page .dashboard-skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.staff-dashboard-page .dashboard-skeleton-line.w40 {
    width: 40%;
}

.staff-dashboard-page .dashboard-skeleton-tile {
    height: 88px;
}

.staff-dashboard-page .dashboard-skeleton-chart {
    height: 220px;
    width: 100%;
}

.staff-dashboard-page .dashboard-kpi-skeleton .dashboard-icon-widget {
    position: relative;
    overflow: hidden;
}

.staff-dashboard-page .dashboard-kpi-skeleton .dashboard-icon-widget .card-body > * {
    visibility: hidden;
}

.staff-dashboard-page .dashboard-kpi-skeleton .dashboard-icon-widget::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e8ecf1 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: dashboard-shimmer 1.2s ease-in-out infinite;
}

.staff-dashboard-page .dashboard-fade-in {
    animation: dashboard-fade-in 0.25s ease;
}

@keyframes dashboard-fade-in {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.staff-dashboard-page.dashboard-is-loading .dashboard-kpi-row {
    pointer-events: none;
}

.staff-dashboard-page #dashboard-action-items-root.dashboard-action-skeleton .dashboard-action-items-card {
    opacity: 0.55;
    pointer-events: none;
    position: relative;
}

.staff-dashboard-page #dashboard-action-items-root.dashboard-action-skeleton .dashboard-action-items-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--dash-card-radius);
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.4) 25%, rgba(232, 236, 241, 0.7) 50%, rgba(241, 245, 249, 0.4) 75%);
    background-size: 200% 100%;
    animation: dashboard-shimmer 1.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
 * Left menu — rounded active / hover pills (DataCore-style)
 * Theme background colors remain from assets/css/color/*.css
 * -------------------------------------------------------------------------- */
.sidebar-menu {
    padding: 4px 0 20px;
}

.sidebar-menu > li:first-child > a {
    margin-top: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-radius: 10px !important;
    margin: 2px 14px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-menu li a svg.icon,
.sidebar-menu li a > i[data-feather] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    opacity: 0.86;
    stroke-width: 2.15;
}

.sidebar-menu li a .menu-text,
.sidebar-menu li a span:not(.badge) {
    margin-left: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sidebar-menu .navigation-count-badge {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 3px;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Navigation counts use amber only for items that need attention.
   Bright amber needs dark ink to remain readable at this compact size. */
.sidebar-menu .navigation-count-badge.bg-warning {
    background-color: #f5b301 !important;
    color: #ffffff !important;
}

html[dir="rtl"] .sidebar-menu .badge {
    margin: 0 auto 0 0 !important;
}

.sidebar-menu li.active > a {
    border-radius: 10px !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.sidebar-menu li.active > a svg.icon,
.sidebar-menu li.active > a > i[data-feather],
.sidebar-menu li.expand.open > a svg.icon,
.sidebar-menu li.expand.open > a > i[data-feather] {
    opacity: 1;
}

.sidebar-menu li.expand.open > a {
    font-weight: 600;
}

.sidebar-menu li.expand > a {
    padding-right: 34px;
}

html[dir="rtl"] .sidebar-menu li.expand > a {
    padding-right: 12px;
    padding-left: 34px;
}

#sidebar-menu li.expand.open > a::before,
#sidebar-menu li.expand > a::before {
    right: 18px;
    top: 50%;
    margin-top: 0;
}

#sidebar-menu li.expand.open > a::before {
    transform: translateY(-45%) rotate(-135deg);
}

#sidebar-menu li.expand > a::before {
    transform: translateY(-50%) rotate(45deg);
}

html[dir="rtl"] #sidebar-menu li.expand.open > a::before,
html[dir="rtl"] #sidebar-menu li.expand > a::before {
    right: auto;
    left: 18px;
}

.sidebar-menu li ul {
    margin: 2px 14px 6px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: max-height 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 120ms ease-out;
}

.sidebar-menu .expand.open > ul {
    max-height: var(--dc-sidebar-submenu-height, 1000px);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 991px) {
    .sidebar-toggled .sidebar-menu li:hover > ul {
        opacity: 1;
        pointer-events: auto;
    }
}

.sidebar-menu li ul li a {
    min-height: 34px;
    border-radius: 8px !important;
    margin: 1px 8px 1px 28px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-menu li ul,
    #sidebar-menu li.expand > a::before {
        transition-duration: 1ms !important;
    }
}

.sidebar-menu li ul li a svg {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

.sidebar-menu li ul li.active > a {
    border-radius: 8px !important;
    font-weight: 600;
}

.sidebar-favorites {
    padding: 7px 0 5px;
}

.sidebar-section-heading {
    display: flex;
    min-height: 24px;
    padding: 4px 20px;
    align-items: center;
    justify-content: space-between;
    color: var(--dc-sidebar-muted-text, #7b8190);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.065em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sidebar-favorites-count {
    display: none;
    min-width: 18px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
}

.sidebar-favorites-menu {
    padding: 0 0 5px;
}

.sidebar-favorites-menu li a {
    min-height: 36px;
    margin-top: 1px;
    margin-bottom: 1px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 13px;
}

.sidebar-all-menu-heading {
    margin: 4px 14px 0;
    padding: 8px 6px 2px;
    border-top: 1px solid color-mix(in srgb, var(--dc-sidebar-muted-text, #7b8190) 18%, transparent);
}

.sidebar-menu li.has-favorite-control > a {
    padding-right: 44px;
}

.sidebar-menu li.expand.has-favorite-control > a {
    padding-right: 66px;
}

/* Keep a parent's star in its link row when the submenu expands. */
.sidebar-menu li.expand.has-favorite-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.sidebar-menu li.expand.has-favorite-control > a,
.sidebar-menu li.expand.has-favorite-control > .sidebar-favorite-toggle {
    grid-area: 1 / 1 / 2 / 2;
}

.sidebar-menu li.expand.has-favorite-control > ul {
    grid-area: 2 / 1 / 3 / 2;
}

.sidebar-menu li ul li.has-favorite-control > a {
    padding-right: 34px;
}

.sidebar-favorite-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 4;
    display: inline-flex;
    width: 28px;
    height: 28px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dc-sidebar-muted-text, #7b8190);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
}

.sidebar-menu li.expand > .sidebar-favorite-toggle {
    right: 42px;
}

.sidebar-menu li ul li > .sidebar-favorite-toggle {
    right: 9px;
}

.sidebar-menu li:hover > .sidebar-favorite-toggle,
.sidebar-menu li:focus-within > .sidebar-favorite-toggle {
    opacity: 1;
}

.sidebar-favorite-toggle:hover,
.sidebar-favorite-toggle:focus-visible {
    outline: none;
    background: color-mix(in srgb, currentColor 11%, transparent);
    color: var(--dc-sidebar-text, #334155);
}

.sidebar-favorite-toggle:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc-sidebar-active-bg, #2563eb) 35%, transparent);
}

.sidebar-favorite-toggle.is-favorite {
    color: #a16207;
}

.sidebar-favorite-toggle.is-favorite svg {
    fill: currentColor;
}

.sidebar-favorite-toggle:disabled {
    cursor: wait;
    opacity: 0.45;
}

html[dir="rtl"] .sidebar-menu li.has-favorite-control > a {
    padding-right: 12px;
    padding-left: 44px;
}

html[dir="rtl"] .sidebar-menu li.expand.has-favorite-control > a {
    padding-right: 12px;
    padding-left: 66px;
}

html[dir="rtl"] .sidebar-menu li ul li.has-favorite-control > a {
    padding-right: 10px;
    padding-left: 34px;
}

html[dir="rtl"] .sidebar-favorite-toggle {
    right: auto;
    left: 18px;
}

html[dir="rtl"] .sidebar-menu li.expand > .sidebar-favorite-toggle {
    right: auto;
    left: 42px;
}

html[dir="rtl"] .sidebar-menu li ul li > .sidebar-favorite-toggle {
    right: auto;
    left: 9px;
}

#sidebar-menu > li.expand.active > a {
    background: color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 13%, transparent) !important;
    color: var(--dc-sidebar-text, #334155) !important;
    box-shadow: none;
}

#sidebar-menu > li.expand.active > ul {
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 30%, transparent);
}

html[dir="rtl"] #sidebar-menu > li.expand.active > ul {
    box-shadow: inset -1px 0 0 color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 30%, transparent);
}

.sidebar-menu a.menu-search-match {
    background: color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 9%, transparent);
}

.sidebar-menu a.menu-search-keyboard-active {
    background: color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 18%, transparent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dc-sidebar-active-bg, #6690f4) 42%, transparent);
}

.sidebar-menu-no-results {
    display: none;
    min-height: 86px;
    margin: 8px 14px;
    padding: 18px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-radius: 10px;
    color: var(--dc-sidebar-muted-text, #7b8190);
    font-size: 12px;
    text-align: center;
}

.sidebar-menu-no-results.is-visible {
    display: flex !important;
}

body:not([data-color="F2F2F2" i]) .sidebar-favorite-toggle.is-favorite {
    color: #fde68a;
}

body:not([data-color="F2F2F2" i]) #sidebar-menu > li.expand.active > a {
    background: var(--dc-sidebar-hover-bg, rgba(255, 255, 255, 0.1)) !important;
    color: var(--dc-sidebar-text, #ffffff) !important;
}

@media (hover: none) {
    .sidebar-favorite-toggle {
        opacity: 0.72;
    }
}

@media (min-width: 991px) {
    .sidebar-toggled .sidebar-favorites {
        display: none !important;
    }

    .sidebar-toggled .sidebar-favorite-toggle {
        display: none;
    }

    /* The icon rail has no star column. A grid row would offset the absolute
       flyout a second time, leaving a gap that closes it under the pointer. */
    .sidebar-toggled .sidebar-menu > li.expand.has-favorite-control {
        display: block;
    }

    .sidebar-toggled #sidebar-menu > li > a {
        padding-right: 12px;
        padding-left: 12px;
        width: auto;
        min-width: 0;
    }

    .sidebar-toggled .sidebar-menu > li > ul {
        top: 100%;
        margin: 0;
    }
}

body[data-color="F2F2F2"] .sidebar {
    background: #ffffff;
    border-right-color: #e8ecf1;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

body[data-color="F2F2F2"] .sidebar-brand.sidebar-brand-shell {
    background: #ffffff;
}

body[data-color="F2F2F2"] .sidebar-scroll {
    background: #ffffff;
}

body[data-color="F2F2F2"] .sidebar-menu li a:hover,
body[data-color="F2F2F2"] .sidebar-menu li a:focus {
    color: #1e293b;
    background: #f4f7fb;
}

body[data-color="F2F2F2"] .sidebar-menu li.active > a,
body[data-color="F2F2F2"] .sidebar-menu li ul li.active > a {
    color: #1e293b !important;
    background: #eef2ff;
    background: color-mix(in srgb, var(--left-menu-theme-color, #2563eb) 12%, #ffffff);
}

body[data-color="F2F2F2"] .sidebar-menu li ul {
    background: rgba(15, 23, 42, 0.025);
}

body[data-color="F2F2F2"] {
    --dc-white-theme-action: #6b7788;
    --dc-white-theme-action-hover: #556273;
    --dt-th-accent: #6b7788;
    --dt-row-selected: 107, 119, 136;
    --dt-row-selected-text: 255, 255, 255;
    --dt-row-selected-link: 255, 255, 255;
}

body[data-color="F2F2F2"] .sidebar-menu li.active > a,
body[data-color="F2F2F2"] .sidebar-menu li ul li.active > a {
    color: #ffffff !important;
    background: var(--dc-white-theme-action) !important;
}

body[data-color="F2F2F2"] .modal-footer button[type="submit"]:not(.btn-primary),
body[data-color="F2F2F2"] .modal-footer input[type="submit"].btn:not(.btn-primary),
body[data-color="F2F2F2"] .bulk-actions-btn.table-btn {
    background-color: var(--dc-primary-bg, #6690f4) !important;
    border-color: var(--dc-primary-border, #6690f4) !important;
    color: var(--dc-primary-text, #ffffff) !important;
}

body[data-color="F2F2F2"] .modal-footer button[type="submit"]:not(.btn-primary):hover,
body[data-color="F2F2F2"] .modal-footer button[type="submit"]:not(.btn-primary):focus,
body[data-color="F2F2F2"] .modal-footer input[type="submit"].btn:not(.btn-primary):hover,
body[data-color="F2F2F2"] .modal-footer input[type="submit"].btn:not(.btn-primary):focus,
body[data-color="F2F2F2"] .bulk-actions-btn.table-btn:hover,
body[data-color="F2F2F2"] .bulk-actions-btn.table-btn:focus {
    background-color: var(--dc-primary-hover-bg, #4076f2) !important;
    border-color: var(--dc-primary-hover-border, #4076f2) !important;
    color: var(--dc-primary-text, #ffffff) !important;
}

body[data-color="F2F2F2"] .filter-section-container .btn-group.filter .btn.btn-default.active,
body[data-color="F2F2F2"] .filter-form .btn-group.filter .btn.btn-default.active {
    background-color: var(--dc-white-theme-action-hover, #556273) !important;
    border-color: var(--dc-white-theme-action-hover, #556273) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12) !important;
}

body[data-color="F2F2F2"] .filter-section-container .btn-group.filter .btn.btn-default.active:hover,
body[data-color="F2F2F2"] .filter-section-container .btn-group.filter .btn.btn-default.active:focus,
body[data-color="F2F2F2"] .filter-form .btn-group.filter .btn.btn-default.active:hover,
body[data-color="F2F2F2"] .filter-form .btn-group.filter .btn.btn-default.active:focus {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
}

body[data-color="F2F2F2"] .list-group-item.active,
body[data-color="F2F2F2"] .dropdown-item.active,
body[data-color="F2F2F2"] .dropdown-item:active,
body[data-color="F2F2F2"] .select2-results .select2-highlighted,
body[data-color="F2F2F2"] td.dropdown-option button:hover,
body[data-color="F2F2F2"] .atwho-view .cur,
body[data-color="F2F2F2"] .note-hint-group .active,
body[data-color="F2F2F2"] .note-hint-item:hover {
    background-color: var(--dc-white-theme-action) !important;
    border-color: var(--dc-white-theme-action) !important;
    color: #ffffff !important;
}

body[data-color="F2F2F2"] .dataTable tbody tr.active td,
body[data-color="F2F2F2"] .dataTable tbody tr.active:hover td,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected > *,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected:hover > * {
    background-color: var(--dc-white-theme-action) !important;
    color: #ffffff !important;
}

body[data-color="F2F2F2"] table.dataTable tbody tr.selected a,
body[data-color="F2F2F2"] table.dataTable tbody tr.active a {
    color: #ffffff !important;
}

body[data-color="F2F2F2"] table.dataTable tbody tr.selected td.option a,
body[data-color="F2F2F2"] table.dataTable tbody tr.active td.option a,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .action-option,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .action-option {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

body[data-color="F2F2F2"] table.dataTable tbody tr.selected td.option a:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected td.option a:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active td.option a:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active td.option a:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .action-option:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .action-option:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .action-option:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .action-option:focus {
    background: color-mix(in srgb, var(--dc-white-theme-action, #6b7788) 8%, #ffffff) !important;
    border-color: color-mix(in srgb, var(--dc-white-theme-action, #6b7788) 38%, #e2e8f0) !important;
    color: var(--dc-white-theme-action, #6b7788) !important;
}

body[data-color="F2F2F2"] table.dataTable tbody tr.selected td.option a.delete:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected td.option a.delete:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active td.option a.delete:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active td.option a.delete:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a.delete:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a.delete:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a.delete:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a.delete:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a[data-action="delete"]:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a[data-action="delete"]:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a[data-action="delete"]:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a[data-action="delete"]:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a[data-action="delete-confirmation"]:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.selected .dt-row-actions a[data-action="delete-confirmation"]:focus,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a[data-action="delete-confirmation"]:hover,
body[data-color="F2F2F2"] table.dataTable tbody tr.active .dt-row-actions a[data-action="delete-confirmation"]:focus {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}

body[data-color="F2F2F2"] .form-check-input:checked,
body[data-color="F2F2F2"] input[type="checkbox"]:checked,
body[data-color="F2F2F2"] input[type="radio"]:checked {
    background-color: var(--dc-white-theme-action) !important;
    border-color: var(--dc-white-theme-action) !important;
}

body[data-color="F2F2F2"] .datepicker table tr td.active.active,
body[data-color="F2F2F2"] .datepicker table tr td.active.active:hover,
body[data-color="F2F2F2"] .datepicker table tr td span.active.active,
body[data-color="F2F2F2"] .datepicker table tr td span.active:hover.active,
body[data-color="F2F2F2"] .datepicker table tr td span.active.active:hover {
    background: var(--dc-white-theme-action) !important;
    border-color: var(--dc-white-theme-action) !important;
    color: #ffffff !important;
}

body:not([data-color="F2F2F2"]) .sidebar-menu li a:hover,
body:not([data-color="F2F2F2"]) .sidebar-menu li a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.11) !important;
}

body:not([data-color="F2F2F2"]) .sidebar-menu li.active > a,
body:not([data-color="F2F2F2"]) .sidebar-menu li ul li.active > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.17) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body:not([data-color="F2F2F2"]) .sidebar-menu li.expand.open > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body:not([data-color="F2F2F2"]) .sidebar-menu li ul {
    background: rgba(255, 255, 255, 0.035);
}

body:not([data-color="F2F2F2"]) .sidebar-footer-version .sidebar-version {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
}

html[dir="rtl"] .sidebar-menu li ul li a {
    margin: 1px 28px 1px 8px;
}

.sidebar-toggled .sidebar-menu li:hover > a {
    border-radius: 10px !important;
}

.sidebar-toggled .sidebar-menu li ul li a {
    border-radius: 8px !important;
    margin: 1px 8px;
}

.sidebar-toggled .sidebar-menu li ul li a:hover {
    border-radius: 8px !important;
}

@media (min-width: 991px) {
    .sidebar-toggled .sidebar-brand.sidebar-brand-shell {
        width: 70px;
        height: 66px;
        padding: 15px 18px;
    }

    .sidebar-toggled .sidebar-footer-version {
        display: none;
    }

    .sidebar-toggled .sidebar-brand-shell .brand-logo {
        display: none;
    }

    .sidebar-toggled .sidebar-brand-shell .brand-logo-mini {
        display: inline-flex;
    }

    .sidebar-toggled .sidebar-menu {
        padding-top: 8px;
    }

    .sidebar-toggled .sidebar-menu li:hover {
        border-radius: 0 9px 9px 0;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

    html[dir="rtl"] .sidebar-toggled .sidebar-menu li:hover {
        border-radius: 9px 0 0 9px;
    }

    .sidebar-toggled .sidebar-menu li:hover > a {
        box-shadow: none !important;
    }

    .sidebar-toggled .sidebar-menu li:hover ul {
        border-radius: 0 0 9px 9px;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
        overflow: hidden;
    }

}

@media (prefers-reduced-motion: reduce) {
    .sidebar-menu li a,
    #seach_menu,
    .side_bar_seach_menu .sidebar-menu-search-input {
        transition: none;
    }

    .sidebar-menu li a:hover,
    .sidebar-menu li a:focus {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
 * Global search modal — rounded search window & fields
 * -------------------------------------------------------------------------- */
.global-search-modal .modal-dialog {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
}

.global-search-modal .modal-content {
    border-radius: 16px !important;
    border: 1px solid #e8ecf1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.search-modal {
    padding: 16px 20px;
    background: #f8fafc;
}

.search-modal .search-modal-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.search-modal .search-modal-copy {
    min-width: 0;
}

.search-modal .search-modal-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.search-modal .search-modal-subtitle {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

.search-modal .search-modal-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.search-modal .search-modal-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.search-modal .search-modal-close:hover,
.search-modal .search-modal-close:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.search-modal .search-modal-controls {
    align-items: stretch;
    gap: 0;
    row-gap: 10px;
}

.search-modal .col-sm-3,
.search-modal .col-sm-4,
.search-modal .col-sm-8,
.search-modal .col-sm-9 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.search-modal .search-modal-controls > .col-sm-4 {
    flex: 0 0 220px;
    max-width: 220px;
    padding-right: 10px !important;
}

.search-modal .search-modal-controls > .col-sm-8 {
    flex: 1 1 auto;
    max-width: none;
}

.search-modal .search-modal-hint {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-height: 18px;
}

.search-modal .search-modal-hint.is-loading {
    color: #2563eb;
}

.search-modal .search-modal-hint.is-ready {
    color: #047857;
}

.search-modal .search-modal-hint.is-empty {
    color: #92400e;
}

.search-modal .search-modal-hint.is-error {
    color: #b91c1c;
}

.search-modal .search-input-wrap {
    position: relative;
}

.search-modal .form-control,
.search-modal .help-search-box {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    padding: 10px 14px !important;
    min-height: 44px;
    box-shadow: none;
}

.search-modal .search-input-wrap .help-search-box {
    padding-right: 42px !important;
}

.search-modal .search-input-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef2f7;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.92);
    transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.search-modal .search-input-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.search-modal .search-input-clear:hover,
.search-modal .search-input-clear:focus {
    background: #e2e8f0;
    color: #0f172a;
    outline: none;
}

.search-modal .help-search-box:focus {
    border-color: #c7d2fe !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-modal .select2-container.form-control.search-field-select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
}

.search-modal .select2-choice,
.search-modal .select2-container .select2-choice,
.search-modal .select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    height: 44px !important;
    min-height: 44px;
    background: #fff !important;
    box-shadow: none !important;
}

.search-modal .select2-container .select2-choice .select2-chosen {
    padding: 0 36px 0 14px !important;
    line-height: 42px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    margin-right: 0;
}

.search-modal .select2-container .select2-choice .select2-arrow {
    width: 34px;
    border-left: 0;
    background: transparent;
}

.search-modal .select2-container .select2-choice .select2-arrow b {
    width: 0;
    height: 0;
    margin: 19px auto 0;
    border-style: solid;
    border-width: 5px 4px 0;
    border-color: #94a3b8 transparent transparent;
    background: none !important;
}

.search-modal .select2-dropdown-open .select2-choice .select2-arrow b {
    margin-top: 18px;
    border-width: 0 4px 5px;
    border-color: transparent transparent #64748b;
}

.search-modal .select2-container-active .select2-choice,
.search-modal .select2-dropdown-open .select2-choice {
    border-color: #c7d2fe !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.search-modal .select2-container {
    width: 100% !important;
}

.global-search-modal .awesomplete > ul {
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

@media (max-width: 575.98px) {
    .search-modal .search-modal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-modal .search-modal-count {
        width: fit-content;
    }

    .search-modal .search-modal-controls > .col-sm-4,
    .search-modal .search-modal-controls > .col-sm-8 {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding-right: 0 !important;
    }
}

.global-search-modal .awesomplete ul li {
    border-radius: 8px;
    margin: 4px 6px;
}

.global-search-modal .awesomplete ul li[aria-selected="true"] {
    border-radius: 8px;
}

@media (max-width: 767px) {
    .global-search-modal .modal-content {
        border-radius: 14px !important;
    }

    .search-modal .col-sm-3 {
        border-bottom: none !important;
        margin-bottom: 0;
    }
}

/* ------------------------------------------------------------------
   Native dark theme (1E202D) — topbar, sidebar search, dashboard
   Palette aligned with WhatsBoost dark surfaces and 1E202D.css
   ------------------------------------------------------------------ */
body[data-color="1E202D"] #default-navbar.navbar-custom {
    background: #252932 !important;
    border-bottom-color: #2f3541 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon),
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link {
    background: #20242c !important;
    border-color: #3d4454 !important;
    color: #cbd5e1 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):hover,
body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):focus,
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link:hover,
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link:focus {
    background: #2f3541 !important;
    border-color: #5b73e8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
}

body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon) svg,
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link svg {
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25px !important;
}

body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):hover svg,
body[data-color="1E202D"] #default-navbar .navbar-nav .nav-item > .nav-link:not(#user-dropdown):not(#start-timer-icon):focus svg,
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link:focus svg,
body[data-color="1E202D"] #default-navbar #topbar-timer-icon-container .nav-item > .nav-link:hover svg {
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
}

body[data-color="1E202D"] #default-navbar .topbar-brand.topbar-logo,
body[data-color="1E202D"] #default-navbar .topbar-brand.topbar-logo span,
body[data-color="1E202D"] #default-navbar .topbar-brand.topbar-logo a,
body[data-color="1E202D"] .topbar-brand {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #default-navbar .nav-item.show > .nav-link:not(#user-dropdown):not(#start-timer-icon) {
    background: rgba(91, 115, 232, 0.22) !important;
    color: #ffffff !important;
    border-color: rgba(129, 140, 248, 0.58) !important;
}

body[data-color="1E202D"] #default-navbar #global-search-btn:hover,
body[data-color="1E202D"] #default-navbar #quick-add-icon:hover {
    background: rgba(91, 115, 232, 0.22) !important;
    color: #ffffff !important;
    border-color: rgba(129, 140, 248, 0.58) !important;
}

body[data-color="1E202D"] #default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn {
    background: #20242c !important;
    border-color: #3d4454 !important;
    color: #cbd5e1 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body[data-color="1E202D"] #default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn:hover,
body[data-color="1E202D"] #default-navbar #topbar-ai-mic-li .hey-anu-fab.hey-anu-topbar-btn:focus {
    background: #2f3541 !important;
    color: #ffffff !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
}

body[data-color="1E202D"] #default-navbar #topbar-ai-mic-li .hey-anu-fab-svg-icon svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25px !important;
}

body[data-color="1E202D"] #default-navbar .notification-badge-container .badge.up {
    border-color: #252932 !important;
}

body[data-color="1E202D"] #default-navbar #user-dropdown {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #default-navbar #user-dropdown:hover,
body[data-color="1E202D"] #default-navbar #user-dropdown:focus {
    background: #2f3541 !important;
    border-color: #3d4454 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
}

body[data-color="1E202D"] #default-navbar #user-dropdown .user-name {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #default-navbar #user-dropdown .avatar-xs img {
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #default-navbar #start-timer-icon .btn-success {
    background: rgba(34, 197, 94, 0.14) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    color: #86efac !important;
}

body[data-color="1E202D"] #default-navbar #start-timer-icon .btn-danger {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
}

body[data-color="1E202D"] #default-navbar .dropdown-menu {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

body[data-color="1E202D"] #default-navbar .reminder-dropdown .card,
body[data-color="1E202D"] #default-navbar .reminder-dropdown .dropdown-details,
body[data-color="1E202D"] #default-navbar .reminder-dropdown .list-group-item,
body[data-color="1E202D"] #default-navbar .reminder-dropdown .card-footer {
    background: #252932 !important;
    color: #e5e7eb !important;
    border-color: #3d4454 !important;
}

body[data-color="1E202D"] #default-navbar .reminder-dropdown-due,
body[data-color="1E202D"] #default-navbar .reminder-dropdown-empty,
body[data-color="1E202D"] #default-navbar .reminder-dropdown-loading {
    color: #b8c0ce !important;
}

body[data-color="1E202D"] #default-navbar .reminder-dropdown-footer button,
body[data-color="1E202D"] #default-navbar .reminder-dropdown-more,
body[data-color="1E202D"] #default-navbar .reminder-dropdown-footer a {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #default-navbar .user-dropdown-menu .dropdown-item {
    color: #898fa9 !important;
}

body[data-color="1E202D"] #default-navbar .user-dropdown-menu .dropdown-item:hover {
    background: #20242c !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .side_bar_seach_menu .sidebar-menu-search-input {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .side_bar_seach_menu .sidebar-menu-search-input::placeholder {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .side_bar_seach_menu .sidebar-menu-search-input:focus {
    background: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.2) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .side_bar_seach_menu .sidebar-menu-search-icon {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .side_bar_seach_menu .sidebar-menu-search-input:focus + .sidebar-menu-search-icon,
body[data-color="1E202D"] .side_bar_seach_menu:focus-within .sidebar-menu-search-icon {
    color: #5b73e8 !important;
}

/* Native dashboards — readable text on dark surfaces */
body[data-color="1E202D"] .staff-dashboard-page,
body[data-color="1E202D"] .client-dashboard-page {
    --dash-card-border: 1px solid #2f3541;
    --dash-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    --dash-ink: #e5e7eb;
    --dash-muted: #aab2c5;
    --dash-surface: #252932;
    color: #898fa9;
    background: #1e202d;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-page-title,
body[data-color="1E202D"] .staff-dashboard-page .dashbaord-header-area h4,
body[data-color="1E202D"] .client-dashboard-page .dashboard-page-title,
body[data-color="1E202D"] .client-dashboard-page .dashbaord-header-area h4 {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-welcome-text,
body[data-color="1E202D"] .client-dashboard-page .dashboard-welcome-text {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-period-label-pill {
    border-left-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-period-wrap,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-customize-btn {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-customize-btn:hover,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-customize-btn:focus {
    background: #252932 !important;
    border-color: #3b4250 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-panel,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-panel,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-kpi-panel,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card,
body[data-color="1E202D"] .client-dashboard-page .client-kpi-card,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-panel,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-card {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-kpi-card .card-body,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .page-title,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .tab-title,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .table-responsive {
    background: #252932 !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .page-title,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .tab-title {
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-kpi-card .client-kpi-value,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .page-title h1,
body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel > .card .tab-title h4 {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-kpi-card .client-kpi-label {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel table.dataTable thead th {
    background: #20242c !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .client-dashboard-page .client-dashboard-projects-panel table.dataTable tbody tr:hover {
    background-color: #20242c !important;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-panel-title,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-card-title,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-value strong {
    color: #e5e7eb;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-value,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-limit {
    color: #a7aec2;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-progress {
    background: #343a47;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-more {
    border-top-color: #3b4351;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-more-toggle,
body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-more-count {
    color: #e5e7eb;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-more-toggle:hover {
    background: #303847;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-more-count {
    background: #303847;
}

body[data-color="1E202D"] .dc-quota-dashboard-page .dc-quota-percent {
    background: color-mix(in srgb, var(--quota-accent) 18%, #252932);
    color: #e5e7eb;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-title,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card-title,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-count span {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card-meta,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-count,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-arrow {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-count {
    background: #20242c !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-icon {
    background: #20242c !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card {
    border-top-color: var(--dash-blue) !important;
    border-left-color: var(--dash-blue) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card--red {
    border-top-color: var(--dash-red) !important;
    border-left-color: var(--dash-red) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card--green {
    border-top-color: var(--dash-green) !important;
    border-left-color: var(--dash-green) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card--amber {
    border-top-color: var(--dash-amber) !important;
    border-left-color: var(--dash-amber) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card--purple {
    border-top-color: var(--dash-purple) !important;
    border-left-color: var(--dash-purple) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-hub-card--teal {
    border-top-color: var(--dash-teal) !important;
    border-left-color: var(--dash-teal) !important;
}

/* AI dashboards — native expense-dashboard card style */
.lead-ai-wrap,
.si-ai-wrap,
.est-ai-wrap,
.proj-ai-wrap {
    --ai-card-bg: #fff;
    --ai-card-border: #e8ecf1;
    --ai-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ai-ink: #172033;
    --ai-muted: #667085;
    --ai-soft-blue: #f3f8ff;
    --ai-soft-red: #fff7f4;
    --ai-soft-green: #f1fbf7;
    --ai-soft-amber: #fff9eb;
    --ai-soft-purple: #f8f6ff;
    --ai-blue: #2f80ed;
    --ai-red: #e85d3f;
    --ai-green: #0f9f6e;
    --ai-amber: #c98212;
    --ai-purple: #7c5cc4;
    background: #f7f9fc;
    color: var(--ai-ink);
}

.lead-ai-wrap > .clearfix:first-of-type,
.si-ai-wrap > .clearfix:first-of-type,
.est-ai-wrap > .clearfix:first-of-type {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px !important;
}

.lead-ai-wrap > .clearfix:first-of-type:before,
.lead-ai-wrap > .clearfix:first-of-type:after,
.si-ai-wrap > .clearfix:first-of-type:before,
.si-ai-wrap > .clearfix:first-of-type:after,
.est-ai-wrap > .clearfix:first-of-type:before,
.est-ai-wrap > .clearfix:first-of-type:after {
    content: none;
}

.lead-ai-wrap > .clearfix:first-of-type .float-start,
.lead-ai-wrap > .clearfix:first-of-type .float-end,
.si-ai-wrap > .clearfix:first-of-type .float-start,
.si-ai-wrap > .clearfix:first-of-type .float-end,
.est-ai-wrap > .clearfix:first-of-type .float-start,
.est-ai-wrap > .clearfix:first-of-type .float-end {
    float: none !important;
}

.lead-ai-wrap > .clearfix:first-of-type .float-end,
.si-ai-wrap > .clearfix:first-of-type .float-end,
.est-ai-wrap > .clearfix:first-of-type .float-end {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.lead-ai-wrap .ai-dashboard-main-link,
.si-ai-wrap .ai-dashboard-main-link,
.est-ai-wrap .ai-dashboard-main-link {
    align-items: center;
    border-color: #e8ecf1;
    border-radius: 7px;
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}

.lead-ai-wrap h4,
.si-ai-wrap h4,
.est-ai-wrap h4,
.proj-ai-wrap .proj-ai-title {
    color: var(--ai-ink) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.lead-ai-wrap h4:before,
.si-ai-wrap h4:before,
.est-ai-wrap h4:before,
.proj-ai-wrap .proj-ai-title:before {
    content: "";
    display: inline-block;
    width: 38px;
    height: 10px;
    margin-right: 7px;
    background:
        radial-gradient(circle at 5px 5px, var(--ai-red) 0 5px, transparent 5.5px),
        radial-gradient(circle at 19px 5px, var(--ai-blue) 0 5px, transparent 5.5px),
        radial-gradient(circle at 33px 5px, var(--ai-green) 0 5px, transparent 5.5px);
    vertical-align: 1px;
}

.lead-ai-wrap h4 .icon-18,
.si-ai-wrap h4 .icon-18,
.est-ai-wrap h4 .icon-18 {
    display: none !important;
}

.lead-ai-wrap .text-off,
.si-ai-wrap .text-off,
.est-ai-wrap .text-off,
.proj-ai-wrap .text-off,
.proj-ai-subtitle {
    color: var(--ai-muted) !important;
}

.lead-ai-wrap > .card,
.si-ai-wrap > .card,
.est-ai-wrap > .card,
.proj-ai-wrap .proj-ai-filter-card {
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
    border: 1px solid var(--ai-card-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--ai-card-shadow) !important;
}

#lead-ai-kpis,
#si-ai-kpis,
#est-ai-kpis,
#proj-ai-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
}

#lead-ai-kpis > [class*="col-"],
#si-ai-kpis > [class*="col-"],
#est-ai-kpis > [class*="col-"],
#proj-ai-kpis > [class*="col-"] {
    float: none;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

.lead-ai-wrap .kpi,
.si-ai-wrap .kpi,
.est-ai-wrap .kpi,
.proj-ai-wrap .kpi {
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
    border: 1px solid var(--ai-card-border) !important;
    border-radius: 10px !important;
    border-top: 4px solid var(--ai-blue) !important;
    border-left-color: var(--ai-blue) !important;
    box-shadow: var(--ai-card-shadow) !important;
    color: var(--ai-ink) !important;
    min-height: 116px !important;
    overflow: hidden;
    padding: 16px !important;
    position: relative;
}

#lead-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(1) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-blue) 100%) !important;
    border-top-color: var(--ai-blue) !important;
    border-left-color: var(--ai-blue) !important;
}

#lead-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(2) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-amber) 100%) !important;
    border-top-color: var(--ai-amber) !important;
    border-left-color: var(--ai-amber) !important;
}

#lead-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(3) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-green) 100%) !important;
    border-top-color: var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
}

#lead-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(4) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-red) 100%) !important;
    border-top-color: var(--ai-red) !important;
    border-left-color: var(--ai-red) !important;
}

#lead-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(5) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-green) 100%) !important;
    border-top-color: var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
}

#lead-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
#si-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
#est-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
#proj-ai-kpis > [class*="col-"]:nth-child(6) .kpi {
    background: linear-gradient(180deg, #fff 0%, var(--ai-soft-purple) 100%) !important;
    border-top-color: var(--ai-purple) !important;
    border-left-color: var(--ai-purple) !important;
}

.lead-ai-wrap .kpi:before,
.si-ai-wrap .kpi:before,
.est-ai-wrap .kpi:before,
.proj-ai-wrap .kpi:before {
    content: none !important;
}

.lead-ai-wrap .kpi .ki,
.si-ai-wrap .kpi .ki,
.est-ai-wrap .kpi .ki,
.proj-ai-wrap .kpi .ki {
    align-items: center;
    background: #eff6ff !important;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--ai-blue);
    display: flex;
    float: none !important;
    height: 36px;
    justify-content: center;
    opacity: 1 !important;
    padding: 8px;
    position: absolute !important;
    right: 14px;
    stroke-width: 2.2;
    top: 14px;
    width: 36px;
}

#lead-ai-kpis > [class*="col-"]:nth-child(2) .ki,
#si-ai-kpis > [class*="col-"]:nth-child(2) .ki,
#est-ai-kpis > [class*="col-"]:nth-child(2) .ki,
#proj-ai-kpis > [class*="col-"]:nth-child(2) .ki {
    background: #fff7ed !important;
    color: var(--ai-amber);
}

#lead-ai-kpis > [class*="col-"]:nth-child(3) .ki,
#si-ai-kpis > [class*="col-"]:nth-child(3) .ki,
#est-ai-kpis > [class*="col-"]:nth-child(3) .ki,
#proj-ai-kpis > [class*="col-"]:nth-child(3) .ki,
#lead-ai-kpis > [class*="col-"]:nth-child(5) .ki,
#si-ai-kpis > [class*="col-"]:nth-child(5) .ki,
#est-ai-kpis > [class*="col-"]:nth-child(5) .ki,
#proj-ai-kpis > [class*="col-"]:nth-child(5) .ki {
    background: #ecfdf5 !important;
    color: var(--ai-green);
}

#lead-ai-kpis > [class*="col-"]:nth-child(4) .ki,
#si-ai-kpis > [class*="col-"]:nth-child(4) .ki,
#est-ai-kpis > [class*="col-"]:nth-child(4) .ki,
#proj-ai-kpis > [class*="col-"]:nth-child(4) .ki {
    background: #fff1f2 !important;
    color: var(--ai-red);
}

#lead-ai-kpis > [class*="col-"]:nth-child(6) .ki,
#si-ai-kpis > [class*="col-"]:nth-child(6) .ki,
#est-ai-kpis > [class*="col-"]:nth-child(6) .ki,
#proj-ai-kpis > [class*="col-"]:nth-child(6) .ki {
    background: #f5f3ff !important;
    color: var(--ai-purple);
}

.lead-ai-wrap .kpi .kv,
.si-ai-wrap .kpi .kv,
.est-ai-wrap .kpi .kv,
.proj-ai-wrap .kpi .kv {
    color: var(--ai-ink) !important;
    display: block;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 8px 42px 7px 0 !important;
    overflow-wrap: anywhere;
    white-space: normal;
}

.lead-ai-wrap .kpi .kl,
.si-ai-wrap .kpi .kl,
.est-ai-wrap .kpi .kl,
.proj-ai-wrap .kpi .kl,
.lead-ai-wrap .kpi .ks,
.si-ai-wrap .kpi .ks,
.est-ai-wrap .kpi .ks,
.proj-ai-wrap .kpi .ks {
    color: var(--ai-muted) !important;
    display: block;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    min-height: 0 !important;
    opacity: 1 !important;
    text-transform: none !important;
}

.lead-ai-wrap .kpi .kl,
.si-ai-wrap .kpi .kl,
.est-ai-wrap .kpi .kl,
.proj-ai-wrap .kpi .kl {
    font-weight: 600 !important;
}

.lead-ai-wrap .kpi .mini-bar,
.si-ai-wrap .kpi .mini-bar,
.est-ai-wrap .kpi .mini-bar,
.proj-ai-wrap .kpi .mini-bar {
    background: #edf0f4 !important;
    height: 6px;
    margin-top: 10px;
}

.lead-ai-wrap .kpi .mini-bar > span,
.si-ai-wrap .kpi .mini-bar > span,
.est-ai-wrap .kpi .mini-bar > span,
.proj-ai-wrap .kpi .mini-bar > span {
    background: var(--ai-green) !important;
}

.lead-ai-wrap .highlight,
.si-ai-wrap .highlight,
.est-ai-wrap .highlight,
.proj-ai-wrap .highlight {
    background: #fff !important;
    border: 1px solid var(--ai-card-border) !important;
    border-radius: 10px !important;
    border-top: 3px solid var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
    box-shadow: var(--ai-card-shadow) !important;
    min-height: 104px;
}

.lead-ai-wrap .highlight--success,
.si-ai-wrap .highlight--success,
.est-ai-wrap .highlight--success,
.proj-ai-wrap .highlight--success {
    border-top-color: var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
}

.lead-ai-wrap .highlight--warning,
.si-ai-wrap .highlight--warning,
.est-ai-wrap .highlight--warning,
.proj-ai-wrap .highlight--warning {
    border-top-color: var(--ai-amber) !important;
    border-left-color: var(--ai-amber) !important;
}

.lead-ai-wrap .highlight--danger,
.si-ai-wrap .highlight--danger,
.est-ai-wrap .highlight--danger,
.proj-ai-wrap .highlight--danger {
    border-top-color: var(--ai-red) !important;
    border-left-color: var(--ai-red) !important;
}

.lead-ai-wrap .highlight .hl-icon,
.si-ai-wrap .highlight .hl-icon,
.est-ai-wrap .highlight .hl-icon,
.proj-ai-wrap .highlight .hl-icon {
    align-items: center;
    border-radius: 8px !important;
    color: #fff !important;
    display: flex;
    height: 40px !important;
    justify-content: center;
    width: 40px !important;
}

.lead-ai-wrap .hl-icon--success,
.si-ai-wrap .hl-icon--success,
.est-ai-wrap .hl-icon--success,
.proj-ai-wrap .hl-icon--success {
    background: var(--ai-green) !important;
}

.lead-ai-wrap .hl-icon--warning,
.si-ai-wrap .hl-icon--warning,
.est-ai-wrap .hl-icon--warning,
.proj-ai-wrap .hl-icon--warning {
    background: var(--ai-amber) !important;
}

.lead-ai-wrap .hl-icon--danger,
.si-ai-wrap .hl-icon--danger,
.est-ai-wrap .hl-icon--danger,
.proj-ai-wrap .hl-icon--danger {
    background: var(--ai-red) !important;
}

.lead-ai-wrap .hl-label,
.si-ai-wrap .hl-label,
.est-ai-wrap .hl-label,
.proj-ai-wrap .hl-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    text-transform: none !important;
}

.lead-ai-wrap .highlight .hl-name,
.si-ai-wrap .highlight .hl-name,
.est-ai-wrap .highlight .hl-name,
.proj-ai-wrap .highlight .hl-name {
    color: var(--ai-ink) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.lead-ai-wrap .row .card,
.si-ai-wrap .row .card,
.est-ai-wrap .row .card,
.proj-ai-wrap .row .card,
.lead-ai-wrap > .card.mt5,
.si-ai-wrap > .card.mt5,
.est-ai-wrap > .card.mt5,
.proj-ai-wrap > .card.mt5 {
    background: #fff !important;
    border: 1px solid var(--ai-card-border) !important;
    border-radius: 10px !important;
    border-top: 3px solid #dfe7f1 !important;
    border-left-color: #dfe7f1 !important;
    box-shadow: var(--ai-card-shadow) !important;
}

.lead-ai-wrap .section-title,
.si-ai-wrap .section-title,
.est-ai-wrap .section-title,
.proj-ai-wrap .section-title {
    color: var(--ai-ink) !important;
    font-weight: 700 !important;
}

.lead-ai-wrap .period-pill,
.si-ai-wrap .period-pill,
.est-ai-wrap .period-pill,
.proj-ai-wrap .period-pill {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
}

.lead-ai-wrap .ai-block,
.si-ai-wrap .ai-block,
.est-ai-wrap .ai-block,
.proj-ai-wrap .ai-block,
.lead-ai-wrap .comment-item,
.si-ai-wrap .comment-item,
.est-ai-wrap .comment-item,
.proj-ai-wrap .comment-item {
    background: #fbfcff !important;
    border: 1px solid var(--ai-card-border) !important;
    border-radius: 8px !important;
}

body[data-color="1E202D"] .lead-ai-wrap,
body[data-color="1E202D"] .si-ai-wrap,
body[data-color="1E202D"] .est-ai-wrap,
body[data-color="1E202D"] .proj-ai-wrap {
    --ai-card-bg: #252932;
    --ai-card-border: #2f3541;
    --ai-ink: #e5e7eb;
    --ai-muted: #aab2c5;
    background: #1c1f26;
    color: var(--ai-muted);
}

body[data-color="1E202D"] .lead-ai-wrap .card,
body[data-color="1E202D"] .si-ai-wrap .card,
body[data-color="1E202D"] .est-ai-wrap .card,
body[data-color="1E202D"] .proj-ai-wrap .card,
body[data-color="1E202D"] .lead-ai-wrap .kpi,
body[data-color="1E202D"] .si-ai-wrap .kpi,
body[data-color="1E202D"] .est-ai-wrap .kpi,
body[data-color="1E202D"] .proj-ai-wrap .kpi,
body[data-color="1E202D"] .lead-ai-wrap .highlight,
body[data-color="1E202D"] .si-ai-wrap .highlight,
body[data-color="1E202D"] .est-ai-wrap .highlight,
body[data-color="1E202D"] .proj-ai-wrap .highlight {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: none !important;
}

body[data-color="1E202D"] .lead-ai-wrap .kpi,
body[data-color="1E202D"] .si-ai-wrap .kpi,
body[data-color="1E202D"] .est-ai-wrap .kpi,
body[data-color="1E202D"] .proj-ai-wrap .kpi {
    border-top-color: var(--ai-blue) !important;
    border-left-color: var(--ai-blue) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] .lead-ai-wrap .highlight--warning,
body[data-color="1E202D"] .si-ai-wrap .highlight--warning,
body[data-color="1E202D"] .est-ai-wrap .highlight--warning,
body[data-color="1E202D"] .proj-ai-wrap .highlight--warning {
    border-top-color: var(--ai-amber) !important;
    border-left-color: var(--ai-amber) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] .lead-ai-wrap .highlight,
body[data-color="1E202D"] .si-ai-wrap .highlight,
body[data-color="1E202D"] .est-ai-wrap .highlight,
body[data-color="1E202D"] .proj-ai-wrap .highlight,
body[data-color="1E202D"] .lead-ai-wrap .highlight--success,
body[data-color="1E202D"] .si-ai-wrap .highlight--success,
body[data-color="1E202D"] .est-ai-wrap .highlight--success,
body[data-color="1E202D"] .proj-ai-wrap .highlight--success {
    border-top-color: var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] .lead-ai-wrap .highlight--danger,
body[data-color="1E202D"] .si-ai-wrap .highlight--danger,
body[data-color="1E202D"] .est-ai-wrap .highlight--danger,
body[data-color="1E202D"] .proj-ai-wrap .highlight--danger {
    border-top-color: var(--ai-red) !important;
    border-left-color: var(--ai-red) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(6) .kpi {
    border-top-color: var(--ai-purple) !important;
    border-left-color: var(--ai-purple) !important;
}

body[data-color="1E202D"] .lead-ai-wrap .kpi .kv,
body[data-color="1E202D"] .si-ai-wrap .kpi .kv,
body[data-color="1E202D"] .est-ai-wrap .kpi .kv,
body[data-color="1E202D"] .proj-ai-wrap .kpi .kv,
body[data-color="1E202D"] .lead-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .si-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .est-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .proj-ai-wrap .highlight .hl-name {
    color: #e5e7eb !important;
}

@media (max-width: 1199px) {
    #lead-ai-kpis,
    #si-ai-kpis,
    #est-ai-kpis,
    #proj-ai-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lead-ai-wrap,
    .si-ai-wrap,
    .est-ai-wrap,
    .proj-ai-wrap {
        padding: 12px !important;
    }

    .lead-ai-wrap > .clearfix:first-of-type,
    .si-ai-wrap > .clearfix:first-of-type,
    .est-ai-wrap > .clearfix:first-of-type {
        display: block;
    }

    .lead-ai-wrap > .clearfix:first-of-type .float-end,
    .si-ai-wrap > .clearfix:first-of-type .float-end,
    .est-ai-wrap > .clearfix:first-of-type .float-end {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .lead-ai-wrap > .clearfix:first-of-type .float-end > *,
    .si-ai-wrap > .clearfix:first-of-type .float-end > *,
    .est-ai-wrap > .clearfix:first-of-type .float-end > * {
        justify-content: center;
        width: 100%;
    }

    .lead-ai-wrap .ai-dashboard-main-link,
    .si-ai-wrap .ai-dashboard-main-link,
    .est-ai-wrap .ai-dashboard-main-link {
        justify-content: center;
        width: 100%;
    }

    .lead-ai-wrap > .card .row > [class*="col-"],
    .si-ai-wrap > .card .row > [class*="col-"],
    .est-ai-wrap > .card .row > [class*="col-"],
    .proj-ai-wrap .proj-ai-filter-card .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .lead-ai-wrap .form-control,
    .si-ai-wrap .form-control,
    .est-ai-wrap .form-control,
    .proj-ai-wrap .form-control,
    .lead-ai-wrap .select2-container,
    .si-ai-wrap .select2-container,
    .est-ai-wrap .select2-container,
    .proj-ai-wrap .select2-container {
        width: 100% !important;
    }

    .lead-ai-wrap .text-end,
    .si-ai-wrap .text-end,
    .est-ai-wrap .text-end,
    .proj-ai-filter-footer {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left !important;
    }

    .lead-ai-wrap .period-pill,
    .si-ai-wrap .period-pill,
    .est-ai-wrap .period-pill,
    .lead-ai-wrap .btn,
    .si-ai-wrap .btn,
    .est-ai-wrap .btn {
        justify-content: center;
        width: 100%;
    }

    .lead-ai-wrap h4:before,
    .si-ai-wrap h4:before,
    .est-ai-wrap h4:before,
    .proj-ai-wrap .proj-ai-title:before {
        display: block;
        margin: 0 0 8px;
    }

    #lead-ai-kpis,
    #si-ai-kpis,
    #est-ai-kpis,
    #proj-ai-kpis {
        grid-template-columns: 1fr;
    }
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-row .dashboard-icon-widget .card-body,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-items-grid .dashboard-icon-widget .card-body,
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboard-icon-widget .card-body {
    background: #252932 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-items-status {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-group-title::after {
    background: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile {
    border-top-color: var(--dash-blue) !important;
    border-left-color: var(--dash-blue) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile--warning {
    border-top-color: var(--dash-amber) !important;
    border-left-color: var(--dash-amber) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile--danger {
    border-top-color: var(--dash-red) !important;
    border-left-color: var(--dash-red) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile--success {
    border-top-color: var(--dash-green) !important;
    border-left-color: var(--dash-green) !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile:hover,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile:focus {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile-icon {
    background: #20242c !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile-value,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile-label {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile-subtext,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-tile-arrow {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-items-card,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-list-card,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-content-row .dashboard-main-column .card,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-content-row .dashboard-side-column .card,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-content-row > .col-12 .card,
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboards-row .card,
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboards-row .dashboard-widget-shell > .card {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboards-row .card .card-header,
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboards-row .card-header {
    background: #252932 !important;
    border-bottom-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboards-row .card-body {
    background: #252932 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .custom-widget > .bg-white,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .custom-widget-title,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .dashboard-legacy-widget-unavailable,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container > .card,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page .widget {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern .dropdown-toggle {
    background: #20242c;
    border-color: #2f3541;
    color: #aab2c5;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .dashboards-row .card-header,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .custom-widget-title,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container .page-title {
    background: #252932 !important;
    border-bottom-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-page .dashboard-header-modern h4,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page #widget-row-container .page-title h4 {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page #widget-row-area,
body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page .widget-row {
    background: #20242c !important;
}

body[data-color="1E202D"] .staff-dashboard-page.legacy-dashboard-edit-page .widget-row {
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-row .widget-details h1,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-row .widget-details h2,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-items-grid .widget-details h1,
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-details h1,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-tasks-header-title,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-group-title {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-row .widget-details > span:not(.kpi-subtext):not(.kpi-trend),
body[data-color="1E202D"] .staff-dashboard-page .dashboard-action-items-grid .widget-details > span:not(.kpi-subtext),
body[data-color="1E202D"] .staff-dashboard-page.dashboard-view .dashboard-icon-widget .widget-details span,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-empty-state {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats > .card,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: var(--dash-card-shadow) !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats hr {
    border-top-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats > .card > .card-body > p,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats > .card > .card-body > p strong,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-details h1 {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-details span,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .col-md-6 > p.text-center {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .white-link:hover .dashboard-icon-widget {
    background: #20242c !important;
    border-color: #3a4150 !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-primary,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-info {
    background: rgba(91, 115, 232, 0.16) !important;
    color: #8ea2ff !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-success {
    background: rgba(15, 159, 110, 0.16) !important;
    color: #57d6a5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-warning,
body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-coral {
    background: rgba(201, 130, 18, 0.16) !important;
    color: #f0b75b !important;
}

body[data-color="1E202D"] .staff-dashboard-page #widget-datacore_saas_top_stats .dashboard-icon-widget .widget-icon.bg-danger {
    background: rgba(232, 93, 63, 0.16) !important;
    color: #ff9885 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-content-row .dashboard-widget-shell > .card > .card-header,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-chart-widget .card-header,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-card-header {
    background: #252932 !important;
    border-bottom-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-list-card table.dataTable tbody tr:hover,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-tasks-section table.dataTable tbody tr:hover {
    background-color: #20242c !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-list-card table.dataTable tbody tr,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-tasks-section table.dataTable tbody tr {
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-my-tasks-card.is-empty table.dataTable td.dataTables_empty {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-period-select,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-tasks-search {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-tasks-search::placeholder {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-task-filter-chip {
    background: #252932 !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-task-filter-chip.active {
    background: #5b73e8 !important;
    border-color: #5b73e8 !important;
    color: #fff !important;
}

body[data-color="1E202D"] .staff-dashboard-page .dashboard-skeleton,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-skeleton-line,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-skeleton-tile,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-skeleton-chart,
body[data-color="1E202D"] .staff-dashboard-page .dashboard-kpi-skeleton .dashboard-icon-widget::after,
body[data-color="1E202D"] .staff-dashboard-page #dashboard-action-items-root.dashboard-action-skeleton .dashboard-action-items-card::after {
    background: linear-gradient(90deg, #252932 25%, #303642 50%, #252932 75%) !important;
    background-size: 200% 100% !important;
}

/* AI module dashboards — match the native dark palette */
body[data-color="1E202D"] .lead-ai-wrap,
body[data-color="1E202D"] .si-ai-wrap,
body[data-color="1E202D"] .est-ai-wrap,
body[data-color="1E202D"] .proj-ai-wrap {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .lead-ai-wrap .card,
body[data-color="1E202D"] .si-ai-wrap .card,
body[data-color="1E202D"] .est-ai-wrap .card,
body[data-color="1E202D"] .proj-ai-wrap .card,
body[data-color="1E202D"] .lead-ai-wrap .highlight,
body[data-color="1E202D"] .si-ai-wrap .highlight,
body[data-color="1E202D"] .est-ai-wrap .highlight,
body[data-color="1E202D"] .proj-ai-wrap .highlight,
body[data-color="1E202D"] .lead-ai-wrap .ai-block,
body[data-color="1E202D"] .si-ai-wrap .ai-block,
body[data-color="1E202D"] .est-ai-wrap .ai-block,
body[data-color="1E202D"] .proj-ai-wrap .ai-block,
body[data-color="1E202D"] .proj-ai-wrap .flex-fill {
    background: #252932 !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .lead-ai-wrap h4,
body[data-color="1E202D"] .si-ai-wrap h4,
body[data-color="1E202D"] .est-ai-wrap h4,
body[data-color="1E202D"] .proj-ai-wrap h4,
body[data-color="1E202D"] .lead-ai-wrap .section-title,
body[data-color="1E202D"] .si-ai-wrap .section-title,
body[data-color="1E202D"] .est-ai-wrap .section-title,
body[data-color="1E202D"] .proj-ai-wrap .section-title,
body[data-color="1E202D"] .lead-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .si-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .est-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .proj-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .lead-ai-wrap .ai-block h6,
body[data-color="1E202D"] .si-ai-wrap .ai-block h6,
body[data-color="1E202D"] .est-ai-wrap .ai-block h6,
body[data-color="1E202D"] .proj-ai-wrap .ai-block h6,
body[data-color="1E202D"] .proj-ai-wrap .flex-fill > div:first-child {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .lead-ai-wrap .text-off,
body[data-color="1E202D"] .si-ai-wrap .text-off,
body[data-color="1E202D"] .est-ai-wrap .text-off,
body[data-color="1E202D"] .proj-ai-wrap .text-off,
body[data-color="1E202D"] .lead-ai-wrap .filter-label,
body[data-color="1E202D"] .si-ai-wrap .filter-label,
body[data-color="1E202D"] .est-ai-wrap .filter-label,
body[data-color="1E202D"] .proj-ai-wrap .filter-label,
body[data-color="1E202D"] .proj-ai-wrap .flex-fill > div:last-child {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .lead-ai-wrap .form-control,
body[data-color="1E202D"] .si-ai-wrap .form-control,
body[data-color="1E202D"] .est-ai-wrap .form-control,
body[data-color="1E202D"] .proj-ai-wrap .form-control,
body[data-color="1E202D"] .lead-ai-wrap .select2-container .select2-choice,
body[data-color="1E202D"] .si-ai-wrap .select2-container .select2-choice,
body[data-color="1E202D"] .est-ai-wrap .select2-container .select2-choice,
body[data-color="1E202D"] .proj-ai-wrap .select2-container .select2-choice,
body[data-color="1E202D"] .lead-ai-wrap .select2-container .select2-selection,
body[data-color="1E202D"] .si-ai-wrap .select2-container .select2-selection,
body[data-color="1E202D"] .est-ai-wrap .select2-container .select2-selection,
body[data-color="1E202D"] .proj-ai-wrap .select2-container .select2-selection {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .lead-ai-wrap .period-pill,
body[data-color="1E202D"] .si-ai-wrap .period-pill,
body[data-color="1E202D"] .est-ai-wrap .period-pill,
body[data-color="1E202D"] .proj-ai-wrap .period-pill,
body[data-color="1E202D"] .lead-ai-wrap .badge-soft,
body[data-color="1E202D"] .si-ai-wrap .badge-soft,
body[data-color="1E202D"] .est-ai-wrap .badge-soft,
body[data-color="1E202D"] .proj-ai-wrap .badge-soft {
    background: rgba(91, 115, 232, 0.18) !important;
    border: 1px solid rgba(91, 115, 232, 0.35) !important;
    color: #c7d2fe !important;
}

body[data-color="1E202D"] .lead-ai-wrap .dist-row,
body[data-color="1E202D"] .si-ai-wrap .dist-row,
body[data-color="1E202D"] .est-ai-wrap .dist-row,
body[data-color="1E202D"] .proj-ai-wrap .dist-row,
body[data-color="1E202D"] .lead-ai-wrap .comment-item,
body[data-color="1E202D"] .si-ai-wrap .comment-item,
body[data-color="1E202D"] .est-ai-wrap .comment-item,
body[data-color="1E202D"] .proj-ai-wrap .comment-item {
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .lead-ai-wrap .mini-bar,
body[data-color="1E202D"] .si-ai-wrap .mini-bar,
body[data-color="1E202D"] .est-ai-wrap .mini-bar,
body[data-color="1E202D"] .proj-ai-wrap .mini-bar {
    background: #20242c !important;
}

body[data-color="1E202D"] .lead-ai-wrap table th,
body[data-color="1E202D"] .si-ai-wrap table th,
body[data-color="1E202D"] .est-ai-wrap table th,
body[data-color="1E202D"] .proj-ai-wrap table th,
body[data-color="1E202D"] .lead-ai-wrap table td,
body[data-color="1E202D"] .si-ai-wrap table td,
body[data-color="1E202D"] .est-ai-wrap table td,
body[data-color="1E202D"] .proj-ai-wrap table td {
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .lead-ai-wrap table tbody tr:hover,
body[data-color="1E202D"] .si-ai-wrap table tbody tr:hover,
body[data-color="1E202D"] .est-ai-wrap table tbody tr:hover,
body[data-color="1E202D"] .proj-ai-wrap table tbody tr:hover {
    background: #20242c !important;
}

/* Global search modal in dark theme */
body[data-color="1E202D"] .global-search-modal .modal-content {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .global-search-modal .modal-header,
body[data-color="1E202D"] .global-search-modal .modal-body {
    background: #252932 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] .global-search-modal .form-control {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .global-search-modal .select2-container.form-control.search-field-select {
    background: transparent !important;
    border: 0 !important;
}

body[data-color="1E202D"] .global-search-modal .select2-container .select2-choice {
    background: #20242c !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .global-search-modal .select2-container .select2-choice .select2-chosen {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .global-search-modal .select2-container .select2-choice .select2-arrow b {
    border-color: #a5adbd transparent transparent;
}

body[data-color="1E202D"] .global-search-modal .select2-dropdown-open .select2-choice .select2-arrow b {
    border-color: transparent transparent #e5e7eb;
}

body[data-color="1E202D"] .global-search-modal .select2-container-active .select2-choice,
body[data-color="1E202D"] .global-search-modal .select2-dropdown-open .select2-choice {
    border-color: #4f5f76 !important;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.14) !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-title {
    color: #f4f6fb !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-subtitle,
body[data-color="1E202D"] .global-search-modal .search-modal-hint {
    color: #a5adbd !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-hint.is-loading {
    color: #93c5fd !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-hint.is-ready {
    color: #86efac !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-hint.is-empty {
    color: #facc15 !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-hint.is-error {
    color: #fca5a5 !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-close,
body[data-color="1E202D"] .global-search-modal .search-input-clear {
    background: #20242c !important;
    border-color: #2f3541 !important;
    color: #a5adbd !important;
}

body[data-color="1E202D"] .global-search-modal .search-modal-close:hover,
body[data-color="1E202D"] .global-search-modal .search-modal-close:focus,
body[data-color="1E202D"] .global-search-modal .search-input-clear:hover,
body[data-color="1E202D"] .global-search-modal .search-input-clear:focus {
    background: #303444 !important;
    color: #f4f6fb !important;
}

body[data-color="1E202D"] .global-search-modal .awesomplete ul {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .global-search-modal .awesomplete ul li {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .global-search-modal .awesomplete ul li[aria-selected="true"],
body[data-color="1E202D"] .global-search-modal .awesomplete ul li:hover {
    background: #20242c !important;
    color: #e5e7eb !important;
}

/* ══════════════════════════════════════════════════════════════════
   FRESH TABLE ROWS  –  modern 2024 style
   ══════════════════════════════════════════════════════════════════ */

/* Smooth row hover transition */
.dataTable:not(.js-selection-mode) tbody tr {
    transition: background-color 0.13s ease;
}

/* Warmer, more visible hover — subtle indigo tint instead of flat gray */
.dataTable:not(.js-selection-mode) tbody tr:hover td {
    background: #f0f5ff !important;
}

/* Keep selected row unaffected by the new hover */
.dataTable:not(.js-selection-mode) tbody tr.active td,
.dataTable:not(.js-selection-mode) tbody tr.active:hover td {
    background: #6690F4 !important;
    color: #fff !important;
}

/* Slightly more breathing room in cells — 13px body text is the
   modern SaaS sweet-spot (Stripe, Linear, Notion use 13px for lists).
   14px felt heavy against the 9-10px headers and badges. */
table.dataTable tbody th,
table.dataTable tbody td {
    font-size: 13px !important;
    padding: 9px 13px !important;
    vertical-align: middle;
    line-height: 1.45;
}

/* Hairline row separator — clean and unobtrusive */
.dataTable:not(.js-selection-mode) tbody tr {
    border-bottom: 1px solid #f1f3f6 !important;
}


/* ══════════════════════════════════════════════════════════════════
   FRESH BUTTONS  –  modern 2024 style
   Shape / weight / interaction only — colours stay theme-adaptive
   ══════════════════════════════════════════════════════════════════ */

.btn {
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 7px !important;
    letter-spacing: .018em;
    transition: background-color .15s ease,
                border-color .15s ease,
                color .15s ease,
                box-shadow .15s ease,
                transform .1s ease !important;
}

/* Default-size button padding */
.btn:not(.btn-sm):not(.btn-xs):not(.btn-lg) {
    padding: 6px 15px !important;
}

/* Small button */
.btn.btn-sm {
    padding: 4px 11px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
}

/* Extra-small button */
.btn.btn-xs {
    padding: 2px 8px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
}

/* Large button */
.btn.btn-lg {
    border-radius: 9px !important;
    font-size: 14px !important;
}

/* Lift-on-hover — gives a tactile "raised" feel */
.btn:not(:disabled):not(.disabled):not(.no-lift):hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .13) !important;
}

/* Press-down feedback */
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important;
}

/* Clean focus ring (accessible, theme-neutral) */
.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .22) !important;
}

/* Pill-style modifier — use class="btn … btn-pill" for round-ends */
.btn.btn-pill {
    border-radius: 50px !important;
}

/* Outline buttons — keep same shape improvements */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    border-radius: 7px !important;
    font-weight: 500 !important;
}

/* Icon-only square buttons — override pill transform to avoid layout shift */
.btn.btn-icon {
    padding: 5px 7px !important;
    line-height: 1;
    transform: none !important;
}
.btn.btn-icon:hover {
    transform: none !important;
}

#todo-inline-form .todo-input-box .input-group {
    align-items: stretch;
}

#todo-inline-form .todo-input-box .form-control,
#todo-inline-form .todo-input-box .btn {
    height: 42px;
    min-height: 42px;
}

#todo-inline-form .todo-input-box .form-control {
    padding-top: 0;
    padding-bottom: 0;
}

#todo-inline-form .todo-input-box .input-group-btn {
    display: flex;
}

#todo-inline-form .todo-input-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
}


/* ══════════════════════════════════════════════════════════════════
   INTER TYPOGRAPHY REFINEMENTS  –  2024
   Inter is already the base font; these settings unlock its full
   quality across every UI area.
   ══════════════════════════════════════════════════════════════════ */

/* Enable Inter's OpenType features globally: kern, ligatures,
   contextual alternates — makes the font noticeably crisper */
html,
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI Variable", "Segoe UI", system-ui,
                 sans-serif !important;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ──────────────────────────────────────────────── */
/* app.all.css sets font-weight: normal (400) for h1-h4, making them
   visually indistinct from body text. 600 restores proper hierarchy. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.02em; }

/* ── Sidebar menu text ─────────────────────────────────────── */
/* Main items: medium weight with compact tracking */
.sidebar-menu li > a .menu-text {
    font-weight: 500;
    font-size: 13.25px;
    line-height: 1.35;
    letter-spacing: -0.004em;
}

/* Sub-items: regular weight, slightly smaller */
.sidebar-menu li ul li a span {
    font-weight: 400;
    font-size: 12.75px;
    line-height: 1.4;
    letter-spacing: 0;
}

.sidebar-menu li.active > a .menu-text,
.sidebar-menu li.expand.open > a .menu-text,
.sidebar-menu li ul li.active > a span {
    font-weight: 600;
}

.sidebar-menu-search-input {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.003em;
}

/* ── Table data ────────────────────────────────────────────── */
/* Tabular (monospace-width) figures keep numeric columns aligned */
table.dataTable tbody td {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ── Form labels ───────────────────────────────────────────── */
label:not(.form-check-label):not(.custom-control-label):not(.toggle) {
    font-weight: 500 !important;
    font-size: 0.82rem;
    letter-spacing: 0.005em;
}

/* ── Dropdown items ────────────────────────────────────────── */
.dropdown-item {
    font-size: 0.83rem !important;
    font-weight: 400;
    letter-spacing: 0.003em;
}

/* ── Page-title heading ────────────────────────────────────── */
.page-title h1 {
    font-weight: 700 !important;
    letter-spacing: -0.025em;
}

/* ── Card / section headings ───────────────────────────────── */
.card-title,
.section-heading,
.widget-heading,
.title-text {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ── Status/label badges ───────────────────────────────────── */
/* Slightly bolder text + a hint of tracking makes badge labels
   more legible at small sizes on coloured backgrounds */
.badge,
span.badge {
    font-weight: 500 !important;
    font-family: "Inter", sans-serif !important;
    letter-spacing: 0.02em;
    font-feature-settings: "kern" 1, "tnum" 1;
}

/* ── Unified badge size across ALL table views ─────────────────
   badge.large (used by Estimates, Invoices, Contracts, Payroll,
   Projects, Sub-contract, and most general_helper helpers) inflates
   to font-size:1em; padding:5px 10px — making those pills ~2× the
   size of Leads badges which don't carry the .large modifier.
   Overriding both variants inside DataTable and table contexts
   normalises every table in the system at once, no PHP changes needed.
   ─────────────────────────────────────────────────────────────── */
.dataTable .badge,
.dataTable .badge.large,
table.dataTable .badge,
table.dataTable .badge.large {
    font-size: 0.71rem !important;    /* matches Leads badge size (~10px at 14px base) */
    padding: 3px 9px !important;
    line-height: 1.45 !important;
    border-radius: 5px !important;
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Pill (fully-rounded) variant — revision numbers, BOM labels, etc. */
.dataTable .badge.rounded-pill,
table.dataTable .badge.rounded-pill {
    border-radius: 20px !important;
    padding: 3px 10px !important;
}

/* Stacked multi-badge cells (e.g. Accepted + JOB ref below it) */
.dataTable td .badge + .badge {
    margin-top: 3px !important;
    display: block;
    width: fit-content;
}


/* ══════════════════════════════════════════════════════════════════
   COMPACT ACTION ROW  –  replaces stacked icon columns in tables
   Wrap action links in <div class="dt-row-actions"> to get a clean
   horizontal icon strip instead of a tall vertical stack.
   ══════════════════════════════════════════════════════════════════ */
.dt-row-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;          /* gracefully wraps on very narrow screens */
}

.dt-row-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 3px;
    transition: background .13s ease, border-color .13s ease, color .13s ease;
    flex-shrink: 0;
}

.dt-row-actions a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155 !important;
    text-decoration: none;
}

/* Destructive action – red tint on hover */
.dt-row-actions a.delete:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #ef4444 !important;
}

/* WhatsApp / success-tinted action */
.dt-row-actions a.text-success {
    color: #10b981 !important;
}
.dt-row-actions a.text-success:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #059669 !important;
}

/* Keep feather SVGs at a consistent 14px inside action buttons */
.dt-row-actions a svg,
.dt-row-actions a .icon-16 {
    width: 14px !important;
    height: 14px !important;
}


/* ══════════════════════════════════════════════════════════════════
   DATATABLE TOOLBAR  –  filter / search / pagination  (2024 refresh)
   All controls use --dt-th-accent so they stay theme-adaptive.
   ══════════════════════════════════════════════════════════════════ */

/* ── Search input ────────────────────────────────────────────── */
.dt-search input,
div.dataTables_filter input,
.datatable-search,
.custom-filter-search {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background-color: #fff !important;
    /* inline SVG magnifying-glass — no external image dependency */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 10px 50% !important;
    padding: 6px 12px 6px 32px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    color: #374151 !important;
    width: auto !important;
    min-width: 210px !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

.dt-search input::placeholder,
div.dataTables_filter input::placeholder,
.datatable-search::placeholder,
.custom-filter-search::placeholder {
    color: #94a3b8 !important;
    font-size: 0.78rem;
}

.dt-search input:focus,
div.dataTables_filter input:focus,
.datatable-search:focus,
.custom-filter-search:focus {
    border-color: var(--dt-th-accent, #6366f1) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #6366f1) 18%, transparent) !important;
    outline: none !important;
    color: #111827 !important;
}

/* ── Label text around search / length inputs ───────────────── */
.dt-search label,
.dt-length label,
div.dataTables_filter label,
div.dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin: 0 !important;
    white-space: nowrap;
}

/* ── "Show N entries" select ────────────────────────────────── */
.dt-length select,
div.dataTables_length select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 26px 4px 10px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    background-color: #fff !important;
    color: #374151 !important;
    cursor: pointer !important;
    /* inline chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    transition: border-color .15s ease !important;
}

.dt-length select:focus,
div.dataTables_length select:focus {
    border-color: var(--dt-th-accent, #6366f1) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #6366f1) 18%, transparent) !important;
    outline: none !important;
}

/* ── Info text ("Showing 1 to 10 of 50 entries") ────────────── */
.dt-info,
div.dataTables_info {
    font-size: 0.76rem !important;
    color: #6b7280 !important;
    padding-top: 6px !important;
    font-weight: 400 !important;
}

/* ── Pagination ─────────────────────────────────────────────── */
.dt-container .dt-paging .dt-paging-button {
    background: transparent !important;
    border-radius: 7px !important;
}

.dt-container .dt-paging .dt-paging-button .page-link {
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    color: #475569 !important;
    padding: 5px 11px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
    margin: 0 1px !important;
    background: transparent !important;
    min-width: 32px;
    text-align: center;
    transition: all .13s ease !important;
}

.dt-container .dt-paging .dt-paging-button .page-link:hover {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
    text-decoration: none;
}

/* Active page — filled with theme accent colour */
.dt-container .dt-paging .dt-paging-button.active .page-link {
    background: var(--dt-th-accent, #6366f1) !important;
    border-color: var(--dt-th-accent, #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--dt-th-accent, #6366f1) 35%, transparent) !important;
    cursor: default !important;
}

/* Disabled prev/next */
.dt-container .dt-paging .dt-paging-button.disabled .page-link {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    pointer-events: none;
}

/* Focus ring on page links */
.dt-container .dt-paging .dt-paging-button .page-link:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #6366f1) 18%, transparent) !important;
    outline: none !important;
}


/* ══════════════════════════════════════════════════════════════════
   MODERN NAV TABS  –  2024 refresh
   All accent colours use --dt-th-accent so they follow the active
   theme. The colour/*.css files override with !important for
   themed colours and take priority as expected.
   ══════════════════════════════════════════════════════════════════ */

/* Strip the dated outer box – only a bottom divider line remains */
.nav-tabs {
    background: #fff !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1.5px solid #f0f2f6 !important;
    border-radius: 0 !important;
}

.card .nav-tabs {
    border: none !important;
    border-bottom: 1.5px solid #f0f2f6 !important;
}

/* Compact, clean tab link base state */
.nav-tabs li a {
    padding: 12px 15px 13px !important;
    color: #6b7280 !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    letter-spacing: .01em;
    transition: color 0.15s ease !important;
}

/* .title variant also uses the compact padding */
.nav-tabs.title li a {
    padding: 12px 15px 13px !important;
}

/* Hover – fade to theme accent */
.nav-tabs li a:not(.active):hover {
    background: transparent !important;
    color: var(--dt-th-accent, #6366f1) !important;
    border-color: transparent !important;
}

/* Active tab text – CSS variable (color CSS !important wins on themed installs) */
.nav-tabs li a.active {
    color: var(--dt-th-accent, #6366f1);
    font-weight: 600 !important;
    background-color: transparent !important;
}

/* Underline indicator – thicker, rounded top, theme-coloured */
.nav-tabs li:not(.title-tab) a::after {
    background-color: var(--dt-th-accent, #6366f1);
    height: 2.5px !important;
    border-radius: 2px 2px 0 0 !important;
    transition: transform 0.22s ease !important;
}

/* Active indicator width/position */
.nav-tabs li a.active::after {
    background-color: var(--dt-th-accent, #6366f1);
    width: calc(100% - 24px) !important;
    left: 12px !important;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE-TITLE  &  TITLE-BUTTON-GROUP  –  2024 refresh
   ══════════════════════════════════════════════════════════════════ */

/* Tighter button margin inside the title bar */
.page-title .btn {
    margin: 10px 4px !important;
}

/* Keep feather icons inside title-bar buttons proportional to the 12px text */
.page-title .btn svg,
.page-title .btn .icon-16,
.title-button-group .btn svg,
.title-button-group .btn .icon-16 {
    width: 14px !important;
    height: 14px !important;
    vertical-align: -2px;
}

/* Default / outline buttons in the header – clean white with
   an accent-tinted border+text on hover */
.page-title .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info),
.title-button-group .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info) {
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
}

.page-title .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):hover,
.title-button-group .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):hover {
    border-color: var(--dt-th-accent, #6366f1) !important;
    color: var(--dt-th-accent, #6366f1) !important;
    background: color-mix(in srgb, var(--dt-th-accent, #6366f1) 5%, #fff) !important;
}

/* Invoice list action buttons */
.invoice-list-card .invoice-actions-col {
    padding-right: 32px;
}

.invoice-list-card .invoice-action-toolbar {
    float: none !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 14px;
    width: 100%;
    margin: 14px 0 12px !important;
}

.invoice-list-card .invoice-action-toolbar .btn {
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .invoice-list-card .invoice-actions-col {
        padding: 0 20px 12px;
    }

    .invoice-list-card .invoice-action-toolbar {
        width: 100% !important;
        justify-content: flex-end;
    }

    .invoice-list-card .invoice-action-toolbar .btn {
        max-width: 100%;
        white-space: normal;
    }
}

/* ── Event calendar title bar ───────────────────────────────── */
.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button {
    float: right;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 15px !important;
    padding: 0 !important;
}

.events-calendar-card .page-title.events-page-title h1,
.events-calendar-card .page-title.events-page-title h4 {
    float: left;
}

.events-calendar-card .events-title-button .float-start {
    float: none !important;
}

.events-calendar-card .events-title-button #event-filter-area {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.events-calendar-card .events-title-button #event-filter-area.hide {
    display: none !important;
}

.events-calendar-card .events-title-button #calendar-filter-dropdown,
.events-calendar-card .events-title-button .DTTT_container {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .btn,
.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .select2-container,
.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .filter-multi-select,
.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .DTTT_container {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    vertical-align: middle;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .btn:not(.hide) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px !important;
    line-height: 1;
    box-sizing: border-box;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .select2-container {
    margin-right: 0 !important;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .select2-container .select2-choice {
    height: 34px !important;
    line-height: 1 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .select2-container .select2-choice .select2-chosen {
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 100%;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .filter-multi-select .dropdown-toggle,
.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .DTTT_container .btn {
    height: 34px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    padding: 0 12px !important;
    line-height: 1;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-sizing: border-box;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button .filter-multi-select .caret:after {
    margin-top: 0 !important;
}

.events-calendar-card .page-title.events-page-title .title-button-group.events-title-button a.hide {
    display: none !important;
}

@media (max-width: 767px) {
    .events-calendar-card .page-title.events-page-title .title-button-group.events-title-button {
        width: 100%;
        margin: 0 15px !important;
        justify-content: flex-end;
    }

    .events-calendar-card.full-width-button .title-button-group.events-title-button {
        padding: 0 !important;
    }
}


/* ══════════════════════════════════════════════════════════════════
   FULLCALENDAR  –  modern 2024 refresh
   All accents read --dt-th-accent so they stay theme-adaptive.
   ══════════════════════════════════════════════════════════════════ */

/* ── Toolbar navigation / view-switch buttons ───────────────── */
.fc-button,
.fc-button-primary {
    border-radius: 7px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    padding: 5px 13px !important;
    height: auto !important;
    letter-spacing: .015em;
    box-shadow: none !important;
    transition: background .14s ease, border-color .14s ease,
                color .14s ease, box-shadow .14s ease, transform .1s ease !important;
}

.fc-button:hover,
.fc-button-primary:hover:not(:disabled) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10) !important;
}

.fc-button:active,
.fc-button-primary:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.fc-button:focus,
.fc-button-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #6366f1) 18%, transparent) !important;
}

/* Active view button (Month / Week / Day / List) */
.fc-button-primary:not(:disabled).fc-button-active {
    background: var(--dt-th-accent, #6366f1) !important;
    border-color: var(--dt-th-accent, #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--dt-th-accent, #6366f1) 35%, transparent) !important;
    transform: none !important;
}

/* Collapse double-borders inside button groups */
.fc-direction-ltr .fc-button-group > .fc-button:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.fc-direction-ltr .fc-button-group > .fc-button:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px !important;
}

/* ── Toolbar / title typography ─────────────────────────────── */
.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 18px !important;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

#event-calendar .fc-toolbar.fc-header-toolbar {
    justify-content: space-between;
    margin-bottom: 14px !important;
    padding: 0;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:empty {
    display: none !important;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk {
    display: flex;
    align-items: center;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:first-child {
    flex: 1 1 0;
    gap: 8px;
    justify-content: flex-start;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    flex: 0 0 auto;
    justify-content: center;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:last-child {
    flex: 1 1 0;
    gap: 0;
    justify-content: flex-end;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-button-group,
#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk .fc-today-button {
    margin: 0 !important;
    float: none !important;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-button {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    box-sizing: border-box;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-button-group > .fc-button {
    height: 34px !important;
}

#event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-title {
    margin: 0 !important;
    padding: 0;
    line-height: 34px;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: -.01em;
    white-space: nowrap;
    text-align: center;
}

#event-calendar .fc-toolbar.fc-header-toolbar {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    #event-calendar .fc-toolbar.fc-header-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    #event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:first-child {
        order: 1;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    #event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
    }

    #event-calendar .fc-toolbar.fc-header-toolbar .fc-toolbar-chunk:last-child {
        order: 2;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    #event-calendar .fc-header-toolbar .fc-button-group,
    #event-calendar .fc-header-toolbar .fc-today-button {
        float: none !important;
    }

    #event-calendar .fc-header-toolbar .fc-button-group:last-child {
        margin-top: 0 !important;
    }
}

.fc-toolbar-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: -.01em;
}

/* ── Day column headers (Mon, Tue …) ─────────────────────────── */
.fc-col-header-cell-cushion {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #64748b !important;
    padding: 10px 4px !important;
    text-decoration: none !important;
}

/* ── Day number in each grid cell ───────────────────────────── */
.fc-daygrid-day-number {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 6px 8px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

/* ── Month cells: dashboard-widget inspired top edge ─────────── */
#event-calendar {
    --calendar-cell-border: #e2e8f0;
    --calendar-cell-top: #dfe7f1;
    --calendar-cell-soft: #fbfdff;
    --calendar-cell-muted: #f8fafc;
    --calendar-cell-weekend: #fbfcfe;
    --calendar-cell-hover: color-mix(in srgb, var(--dt-th-accent, #6366f1) 7%, #fff);
}

#event-calendar.fc-theme-standard td,
#event-calendar.fc-theme-standard th,
#event-calendar .fc-theme-standard td,
#event-calendar .fc-theme-standard th {
    border-color: var(--calendar-cell-border) !important;
}

#event-calendar .fc-daygrid-day {
    background: var(--calendar-cell-soft);
}

#event-calendar .fc-daygrid-day-frame {
    position: relative;
    min-height: 100%;
    background: linear-gradient(180deg, #fff 0%, var(--calendar-cell-soft) 100%);
    transition: background .16s ease, box-shadow .16s ease;
}

#event-calendar .fc-daygrid-day-frame::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--calendar-cell-top);
    opacity: .95;
    pointer-events: none;
}

#event-calendar .fc-daygrid-day:not(.fc-day-other):hover .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fff 0%, var(--calendar-cell-hover) 100%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt-th-accent, #6366f1) 18%, transparent);
}

#event-calendar .fc-daygrid-day:not(.fc-day-other):hover .fc-daygrid-day-frame::before {
    background: var(--dt-th-accent, #6366f1);
}

#event-calendar .fc-day-sat .fc-daygrid-day-frame,
#event-calendar .fc-day-sun .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #fff 0%, var(--calendar-cell-weekend) 100%);
}

#event-calendar .fc-day-other .fc-daygrid-day-frame {
    background: var(--calendar-cell-muted);
}

#event-calendar .fc-day-other .fc-daygrid-day-frame::before {
    background: #edf2f7;
}

#event-calendar .fc-day-other .fc-daygrid-day-number {
    color: #c0c7d2 !important;
}

/* Prevent row/cell flash on day click (text selection + anchor focus) */
#event-calendar,
#event-calendar * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

#event-calendar .fc-daygrid-day-number,
#event-calendar .fc-col-header-cell-cushion {
    pointer-events: none;
}

#event-calendar ::-moz-selection,
#event-calendar ::selection {
    background: transparent !important;
    color: inherit !important;
}

#event-calendar .fc-highlight {
    display: none !important;
}

/* Block calendar interaction/selection while event modal is open */
body.event-calendar-modal-open {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

body.event-calendar-modal-open #ajaxModal .modal-content,
body.event-calendar-modal-open #ajaxModal .modal-content * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

body.event-calendar-modal-open ::selection {
    background: transparent !important;
}

body.event-calendar-modal-open #ajaxModal .modal-content ::selection {
    background: #b3d4fc !important;
}

body.event-calendar-modal-open #event-calendar {
    pointer-events: none !important;
}

body.event-calendar-modal-open #ajaxModal {
    pointer-events: auto !important;
}

body.event-calendar-modal-open #ajaxModal .modal-dialog {
    pointer-events: auto !important;
}

/* ── Today cell – visible tint + circled day number ─────────── */
#event-calendar .fc-day-today {
    background: color-mix(in srgb, var(--dt-th-accent, #6366f1) 10%, #fff) !important;
}

#event-calendar .fc-day-today .fc-daygrid-day-frame {
    background: linear-gradient(180deg,
                color-mix(in srgb, var(--dt-th-accent, #6366f1) 7%, #fff) 0%,
                color-mix(in srgb, var(--dt-th-accent, #6366f1) 13%, #fff) 100%) !important;
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--dt-th-accent, #6366f1) 42%, #dbe4f0),
        inset 0 3px 0 var(--dt-th-accent, #6366f1) !important;
}

#event-calendar .fc-day-today .fc-daygrid-day-frame::before {
    background: var(--dt-th-accent, #6366f1);
    height: 4px;
}

#event-calendar .fc-day-today .fc-daygrid-day-number {
    background: var(--dt-th-accent, #6366f1) !important;
    color: #fff !important;
    border-radius: 50% !important;
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 4px 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

#event-calendar .fc-timegrid-col.fc-day-today {
    background: color-mix(in srgb, var(--dt-th-accent, #6366f1) 10%, #fff) !important;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dt-th-accent, #6366f1) 42%, #dbe4f0) !important;
}

/* ── Event items ─────────────────────────────────────────────── */
.fc-event {
    border-radius: 5px !important;
    border-left-width: 3px !important;
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-bottom-width: 0 !important;
    cursor: pointer !important;
}

.fc-event-title {
    font-size: 0.73rem !important;
    font-weight: 500 !important;
    padding: 2px 4px !important;
}

.fc-event-time {
    font-size: 0.68rem !important;
    opacity: .85;
    padding: 2px 4px !important;
}

.fc-daygrid-dot-event {
    padding: 1px 4px !important;
}

/* ── Grid borders ────────────────────────────────────────────── */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #f0f2f6 !important;
}

.fc .fc-scrollgrid {
    border-color: #e2e8f0 !important;
    border-radius: 10px;
    overflow: hidden;
}

/* ── "More events" popover ───────────────────────────────────── */
.fc-popover {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
    overflow: hidden;
}

.fc-popover-header {
    background: #f8fafc !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ── List view ───────────────────────────────────────────────── */
.fc-theme-standard .fc-list {
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.fc-list-event:hover td {
    background: #f0f5ff !important;
}

.fc-list-day-cushion {
    background: #f8fafc !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: #475569 !important;
    padding: 8px 14px !important;
}

.fc-list-day-side-text {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
}

.fc-theme-standard .fc-list-empty {
    background-color: #f8fafc !important;
    font-size: 0.83rem !important;
    color: #6b7280 !important;
}

/* ── Time-grid view (Week / Day) ─────────────────────────────── */
.fc-timegrid-slot {
    height: 28px !important;
}

.fc-timegrid-slot-label-cushion {
    font-size: 0.68rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* ── Icon sizing fix ─────────────────────────────────────────── */
.fc-icon {
    font-size: 1.5rem !important;
    line-height: 0.7 !important;
    height: 17px !important;
}

/* ══════════════════════════════════════════════════════════════════
   ACTION BUTTON SYSTEM
   Modal submit/save, close/cancel, title add buttons, and table row
   actions share the same compact product vocabulary.
   ══════════════════════════════════════════════════════════════════ */
.modal-footer .btn,
.page-title .btn,
.title-button-group .btn,
.dt-container .btn,
.DTTT_container .btn,
.dataTables_wrapper .btn {
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    min-height: 32px;
    padding: 6px 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.modal-footer .btn svg,
.page-title .btn svg,
.title-button-group .btn svg,
.dt-container .btn svg,
.DTTT_container .btn svg,
.dataTables_wrapper .btn svg,
.modal-footer .btn .icon-16,
.page-title .btn .icon-16,
.title-button-group .btn .icon-16,
.dt-container .btn .icon-16,
.DTTT_container .btn .icon-16,
.dataTables_wrapper .btn .icon-16 {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px;
    margin-right: 0 !important;
}

.modal-footer button[type="submit"]:not(.btn-primary),
.modal-footer input[type="submit"].btn:not(.btn-primary) {
    background-color: var(--dc-primary-bg, #6690f4) !important;
    border-color: var(--dc-primary-border, #6690f4) !important;
    color: var(--dc-primary-text, #fff) !important;
}

.modal-footer button[type="submit"]:not(.btn-primary):hover,
.modal-footer button[type="submit"]:not(.btn-primary):focus,
.modal-footer input[type="submit"].btn:not(.btn-primary):hover,
.modal-footer input[type="submit"].btn:not(.btn-primary):focus {
    background-color: var(--dc-primary-hover-bg, #4076f2) !important;
    border-color: var(--dc-primary-hover-border, #4076f2) !important;
    color: var(--dc-primary-text, #fff) !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--dc-primary-bg, #6690f4) 26%, transparent) !important;
    transform: translateY(-1px);
}

.modal-footer .btn-default,
.modal-footer .btn-secondary,
.modal-footer [data-bs-dismiss="modal"],
.modal-footer .close-modal,
.page-title .btn-default,
.title-button-group .btn-default,
.dt-container .btn-default,
.DTTT_container .btn-default,
.dataTables_wrapper .btn-default {
    background: #fff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

.modal-footer .btn-default:hover,
.modal-footer .btn-default:focus,
.modal-footer .btn-secondary:hover,
.modal-footer .btn-secondary:focus,
.modal-footer [data-bs-dismiss="modal"]:hover,
.modal-footer [data-bs-dismiss="modal"]:focus,
.modal-footer .close-modal:hover,
.modal-footer .close-modal:focus,
.page-title .btn-default:hover,
.page-title .btn-default:focus,
.title-button-group .btn-default:hover,
.title-button-group .btn-default:focus,
.dt-container .btn-default:hover,
.dt-container .btn-default:focus,
.DTTT_container .btn-default:hover,
.DTTT_container .btn-default:focus,
.dataTables_wrapper .btn-default:hover,
.dataTables_wrapper .btn-default:focus {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08) !important;
    transform: translateY(-1px);
}

.modal-footer .btn-danger,
.page-title .btn-danger,
.title-button-group .btn-danger {
    background: #f5325c !important;
    border-color: #f5325c !important;
    color: #fff !important;
}

.modal-footer .btn-danger:hover,
.modal-footer .btn-danger:focus,
.page-title .btn-danger:hover,
.page-title .btn-danger:focus,
.title-button-group .btn-danger:hover,
.title-button-group .btn-danger:focus {
    background: #d91d49 !important;
    border-color: #d91d49 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(245, 50, 92, .22) !important;
    transform: translateY(-1px);
}

td.option a,
.action-option,
.dtr-details .edit:not(.dropdown-item),
.dtr-details .delete:not(.dropdown-item),
.select-member-field a.delete,
.send-invitation-form .delete,
.automation-form .delete,
.calendar-ids-form .delete-post-dropzone,
.edit-image-file .delete-saved-file,
.external-tickets-embedded-code,
.conversion-rate-form .delete,
.copy-file-link,
td.dropdown-option button,
.dt-row-actions a {
    width: 28px;
    min-width: 28px !important;
    height: 28px;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

td.option a svg,
.action-option svg,
.dtr-details .edit:not(.dropdown-item) svg,
.dtr-details .delete:not(.dropdown-item) svg,
td.dropdown-option button svg,
.dt-row-actions a svg,
td.option a .icon-16,
.action-option .icon-16,
.dtr-details .edit:not(.dropdown-item) .icon-16,
.dtr-details .delete:not(.dropdown-item) .icon-16,
td.dropdown-option button .icon-16,
.dt-row-actions a .icon-16 {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

td.option a:hover,
td.option a:focus,
.action-option:hover,
.action-option:focus,
.dtr-details .edit:not(.dropdown-item):hover,
.dtr-details .edit:not(.dropdown-item):focus,
.external-tickets-embedded-code:hover,
.external-tickets-embedded-code:focus,
.copy-file-link:hover,
.copy-file-link:focus,
td.dropdown-option button:hover,
td.dropdown-option button:focus,
.dt-row-actions a:hover,
.dt-row-actions a:focus {
    background: color-mix(in srgb, var(--dt-th-accent, #2563eb) 8%, #fff) !important;
    border-color: color-mix(in srgb, var(--dt-th-accent, #2563eb) 38%, #e2e8f0) !important;
    color: var(--dt-th-accent, #2563eb) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08) !important;
    transform: translateY(-1px);
}

td.option a.delete:hover,
td.option a.delete:focus,
.dtr-details .delete:not(.dropdown-item):hover,
.dtr-details .delete:not(.dropdown-item):focus,
.select-member-field a.delete:hover,
.select-member-field a.delete:focus,
.send-invitation-form .delete:hover,
.send-invitation-form .delete:focus,
.automation-form .delete:hover,
.automation-form .delete:focus,
.calendar-ids-form .delete-post-dropzone:hover,
.calendar-ids-form .delete-post-dropzone:focus,
.edit-image-file .delete-saved-file:hover,
.edit-image-file .delete-saved-file:focus,
.conversion-rate-form .delete:hover,
.conversion-rate-form .delete:focus,
.dt-row-actions a.delete:hover,
.dt-row-actions a.delete:focus,
.dt-row-actions a[data-action="delete"]:hover,
.dt-row-actions a[data-action="delete"]:focus,
.dt-row-actions a[data-action="delete-confirmation"]:hover,
.dt-row-actions a[data-action="delete-confirmation"]:focus {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}

.bulk-actions-btn.table-btn:not(.hide) {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 15px !important;
    border: 1px solid var(--dt-th-accent, #2563eb) !important;
    border-radius: 7px !important;
    background: var(--dt-th-accent, #2563eb) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.bulk-actions-btn.table-btn:not(.hide):hover,
.bulk-actions-btn.table-btn:not(.hide):focus {
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .13) !important;
    transform: translateY(-1px);
}

.bulk-actions-btn.table-btn:not(.hide):active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important;
    transform: translateY(0);
}

.modal-footer .btn:focus-visible,
.page-title .btn:focus-visible,
.title-button-group .btn:focus-visible,
.bulk-actions-btn.table-btn:focus-visible,
td.option a:focus-visible,
.action-option:focus-visible,
td.dropdown-option button:focus-visible,
.dt-row-actions a:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #2563eb) 22%, transparent) !important;
}

.btn:disabled,
.btn.disabled,
td.option a.disabled,
.action-option.disabled,
.dt-row-actions a.disabled {
    opacity: .58 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.modal-header .btn-close,
.app-modal-fixed-close-button,
.app-modal-close {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
    color: #64748b !important;
    opacity: 1 !important;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.modal-header .btn-close:hover,
.modal-header .btn-close:focus,
.app-modal-fixed-close-button:hover,
.app-modal-fixed-close-button:focus,
.app-modal-close:hover,
.app-modal-close:focus {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08) !important;
    transform: translateY(-1px);
}

.modal-header .btn-close:focus-visible,
.app-modal-fixed-close-button:focus-visible,
.app-modal-close:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #2563eb) 22%, transparent) !important;
}

@media (prefers-reduced-motion: reduce) {
    .modal-footer .btn,
    .page-title .btn,
    .title-button-group .btn,
    .bulk-actions-btn.table-btn,
    td.option a,
    .action-option,
    td.dropdown-option button,
    .dt-row-actions a,
    .modal-header .btn-close,
    .app-modal-fixed-close-button,
    .app-modal-close {
        transition: none !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
 * Right pane comment composer
 * Shared by estimates, proposals, invoices, clients, suppliers, tickets, and
 * other module side panes. Keep behavior-owned ids and scripts untouched.
 * -------------------------------------------------------------------------- */
#comment-form-container,
.comment-form-container {
    padding-top: 14px !important;
    border-top-color: #edf1f5 !important;
}

#comment-form-container .avatar,
.comment-form-container .avatar {
    margin-top: 3px;
}

#comment-form-container .post-dropzone,
.comment-form-container .post-dropzone {
    margin-bottom: 0 !important;
    padding: 0;
}

#comment-form-container .post-dropzone textarea.form-control,
.comment-form-container .post-dropzone textarea.form-control,
#comment-form-container textarea[name="description"].form-control,
.comment-form-container textarea[name="description"].form-control {
    min-height: 96px;
    padding: 11px 13px;
    border-color: #dbe3ec;
    border-radius: 8px;
    background-color: #fff;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: none;
    resize: vertical;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

#comment-form-container .post-dropzone textarea.form-control::placeholder,
.comment-form-container .post-dropzone textarea.form-control::placeholder,
#comment-form-container textarea[name="description"].form-control::placeholder,
.comment-form-container textarea[name="description"].form-control::placeholder {
    color: #8b98a7;
    opacity: 1;
}

#comment-form-container .post-dropzone textarea.form-control:focus,
.comment-form-container .post-dropzone textarea.form-control:focus,
#comment-form-container textarea[name="description"].form-control:focus,
.comment-form-container textarea[name="description"].form-control:focus {
    border-color: color-mix(in srgb, var(--dt-th-accent, #2563eb) 42%, #dbe3ec);
    background-color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-th-accent, #2563eb) 16%, transparent);
}

#comment-form-container .post-dropzone > .mt10.mb10,
.comment-form-container .post-dropzone > .mt10.mb10 {
    gap: 12px;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

#comment-form-container .post-dropzone .form-check,
.comment-form-container .post-dropzone .form-check {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 0;
}

#comment-form-container .post-dropzone .form-check-input,
.comment-form-container .post-dropzone .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: 0;
    border-color: #d7dee8;
    border-radius: 5px;
    box-shadow: none;
}

#comment-form-container .post-dropzone .form-check-label,
.comment-form-container .post-dropzone .form-check-label {
    padding-left: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.2;
}

#view-sidebar-col #quick-task-section .row {
    --bs-gutter-x: 0;
    row-gap: 10px;
}

#view-sidebar-col #quick-task-section .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

#view-sidebar-col #quick-task-section .form-group {
    margin-bottom: 0;
}

#view-sidebar-col #quick-task-section .form-label {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

#view-sidebar-col #quick-task-section .form-control,
#view-sidebar-col #quick-task-section .select2-container {
    width: 100% !important;
    min-width: 0;
}

#comment-form-container .post-dropzone > footer.card-footer,
.comment-form-container .post-dropzone > footer.card-footer {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 12px !important;
    border: 1px solid #edf1f5 !important;
    border-radius: 8px;
    background: #f8fafc !important;
}

#comment-form-container .post-dropzone > footer.card-footer .me-auto,
.comment-form-container .post-dropzone > footer.card-footer .me-auto {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1 1 100%;
    gap: 8px;
    min-width: 0;
}

#comment-form-container .post-dropzone .upload-file-button,
.comment-form-container .post-dropzone .upload-file-button,
#comment-form-container .post-dropzone .ticket-template-button,
.comment-form-container .post-dropzone .ticket-template-button,
#comment-form-container .post-dropzone .record-start-btn,
.comment-form-container .post-dropzone .record-start-btn,
#comment-form-container .post-dropzone .record-end-btn,
.comment-form-container .post-dropzone .record-end-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 11px !important;
    border-radius: 7px !important;
    border-color: #dbe3ec !important;
    background: #fff !important;
    color: #526273 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none !important;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

#comment-form-container .post-dropzone .upload-file-button:hover,
.comment-form-container .post-dropzone .upload-file-button:hover,
#comment-form-container .post-dropzone .ticket-template-button:hover,
.comment-form-container .post-dropzone .ticket-template-button:hover,
#comment-form-container .post-dropzone .record-start-btn:hover,
.comment-form-container .post-dropzone .record-start-btn:hover,
#comment-form-container .post-dropzone .record-end-btn:hover,
.comment-form-container .post-dropzone .record-end-btn:hover {
    border-color: #c9d3df !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06) !important;
    transform: translateY(-1px);
}

#comment-form-container .post-dropzone .record-start-btn,
.comment-form-container .post-dropzone .record-start-btn,
#comment-form-container .post-dropzone .record-end-btn,
.comment-form-container .post-dropzone .record-end-btn {
    width: 32px;
    padding: 6px !important;
}

#comment-form-container .post-dropzone > footer.card-footer .btn-primary,
.comment-form-container .post-dropzone > footer.card-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 100%;
    width: 100%;
    min-height: 34px;
    margin-left: 0;
    float: none !important;
    padding: 7px 13px !important;
    border-radius: 7px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
}

#comment-form-container .post-dropzone > footer.card-footer .btn svg,
.comment-form-container .post-dropzone > footer.card-footer .btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

#comment-form-container .post-dropzone > footer.ticket-view-footer-button {
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 10px;
}

#comment-form-container .ticket-view-footer-button .ticket-comment-tools,
#comment-form-container .ticket-view-footer-button .ticket-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

#comment-form-container .ticket-view-footer-button .ticket-comment-tools {
    flex: 1 1 auto;
}

#comment-form-container .ticket-view-footer-button .ticket-comment-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-inline-start: auto;
}

#comment-form-container .post-dropzone > footer.ticket-view-footer-button.card-footer .ticket-comment-tools > .me-auto {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 0 !important;
    width: auto;
}

#comment-form-container .ticket-view-footer-button .ticket-comment-tools .btn,
#comment-form-container .ticket-view-footer-button .ticket-comment-actions .btn {
    float: none !important;
    margin-left: 0 !important;
}

#comment-form-container .ticket-view-footer-button .ticket-comment-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 13px !important;
    border-radius: 7px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

#comment-form-container .post-dropzone > footer.ticket-view-footer-button.card-footer .ticket-comment-actions .btn-primary {
    flex: 0 0 auto !important;
    width: auto !important;
}

#comment-form-container .post-dropzone .help .btn.disabled,
.comment-form-container .post-dropzone .help .btn.disabled {
    opacity: .45 !important;
    transform: none !important;
    box-shadow: none !important;
}

#comment-form-container .post-dropzone .recording-text,
.comment-form-container .post-dropzone .recording-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

#comment-form-container .comment-container,
.comment-form-container .comment-container,
.comment-container {
    color: #526273;
}

.comment-container p {
    margin-bottom: 10px;
    color: #526273;
    line-height: 1.5;
}

@media (max-width: 575px) {
    #comment-form-container .post-dropzone > footer.card-footer,
    .comment-form-container .post-dropzone > footer.card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #comment-form-container .post-dropzone > footer.card-footer .me-auto,
    .comment-form-container .post-dropzone > footer.card-footer .me-auto,
    #comment-form-container .post-dropzone > footer.card-footer .btn-primary,
    .comment-form-container .post-dropzone > footer.card-footer .btn-primary {
        width: 100%;
    }

    #comment-form-container .post-dropzone > footer.card-footer .btn-primary,
    .comment-form-container .post-dropzone > footer.card-footer .btn-primary {
        margin-left: 0;
    }

    #comment-form-container .post-dropzone > footer.ticket-view-footer-button {
        align-items: stretch;
    }

    #comment-form-container .ticket-view-footer-button .ticket-comment-tools,
    #comment-form-container .ticket-view-footer-button .ticket-comment-actions,
    #comment-form-container .post-dropzone > footer.ticket-view-footer-button.card-footer .ticket-comment-tools > .me-auto {
        width: 100%;
    }

    #comment-form-container .ticket-view-footer-button .ticket-comment-actions {
        justify-content: flex-end;
        margin-inline-start: 0;
    }
}

/* Right pane reminders */
[id$="-reminders"].col-md-12 {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
}

[id$="-reminders"].col-md-12 > .mb15:first-child {
    margin-bottom: 10px !important;
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
}

[id$="-reminders"].col-md-12 > .mb15:first-child strong {
    font-weight: 700;
}

[id$="-reminders"] a[id$="show-add-reminder-form"] {
    display: inline-flex !important;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px !important;
    color: var(--dt-th-accent, #2563eb) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

[id$="-reminders"] a[id$="show-add-reminder-form"]:hover,
[id$="-reminders"] a[id$="show-add-reminder-form"]:focus {
    color: color-mix(in srgb, var(--dt-th-accent, #2563eb) 82%, #0f172a) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

[id$="-reminders"] .table-responsive.pb100 {
    padding-bottom: 26px !important;
}

[id$="-reminders"] table.dataTable.no-thead {
    border-top-color: #edf1f5 !important;
}

[id$="-reminders"] table.dataTable.no-thead tbody td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    color: #64748b;
}

/* Shared quick-create control (select + create action) — Datacore native */
.quick-create-control,
.expense-create-control {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.quick-create-control-field,
.expense-create-control-field {
    flex: 1 1 auto;
    min-width: 0;
}

.quick-create-control-field .select2-container,
.expense-create-control-field .select2-container {
    width: 100% !important;
}

.quick-create-control-field:not(:last-child) .form-control,
.quick-create-control-field:not(:last-child) .select2-container .select2-choice,
.quick-create-control-field:not(:last-child) .select2-container .select2-choices,
.expense-create-control-field:not(:last-child) .form-control,
.expense-create-control-field:not(:last-child) .select2-container .select2-choice,
.expense-create-control-field:not(:last-child) .select2-container .select2-choices {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.quick-create-action,
.expense-create-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 35px;
    padding: 0 12px;
    border: 1px solid #7877774d;
    border-radius: 0 5px 5px 0;
    background: #f9f9f9;
    color: #4e5e6a !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.018em;
    line-height: 1;
    margin-left: -1px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.quick-create-action:hover,
.quick-create-action:focus,
.expense-create-action:hover,
.expense-create-action:focus {
    background: #e6e6e6;
    border-color: #e6e6e6;
    color: #4e5e6a !important;
    text-decoration: none !important;
}

.quick-create-action:focus-visible,
.expense-create-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
    z-index: 1;
    position: relative;
}

.quick-create-action svg,
.expense-create-action svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    flex: 0 0 14px;
    margin-top: -1px;
}

.expense-account-detail-note {
    max-width: 440px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #7b8190 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.opening-balance-add-page .opening-balance-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.opening-balance-add-page .opening-balance-toolbar .btn {
    margin: 0;
}

.opening-balance-add-page .opening-balance-items-wrap {
    overflow-x: auto;
}

.opening-balance-add-page .opening-balance-items-table {
    margin-bottom: 0;
}

.opening-balance-add-page .opening-balance-items-table thead th {
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
}

.opening-balance-add-page .opening-balance-items-table tfoot td {
    font-size: 12px;
    font-weight: 500;
    color: #4e5e6a;
    vertical-align: middle;
}

.opening-balance-add-page .opening-balance-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.opening-balance-add-page .opening-balance-footer .btn,
.opening-balance-add-page .opening-balance-footer .back-btn {
    margin: 0;
}

@media (max-width: 767px) {
    .quick-create-action,
    .expense-create-action {
        padding: 0 10px;
    }

    .opening-balance-add-page .opening-balance-toolbar,
    .opening-balance-add-page .opening-balance-footer {
        justify-content: stretch;
    }

    .opening-balance-add-page .opening-balance-toolbar .btn,
    .opening-balance-add-page .opening-balance-footer .btn {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }
}

html[dir="rtl"] .quick-create-control-field:not(:last-child) .form-control,
html[dir="rtl"] .quick-create-control-field:not(:last-child) .select2-container .select2-choice,
html[dir="rtl"] .quick-create-control-field:not(:last-child) .select2-container .select2-choices,
html[dir="rtl"] .expense-create-control-field:not(:last-child) .form-control,
html[dir="rtl"] .expense-create-control-field:not(:last-child) .select2-container .select2-choice,
html[dir="rtl"] .expense-create-control-field:not(:last-child) .select2-container .select2-choices {
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] .quick-create-action,
html[dir="rtl"] .expense-create-action {
    border-radius: 5px 0 0 5px;
    margin-left: 0;
    margin-right: -1px;
}

@media (prefers-reduced-motion: reduce) {
    .quick-create-action,
    .expense-create-action {
        transition: none;
    }
}

/* Global tooltip help icon — Datacore native */
.dc-help-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    margin-inline-start: 5px;
    cursor: help;
    line-height: 1;
    text-decoration: none !important;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
}

.dc-help-tooltip svg,
.dc-help-tooltip i[data-feather] {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 2.35;
    flex-shrink: 0;
    margin-top: 0 !important;
}

.dc-help-tooltip--icon-only {
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef4ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    flex-shrink: 0;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.dc-help-tooltip--icon-only:hover,
.dc-help-tooltip--icon-only:focus-visible {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dc-help-tooltip--icon-only:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.dc-help-tooltip:not(.dc-help-tooltip--icon-only) svg {
    width: 13px !important;
    height: 13px !important;
    padding: 2px;
    border-radius: 50%;
    background: #eef4ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    box-sizing: content-box;
}

.dc-help-tooltip:not(.dc-help-tooltip--icon-only):hover svg,
.dc-help-tooltip:not(.dc-help-tooltip--icon-only):focus-visible svg {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.tooltip .tooltip-inner {
    max-width: 280px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: start;
    border-radius: 6px;
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #1e293b;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #1e293b;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #1e293b;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #1e293b;
}

body[data-color="1E202D"] .dc-help-tooltip--icon-only {
    background: rgba(56, 164, 248, 0.12);
    border-color: rgba(56, 164, 248, 0.28);
    color: #7dd3fc;
}

body[data-color="1E202D"] .dc-help-tooltip--icon-only:hover,
body[data-color="1E202D"] .dc-help-tooltip--icon-only:focus-visible {
    background: rgba(56, 164, 248, 0.2);
    border-color: rgba(56, 164, 248, 0.42);
    color: #bae6fd;
}

body[data-color="1E202D"] .dc-help-tooltip:not(.dc-help-tooltip--icon-only) svg {
    background: rgba(56, 164, 248, 0.12);
    border-color: rgba(56, 164, 248, 0.28);
    color: #7dd3fc;
}

@media (prefers-reduced-motion: reduce) {
    .dc-help-tooltip--icon-only {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CLIENT / SUPPLIER DETAILS PAGE  –  dashboard KPI cards & tabs polish
   ══════════════════════════════════════════════════════════════════ */

.crm-details-page {
    padding-bottom: 24px;
}

.crm-details-page .client-kpi-section {
    padding: 0 15px 4px;
}

.crm-details-page .client-kpi-row {
    --client-kpi-gap: 12px;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--client-kpi-gap) * -0.5);
    margin-right: calc(var(--client-kpi-gap) * -0.5);
}

.crm-details-page .client-kpi-col {
    padding-left: calc(var(--client-kpi-gap) * 0.5);
    padding-right: calc(var(--client-kpi-gap) * 0.5);
    margin-bottom: var(--client-kpi-gap);
}

.crm-details-page .client-kpi-link {
    display: block;
    text-decoration: none;
}

.crm-details-page .client-kpi-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-details-page .client-kpi-link:hover .client-kpi-card,
.crm-details-page .client-kpi-card:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.crm-details-page .client-kpi-card .card-body {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 88px;
    overflow: hidden;
    padding: 18px 20px;
}

.crm-details-page .client-kpi-card .widget-icon {
    border-radius: 8px;
    flex: 0 0 52px;
    float: none;
    height: 52px;
    width: 52px;
    box-shadow: inset 0 -6px 12px rgba(15, 23, 42, 0.1);
}

.crm-details-page .client-kpi-card .widget-icon .icon {
    height: 1.65rem;
    width: 1.65rem;
}

.crm-details-page .client-kpi-card .widget-details {
    flex: 1 1 auto;
    min-width: 0;
    position: static;
    right: auto;
    text-align: left;
}

.crm-details-page .client-kpi-card .client-kpi-value {
    color: #172033;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.crm-details-page .client-kpi-card--outstanding_total .client-kpi-value,
.crm-details-page .client-kpi-card--due .client-kpi-value {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    letter-spacing: -0.01em;
}

.crm-details-page .client-kpi-card .client-kpi-label {
    background: transparent !important;
    color: #667085;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Per-card accent borders */
.crm-details-page .client-kpi-card--open_projects,
.crm-details-page .client-kpi-card--draft_PO {
    border-top: 4px solid #2f80ed;
}

.crm-details-page .client-kpi-card--draft_invoice {
    border-top: 4px solid #6366f1;
}

.crm-details-page .client-kpi-card--outstanding_total {
    border-top: 4px solid #2563eb;
}

.crm-details-page .client-kpi-card--due {
    border-top: 4px solid #e85d7a;
}

.crm-details-page .client-kpi-card--new_orders {
    border-top: 4px solid #0ea5e9;
}

.crm-details-page .client-kpi-card--processing_orders {
    border-top: 4px solid #8b5cf6;
}

/* Tabs panel */
.crm-details-page .client-details-tabs-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-top: 4px;
    overflow: hidden;
}

.crm-details-page .client-details-tabs-scroll {
    position: relative;
}

.crm-details-page .client-details-tabs-scroll::before,
.crm-details-page .client-details-tabs-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.crm-details-page .client-details-tabs-scroll.is-scrollable-left::before,
.crm-details-page .client-details-tabs-scroll.is-scrollable-right::after {
    opacity: 1;
}

.crm-details-page .client-details-tabs-scroll::before {
    left: 0;
    background: linear-gradient(to right, #fff 30%, transparent);
}

.crm-details-page .client-details-tabs-scroll::after {
    right: 0;
    background: linear-gradient(to left, #fff 30%, transparent);
}

.crm-details-page .client-details-tabs {
    background: #fff !important;
    border: none !important;
    border-bottom: 1.5px solid #f0f2f6 !important;
    border-radius: 0 !important;
    display: flex;
    flex-wrap: nowrap;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    padding: 0 4px;
    scrollbar-width: none;
    white-space: nowrap;
    width: 100%;
}

.crm-details-page .client-details-tabs::-webkit-scrollbar {
    display: none;
}

.crm-details-page .client-details-tabs li {
    float: none;
    flex: 0 0 auto;
}

.crm-details-page .client-details-tabs li a {
    font-size: 0.8125rem !important;
    padding: 13px 14px 14px !important;
    white-space: nowrap;
}

.crm-details-page .client-details-tabs li a.active::after {
    width: calc(100% - 20px) !important;
    left: 10px !important;
}

.crm-details-page .client-details-tab-content {
    background: #fff;
    margin: 0 !important;
    min-height: 200px;
    padding: 0;
}

.crm-details-page .client-details-tab-content > .tab-pane {
    padding: 0;
}

.crm-details-page .client-details-tab-content .tab-pane > .card,
.crm-details-page .client-details-tab-content .tab-pane > .tab-content > .card,
.crm-details-page .client-details-tab-content .tab-pane > form > .card {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    margin-bottom: 0;
}

.crm-details-page .client-details-tab-content .tab-pane > .card .card-header:first-child,
.crm-details-page .client-details-tab-content .tab-pane > .tab-content > .card .card-header:first-child,
.crm-details-page .client-details-tab-content .tab-pane > form > .card .card-header:first-child {
    border-top: none;
}

/* Page title on client view */
.page-title:has(+ #page-content.crm-details-page) h1,
.page-title:has(~ #page-content.crm-details-page) h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.page-title .title-button-group.clients-view .btn {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 7px 14px;
}

@media (max-width: 767px) {
    .crm-details-page .client-kpi-col {
        margin-bottom: 10px;
    }

    .crm-details-page .client-details-tabs li a {
        font-size: 0.78rem !important;
        padding: 12px 12px 13px !important;
    }
}

/* Dark theme */
body[data-color="1E202D"] .crm-details-page .client-kpi-card,
body[data-color="1E202D"] .crm-details-page .client-details-tabs-panel {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .crm-details-page .client-kpi-card .client-kpi-value {
    color: #e5e7eb;
}

body[data-color="1E202D"] .crm-details-page .client-kpi-card .client-kpi-label {
    color: #aab2c5;
}

body[data-color="1E202D"] .crm-details-page .client-details-tabs {
    background: #252932 !important;
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content {
    background: #252932;
}

body[data-color="1E202D"] .crm-details-page .client-details-tabs-scroll::before {
    background: linear-gradient(to right, #252932 30%, transparent);
}

body[data-color="1E202D"] .crm-details-page .client-details-tabs-scroll::after {
    background: linear-gradient(to left, #252932 30%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .crm-details-page .client-kpi-card,
    .crm-details-page .client-details-tabs-scroll::before,
    .crm-details-page .client-details-tabs-scroll::after {
        transition: none;
    }

    .crm-details-page .client-kpi-link:hover .client-kpi-card,
    .crm-details-page .client-kpi-card:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CLIENTS / SUPPLIER INDEX OVERVIEW  –  dashboard polish
   ══════════════════════════════════════════════════════════════════ */

.crm-index-page #overview {
    padding: 20px;
}

.crm-index-page .clients-overview {
    --clients-overview-gap: 14px;
}

.crm-index-page .clients-overview-kpi-row,
.crm-index-page .clients-overview-stats-row {
    margin-left: calc(var(--clients-overview-gap) * -0.5);
    margin-right: calc(var(--clients-overview-gap) * -0.5);
}

.crm-index-page .clients-overview-kpi-col,
.crm-index-page .clients-overview-stat-col {
    margin-bottom: var(--clients-overview-gap);
    padding-left: calc(var(--clients-overview-gap) * 0.5);
    padding-right: calc(var(--clients-overview-gap) * 0.5);
}

/* KPI summary cards */
.crm-index-page .clients-overview-kpi-link {
    display: block;
    text-decoration: none;
}

.crm-index-page .clients-overview-kpi-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-index-page .clients-overview-kpi-link:hover .clients-overview-kpi-card,
.crm-index-page .clients-overview-kpi-card:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.crm-index-page .clients-overview-kpi-card .card-body {
    align-items: center;
    display: flex;
    gap: 14px;
    min-height: 92px;
    padding: 20px 22px;
}

.crm-index-page .clients-overview-kpi-card .widget-icon {
    border-radius: 8px;
    flex: 0 0 52px;
    float: none;
    height: 52px;
    width: 52px;
    box-shadow: inset 0 -6px 12px rgba(15, 23, 42, 0.1);
}

.crm-index-page .clients-overview-kpi-card .widget-icon .icon {
    height: 1.65rem;
    width: 1.65rem;
}

.crm-index-page .clients-overview-kpi-card .widget-details {
    flex: 1 1 auto;
    min-width: 0;
    position: static;
    right: auto;
    text-align: left;
}

.crm-index-page .clients-overview-kpi-value {
    color: #172033;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 4px;
}

.crm-index-page .clients-overview-kpi-label {
    background: transparent !important;
    color: #667085;
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
}

.crm-index-page .clients-overview-kpi-card--clients,
.crm-index-page .clients-overview-kpi-card--suppliers {
    border-top: 4px solid #2563eb;
}

.crm-index-page .clients-overview-kpi-card--contacts {
    border-top: 4px solid #f59e0b;
}

/* Stat list cards (Projects / Estimates) */
.crm-index-page .clients-overview-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.crm-index-page .clients-overview-stat-card--projects {
    border-top: 4px solid #2f80ed;
}

.crm-index-page .clients-overview-stat-card--estimates {
    border-top: 4px solid #6366f1;
}

.crm-index-page .clients-overview-stat-header {
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border-bottom: 1px solid #f1f5f9;
    color: #172033;
    display: flex;
    font-size: 0.9375rem;
    font-weight: 700;
    gap: 8px;
    padding: 16px 20px;
}

.crm-index-page .clients-overview-stat-header .icon-16 {
    color: #64748b;
}

.crm-index-page .clients-overview-stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crm-index-page .clients-overview-stat-list > li + li {
    border-top: 1px solid #f1f5f9;
}

.crm-index-page .clients-overview-stat-item {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.crm-index-page .clients-overview-stat-item:hover {
    background: #f8fafc;
    color: inherit;
}

.crm-index-page .clients-overview-stat-icon {
    align-items: center;
    border-radius: 8px;
    display: flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.crm-index-page .clients-overview-stat-icon--primary {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.crm-index-page .clients-overview-stat-icon--success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.crm-index-page .clients-overview-stat-icon--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.crm-index-page .clients-overview-stat-icon--danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.crm-index-page .clients-overview-stat-label {
    color: #475569;
    flex: 1 1 auto;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    min-width: 0;
}

.crm-index-page .clients-overview-stat-value {
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    min-width: 2.5rem;
    text-align: right;
}

/* Tab content area for list tabs */
.crm-index-page .crm-index-tab-content > .tab-pane:not(#overview) {
    padding: 0;
}

@media (max-width: 767px) {
    .crm-index-page #overview {
        padding: 14px;
    }

    .crm-index-page .clients-overview-kpi-value {
        font-size: 1.5rem;
    }

    .crm-index-page .clients-overview-stat-item {
        padding: 12px 16px;
    }
}

/* Dark theme */
body[data-color="1E202D"] .crm-index-page #overview {
    background: transparent;
}

body[data-color="1E202D"] .crm-index-page .clients-overview-kpi-card,
body[data-color="1E202D"] .crm-index-page .clients-overview-stat-card {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .crm-index-page .clients-overview-kpi-value,
body[data-color="1E202D"] .crm-index-page .clients-overview-stat-header {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .crm-index-page .clients-overview-kpi-label,
body[data-color="1E202D"] .crm-index-page .clients-overview-stat-label {
    color: #aab2c5;
}

body[data-color="1E202D"] .crm-index-page .clients-overview-stat-header {
    background: linear-gradient(180deg, #252932 0%, #22262f 100%) !important;
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .crm-index-page .clients-overview-stat-list > li + li {
    border-top-color: #2f3541;
}

body[data-color="1E202D"] .crm-index-page .clients-overview-stat-item:hover {
    background: #2a2f3a;
}

@media (prefers-reduced-motion: reduce) {
    .crm-index-page .clients-overview-kpi-card,
    .crm-index-page .clients-overview-stat-item {
        transition: none;
    }

    .crm-index-page .clients-overview-kpi-link:hover .clients-overview-kpi-card,
    .crm-index-page .clients-overview-kpi-card:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CRM INDEX LIST TABS  –  suppliers / clients list & contacts polish
   ══════════════════════════════════════════════════════════════════ */

.crm-index-page .crm-index-shell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.crm-index-page .crm-index-tabs {
    border: none !important;
    border-bottom: 1.5px solid #f0f2f6 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.crm-index-page .crm-index-tabs .crm-index-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 12px 8px 0 !important;
}

.crm-index-page .crm-index-tabs .crm-index-actions .btn {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 !important;
    white-space: nowrap;
}

.crm-index-page .crm-index-tab-content {
    background: #fff;
}

.crm-index-page .crm-index-tab-content > .tab-pane:not(#overview) {
    padding: 0;
}

.crm-index-page .crm-list-card {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
}

.crm-index-page .crm-list-card .dt-container {
    width: 100%;
}

.crm-index-page .crm-list-card .filter-section-container {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 20px 10px;
}

.crm-index-page .crm-list-card .filter-section-flex-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.crm-index-page .crm-list-card .filter-section-left,
.crm-index-page .crm-list-card .filter-section-right {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-index-page .crm-list-card .table-responsive,
.crm-index-page .crm-list-card .dt-container {
    padding: 0;
}

.crm-index-page .crm-list-card table.crm-list-table.dataTable,
.crm-index-page .crm-list-card table.dataTable {
    margin: 0 !important;
    width: 100% !important;
}

.crm-index-page .crm-list-card table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 16px !important;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.crm-index-page .crm-list-card table.dataTable tbody td {
    border-top: 1px solid #f1f5f9 !important;
    color: #334155;
    font-size: 0.875rem;
    padding: 12px 16px !important;
    vertical-align: middle;
}

.crm-index-page .crm-list-card table.dataTable tbody tr:hover td {
    background: #f8fafc;
}

.crm-index-page .crm-list-card table.dataTable tbody td a:not(.btn) {
    color: var(--dt-th-accent, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

.crm-index-page .crm-list-card table.dataTable tbody td a:not(.btn):hover {
    text-decoration: underline;
}

.crm-index-page .crm-list-card .crm-contact-cell,
.crm-index-page .crm-list-card td .avatar.avatar-xs {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    vertical-align: middle;
}

.crm-index-page .crm-list-card td .avatar.avatar-xs img {
    border-radius: 50%;
    height: 28px;
    object-fit: cover;
    width: 28px;
}

.crm-index-page .crm-list-card td.option,
.crm-index-page .crm-list-card td.w100 {
    min-width: 118px;
    white-space: nowrap;
    width: 118px;
}

.crm-index-page .crm-list-card td.option .dt-row-actions {
    align-items: center;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    justify-content: center;
}

.crm-index-page .crm-list-card td.option .dt-row-actions a {
    float: none !important;
    margin: 0 !important;
}

.crm-index-page .crm-list-card .datatable-tools {
    border-top: 1px solid #f1f5f9;
    margin: 0 !important;
    padding: 10px 16px 14px;
}

.crm-index-page .crm-list-card .datatable-tools .dataTables_info {
    color: #64748b;
    font-size: 0.78rem;
    padding-top: 8px;
}

.crm-index-page .crm-list-card .supplier-group-inline,
.crm-index-page .crm-list-card .client-group-inline {
    color: #475569;
    font-size: 0.8125rem;
}

.crm-index-page .crm-list-card .supplier-group-inline ul,
.crm-index-page .crm-list-card .client-group-inline ul {
    margin: 0;
    padding-left: 16px;
}

@media (max-width: 767px) {
    .crm-index-page .crm-index-tabs .crm-index-actions {
        gap: 6px;
        margin: 6px 10px 6px 0 !important;
    }

    .crm-index-page .crm-list-card .filter-section-container {
        padding: 12px 14px 8px;
    }

    .crm-index-page .crm-list-card table.dataTable thead th,
    .crm-index-page .crm-list-card table.dataTable tbody td {
        padding: 10px 12px !important;
    }
}

body[data-color="1E202D"] .crm-index-page .crm-index-shell,
body[data-color="1E202D"] .crm-index-page .crm-index-tab-content,
body[data-color="1E202D"] .crm-index-page .crm-list-card {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .crm-index-page .crm-index-tabs {
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .crm-index-page .crm-list-card .filter-section-container,
body[data-color="1E202D"] .crm-index-page .crm-list-card .datatable-tools {
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .crm-index-page .crm-list-card table.dataTable thead th {
    background: #2a2f3a;
    border-bottom-color: #2f3541 !important;
    color: #aab2c5;
}

body[data-color="1E202D"] .crm-index-page .crm-list-card table.dataTable tbody td {
    border-top-color: #2f3541 !important;
    color: #cbd5e1;
}

body[data-color="1E202D"] .crm-index-page .crm-list-card table.dataTable tbody tr:hover td {
    background: #2a2f3a;
}

/* ══════════════════════════════════════════════════════════════════
   SPOTLIGHT LIST  –  compact follow-up queue rows
   ══════════════════════════════════════════════════════════════════ */
.spotlight-page .spotlight-list-card .table-responsive,
.spotlight-page .spotlight-list-card .dt-container {
    padding: 0;
}

.spotlight-page .spotlight-list-card .table-responsive {
    overflow-x: auto !important;
}

.spotlight-page .spotlight-list-table.dataTable {
    margin: 0 !important;
    min-width: 1280px;
    table-layout: fixed;
    width: 100% !important;
}

.spotlight-page .spotlight-list-table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 10px 16px !important;
    white-space: nowrap;
}

.spotlight-page .spotlight-list-table.dataTable tbody td {
    border-top: 1px solid #eef2f7 !important;
    color: #334155;
    font-size: 0.84rem !important;
    line-height: 1.35;
    padding: 10px 16px !important;
    vertical-align: middle;
}

.spotlight-page .spotlight-list-table.dataTable tbody tr:hover td {
    background: #f8fafc !important;
}

.spotlight-page .spotlight-list-table .spotlight-date-cell,
.spotlight-page .spotlight-list-table .spotlight-type-cell,
.spotlight-page .spotlight-list-table .spotlight-document-cell,
.spotlight-page .spotlight-list-table .spotlight-last-updated-cell,
.spotlight-page .spotlight-list-table .spotlight-owner-cell {
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-page .spotlight-list-table .spotlight-date-cell,
.spotlight-page .spotlight-list-table .spotlight-type-cell,
.spotlight-page .spotlight-list-table .spotlight-document-cell,
.spotlight-page .spotlight-list-table .spotlight-last-updated-cell {
    white-space: nowrap;
}

.spotlight-page .spotlight-list-table .spotlight-related-cell,
.spotlight-page .spotlight-list-table .spotlight-owner-cell {
    overflow-wrap: anywhere;
}

.spotlight-page .spotlight-list-table td.option.spotlight-actions-column,
.spotlight-page .spotlight-list-table th.option.spotlight-actions-column {
    min-width: 150px;
    width: 150px !important;
}

.spotlight-page .spotlight-list-table td.option.spotlight-actions-column {
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
    white-space: nowrap;
}

.spotlight-page .spotlight-list-table td.option .dt-row-actions {
    align-items: center;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 5px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.spotlight-page .spotlight-list-table td.option .dt-row-actions a {
    float: none !important;
    height: 28px;
    margin: 0 !important;
    min-width: 28px !important;
    width: 28px;
}

.spotlight-page .spotlight-list-table .spotlight-comments-cell {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.spotlight-page .spotlight-list-table.dataTable thead th.spotlight-comments-cell,
.spotlight-page #spotlight-table thead th:nth-child(6),
.spotlight-page #spotlight-table thead th:nth-child(8) {
    text-align: center !important;
}

.spotlight-page .spotlight-list-table.dataTable thead th.spotlight-comments-cell .dt-column-title,
.spotlight-page #spotlight-table thead th:nth-child(6) .dt-column-title,
.spotlight-page #spotlight-table thead th:nth-child(8) .dt-column-title {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 16px;
    width: 100%;
}

.spotlight-page .spotlight-list-table.dataTable thead th.spotlight-comments-cell .dt-column-title svg,
.spotlight-page .spotlight-list-table.dataTable thead th.spotlight-comments-cell .dt-column-title .icon-16,
.spotlight-page #spotlight-table thead th:nth-child(6) .dt-column-title svg,
.spotlight-page #spotlight-table thead th:nth-child(6) .dt-column-title .icon-16,
.spotlight-page #spotlight-table thead th:nth-child(8) .dt-column-title svg,
.spotlight-page #spotlight-table thead th:nth-child(8) .dt-column-title .icon-16 {
    display: block;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    .spotlight-page .spotlight-list-table.dataTable thead th,
    .spotlight-page .spotlight-list-table.dataTable tbody td {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .spotlight-page .spotlight-list-table td.option.spotlight-actions-column,
    .spotlight-page .spotlight-list-table th.option.spotlight-actions-column {
        min-width: 138px;
        width: 138px !important;
    }
}

body[data-color="1E202D"] .spotlight-page .spotlight-list-card {
    background: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .spotlight-page .spotlight-list-table.dataTable thead th {
    background: #2a2f3a;
    border-bottom-color: #3d4454 !important;
    color: #aab2c5;
}

body[data-color="1E202D"] .spotlight-page .spotlight-list-table.dataTable tbody td {
    border-top-color: #2f3541 !important;
    color: #cbd5e1;
}

body[data-color="1E202D"] .spotlight-page .spotlight-list-table.dataTable tbody tr:hover td {
    background: #2a2f3a !important;
}

/* ══════════════════════════════════════════════════════════════════
   TEAM MEMBER DETAILS PAGE  –  profile hero, KPI stats & tabs polish
   ══════════════════════════════════════════════════════════════════ */

.team-member-details-page .team-member-profile-section {
    padding: 0 15px 12px;
}

.team-member-details-page .team-member-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.team-member-details-page #profile-image-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    table-layout: auto;
    width: 100%;
}

.team-member-details-page #profile-image-section > .box-content {
    display: block;
    float: none;
    height: auto;
    overflow: visible;
    width: auto;
}

.team-member-details-page #profile-image-section > .box-content.profile-image {
    border-right: 1px solid #f0f2f6;
    flex: 0 0 auto;
    padding: 24px 28px;
    text-align: center;
    width: auto;
}

.team-member-details-page #profile-image-section > .box-content.pl15 {
    flex: 1 1 280px;
    min-width: 0;
    padding: 22px 24px 22px 20px;
}

.team-member-details-page #profile-image-section h4 {
    color: #172033;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 12px 0 0;
}

.team-member-details-page #profile-image-section p {
    color: #4e5e6a;
    font-size: 0.875rem;
    line-height: 1.5;
}

.team-member-details-page #profile-image-section .badge.bg-info {
    background: #eef4ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.team-member-details-page #profile-image-section .badge.bg-success {
    background: #ecfdf5 !important;
    border: 1px solid #86efac !important;
    color: #0f5f39 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15;
}

.team-member-details-page #profile-image-section .star-icon {
    color: #f59e0b;
    padding: 0 0 0 8px;
    vertical-align: middle;
}

.team-member-details-page #profile-image-section .btn-transparent.success {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2563eb !important;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 7px 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.team-member-details-page #profile-image-section .btn-transparent.success:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1d4ed8 !important;
}

.team-member-details-page #profile-image-section .avatar.avatar-lg img {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.team-member-details-page #profile-image-section .profile-image-upload .btn.color-white {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    color: #4e5e6a !important;
}

.team-member-details-page #profile-image-section .profile-image-upload .btn.color-white:hover {
    background: #f8fafc;
    color: #2563eb !important;
}

.team-member-details-page .team-member-kpi-section {
    padding-bottom: 8px;
}

.team-member-details-page .team-member-kpi-section:not(:has(.box-content)) {
    display: none;
    padding: 0;
}

.team-member-details-page .team-member-kpi-row {
    --team-kpi-gap: 12px;
}

.team-member-details-page .team-member-kpi-col {
    margin-bottom: var(--team-kpi-gap);
}

.team-member-details-page .team-member-kpi-col .box {
    border-spacing: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--team-kpi-gap);
    table-layout: auto;
}

.team-member-details-page .team-member-kpi-col .box-content {
    background: #fff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    display: block;
    flex: 1 1 140px;
    float: none;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-member-details-page .team-member-kpi-col .box-content:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.team-member-details-page .team-member-kpi-col .box-content .card-body {
    padding: 18px 20px;
    text-align: left;
}

.team-member-details-page .team-member-kpi-col .box-content h1 {
    color: #172033;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
}

.team-member-details-page .team-member-kpi-col .box-content h1.text-success {
    color: #059669 !important;
}

.team-member-details-page .team-member-kpi-col .box-content h1.text-info {
    color: #2563eb !important;
}

.team-member-details-page .team-member-kpi-col .box-content h1.text-warning {
    color: #d97706 !important;
}

.team-member-details-page .team-member-kpi-col .box-content h1.text-danger {
    color: #dc2626 !important;
}

.team-member-details-page .team-member-kpi-col .box-content .text-off {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 1;
    text-transform: uppercase;
}

.team-member-details-page .team-member-kpi-col--projects .box-content:nth-child(1) {
    border-top: 4px solid #059669 !important;
}

.team-member-details-page .team-member-kpi-col--projects .box-content:nth-child(2) {
    border-top: 4px solid #2563eb !important;
}

.team-member-details-page .team-member-kpi-col--projects .box-content:nth-child(3) {
    border-top: 4px solid #d97706 !important;
}

.team-member-details-page .team-member-kpi-col--projects .box-content:nth-child(4) {
    border-top: 4px solid #dc2626 !important;
}

.team-member-details-page .team-member-kpi-col--time .box-content:nth-child(1) {
    border-top: 4px solid #0ea5e9 !important;
}

.team-member-details-page .team-member-kpi-col--time .box-content:nth-child(2) {
    border-top: 4px solid #8b5cf6 !important;
}

.team-member-details-page .team-member-kpi-col .box:empty,
.team-member-details-page .team-member-kpi-col .box:not(:has(.box-content)) {
    display: none;
}

.team-member-details-page .team-member-timeline-pane {
    padding: 16px 20px 20px;
}

/* Ajax-loaded tab forms sit inside nested .tab-content > form > .card */
.crm-details-page .client-details-tab-content .tab-pane .tab-content .card,
.crm-details-page .client-details-tab-content .tab-pane .tab-content form .card {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    margin-bottom: 0;
}

.crm-details-page .client-details-tab-content .tab-pane .tab-content .card .card-header:first-child,
.crm-details-page .client-details-tab-content .tab-pane .tab-content form .card .card-header:first-child {
    border-top: none;
}

/* Tab panel forms – label/input rhythm, fields, footer */
.crm-details-page .client-details-tab-content .tab-pane .tab-content {
    padding: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f2f6;
    padding: 16px 20px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .card-header h4 {
    color: #172033;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .card-body {
    padding: 8px 20px 20px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group {
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
    padding: 12px 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row {
    align-items: flex-start;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: minmax(112px, 148px) minmax(0, 1fr);
    margin: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > [class*="col-md-"] {
    flex: none;
    max-width: none;
    padding: 0;
    width: auto;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > [class*="col-md-"] > .row {
    margin-left: -6px;
    margin-right: -6px;
    max-width: 620px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > [class*="col-md-"] > .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > label:first-child {
    color: #475467;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 8px 0 0;
    padding: 0 !important;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-control:not(.select2-offscreen),
.crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control,
.crm-details-page .client-details-tab-content .general-form.dashed-row select.form-control,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container:not(.select2-container-multi) {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    color: #172033 !important;
    font-size: 0.875rem;
    max-width: 620px;
    min-height: 38px;
    padding: 8px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control {
    max-width: 640px;
    min-height: 88px;
    resize: vertical;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-control:not(.select2-offscreen):focus,
.crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control:focus,
.crm-details-page .client-details-tab-content .general-form.dashed-row select.form-control:focus {
    border-color: #6690f4;
    box-shadow: 0 0 0 3px rgba(102, 144, 244, 0.15);
    outline: none;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi.form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto;
    min-height: 0;
    padding: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container:not(.select2-container-multi) {
    max-width: 620px;
    padding: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi {
    max-width: 640px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row input.select2-offscreen {
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 0 !important;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-choice,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi .select2-choices,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-selection {
    background: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    min-height: 38px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-active .select2-choice,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-dropdown-open .select2-choice,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi.select2-container-active .select2-choices {
    border-color: #6690f4 !important;
    box-shadow: 0 0 0 3px rgba(102, 144, 244, 0.15);
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-choice .select2-chosen,
.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-selection__rendered {
    color: #172033 !important;
    font-size: 0.875rem;
    line-height: 36px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-choice .select2-chosen {
    padding-block: 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .iti {
    display: block;
    max-width: 620px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .iti .form-control {
    max-width: none;
    width: 100%;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .crm-company-name-field {
    max-width: 620px;
    position: relative;
}


.crm-details-page .client-details-tab-content .general-form.dashed-row .company_name_input_section {
    max-width: none;
    padding-right: 34px;
    width: 100%;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .crm-company-name-field .select2-container .select2-choice {
    padding-right: 34px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-check-input {
    margin-top: 0.2rem;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .account-password-field {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: none;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .account-password-field #password {
    flex: 0 1 620px;
    max-width: none;
    min-width: 220px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .account-password-field #generate_password {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    white-space: nowrap;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .account-password-field #show_hide_password {
    align-items: center;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > [class*="col-md-"] > label.mr15,
.crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row > [class*="col-md-"] > label.p0 {
    color: #344054;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 6px;
    margin: 8px 20px 0 0;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .card-footer {
    background: #fafbfc;
    border-top: 1px solid #f0f2f6;
    padding: 14px 20px;
}

.crm-details-page .client-details-tab-content .general-form.dashed-row .card-footer .btn-primary {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 108px;
    padding: 8px 16px;
}

@media (max-width: 767px) {
    .crm-details-page .client-details-tab-content .general-form.dashed-row .card-header,
    .crm-details-page .client-details-tab-content .general-form.dashed-row .card-body,
    .crm-details-page .client-details-tab-content .general-form.dashed-row .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .crm-details-page .client-details-tab-content .general-form.dashed-row .form-group > .row {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .crm-details-page .client-details-tab-content .general-form.dashed-row .form-group label:not(.form-check-label):not(.select2-offscreen) {
        margin-top: 0;
    }

    .crm-details-page .client-details-tab-content .general-form.dashed-row .form-control:not(.select2-offscreen),
    .crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control,
    .crm-details-page .client-details-tab-content .general-form.dashed-row select.form-control,
    .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container,
    .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi,
    .crm-details-page .client-details-tab-content .general-form.dashed-row .iti {
        max-width: none;
    }
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .card-header,
body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .card-footer {
    background: #252932;
    border-color: #2f3541;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .card-header h4 {
    color: #e5e7eb;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .form-group {
    border-bottom-color: #2f3541;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .form-group label:not(.form-check-label):not(.select2-offscreen) {
    color: #cbd5e1;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .form-control:not(.select2-offscreen),
body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control,
body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row select.form-control {
    background: #1e222a !important;
    border-color: #3a4150 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-choice .select2-chosen,
body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-selection__rendered {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container .select2-choice,
body[data-color="1E202D"] .crm-details-page .client-details-tab-content .general-form.dashed-row .select2-container-multi .select2-choices {
    background: #1e222a !important;
    border-color: #3a4150 !important;
}

@media (prefers-reduced-motion: reduce) {
    .crm-details-page .client-details-tab-content .general-form.dashed-row .form-control:not(.select2-offscreen),
    .crm-details-page .client-details-tab-content .general-form.dashed-row textarea.form-control,
    .crm-details-page .client-details-tab-content .general-form.dashed-row select.form-control {
        transition: none;
    }
}

@media (max-width: 767px) {
    .team-member-details-page #profile-image-section {
        flex-direction: column;
    }

    .team-member-details-page #profile-image-section > .box-content.profile-image {
        border-bottom: 1px solid #f0f2f6;
        border-right: none;
        width: 100%;
    }

    .team-member-details-page #profile-image-section > .box-content.pl15 {
        padding: 18px 20px 22px;
        width: 100%;
    }

    .team-member-details-page .team-member-kpi-col .box-content {
        flex: 1 1 100%;
    }
}

body[data-color="1E202D"] .team-member-details-page .team-member-profile-card,
body[data-color="1E202D"] .team-member-details-page .team-member-kpi-col .box-content {
    background: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .team-member-details-page #profile-image-section h4 {
    color: #e5e7eb;
}

body[data-color="1E202D"] .team-member-details-page #profile-image-section p {
    color: #aab2c5;
}

body[data-color="1E202D"] .team-member-details-page #profile-image-section > .box-content.profile-image {
    border-color: #2f3541;
}

body[data-color="1E202D"] .team-member-details-page .team-member-kpi-col .box-content h1 {
    color: #e5e7eb;
}

body[data-color="1E202D"] .team-member-details-page .team-member-kpi-col .box-content .text-off {
    color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
    .team-member-details-page .team-member-kpi-col .box-content,
    .team-member-details-page #profile-image-section .btn-transparent.success {
        transition: none;
    }

    .team-member-details-page .team-member-kpi-col .box-content:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PAYROLL LIST PAGE
   ══════════════════════════════════════════════════════════════════ */

.payroll-list-page #page-content {
    padding-top: 10px;
}

.payroll-list-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.payroll-list-header {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 22px;
}

.payroll-list-heading h1 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.payroll-list-subtitle {
    color: #64748b;
    font-size: 0.8125rem;
    margin: 0;
}

.payroll-list-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.payroll-list-legend-item {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 6px;
    line-height: 1;
    min-height: 30px;
    padding: 6px 12px;
    white-space: nowrap;
}

.payroll-list-legend-processed {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.payroll-list-legend-pending {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.payroll-list-card .filter-section-container {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 20px 10px;
}

.payroll-list-card .filter-section-flex-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.payroll-list-card .filter-section-left,
.payroll-list-card .filter-section-right {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payroll-list-table-wrap,
.payroll-list-card .dt-container {
    padding: 0;
}

.payroll-list-card table.payroll-list-table.dataTable,
.payroll-list-card table.dataTable {
    margin: 0 !important;
    width: 100% !important;
}

.payroll-list-card table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 16px !important;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.payroll-list-card table.dataTable tbody td {
    border-top: 1px solid #f1f5f9 !important;
    color: #334155;
    font-size: 0.875rem;
    padding: 12px 16px !important;
    vertical-align: middle;
}

.payroll-list-card table.dataTable tbody tr:hover td {
    background: #f8fafc;
}

.payroll-list-employee {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.payroll-list-card table.dataTable tbody td a:not(.btn) {
    color: #2b3645;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.payroll-list-card table.dataTable tbody td a:not(.btn):hover {
    text-decoration: underline;
}

.payroll-list-card td .avatar.avatar-xs {
    align-items: center;
    display: inline-flex;
    height: 30px;
    vertical-align: middle;
    width: 30px;
    background: #f7f9fc;
    border: 1px solid #dde4ec;
    border-radius: 50%;
    overflow: hidden;
}

.payroll-list-card td .avatar.avatar-xs img {
    border-radius: 50%;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body[data-color="1E202D"] .payroll-list-card td .avatar.avatar-xs {
    background: #20242c;
    border-color: #3b4253;
}

body[data-color="1E202D"] .payroll-list-card table.dataTable tbody td a:not(.btn) {
    color: #cbd5e1;
}

.payroll-list-empty-value {
    color: #94a3b8;
    font-style: normal;
}

.payroll-list-action-col {
    min-width: 220px;
    width: 220px;
}

.payroll-list-action-cell {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.payroll-list-status-pill {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 5px;
    line-height: 1;
    min-height: 28px;
    padding: 5px 10px;
    white-space: nowrap;
}

.payroll-list-status-processed {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.payroll-list-status-pending {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.payroll-list-action-btn {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 5px;
    margin: 0 !important;
    min-height: 30px;
    padding: 5px 10px;
    white-space: nowrap;
}

.payroll-list-card .datatable-tools {
    border-top: 1px solid #f1f5f9;
    padding: 10px 16px 14px;
}

.payroll-list-card .datatable-tools .dataTables_info {
    color: #64748b;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .payroll-list-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .payroll-list-legend {
        justify-content: flex-start;
    }

    .payroll-list-action-col {
        min-width: 180px;
        width: 180px;
    }

    .payroll-list-action-cell {
        justify-content: flex-start;
    }
}

body[data-color="1E202D"] .payroll-list-card {
    background: #252932;
    border-color: #2f3541;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .payroll-list-header,
body[data-color="1E202D"] .payroll-list-card .filter-section-container,
body[data-color="1E202D"] .payroll-list-card .datatable-tools {
    border-color: #2f3541;
}

body[data-color="1E202D"] .payroll-list-heading h1 {
    color: #e5e7eb;
}

body[data-color="1E202D"] .payroll-list-subtitle,
body[data-color="1E202D"] .payroll-list-card .datatable-tools .dataTables_info {
    color: #aab2c5;
}

body[data-color="1E202D"] .payroll-list-card table.dataTable thead th {
    background: #2a2f3a;
    border-bottom-color: #2f3541 !important;
    color: #aab2c5;
}

body[data-color="1E202D"] .payroll-list-card table.dataTable tbody td {
    border-top-color: #2f3541 !important;
    color: #d1d5db;
}

body[data-color="1E202D"] .payroll-list-card table.dataTable tbody tr:hover td {
    background: #2a2f3a;
}

body[data-color="1E202D"] .payroll-list-empty-value {
    color: #6b7280;
}

body[data-color="1E202D"] .payroll-list-legend-processed,
body[data-color="1E202D"] .payroll-list-status-processed {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

body[data-color="1E202D"] .payroll-list-legend-pending,
body[data-color="1E202D"] .payroll-list-status-pending {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.28);
    color: #fdba74;
}

/* ══════════════════════════════════════════════════════════════════
   PAYROLL ATTENDANCE PAGE  (payroll/index)
   ══════════════════════════════════════════════════════════════════ */

.payroll-attendance-page #page-content {
    padding-top: 10px;
}

.payroll-attendance-page {
    --payroll-present-text: #166534;
    --payroll-half-day-text: #92400e;
    --payroll-unpaid-text: #991b1b;
    --payroll-paid-leave-text: #92400e;
    --payroll-weekend-text: #1d4ed8;
    --payroll-holiday-text: #475569;
    --payroll-not-defined-text: #64748b;
}

.payroll-attendance-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.payroll-attendance-header {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 22px;
}

.payroll-attendance-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.payroll-attendance-back {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}

.payroll-attendance-title-wrap h1 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.payroll-attendance-period {
    color: #64748b;
    font-size: 0.8125rem;
    margin: 0;
}

.payroll-attendance-period-sep {
    margin: 0 4px;
}

.payroll-attendance-header-actions,
.process_pay_slip_span {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.process_pay_slip_span .btn,
.process_pay_slip_span .process_pay_slip {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 6px;
    min-height: 38px;
    white-space: nowrap;
}

.payroll-attendance-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 20px;
}

.payroll-attendance-toolbar-label {
    color: #64748b;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payroll-status-legend {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.payroll-status-filter {
    align-items: center;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 5px;
    line-height: 1;
    min-height: 30px;
    padding: 6px 11px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.payroll-status-filter .icon-14 {
    height: 14px;
    width: 14px;
}

.payroll-status-filter:hover {
    background: #f8fafc;
    border-color: #b8c4d2;
}

.payroll-status-filter.is-active {
    background: #e9eef4;
    border-color: #94a3b8;
    color: #1e293b;
}

.payroll-status-filter:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.payroll-attendance-card .filter-section-container {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 20px 10px;
}

.payroll-attendance-card .filter-section-flex-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.payroll-attendance-table-wrap,
.payroll-attendance-card .dt-container {
    padding: 0;
}

.payroll-attendance-card .datatable-tools {
    border-top: 1px solid #f1f5f9;
    padding: 10px 16px 14px;
}

.payroll-attendance-card .datatable-tools .dataTables_info {
    color: #64748b;
    font-size: 0.8125rem;
}

#custom-report-attendance-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important;
    pointer-events: auto !important;
    width: 100% !important;
}

#custom-report-attendance-table thead th,
#custom-report-attendance-table tfoot th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e8edf3;
    color: #475569 !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 11px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

#custom-report-attendance-table tbody td {
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.8125rem;
    height: 42px;
    line-height: 1.35;
    padding: 8px 10px;
    vertical-align: middle;
}

#custom-report-attendance-table tbody td.payroll-empty-cell {
    color: transparent;
}

#custom-report-attendance-table .payroll-day-column {
    min-width: 58px;
    white-space: nowrap !important;
    width: 58px;
}

#custom-report-attendance-table .payroll-date-column {
    min-width: 96px;
    white-space: nowrap !important;
    width: 96px;
}

#custom-report-attendance-table .payroll-attendance-column {
    min-width: 112px;
    white-space: nowrap !important;
}

#custom-report-attendance-table tbody tr:hover td {
    background: #f8fafc !important;
}

#custom-report-attendance-table tfoot th {
    background: #f1f5f9;
    color: #1e293b !important;
    font-size: 0.8125rem;
}

.payroll-attendance-code {
    font-weight: 700;
    margin-right: 6px;
}

.payroll-status-pill {
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.payroll-pill-present {
    background: #f7fbf8;
    color: var(--payroll-present-text);
}

.payroll-pill-half-day {
    background: #fdfaf3;
    color: var(--payroll-half-day-text);
}

.payroll-pill-unpaid {
    background: #fcf7f7;
    color: var(--payroll-unpaid-text);
}

.payroll-pill-paid-leave {
    background: #fdfaf3;
    color: var(--payroll-paid-leave-text);
}

.payroll-pill-weekend {
    background: #f7f9fc;
    color: var(--payroll-weekend-text);
}

.payroll-pill-holiday {
    background: #f8fafc;
    color: var(--payroll-holiday-text);
}

.payroll-pill-not-defined {
    background: #f8fafc;
    color: var(--payroll-not-defined-text);
}

@media (max-width: 767px) {
    .payroll-attendance-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .payroll-attendance-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .payroll-attendance-header-actions,
    .process_pay_slip_span {
        justify-content: flex-start;
        width: 100%;
    }

    .payroll-attendance-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }

    .payroll-status-legend {
        width: 100%;
    }

    .payroll-status-filter {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}

body[data-color="1E202D"] .payroll-attendance-card {
    background: #252932;
    border-color: #2f3541;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body[data-color="1E202D"] .payroll-attendance-header,
body[data-color="1E202D"] .payroll-attendance-toolbar,
body[data-color="1E202D"] .payroll-attendance-card .filter-section-container,
body[data-color="1E202D"] .payroll-attendance-card .datatable-tools {
    border-color: #2f3541;
}

body[data-color="1E202D"] .payroll-attendance-toolbar {
    background: #2a2f3a;
}

body[data-color="1E202D"] .payroll-status-filter {
    background: #252932;
    border-color: #465064;
    color: #cbd5e1;
}

body[data-color="1E202D"] .payroll-status-filter:hover {
    background: #303644;
    border-color: #64748b;
}

body[data-color="1E202D"] .payroll-status-filter.is-active {
    background: #394254;
    border-color: #94a3b8;
    color: #f8fafc;
}

body[data-color="1E202D"] .payroll-attendance-title-wrap h1,
body[data-color="1E202D"] #custom-report-attendance-table tfoot th {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .payroll-attendance-period,
body[data-color="1E202D"] .payroll-attendance-toolbar-label,
body[data-color="1E202D"] .payroll-attendance-card .datatable-tools .dataTables_info {
    color: #aab2c5;
}

body[data-color="1E202D"] #custom-report-attendance-table thead th,
body[data-color="1E202D"] #custom-report-attendance-table tfoot th {
    background: #2a2f3a;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] #custom-report-attendance-table tbody td {
    border-color: #2f3541 !important;
    color: #d1d5db;
}

body[data-color="1E202D"] #custom-report-attendance-table tbody tr:hover td {
    background: #303644 !important;
}

body[data-color="1E202D"] .payroll-status-pill {
    background: #2a2f3a;
}

body[data-color="1E202D"] .payroll-pill-present { color: #86d7a5; }
body[data-color="1E202D"] .payroll-pill-half-day,
body[data-color="1E202D"] .payroll-pill-paid-leave { color: #f1c981; }
body[data-color="1E202D"] .payroll-pill-unpaid { color: #f5a4a4; }
body[data-color="1E202D"] .payroll-pill-weekend { color: #a9c7f3; }
body[data-color="1E202D"] .payroll-pill-holiday,
body[data-color="1E202D"] .payroll-pill-not-defined { color: #cbd5e1; }

@media (prefers-reduced-motion: reduce) {
    .payroll-status-filter {
        transition: none;
    }
}

/* Vehicle add/edit form */
.vehicle-form-page .vehicle-form-grid {
    margin-left: 0;
    margin-right: 0;
}

.vehicle-form-page .vehicle-form-grid > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.vehicle-form-page .vehicle-form-section-divider {
    border-top: 1px solid #e8edf3;
    margin: 4px 12px 12px;
    padding: 0;
}

.vehicle-form-page .vehicle-form-section-divider--spaced {
    margin-top: 8px;
    margin-bottom: 16px;
}

.vehicle-form-page .vehicle-form-notes {
    padding: 0 12px;
}

.vehicle-form-page .vehicle-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px 4px;
    margin-top: 4px;
}

.vehicle-form-page .vehicle-form-footer .btn {
    margin: 0;
}

.vehicle-form-page .vehicle-status-toggle {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.vehicle-form-page .vehicle-status-toggle .form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    cursor: pointer;
}

.vehicle-form-page .vehicle-readonly-field[readonly] {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.vehicle-form-page .page-title .back-btn {
    margin: 10px 0 !important;
}

@media (max-width: 767px) {
    .vehicle-form-page .vehicle-form-grid > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .vehicle-form-page .vehicle-form-section-divider {
        margin-left: 8px;
        margin-right: 8px;
    }

    .vehicle-form-page .vehicle-form-notes,
    .vehicle-form-page .vehicle-form-footer {
        padding-left: 8px;
        padding-right: 8px;
    }
}

body[data-color="1E202D"] .vehicle-form-page .vehicle-form-section-divider {
    border-top-color: #2f3541;
}

body[data-color="1E202D"] .vehicle-form-page .vehicle-readonly-field[readonly] {
    background-color: #1f2430;
    border-color: #2f3541;
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════════
   MESSAGES PAGE  –  inbox / sent split-pane polish
   ══════════════════════════════════════════════════════════════════ */

.messages-page {
    padding-bottom: 8px;
}

.messages-page .messages-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.messages-page .messages-compose-btn {
    margin: 0 !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

.messages-page .messages-folder-tabs {
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    gap: 2px;
}

.messages-page .messages-folder-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.messages-page .messages-folder-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
}

.messages-page .messages-folder-tab.active {
    color: #1e293b;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.messages-page .messages-list-panel,
.messages-page .messages-detail-panel {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    background: #fff;
}

.messages-page .messages-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.messages-page .messages-list-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.messages-page .messages-search-input {
    min-width: 180px !important;
    max-width: 220px;
}

.messages-page .messages-list-body {
    min-height: 420px;
}

.messages-page #message-table td:first-child {
    padding: 0 !important;
}

.messages-page #message-table tbody tr {
    cursor: pointer;
    transition: background-color .12s ease;
}

.messages-page #message-table tbody tr td {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0 !important;
}

.messages-page #message-table tbody tr:hover td {
    background: #f8fafc !important;
    color: inherit !important;
}

.messages-page #message-table tbody tr.active td,
.messages-page #message-table tbody tr.active:hover td {
    background: #eef2ff !important;
    color: #1e293b !important;
}

.messages-page #message-table tbody tr.active .message-row-sender,
.messages-page #message-table tbody tr.active .message-subject-text {
    color: #1e293b !important;
}

.messages-page #message-table tbody tr.active .message-row-meta,
.messages-page #message-table tbody tr.active .time {
    color: #64748b !important;
}

.messages-page #message-table tbody tr.active .message-reply-badge {
    background: #fff;
    color: #059669;
}

.messages-page .message-row {
    padding: 12px 14px 12px 16px;
    border-left: 3px solid transparent;
}

.messages-page .message-row.unread {
    border-left-color: var(--dt-th-accent, #6366f1);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
}

.messages-page .message-row.unread .message-row-sender,
.messages-page .message-row.unread .message-subject-text {
    color: #1e293b;
    font-weight: 600;
}

.messages-page .message-row-body {
    min-width: 0;
    flex: 1;
    padding-left: 12px;
}

.messages-page .message-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.messages-page .message-row-sender {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.messages-page .message-row-meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.messages-page .message-row-meta .time {
    float: none !important;
}

.messages-page .message-row-subject {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.messages-page .message-subject-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-page .message-reply-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #ecfdf5;
    color: #059669;
}

.messages-page .messages-detail-panel {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.messages-page .messages-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    min-height: 420px;
}

.messages-page .messages-empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
}

.messages-page .messages-empty-state-icon svg {
    width: 34px;
    height: 34px;
    margin-top: 0 !important;
}

.messages-page .messages-empty-state-text {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    max-width: 240px;
    line-height: 1.5;
}

.messages-page .messages-detail-header {
    border-bottom-color: #eef2f7 !important;
}

.messages-page .messages-detail-subject {
    margin-bottom: 0;
    font-size: 13px;
    color: #475569;
}

.messages-page .messages-detail-body {
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    padding-top: 4px;
}

.messages-page .messages-detail-meta .dropdown {
    position: absolute;
    right: 12px;
    margin-top: 2px;
}

.messages-page .messages-reply-form {
    border-top: 1px solid #eef2f7;
    background: #fafbfc;
}

.messages-page .messages-reply-box {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.messages-page .messages-reply-box .card-footer {
    border-top: 1px solid #eef2f7;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.messages-page .js-message-reply {
    border-bottom-color: #eef2f7 !important;
}

.messages-page .datatable-tools {
    padding: 10px 14px 12px;
    border-top: 1px solid #eef2f7;
    background: #fafbfc;
}

.messages-page .datatable-tools .dataTables_info {
    font-size: 12px;
    color: #94a3b8;
}

.messages-page .message-view .datatable-tools .col-md-3 {
    width: 35% !important;
}

.messages-page .message-view .datatable-tools .col-md-9 {
    width: 65% !important;
}

@media (max-width: 991px) {
    .messages-page .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-page .messages-detail-panel {
        min-height: 360px;
    }

    .messages-page .messages-list-header {
        flex-wrap: wrap;
    }

    .messages-page .messages-search-input {
        width: 100% !important;
        max-width: none;
    }
}

body[data-color="1E202D"] .messages-page .messages-folder-tabs {
    background: #1f2430;
    border-color: #2f3541;
}

body[data-color="1E202D"] .messages-page .messages-folder-tab {
    color: #94a3b8;
}

body[data-color="1E202D"] .messages-page .messages-folder-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
}

body[data-color="1E202D"] .messages-page .messages-folder-tab.active {
    color: #f1f5f9;
    background: #2a2f3a;
    box-shadow: none;
}

body[data-color="1E202D"] .messages-page .messages-list-panel,
body[data-color="1E202D"] .messages-page .messages-detail-panel {
    background: #252932;
    border-color: #2f3541;
    box-shadow: none;
}

body[data-color="1E202D"] .messages-page .messages-list-header,
body[data-color="1E202D"] .messages-page .messages-detail-header {
    background: #252932;
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .messages-page .messages-list-title,
body[data-color="1E202D"] .messages-page .message-row-sender,
body[data-color="1E202D"] .messages-page .messages-detail-body {
    color: #e2e8f0;
}

body[data-color="1E202D"] .messages-page .message-subject-text,
body[data-color="1E202D"] .messages-page .messages-empty-state-text {
    color: #94a3b8;
}

body[data-color="1E202D"] .messages-page #message-table tbody tr td {
    border-bottom-color: #2f3541 !important;
}

body[data-color="1E202D"] .messages-page #message-table tbody tr:hover td {
    background: #2a2f3a !important;
}

body[data-color="1E202D"] .messages-page #message-table tbody tr.active td,
body[data-color="1E202D"] .messages-page #message-table tbody tr.active:hover td {
    background: rgba(99, 102, 241, 0.12) !important;
}

body[data-color="1E202D"] .messages-page .messages-empty-state-icon {
    background: #1f2430;
    color: #475569;
}

body[data-color="1E202D"] .messages-page .messages-reply-form,
body[data-color="1E202D"] .messages-page .datatable-tools {
    background: #1f2430;
    border-color: #2f3541;
}

body[data-color="1E202D"] .messages-page .messages-reply-box .card-footer {
    background: #252932;
    border-top-color: #2f3541;
}

/* Lead info tab: compact two-column form rhythm inside the details panel. */
.leads-details-view #company-form.lead-info-form .card-body {
    padding: 8px 20px 18px;
}

.leads-details-view #company-form.lead-info-form.dashed-row .form-group {
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
    padding: 12px 0;
}

.leads-details-view #company-form.lead-info-form.dashed-row .form-group:last-child {
    border-bottom: none;
}

.leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row {
    align-items: flex-start;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
    margin: 0;
}

.leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row > [class*="col-md-"] {
    flex: none;
    max-width: none;
    padding: 0;
    width: auto;
}

.leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row > label:first-child {
    color: #475467;
    font-weight: 600;
    line-height: 1.45;
    margin: 8px 0 0;
    padding: 0 !important;
}

.leads-details-view #company-form.lead-info-form .form-control:not(.select2-offscreen),
.leads-details-view #company-form.lead-info-form textarea.form-control,
.leads-details-view #company-form.lead-info-form select.form-control,
.leads-details-view #company-form.lead-info-form .select2-container,
.leads-details-view #company-form.lead-info-form .iti {
    max-width: 620px;
}

.leads-details-view #company-form.lead-info-form .form-group > .row > [class*="col-md-"] > .row {
    margin-left: -6px;
    margin-right: -6px;
}

.leads-details-view #company-form.lead-info-form .form-group > .row > [class*="col-md-"] > .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}


.leads-details-view #company-form.lead-info-form .lead-company-name-field {
    max-width: 620px;
    position: relative;
}

.leads-details-view #company-form.lead-info-form .company_name_input_section {
    max-width: none;
    padding-right: 34px;
    width: 100%;
}

.leads-details-view #company-form.lead-info-form .lead-company-name-field .select2-container .select2-choice {
    padding-right: 34px;
}


@media (max-width: 767px) {
    .leads-details-view #company-form.lead-info-form .card-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row > label:first-child {
        margin-top: 0;
    }

    .leads-details-view #company-form.lead-info-form .form-control:not(.select2-offscreen),
    .leads-details-view #company-form.lead-info-form textarea.form-control,
    .leads-details-view #company-form.lead-info-form select.form-control,
    .leads-details-view #company-form.lead-info-form .select2-container,
    .leads-details-view #company-form.lead-info-form .iti {
        max-width: none;
    }
}

body[data-color="1E202D"] .leads-details-view #company-form.lead-info-form.dashed-row .form-group {
    border-bottom-color: #2f3541;
}

body[data-color="1E202D"] .leads-details-view #company-form.lead-info-form.dashed-row .form-group > .row > label:first-child {
    color: #cbd5e1;
}

/* Global native dark theme coverage for shared list/table controls. */
body[data-color="1E202D"] .datatable-tools,
body[data-color="1E202D"] .dt-container,
body[data-color="1E202D"] .dt-layout-row,
body[data-color="1E202D"] .dt-scroll,
body[data-color="1E202D"] .dt-scroll-body,
body[data-color="1E202D"] .dt-container .table-responsive,
body[data-color="1E202D"] .datatable-tools + .table-responsive {
    color: #898fa9 !important;
}

body[data-color="1E202D"] table.dataTable,
body[data-color="1E202D"] .dt-container table.table {
    --bs-table-bg: #252932;
    --bs-table-color: #898fa9;
    --bs-table-border-color: #2f3541;
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] table.dataTable tbody th,
body[data-color="1E202D"] table.dataTable tbody td,
body[data-color="1E202D"] .dt-container table.table tbody th,
body[data-color="1E202D"] .dt-container table.table tbody td {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] table.dataTable.row-border tbody th,
body[data-color="1E202D"] table.dataTable.row-border tbody td,
body[data-color="1E202D"] table.dataTable.display tbody th,
body[data-color="1E202D"] table.dataTable.display tbody td {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] .dataTable:not(.js-selection-mode) tbody tr:hover td,
body[data-color="1E202D"] .dt-container table.table-hover tbody tr:hover > * {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] table.dataTable tbody a:not(.btn),
body[data-color="1E202D"] .dt-container table.table tbody a:not(.btn) {
    color: #5b73e8 !important;
}

body[data-color="1E202D"] .dt-search input,
body[data-color="1E202D"] .datatable-search,
body[data-color="1E202D"] .custom-filter-search,
body[data-color="1E202D"] .datatable-tools .form-control,
body[data-color="1E202D"] .datatable-tools .select2-container .select2-choice,
body[data-color="1E202D"] .datatable-tools .filter-multi-select .dropdown-toggle,
body[data-color="1E202D"] .datatable-tools .dynamic-range-filter .dropdown-toggle {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .dt-search input::placeholder,
body[data-color="1E202D"] .datatable-search::placeholder,
body[data-color="1E202D"] .custom-filter-search::placeholder {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .dt-search input:focus,
body[data-color="1E202D"] .datatable-search:focus,
body[data-color="1E202D"] .custom-filter-search:focus,
body[data-color="1E202D"] .datatable-tools .form-control:focus {
    background-color: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .datatable-tools .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
body[data-color="1E202D"] table.dataTable .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark) {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .datatable-tools .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .datatable-tools .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus,
body[data-color="1E202D"] table.dataTable .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] table.dataTable .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .datatable-tools svg,
body[data-color="1E202D"] table.dataTable svg,
body[data-color="1E202D"] .dt-container svg,
body[data-color="1E202D"] .datatable-tools [data-feather],
body[data-color="1E202D"] table.dataTable [data-feather],
body[data-color="1E202D"] .dt-container [data-feather] {
    color: currentColor !important;
    stroke: currentColor !important;
}

body[data-color="1E202D"] .dt-container .page-link,
body[data-color="1E202D"] .dt-container .dt-paging-button .page-link {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .dt-container .active > .page-link,
body[data-color="1E202D"] .dt-container .dt-paging-button.active .page-link {
    background-color: #2f3541 !important;
    border-color: #5b73e8 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .btn.btn-default,
body[data-color="1E202D"] .btn.btn-light,
body[data-color="1E202D"] .btn.btn-outline-light,
body[data-color="1E202D"] .btn.btn-outline-default,
body[data-color="1E202D"] .btn.btn-outline-secondary,
body[data-color="1E202D"] .title-button-group .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
body[data-color="1E202D"] .filter-section-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
body[data-color="1E202D"] .filter-form .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
body[data-color="1E202D"] .dt-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
body[data-color="1E202D"] .app-popover .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark) {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

body[data-color="1E202D"] .btn.btn-default:hover,
body[data-color="1E202D"] .btn.btn-default:focus,
body[data-color="1E202D"] .btn.btn-default:active,
body[data-color="1E202D"] .btn.btn-light:hover,
body[data-color="1E202D"] .btn.btn-light:focus,
body[data-color="1E202D"] .btn.btn-light:active,
body[data-color="1E202D"] .btn.btn-outline-light:hover,
body[data-color="1E202D"] .btn.btn-outline-light:focus,
body[data-color="1E202D"] .btn.btn-outline-light:active,
body[data-color="1E202D"] .btn.btn-outline-default:hover,
body[data-color="1E202D"] .btn.btn-outline-default:focus,
body[data-color="1E202D"] .btn.btn-outline-default:active,
body[data-color="1E202D"] .btn.btn-outline-secondary:hover,
body[data-color="1E202D"] .btn.btn-outline-secondary:focus,
body[data-color="1E202D"] .btn.btn-outline-secondary:active,
body[data-color="1E202D"] .title-button-group .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .title-button-group .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus,
body[data-color="1E202D"] .filter-section-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .filter-section-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus,
body[data-color="1E202D"] .filter-form .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .filter-form .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus,
body[data-color="1E202D"] .dt-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .dt-container .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus,
body[data-color="1E202D"] .app-popover .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):hover,
body[data-color="1E202D"] .app-popover .btn:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark):focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .btn.btn-default.active,
body[data-color="1E202D"] .btn.btn-light.active,
body[data-color="1E202D"] .btn.btn-outline-light.active,
body[data-color="1E202D"] .btn.btn-outline-default.active,
body[data-color="1E202D"] .btn.btn-outline-secondary.active,
body[data-color="1E202D"] .filter-section-container .btn.active,
body[data-color="1E202D"] .filter-form .btn.active {
    background-color: rgba(91, 115, 232, 0.18) !important;
    border-color: rgba(91, 115, 232, 0.45) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .btn.btn-default:disabled,
body[data-color="1E202D"] .btn.btn-default.disabled,
body[data-color="1E202D"] .btn.btn-light:disabled,
body[data-color="1E202D"] .btn.btn-light.disabled,
body[data-color="1E202D"] .btn.btn-outline-light:disabled,
body[data-color="1E202D"] .btn.btn-outline-light.disabled,
body[data-color="1E202D"] .btn.btn-outline-default:disabled,
body[data-color="1E202D"] .btn.btn-outline-default.disabled,
body[data-color="1E202D"] .btn.btn-outline-secondary:disabled,
body[data-color="1E202D"] .btn.btn-outline-secondary.disabled,
body[data-color="1E202D"] .dt-container .btn:disabled,
body[data-color="1E202D"] .dt-container .btn.disabled {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #556174 !important;
    opacity: 1 !important;
}

body[data-color="1E202D"] .btn svg,
body[data-color="1E202D"] .btn [data-feather],
body[data-color="1E202D"] .btn i[data-feather],
body[data-color="1E202D"] a:not(.btn) svg,
body[data-color="1E202D"] a:not(.btn) [data-feather] {
    color: currentColor !important;
    stroke: currentColor !important;
}

body[data-color="1E202D"] .btn i,
body[data-color="1E202D"] .btn .fa,
body[data-color="1E202D"] .btn .fas,
body[data-color="1E202D"] .btn .far,
body[data-color="1E202D"] .btn .fab,
body[data-color="1E202D"] .btn .icon,
body[data-color="1E202D"] .btn .icon-12,
body[data-color="1E202D"] .btn .icon-14,
body[data-color="1E202D"] .btn .icon-16,
body[data-color="1E202D"] .btn .icon-18 {
    color: currentColor !important;
}

body[data-color="1E202D"] .filter-form,
body[data-color="1E202D"] .filter-section-container {
    color: #898fa9 !important;
}

body[data-color="1E202D"] td.option a:not(.btn),
body[data-color="1E202D"] .option a:not(.btn):not(.dropdown-item),
body[data-color="1E202D"] .action-option a:not(.btn):not(.dropdown-item) {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] td.option a:not(.btn):hover,
body[data-color="1E202D"] td.option a:not(.btn):focus,
body[data-color="1E202D"] .option a:not(.btn):not(.dropdown-item):hover,
body[data-color="1E202D"] .option a:not(.btn):not(.dropdown-item):focus,
body[data-color="1E202D"] .action-option a:not(.btn):not(.dropdown-item):hover,
body[data-color="1E202D"] .action-option a:not(.btn):not(.dropdown-item):focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

/* Global native dark theme coverage for FullCalendar/Event calendar surfaces. */
body[data-color="1E202D"] #event-calendar,
body[data-color="1E202D"] .fc {
    --fc-page-bg-color: #252932;
    --fc-neutral-bg-color: #20242c;
    --fc-border-color: #2f3541;
    --fc-list-event-hover-bg-color: #2f3541;
    --fc-today-bg-color: rgba(91, 115, 232, 0.14);
    --calendar-cell-border: #2f3541;
    --calendar-cell-top: #343b4a;
    --calendar-cell-soft: #252932;
    --calendar-cell-muted: #20242c;
    --calendar-cell-weekend: #232733;
    --calendar-cell-hover: rgba(91, 115, 232, 0.16);
    background-color: #252932 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] .events-calendar-card .card-body,
body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title h1,
body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title h4,
body[data-color="1E202D"] #event-calendar .fc-toolbar-title {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title .select2-container .select2-choice,
body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title .filter-multi-select .dropdown-toggle,
body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title .DTTT_container .btn {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .events-calendar-card .page-title.events-page-title .select2-container .select2-choice .select2-chosen {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-calendar .fc-scrollgrid,
body[data-color="1E202D"] #event-calendar.fc-theme-standard td,
body[data-color="1E202D"] #event-calendar.fc-theme-standard th,
body[data-color="1E202D"] #event-calendar .fc-theme-standard td,
body[data-color="1E202D"] #event-calendar .fc-theme-standard th,
body[data-color="1E202D"] .fc-theme-standard td,
body[data-color="1E202D"] .fc-theme-standard th {
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #event-calendar .fc-scrollgrid,
body[data-color="1E202D"] #event-calendar .fc-scrollgrid-section > *,
body[data-color="1E202D"] #event-calendar .fc-scrollgrid-section-sticky > *,
body[data-color="1E202D"] #event-calendar .fc-col-header,
body[data-color="1E202D"] #event-calendar .fc-col-header-cell,
body[data-color="1E202D"] #event-calendar .fc-daygrid-body,
body[data-color="1E202D"] #event-calendar .fc-daygrid-body table {
    background-color: #252932 !important;
}

body[data-color="1E202D"] #event-calendar .fc-col-header-cell,
body[data-color="1E202D"] #event-calendar .fc-theme-standard .fc-scrollgrid .fc-col-header .fc-day .fc-scrollgrid-sync-inner,
body[data-color="1E202D"] #event-calendar .fc-col-header-cell .fc-scrollgrid-sync-inner {
    background-color: #20242c !important;
}

body[data-color="1E202D"] #event-calendar .fc-col-header-cell-cushion {
    color: #74819a !important;
}

body[data-color="1E202D"] #event-calendar .fc-daygrid-day,
body[data-color="1E202D"] #event-calendar .fc-daygrid-day-frame,
body[data-color="1E202D"] #event-calendar .fc-daygrid-day-events,
body[data-color="1E202D"] #event-calendar .fc-daygrid-day-bg {
    background-color: #252932 !important;
}

body[data-color="1E202D"] #event-calendar .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #252932 0%, #232733 100%) !important;
}

body[data-color="1E202D"] #event-calendar .fc-daygrid-day-frame::before {
    background: #343b4a !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-sat .fc-daygrid-day-frame,
body[data-color="1E202D"] #event-calendar .fc-day-sun .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #252932 0%, #20242c 100%) !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-other,
body[data-color="1E202D"] #event-calendar .fc-day-other .fc-daygrid-day-frame {
    background: #20242c !important;
}

body[data-color="1E202D"] #event-calendar .fc-daygrid-day-number {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-other .fc-daygrid-day-number {
    color: #556174 !important;
}

body[data-color="1E202D"] #event-calendar .fc-daygrid-day:not(.fc-day-other):hover .fc-daygrid-day-frame {
    background: linear-gradient(180deg, #252932 0%, rgba(91, 115, 232, 0.16) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(91, 115, 232, 0.35) !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-today,
body[data-color="1E202D"] #event-calendar .fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(91, 115, 232, 0.18) !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-today .fc-daygrid-day-frame {
    background: linear-gradient(180deg, rgba(91, 115, 232, 0.22) 0%, rgba(91, 115, 232, 0.1) 100%) !important;
    box-shadow:
        inset 0 0 0 2px rgba(91, 115, 232, 0.58),
        inset 0 3px 0 #5b73e8 !important;
}

body[data-color="1E202D"] #event-calendar .fc-day-today .fc-daygrid-day-frame::before {
    background: #5b73e8 !important;
    height: 4px;
}

body[data-color="1E202D"] #event-calendar .fc-timegrid-col.fc-day-today {
    background-color: rgba(91, 115, 232, 0.18) !important;
    box-shadow: inset 0 0 0 2px rgba(91, 115, 232, 0.58) !important;
}

body[data-color="1E202D"] #event-calendar .fc-highlight {
    background: rgba(91, 115, 232, 0.2) !important;
}

body[data-color="1E202D"] #event-calendar .fc-button,
body[data-color="1E202D"] #event-calendar .fc-button-primary {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

body[data-color="1E202D"] #event-calendar .fc-button:hover,
body[data-color="1E202D"] #event-calendar .fc-button:focus,
body[data-color="1E202D"] #event-calendar .fc-button-primary:hover,
body[data-color="1E202D"] #event-calendar .fc-button-primary:focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #event-calendar .fc-button-primary:not(:disabled).fc-button-active,
body[data-color="1E202D"] #event-calendar .fc-button-primary:not(:disabled):active {
    background-color: #5b73e8 !important;
    border-color: #5b73e8 !important;
    color: #fff !important;
}

body[data-color="1E202D"] #event-calendar .fc-button:disabled,
body[data-color="1E202D"] #event-calendar .fc-button-primary:disabled {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #556174 !important;
    opacity: 1 !important;
}

body[data-color="1E202D"] #event-calendar .fc-list,
body[data-color="1E202D"] #event-calendar .fc-theme-standard .fc-list {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #event-calendar .fc-list-day-cushion,
body[data-color="1E202D"] #event-calendar .fc-list-table th {
    background-color: #20242c !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-calendar .fc-list-event td {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #event-calendar .fc-list-event:hover td {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #event-calendar .fc-list-empty {
    background-color: #20242c !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #event-calendar .fc-timegrid-slot,
body[data-color="1E202D"] #event-calendar .fc-timegrid-axis,
body[data-color="1E202D"] #event-calendar .fc-timegrid-divider,
body[data-color="1E202D"] #event-calendar .fc-timegrid-cols,
body[data-color="1E202D"] #event-calendar .fc-timegrid-col,
body[data-color="1E202D"] #event-calendar .fc-timegrid-body {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #event-calendar .fc-timegrid-slot-label-cushion,
body[data-color="1E202D"] #event-calendar .fc-timegrid-axis-cushion {
    color: #74819a !important;
}

body[data-color="1E202D"] #event-calendar .fc-popover {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42) !important;
}

body[data-color="1E202D"] #event-calendar .fc-popover-header {
    background-color: #20242c !important;
    border-bottom-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-calendar .fc-popover-body {
    background-color: #252932 !important;
}

body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown.select2-container {
    background: transparent !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown.select2-container-active .select2-choice,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown.select2-dropdown-open .select2-choice,
body[data-color="1E202D"] #event-labels-dropdown + .select2-container .select2-choice {
    background: #20242c !important;
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    box-shadow: none !important;
    color: #cbd5e1 !important;
    filter: none !important;
}

body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice > .select2-chosen,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice .select2-chosen,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-default,
body[data-color="1E202D"] #event-labels-dropdown + .select2-container .select2-chosen {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice .select2-arrow,
body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice div {
    background: transparent !important;
    border-left-color: #2f3541 !important;
    filter: none !important;
}

body[data-color="1E202D"] #event-filter-area #s2id_event-labels-dropdown .select2-choice .select2-arrow b {
    opacity: .8;
    filter: invert(1) brightness(1.35);
}

body[data-color="1E202D"] .select2-drop,
body[data-color="1E202D"] .select2-drop-active,
body[data-color="1E202D"] .select2-drop.select2-drop-above {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .select2-search input {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .select2-results .select2-result-label {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .select2-results .select2-highlighted {
    background: #2f3541 !important;
    color: #e5e7eb !important;
}

/* Native dark theme coverage for reminders modal/popover content. */
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-content,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-header,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-footer,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #ajaxModalContent,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #reminder-modal-body {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-header,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-footer {
    background-color: #20242c !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .modal-title,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #ajaxModalTitle,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) label,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) strong {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .btn-close {
    filter: invert(1) grayscale(100%) brightness(1.7);
    opacity: .9;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .btn-close:hover,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .btn-close:focus {
    opacity: 1;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .form-control,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .select2-container .select2-choice,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .select2-container .select2-choices,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .select2-container .select2-choices .select2-search-field input {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .form-control::placeholder {
    color: #74819a !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .form-control:focus {
    background-color: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .form-check-input {
    background-color: #20242c !important;
    border-color: #3d4454 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .form-check-input:checked {
    background-color: #5b73e8 !important;
    border-color: #5b73e8 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .table-responsive,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) table.dataTable,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) table.dataTable.no-thead {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) table.dataTable tbody td,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) table.dataTable.no-thead tbody td {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) table.dataTable tbody tr:hover td {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section a,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section .dark,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section .strong {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section .text-off,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section small,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .reminder-title-section span {
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .missed-reminder {
    border-left-color: #e11d48 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .dropdown-menu {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .dropdown-item {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .dropdown-item:hover,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .dropdown-item:focus {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #show-all-reminders-btn {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #show-all-reminders-btn:hover,
body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) #show-all-reminders-btn:focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal:has(#reminder-modal-body) .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: #556174 !important;
}

/* Fallback for the app-level reminder modal class so the shell never keeps light surfaces. */
body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-content,
body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-header,
body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-footer,
body[data-color="1E202D"] #ajaxModal.reminder-modal #ajaxModalContent,
body[data-color="1E202D"] #ajaxModal.reminder-modal #reminder-modal-body {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-header,
body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-footer {
    background-color: #20242c !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .modal-title,
body[data-color="1E202D"] #ajaxModal.reminder-modal #ajaxModalTitle,
body[data-color="1E202D"] #ajaxModal.reminder-modal label,
body[data-color="1E202D"] #ajaxModal.reminder-modal strong {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(1.7);
    opacity: .9;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .form-control,
body[data-color="1E202D"] #ajaxModal.reminder-modal .select2-container .select2-choice,
body[data-color="1E202D"] #ajaxModal.reminder-modal .select2-container .select2-choices,
body[data-color="1E202D"] #ajaxModal.reminder-modal .select2-container .select2-choices .select2-search-field input {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .form-control::placeholder {
    color: #74819a !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .form-control:focus {
    background-color: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal .table-responsive,
body[data-color="1E202D"] #ajaxModal.reminder-modal table.dataTable,
body[data-color="1E202D"] #ajaxModal.reminder-modal table.dataTable.no-thead,
body[data-color="1E202D"] #ajaxModal.reminder-modal table.dataTable tbody td,
body[data-color="1E202D"] #ajaxModal.reminder-modal table.dataTable.no-thead tbody td {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal #show-all-reminders-btn {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #ajaxModal.reminder-modal #show-all-reminders-btn:hover,
body[data-color="1E202D"] #ajaxModal.reminder-modal #show-all-reminders-btn:focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

/* Dark theme coverage for comment popups and their shared composer. */
body[data-color="1E202D"] #commentsModal .modal-content,
body[data-color="1E202D"] #commentsModal .modal-header,
body[data-color="1E202D"] #commentsModal .modal-body,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .modal-content,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .modal-header,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .modal-body,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .modal-content,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .modal-header,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .modal-body {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #commentsModal .modal-header,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .modal-header,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .modal-header {
    background-color: #20242c !important;
}

body[data-color="1E202D"] #commentsModal .modal-title,
body[data-color="1E202D"] #commentsModal .modal-title i,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .modal-title,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .modal-title {
    color: #cbd5e1 !important;
    stroke: #cbd5e1 !important;
}

body[data-color="1E202D"] #commentsModal .btn-close,
body[data-color="1E202D"] #commentsModal .close,
body[data-color="1E202D"] #ajaxModal:has(#comment-form-container) .btn-close,
body[data-color="1E202D"] #ajaxModal:has(.comment-form-container) .btn-close {
    color: #e5e7eb !important;
    filter: invert(1) grayscale(100%) brightness(1.7);
    opacity: .9;
}

body[data-color="1E202D"] #comment-form-container,
body[data-color="1E202D"] .comment-form-container {
    border-top-color: #2f3541 !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone textarea.form-control,
body[data-color="1E202D"] .comment-form-container .post-dropzone textarea.form-control,
body[data-color="1E202D"] #comment-form-container textarea[name="description"].form-control,
body[data-color="1E202D"] .comment-form-container textarea[name="description"].form-control {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone textarea.form-control::placeholder,
body[data-color="1E202D"] .comment-form-container .post-dropzone textarea.form-control::placeholder,
body[data-color="1E202D"] #comment-form-container textarea[name="description"].form-control::placeholder,
body[data-color="1E202D"] .comment-form-container textarea[name="description"].form-control::placeholder {
    color: #74819a !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone textarea.form-control:focus,
body[data-color="1E202D"] .comment-form-container .post-dropzone textarea.form-control:focus,
body[data-color="1E202D"] #comment-form-container textarea[name="description"].form-control:focus,
body[data-color="1E202D"] .comment-form-container textarea[name="description"].form-control:focus {
    background-color: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone .form-check-input,
body[data-color="1E202D"] .comment-form-container .post-dropzone .form-check-input {
    background-color: #20242c !important;
    border-color: #3d4454 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone .form-check-input:checked,
body[data-color="1E202D"] .comment-form-container .post-dropzone .form-check-input:checked {
    background-color: #5b73e8 !important;
    border-color: #5b73e8 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone .form-check-label,
body[data-color="1E202D"] .comment-form-container .post-dropzone .form-check-label,
body[data-color="1E202D"] #comment-form-container .comment-container,
body[data-color="1E202D"] .comment-form-container .comment-container,
body[data-color="1E202D"] .comment-container,
body[data-color="1E202D"] .comment-container p {
    color: #898fa9 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone > footer.card-footer,
body[data-color="1E202D"] .comment-form-container .post-dropzone > footer.card-footer {
    background: #20242c !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone .upload-file-button,
body[data-color="1E202D"] .comment-form-container .post-dropzone .upload-file-button,
body[data-color="1E202D"] #comment-form-container .post-dropzone .ticket-template-button,
body[data-color="1E202D"] .comment-form-container .post-dropzone .ticket-template-button,
body[data-color="1E202D"] #comment-form-container .post-dropzone .record-start-btn,
body[data-color="1E202D"] .comment-form-container .post-dropzone .record-start-btn,
body[data-color="1E202D"] #comment-form-container .post-dropzone .record-end-btn,
body[data-color="1E202D"] .comment-form-container .post-dropzone .record-end-btn {
    background: #252932 !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] #comment-form-container .post-dropzone .upload-file-button:hover,
body[data-color="1E202D"] .comment-form-container .post-dropzone .upload-file-button:hover,
body[data-color="1E202D"] #comment-form-container .post-dropzone .ticket-template-button:hover,
body[data-color="1E202D"] .comment-form-container .post-dropzone .ticket-template-button:hover,
body[data-color="1E202D"] #comment-form-container .post-dropzone .record-start-btn:hover,
body[data-color="1E202D"] .comment-form-container .post-dropzone .record-start-btn:hover,
body[data-color="1E202D"] #comment-form-container .post-dropzone .record-end-btn:hover,
body[data-color="1E202D"] .comment-form-container .post-dropzone .record-end-btn:hover {
    background: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

/* Strong dark-theme pass for AI dashboards so embedded page styles cannot restore light cards. */
body[data-color="1E202D"] .lead-ai-wrap,
body[data-color="1E202D"] .si-ai-wrap,
body[data-color="1E202D"] .est-ai-wrap,
body[data-color="1E202D"] .proj-ai-wrap {
    --ai-card-bg: #252932;
    --ai-card-border: #2f3541;
    --ai-card-shadow: none;
    --ai-ink: #e5e7eb;
    --ai-muted: #aab2c5;
    --ai-soft-blue: rgba(47, 128, 237, .16);
    --ai-soft-red: rgba(232, 93, 63, .14);
    --ai-soft-green: rgba(15, 159, 110, .16);
    --ai-soft-amber: rgba(201, 130, 18, .16);
    --ai-soft-purple: rgba(124, 92, 196, .16);
    background: #1c1f26 !important;
    color: var(--ai-muted) !important;
}

body[data-color="1E202D"] .lead-ai-wrap > .card,
body[data-color="1E202D"] .si-ai-wrap > .card,
body[data-color="1E202D"] .est-ai-wrap > .card,
body[data-color="1E202D"] .proj-ai-wrap .proj-ai-filter-card,
body[data-color="1E202D"] .lead-ai-wrap .row .card,
body[data-color="1E202D"] .si-ai-wrap .row .card,
body[data-color="1E202D"] .est-ai-wrap .row .card,
body[data-color="1E202D"] .proj-ai-wrap .row .card,
body[data-color="1E202D"] .lead-ai-wrap > .card.mt5,
body[data-color="1E202D"] .si-ai-wrap > .card.mt5,
body[data-color="1E202D"] .est-ai-wrap > .card.mt5,
body[data-color="1E202D"] .proj-ai-wrap > .card.mt5,
body[data-color="1E202D"] .lead-ai-wrap .highlight,
body[data-color="1E202D"] .si-ai-wrap .highlight,
body[data-color="1E202D"] .est-ai-wrap .highlight,
body[data-color="1E202D"] .proj-ai-wrap .highlight,
body[data-color="1E202D"] .lead-ai-wrap .ai-block,
body[data-color="1E202D"] .si-ai-wrap .ai-block,
body[data-color="1E202D"] .est-ai-wrap .ai-block,
body[data-color="1E202D"] .proj-ai-wrap .ai-block,
body[data-color="1E202D"] .lead-ai-wrap .comment-item,
body[data-color="1E202D"] .si-ai-wrap .comment-item,
body[data-color="1E202D"] .est-ai-wrap .comment-item,
body[data-color="1E202D"] .proj-ai-wrap .comment-item {
    background: #252932 !important;
    background-image: none !important;
    border-color: #2f3541 !important;
    box-shadow: none !important;
    color: var(--ai-muted) !important;
}

body[data-color="1E202D"] .lead-ai-wrap .kpi,
body[data-color="1E202D"] .si-ai-wrap .kpi,
body[data-color="1E202D"] .est-ai-wrap .kpi,
body[data-color="1E202D"] .proj-ai-wrap .kpi {
    background-color: #252932 !important;
    background-image: linear-gradient(180deg, #252932 0%, #20242c 100%) !important;
    border-color: #2f3541 !important;
    border-top-color: var(--ai-blue) !important;
    border-left-color: var(--ai-blue) !important;
    box-shadow: none !important;
    color: var(--ai-muted) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(1) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(1) .kpi {
    background-image: linear-gradient(180deg, #252932 0%, rgba(47, 128, 237, .14) 100%) !important;
    border-top-color: var(--ai-blue) !important;
    border-left-color: var(--ai-blue) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(2) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(2) .kpi {
    background-image: linear-gradient(180deg, #252932 0%, rgba(201, 130, 18, .14) 100%) !important;
    border-top-color: var(--ai-amber) !important;
    border-left-color: var(--ai-amber) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(3) .kpi,
body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(5) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(5) .kpi {
    background-image: linear-gradient(180deg, #252932 0%, rgba(15, 159, 110, .14) 100%) !important;
    border-top-color: var(--ai-green) !important;
    border-left-color: var(--ai-green) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(4) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(4) .kpi {
    background-image: linear-gradient(180deg, #252932 0%, rgba(232, 93, 63, .13) 100%) !important;
    border-top-color: var(--ai-red) !important;
    border-left-color: var(--ai-red) !important;
}

body[data-color="1E202D"] #lead-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #si-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #est-ai-kpis > [class*="col-"]:nth-child(6) .kpi,
body[data-color="1E202D"] #proj-ai-kpis > [class*="col-"]:nth-child(6) .kpi {
    background-image: linear-gradient(180deg, #252932 0%, rgba(124, 92, 196, .14) 100%) !important;
    border-top-color: var(--ai-purple) !important;
    border-left-color: var(--ai-purple) !important;
}

body[data-color="1E202D"] .lead-ai-wrap h4,
body[data-color="1E202D"] .si-ai-wrap h4,
body[data-color="1E202D"] .est-ai-wrap h4,
body[data-color="1E202D"] .proj-ai-wrap .proj-ai-title,
body[data-color="1E202D"] .lead-ai-wrap .section-title,
body[data-color="1E202D"] .si-ai-wrap .section-title,
body[data-color="1E202D"] .est-ai-wrap .section-title,
body[data-color="1E202D"] .proj-ai-wrap .section-title,
body[data-color="1E202D"] .lead-ai-wrap .kpi .kv,
body[data-color="1E202D"] .si-ai-wrap .kpi .kv,
body[data-color="1E202D"] .est-ai-wrap .kpi .kv,
body[data-color="1E202D"] .proj-ai-wrap .kpi .kv,
body[data-color="1E202D"] .lead-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .si-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .est-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .proj-ai-wrap .highlight .hl-name,
body[data-color="1E202D"] .lead-ai-wrap .table th,
body[data-color="1E202D"] .si-ai-wrap .table th,
body[data-color="1E202D"] .est-ai-wrap .table th,
body[data-color="1E202D"] .proj-ai-wrap .table th {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .lead-ai-wrap .text-off,
body[data-color="1E202D"] .si-ai-wrap .text-off,
body[data-color="1E202D"] .est-ai-wrap .text-off,
body[data-color="1E202D"] .proj-ai-wrap .text-off,
body[data-color="1E202D"] .lead-ai-wrap .filter-label,
body[data-color="1E202D"] .si-ai-wrap .filter-label,
body[data-color="1E202D"] .est-ai-wrap .filter-label,
body[data-color="1E202D"] .proj-ai-wrap .filter-label,
body[data-color="1E202D"] .lead-ai-wrap .kpi .kl,
body[data-color="1E202D"] .lead-ai-wrap .kpi .ks,
body[data-color="1E202D"] .si-ai-wrap .kpi .kl,
body[data-color="1E202D"] .si-ai-wrap .kpi .ks,
body[data-color="1E202D"] .est-ai-wrap .kpi .kl,
body[data-color="1E202D"] .est-ai-wrap .kpi .ks,
body[data-color="1E202D"] .proj-ai-wrap .kpi .kl,
body[data-color="1E202D"] .proj-ai-wrap .kpi .ks,
body[data-color="1E202D"] .lead-ai-wrap .table td,
body[data-color="1E202D"] .si-ai-wrap .table td,
body[data-color="1E202D"] .est-ai-wrap .table td,
body[data-color="1E202D"] .proj-ai-wrap .table td {
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .lead-ai-wrap .table,
body[data-color="1E202D"] .si-ai-wrap .table,
body[data-color="1E202D"] .est-ai-wrap .table,
body[data-color="1E202D"] .proj-ai-wrap .table,
body[data-color="1E202D"] .lead-ai-wrap .table thead th,
body[data-color="1E202D"] .si-ai-wrap .table thead th,
body[data-color="1E202D"] .est-ai-wrap .table thead th,
body[data-color="1E202D"] .proj-ai-wrap .table thead th,
body[data-color="1E202D"] .lead-ai-wrap .table tbody td,
body[data-color="1E202D"] .si-ai-wrap .table tbody td,
body[data-color="1E202D"] .est-ai-wrap .table tbody td,
body[data-color="1E202D"] .proj-ai-wrap .table tbody td,
body[data-color="1E202D"] .lead-ai-wrap .dist-row,
body[data-color="1E202D"] .si-ai-wrap .dist-row,
body[data-color="1E202D"] .est-ai-wrap .dist-row,
body[data-color="1E202D"] .proj-ai-wrap .dist-row {
    background-color: transparent !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .lead-ai-wrap .kpi .mini-bar,
body[data-color="1E202D"] .si-ai-wrap .kpi .mini-bar,
body[data-color="1E202D"] .est-ai-wrap .kpi .mini-bar,
body[data-color="1E202D"] .proj-ai-wrap .kpi .mini-bar,
body[data-color="1E202D"] .lead-ai-wrap .mini-bar,
body[data-color="1E202D"] .si-ai-wrap .mini-bar,
body[data-color="1E202D"] .est-ai-wrap .mini-bar,
body[data-color="1E202D"] .proj-ai-wrap .mini-bar {
    background: #1f232b !important;
}

/* Global dark theme for every popup/modal shell and common popup content. */
body[data-color="1E202D"] .modal .modal-content,
body[data-color="1E202D"] .modal .modal-header,
body[data-color="1E202D"] .modal .modal-body,
body[data-color="1E202D"] .modal .modal-footer,
body[data-color="1E202D"] .modal #ajaxModalContent,
body[data-color="1E202D"] .modal #ajaxModal2Content,
body[data-color="1E202D"] .modal #ajaxModal3Content,
body[data-color="1E202D"] .modal #ajaxModal4Content,
body[data-color="1E202D"] .modal .original-modal-body,
body[data-color="1E202D"] .app-modal,
body[data-color="1E202D"] .app-modal-content,
body[data-color="1E202D"] .app-modal-body {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .modal .modal-header,
body[data-color="1E202D"] .modal .modal-footer {
    background-color: #20242c !important;
}

body[data-color="1E202D"] .modal .modal-title,
body[data-color="1E202D"] .modal h1,
body[data-color="1E202D"] .modal h2,
body[data-color="1E202D"] .modal h3,
body[data-color="1E202D"] .modal h4,
body[data-color="1E202D"] .modal h5,
body[data-color="1E202D"] .modal h6,
body[data-color="1E202D"] .modal label,
body[data-color="1E202D"] .modal .form-label,
body[data-color="1E202D"] .modal .control-label,
body[data-color="1E202D"] .modal strong,
body[data-color="1E202D"] .modal .strong,
body[data-color="1E202D"] .modal .dark,
body[data-color="1E202D"] .app-modal h1,
body[data-color="1E202D"] .app-modal h2,
body[data-color="1E202D"] .app-modal h3,
body[data-color="1E202D"] .app-modal h4,
body[data-color="1E202D"] .app-modal h5,
body[data-color="1E202D"] .app-modal h6 {
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal p,
body[data-color="1E202D"] .modal small,
body[data-color="1E202D"] .modal .text-off,
body[data-color="1E202D"] .modal .text-muted,
body[data-color="1E202D"] .modal .help-block,
body[data-color="1E202D"] .modal .help,
body[data-color="1E202D"] .modal .description,
body[data-color="1E202D"] .app-modal p,
body[data-color="1E202D"] .app-modal small,
body[data-color="1E202D"] .app-modal .text-off,
body[data-color="1E202D"] .app-modal .text-muted {
    color: #898fa9 !important;
}

body[data-color="1E202D"] .modal .btn-close,
body[data-color="1E202D"] .modal .close,
body[data-color="1E202D"] .app-modal-fixed-close-button,
body[data-color="1E202D"] .app-modal-close,
body[data-color="1E202D"] .app-modal .compress,
body[data-color="1E202D"] .app-modal .expand,
body[data-color="1E202D"] .app-modal .app-modal-zoom-in-button,
body[data-color="1E202D"] .app-modal .app-modal-zoom-out-button {
    color: #e5e7eb !important;
    filter: invert(1) grayscale(100%) brightness(1.7);
    opacity: .9;
}

body[data-color="1E202D"] .modal .btn-close:hover,
body[data-color="1E202D"] .modal .btn-close:focus,
body[data-color="1E202D"] .modal .close:hover,
body[data-color="1E202D"] .modal .close:focus,
body[data-color="1E202D"] .app-modal-fixed-close-button:hover,
body[data-color="1E202D"] .app-modal-fixed-close-button:focus,
body[data-color="1E202D"] .app-modal-close:hover,
body[data-color="1E202D"] .app-modal-close:focus {
    opacity: 1;
}

body[data-color="1E202D"] .modal .form-control,
body[data-color="1E202D"] .modal .custom-select,
body[data-color="1E202D"] .modal select,
body[data-color="1E202D"] .modal textarea,
body[data-color="1E202D"] .modal input[type="text"],
body[data-color="1E202D"] .modal input[type="email"],
body[data-color="1E202D"] .modal input[type="number"],
body[data-color="1E202D"] .modal input[type="password"],
body[data-color="1E202D"] .modal input[type="search"],
body[data-color="1E202D"] .modal input[type="tel"],
body[data-color="1E202D"] .modal input[type="url"],
body[data-color="1E202D"] .modal input[type="date"],
body[data-color="1E202D"] .modal input[type="time"],
body[data-color="1E202D"] .modal .select2-container .select2-choice,
body[data-color="1E202D"] .modal .select2-container .select2-choices,
body[data-color="1E202D"] .modal .select2-container .select2-choices .select2-search-field input,
body[data-color="1E202D"] .app-modal .form-control,
body[data-color="1E202D"] .app-modal select,
body[data-color="1E202D"] .app-modal textarea,
body[data-color="1E202D"] .app-modal input {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal .form-control::placeholder,
body[data-color="1E202D"] .modal textarea::placeholder,
body[data-color="1E202D"] .modal input::placeholder,
body[data-color="1E202D"] .app-modal .form-control::placeholder,
body[data-color="1E202D"] .app-modal textarea::placeholder,
body[data-color="1E202D"] .app-modal input::placeholder {
    color: #74819a !important;
    opacity: 1;
}

body[data-color="1E202D"] .modal .form-control:focus,
body[data-color="1E202D"] .modal select:focus,
body[data-color="1E202D"] .modal textarea:focus,
body[data-color="1E202D"] .modal input:focus,
body[data-color="1E202D"] .modal .select2-dropdown-open .select2-choice,
body[data-color="1E202D"] .app-modal .form-control:focus,
body[data-color="1E202D"] .app-modal select:focus,
body[data-color="1E202D"] .app-modal textarea:focus,
body[data-color="1E202D"] .app-modal input:focus {
    background-color: #20242c !important;
    border-color: #5b73e8 !important;
    box-shadow: 0 0 0 3px rgba(91, 115, 232, 0.18) !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal .form-check-input,
body[data-color="1E202D"] .modal input[type="checkbox"],
body[data-color="1E202D"] .modal input[type="radio"] {
    background-color: #20242c !important;
    border-color: #3d4454 !important;
}

body[data-color="1E202D"] .modal .form-check-input:checked,
body[data-color="1E202D"] .modal input[type="checkbox"]:checked,
body[data-color="1E202D"] .modal input[type="radio"]:checked {
    background-color: #5b73e8 !important;
    border-color: #5b73e8 !important;
}

body[data-color="1E202D"] .modal .card,
body[data-color="1E202D"] .modal .card-body,
body[data-color="1E202D"] .modal .card-header,
body[data-color="1E202D"] .modal .card-footer,
body[data-color="1E202D"] .modal .panel,
body[data-color="1E202D"] .modal .panel-body,
body[data-color="1E202D"] .modal .box,
body[data-color="1E202D"] .modal .well,
body[data-color="1E202D"] .modal .list-group-item,
body[data-color="1E202D"] .modal .file-upload-box,
body[data-color="1E202D"] .modal .post-dropzone,
body[data-color="1E202D"] .modal .dropzone,
body[data-color="1E202D"] .modal .bg-white {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .modal .table,
body[data-color="1E202D"] .modal .table-responsive,
body[data-color="1E202D"] .modal table,
body[data-color="1E202D"] .modal table th,
body[data-color="1E202D"] .modal table td,
body[data-color="1E202D"] .modal table.dataTable,
body[data-color="1E202D"] .modal table.dataTable th,
body[data-color="1E202D"] .modal table.dataTable td {
    background-color: transparent !important;
    border-color: #2f3541 !important;
    color: #aab2c5 !important;
}

body[data-color="1E202D"] .modal table thead th,
body[data-color="1E202D"] .modal table.dataTable thead th {
    background-color: #20242c !important;
    color: #dbe4f0 !important;
}

body[data-color="1E202D"] .modal .table-hover tbody tr:hover,
body[data-color="1E202D"] .modal .table-hover tbody tr:hover td,
body[data-color="1E202D"] .modal table.dataTable tbody tr:hover,
body[data-color="1E202D"] .modal table.dataTable tbody tr:hover td {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal .nav-tabs,
body[data-color="1E202D"] .modal .nav-tabs.title {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
}

body[data-color="1E202D"] .modal .nav-tabs .nav-link,
body[data-color="1E202D"] .modal .nav-tabs > li > a {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #898fa9 !important;
}

body[data-color="1E202D"] .modal .nav-tabs .nav-link.active,
body[data-color="1E202D"] .modal .nav-tabs .nav-link:hover,
body[data-color="1E202D"] .modal .nav-tabs .nav-link:focus,
body[data-color="1E202D"] .modal .nav-tabs > li.active > a,
body[data-color="1E202D"] .modal .nav-tabs > li > a:hover,
body[data-color="1E202D"] .modal .nav-tabs > li > a:focus {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal .dropdown-menu,
body[data-color="1E202D"] .modal .context-menu-list,
body[data-color="1E202D"] .app-modal .dropdown-menu {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .modal .dropdown-item,
body[data-color="1E202D"] .modal .context-menu-item,
body[data-color="1E202D"] .app-modal .dropdown-item {
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .modal .dropdown-item:hover,
body[data-color="1E202D"] .modal .dropdown-item:focus,
body[data-color="1E202D"] .modal .context-menu-item:hover,
body[data-color="1E202D"] .modal .context-menu-item.context-menu-hover,
body[data-color="1E202D"] .app-modal .dropdown-item:hover,
body[data-color="1E202D"] .app-modal .dropdown-item:focus {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal .btn-default,
body[data-color="1E202D"] .modal .btn-light,
body[data-color="1E202D"] .modal .btn-outline-light,
body[data-color="1E202D"] .modal .btn-outline-default,
body[data-color="1E202D"] .modal .btn-outline-secondary,
body[data-color="1E202D"] .modal-footer [data-bs-dismiss="modal"],
body[data-color="1E202D"] .modal-footer .close-modal,
body[data-color="1E202D"] .app-modal .btn-default,
body[data-color="1E202D"] .app-modal .btn-light {
    background-color: #20242c !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .modal .btn-default:hover,
body[data-color="1E202D"] .modal .btn-default:focus,
body[data-color="1E202D"] .modal .btn-light:hover,
body[data-color="1E202D"] .modal .btn-light:focus,
body[data-color="1E202D"] .modal .btn-outline-light:hover,
body[data-color="1E202D"] .modal .btn-outline-light:focus,
body[data-color="1E202D"] .modal .btn-outline-default:hover,
body[data-color="1E202D"] .modal .btn-outline-default:focus,
body[data-color="1E202D"] .modal .btn-outline-secondary:hover,
body[data-color="1E202D"] .modal .btn-outline-secondary:focus,
body[data-color="1E202D"] .modal-footer [data-bs-dismiss="modal"]:hover,
body[data-color="1E202D"] .modal-footer [data-bs-dismiss="modal"]:focus,
body[data-color="1E202D"] .modal-footer .close-modal:hover,
body[data-color="1E202D"] .modal-footer .close-modal:focus,
body[data-color="1E202D"] .app-modal .btn-default:hover,
body[data-color="1E202D"] .app-modal .btn-default:focus,
body[data-color="1E202D"] .app-modal .btn-light:hover,
body[data-color="1E202D"] .app-modal .btn-light:focus {
    background-color: #2f3541 !important;
    border-color: #3d4454 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .modal a:not(.btn),
body[data-color="1E202D"] .app-modal a:not(.btn) {
    color: #8ea2ff !important;
}

body[data-color="1E202D"] .modal a:not(.btn):hover,
body[data-color="1E202D"] .modal a:not(.btn):focus,
body[data-color="1E202D"] .app-modal a:not(.btn):hover,
body[data-color="1E202D"] .app-modal a:not(.btn):focus {
    color: #c7d2fe !important;
}

body[data-color="1E202D"] .modal svg,
body[data-color="1E202D"] .modal [data-feather],
body[data-color="1E202D"] .app-modal svg,
body[data-color="1E202D"] .app-modal [data-feather] {
    stroke: currentColor;
}

body[data-color="1E202D"] .modal .modal-mask {
    background-color: rgba(28, 31, 38, .72) !important;
}

body[data-color="1E202D"] .modal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,
body[data-color="1E202D"] .app-modal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: #556174 !important;
}

body[data-color="1E202D"] .datepicker,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget,
body[data-color="1E202D"] .timepicker,
body[data-color="1E202D"] .daterangepicker {
    background-color: #252932 !important;
    border-color: #2f3541 !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .datepicker table tr td,
body[data-color="1E202D"] .datepicker table tr th,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table td,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table th,
body[data-color="1E202D"] .daterangepicker td,
body[data-color="1E202D"] .daterangepicker th {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

body[data-color="1E202D"] .datepicker table tr td:hover,
body[data-color="1E202D"] .datepicker table tr th:hover,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table td:hover,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table th:hover,
body[data-color="1E202D"] .daterangepicker td.available:hover,
body[data-color="1E202D"] .daterangepicker th.available:hover {
    background-color: #2f3541 !important;
    color: #e5e7eb !important;
}

body[data-color="1E202D"] .datepicker table tr td.active,
body[data-color="1E202D"] .datepicker table tr td.active:hover,
body[data-color="1E202D"] .datepicker table tr td span.active,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table td.active,
body[data-color="1E202D"] .bootstrap-datetimepicker-widget table td.active:hover,
body[data-color="1E202D"] .daterangepicker td.active,
body[data-color="1E202D"] .daterangepicker td.active:hover {
    background-color: #5b73e8 !important;
    color: #fff !important;
}

/* Inspection Reports */
.inspection-report-view .inspection-report-meta {
    border: 1px solid #e8ecf1;
    border-radius: 7px;
    overflow: hidden;
}

.inspection-report-view .row.mb20 > [class*="col-md-"] {
    margin-bottom: 10px;
}

.inspection-report-view .inspection-report-meta .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding: 12px 16px;
    border-color: #eef2f6;
}

.inspection-report-view .inspection-report-meta .list-group-item span {
    flex: 0 0 135px;
    color: #7b8190;
    font-size: 12px;
    font-weight: 500;
}

.inspection-report-view .inspection-report-meta .list-group-item strong {
    flex: 1 1 auto;
    min-width: 0;
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
    padding-left: 10px;
}

.inspection-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.inspection-report-summary-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
}

.inspection-report-summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.inspection-report-summary-label {
    color: #4e5e6a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.inspection-report-summary-tile strong {
    margin-left: auto;
    color: #1e293b;
    font-size: 16px;
}

.inspection-report-section-title {
    padding: 8px 12px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.inspection-report-note {
    padding: 12px 14px;
    color: #334155;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
    line-height: 1.5;
}

.inspection-observation-item {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
}

.inspection-observation-item .card-body {
    padding: 15px;
}

.inspection-observation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.inspection-observation-heading strong {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.inspection-observation-images {
    display: grid;
    gap: 10px;
}

.inspection-observation-image-row {
    display: grid;
    gap: 8px;
    align-items: start;
    margin-inline: auto;
    max-width: 100%;
}

.inspection-observation-photo {
    min-width: 0;
    margin: 0;
}

.inspection-observation-photo-reference {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.inspection-observation-image {
    display: block;
    min-width: 0;
}

.inspection-observation-item .text-off {
    color: #64748b;
    opacity: 1;
}

.inspection-observation-image:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.inspection-observation-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
}

.inspection-observation-empty {
    min-height: 120px;
    border: 1px dashed #d8dee6;
    border-radius: 7px;
    background: #f8fafc;
}

.inspection-observation-recommendation {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 7px;
}

.inspection-observation-actions a {
    color: #64748b;
}

.inspection-observation-actions a:hover,
.inspection-observation-actions a:focus {
    color: #29689e;
}

body[data-color="1E202D"] .inspection-report-view .inspection-report-meta,
body[data-color="1E202D"] .inspection-report-summary-tile,
body[data-color="1E202D"] .inspection-report-section-title,
body[data-color="1E202D"] .inspection-report-note,
body[data-color="1E202D"] .inspection-observation-item,
body[data-color="1E202D"] .inspection-observation-recommendation {
    background-color: #252932;
    border-color: #2f3541;
}

body[data-color="1E202D"] .inspection-report-view .inspection-report-meta .list-group-item {
    border-color: #2f3541;
}

body[data-color="1E202D"] .inspection-report-view .inspection-report-meta .list-group-item strong,
body[data-color="1E202D"] .inspection-report-summary-tile strong,
body[data-color="1E202D"] .inspection-report-section-title,
body[data-color="1E202D"] .inspection-observation-item {
    color: #cbd5e1;
}

body[data-color="1E202D"] .inspection-observation-item .text-off {
    color: #aab4c3 !important;
}

body[data-color="1E202D"] .inspection-observation-heading strong {
    color: #e5e7eb;
}

body[data-color="1E202D"] .inspection-report-summary-label,
body[data-color="1E202D"] .inspection-report-view .inspection-report-meta .list-group-item span,
body[data-color="1E202D"] .inspection-report-note,
body[data-color="1E202D"] .inspection-observation-actions a {
    color: #aab4c3;
}

body[data-color="1E202D"] .inspection-observation-empty {
    background-color: #1f232b;
    border-color: #3d4454;
}

body[data-color="1E202D"] .inspection-observation-image img {
    background-color: #1f232b;
    border-color: #3d4454;
}

@media (max-width: 1199px) {
    .inspection-report-view .inspection-report-meta .list-group-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .inspection-report-view .inspection-report-meta .list-group-item span,
    .inspection-report-view .inspection-report-meta .list-group-item strong {
        flex: none;
        width: 100%;
        padding-left: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .inspection-observation-images {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ══════════════════════════════════════════════════════════════════
   TASKS LIST VIEW
   The list is the primary way this team reads its workload, so the
   job here is rows-per-screen and scan speed: every column holds one
   line, the status carries colour AND text, and the toolbar makes the
   one primary action obvious. Scoped to .all-tasks-view so no other
   module table shifts.
   ══════════════════════════════════════════════════════════════════ */

/* ── Header band: title, view tabs, actions ─────────────────────── */

.all-tasks-view > .nav-tabs.title {
    align-items: center;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
}

.all-tasks-view > .nav-tabs.title .title-tab h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
    padding: 16px 18px 16px 20px !important;
}

.all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a {
    border-radius: 7px;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0 2px;
    padding: 7px 12px !important;
    transition: background-color .15s ease, color .15s ease;
}

.all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a:hover {
    background: #f1f5f9;
    color: #334155;
}

/* the selected view is marked on the <li>, so the base ::after underline
   never fires — give the active tab a filled chip instead */
.all-tasks-view > .nav-tabs.title > li:not(.title-tab).active > a,
.all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a.active {
    background: #eef2f7;
    border-bottom: none !important;
    color: #0f172a !important;
    font-weight: 600;
}

.all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a:focus-visible {
    outline: 2px solid var(--dt-th-accent, #2563eb);
    outline-offset: 2px;
}

.all-tasks-view > .nav-tabs.title .tab-title {
    padding: 8px 16px 8px 0;
}

.all-tasks-view .title-button-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0 !important;
}

.all-tasks-view .title-button-group .btn {
    margin: 0 !important;
    white-space: nowrap;
}

.all-tasks-view .title-button-group .btn.hide {
    display: none !important;
}

/* ── Filter strip ───────────────────────────────────────────────── */
/* Ten controls over two rows is a lot of chrome above the data. Tinting
   the strip lets the eye skip it, and tightening the rows gives the
   table back roughly a row and a half of vertical space. */

.all-tasks-view .filter-section-container {
    background: #f7f9fc;
    border-bottom: 1px solid #eaeef4;
    padding: 10px 14px 6px;
}

.all-tasks-view .filter-form .filter-item-box {
    margin-bottom: 6px !important;
}

.all-tasks-view .filter-section-container .select2-container .select2-choice,
.all-tasks-view .filter-section-container .filter-multi-select .dropdown-toggle,
.all-tasks-view .filter-section-container .datepicker-custom-selector {
    border-radius: 5px !important;
}

/* ── Table shell ────────────────────────────────────────────────── */

.all-tasks-view > .card {
    border: 1px solid #eef1f5;
    border-radius: 0 0 7px 7px;
    border-top: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.all-tasks-view #task-table {
    margin: 0 !important;
}

/* the shared header treatment injected by datatable_th_color.js already owns
   background, ink, size, weight and padding with !important — only the
   alignment is left to set here */
.all-tasks-view #task-table thead th {
    vertical-align: middle;
}

.all-tasks-view #task-table tbody td {
    color: #334155;
    font-size: 13px !important;
    padding: 7px 10px !important;
    vertical-align: middle;
}

.all-tasks-view #task-table tbody tr {
    border-bottom: 1px solid #f2f4f8 !important;
}

/* the per-row status stripe stays as a fast colour scan cue, but at a
   width that reads as an edge marker rather than a decorative slab */
.all-tasks-view #task-table tbody td:first-child {
    border-left-width: 3px !important;
}

/* ── ID cell: checkbox and number on one line ───────────────────── */

.all-tasks-view #task-table th.task-id-column,
.all-tasks-view #task-table td.task-id-column {
    white-space: nowrap;
    width: 84px;
}

.all-tasks-view .task-id-cell {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.all-tasks-view .task-id-cell > a {
    display: inline-flex;
    line-height: 0;
}

.all-tasks-view .task-id-check {
    flex: none;
    float: none !important;
    height: 17px !important;
    margin: 0 !important;
    width: 17px !important;
}

.all-tasks-view .task-id-check.checkbox-checked,
.all-tasks-view .task-id-check.checkbox-un-checked {
    background-size: 17px 17px;
}

.all-tasks-view .task-id-number {
    color: #64748b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* ── Title cell: name truncates, meta pins right ────────────────── */

/* the cap is what actually holds the column: without it the longest task name
   sets the column width and pushes Status past the right edge */
.all-tasks-view #task-table th.task-title-column,
.all-tasks-view #task-table td.task-title-column {
    max-width: 26rem;
    min-width: 15rem;
}

.all-tasks-view .task-title-cell {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.all-tasks-view .task-title-main {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

/* replaces the two-line clamp that made every long title a double-height row */
.all-tasks-view #task-table td.task-title-column .task-title-main > a {
    color: #1e293b;
    display: block;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-tasks-view #task-table td.task-title-column .task-title-main > a:hover {
    color: var(--dt-th-accent, #2563eb);
    text-decoration: underline;
}

.all-tasks-view .task-title-meta {
    align-items: center;
    display: inline-flex;
    flex: none;
    gap: 6px;
}

.all-tasks-view .task-title-meta .label,
.all-tasks-view .task-title-meta .badge {
    margin: 0 !important;
}

.all-tasks-view .task-title-meta .priority-badge {
    height: 20px;
    width: 20px;
}

.all-tasks-view .task-title-meta .priority-badge svg {
    height: 12px !important;
    width: 12px !important;
}

.all-tasks-view .sub-task-icon {
    align-items: center;
    display: inline-flex;
    flex: none;
    justify-content: center;
}

/* ── Status badge: colour plus text, always legible ─────────────── */

.dc-status-badge {
    align-items: center;
    background: var(--dc-badge-tint, #f1f5f9);
    border: 1px solid var(--dc-badge-border, #e2e8f0);
    border-radius: 5px;
    color: var(--dc-badge-ink, #334155);
    display: inline-flex;
    font-size: 0.71rem;
    font-weight: 600;
    gap: 6px;
    letter-spacing: 0.01em;
    line-height: 1.45;
    padding: 3px 9px;
    white-space: nowrap;
}

.dc-status-dot {
    background: var(--dc-badge-dot, #64748b);
    border-radius: 50%;
    flex: none;
    height: 6px;
    width: 6px;
}

a.dc-status-badge-link {
    display: inline-block;
    text-decoration: none !important;
}

a.dc-status-badge-link .dc-status-badge {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

a.dc-status-badge-link:hover .dc-status-badge {
    border-color: var(--dc-badge-dot, #94a3b8);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

a.dc-status-badge-link:focus-visible {
    border-radius: 5px;
    outline: 2px solid var(--dt-th-accent, #2563eb);
    outline-offset: 2px;
}

.all-tasks-view #task-table th.task-status-column,
.all-tasks-view #task-table td.task-status-column {
    white-space: nowrap;
    width: 1%;
}

/* ── Dates: one line, with a shape cue beside the colour ────────── */

.all-tasks-view #task-table th.task-date-column,
.all-tasks-view #task-table td.task-date-column {
    white-space: nowrap;
    width: 1%;
}

.dt-date {
    align-items: center;
    display: inline-flex;
    font-variant-numeric: tabular-nums;
    gap: 4px;
    white-space: nowrap;
}

.dt-date svg {
    flex: none;
    height: 12px !important;
    width: 12px !important;
}

.dt-date.is-overdue {
    color: #b42318;
    font-weight: 600;
}

.dt-date.is-due-today {
    color: #b45309;
    font-weight: 600;
}

/* ── Text columns: truncate rather than wrap ────────────────────── */

.all-tasks-view #task-table td.task-truncate-column {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-tasks-view #task-table th.task-number-column,
.all-tasks-view #task-table td.task-number-column {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.all-tasks-view #task-table th.task-person-column,
.all-tasks-view #task-table td.task-person-column {
    max-width: 13rem;
    white-space: nowrap;
}

.all-tasks-view #task-table td.task-person-column .dt-person {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    max-width: 100%;
    text-decoration: none;
}

.all-tasks-view #task-table td.task-person-column .dt-person-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-tasks-view #task-table td .avatar.avatar-xs {
    flex: none;
    height: 22px;
    margin: 0 !important;
    width: 22px;
}

/* some profile images 404 — the neutral fill keeps a missing avatar reading as
   a plain circle instead of a broken-image glyph */
.all-tasks-view #task-table td .avatar.avatar-xs img {
    background: #e6eaf0;
    border-radius: 50%;
    height: 22px;
    object-fit: cover;
    width: 22px;
}

.dt-blank {
    color: #8494a8;
    font-size: 0.9em;
    user-select: none;
}

/* ── Row actions ────────────────────────────────────────────────── */

#todo-table td.option {
    white-space: nowrap;
    width: 1%;
}

#todo-table td.option .dt-row-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

#todo-table td.option .dt-row-actions a {
    float: none !important;
    margin: 0 !important;
}

.all-tasks-view #task-table td.option {
    white-space: nowrap;
    width: 1%;
}

.all-tasks-view #task-table td.option .dt-row-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.all-tasks-view #task-table td.option .dt-row-actions a {
    float: none !important;
    margin: 0 !important;
}

/* ── Keyboard focus ─────────────────────────────────────────────── */
/* every row control is an anchor, and none of them carried a visible
   focus state — this list is fully keyboard-driven for some users */

.all-tasks-view #task-table a:focus-visible,
.all-tasks-view #task-table .clickable:focus-visible {
    border-radius: 5px;
    outline: 2px solid var(--dt-th-accent, #2563eb);
    outline-offset: 2px;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.all-tasks-view .datatable-tools {
    border-top: 1px solid #f2f4f8;
    padding: 8px 14px 12px;
}

.all-tasks-view .dataTables_info,
.all-tasks-view .dt-info {
    color: #64748b;
    font-size: 0.78rem;
}

/* ── Empty state ────────────────────────────────────────────────── */

.all-tasks-view #task-table td.dataTables_empty,
.all-tasks-view #task-table td.dt-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 48px 20px !important;
    text-align: center;
}

/* ── Dark theme ─────────────────────────────────────────────────── */

body[data-color="1E202D"] .all-tasks-view > .nav-tabs.title {
    border-bottom-color: #2f3440;
}

body[data-color="1E202D"] .all-tasks-view > .nav-tabs.title .title-tab h4 {
    color: #e2e8f0;
}

body[data-color="1E202D"] .all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a:hover {
    background: #262a35;
    color: #e2e8f0;
}

body[data-color="1E202D"] .all-tasks-view > .nav-tabs.title > li:not(.title-tab).active > a {
    background: #2f3440;
    color: #f8fafc !important;
}

body[data-color="1E202D"] .all-tasks-view .filter-section-container {
    background: #21242e;
    border-bottom-color: #2f3440;
}

body[data-color="1E202D"] .all-tasks-view > .card {
    border-color: #2f3440;
}

body[data-color="1E202D"] .all-tasks-view #task-table thead th {
    background: #21242e;
    color: #94a3b8;
}

body[data-color="1E202D"] .all-tasks-view #task-table tbody td {
    color: #cbd5e1;
}

body[data-color="1E202D"] .all-tasks-view #task-table tbody tr {
    border-bottom-color: #2a2e39 !important;
}

body[data-color="1E202D"] .all-tasks-view #task-table td.task-title-column .task-title-main > a {
    color: #e2e8f0;
}

body[data-color="1E202D"] .all-tasks-view .task-id-number,
body[data-color="1E202D"] .all-tasks-view .dataTables_info,
body[data-color="1E202D"] .all-tasks-view .dt-info {
    color: #94a3b8;
}

body[data-color="1E202D"] .dt-blank {
    color: #6b7280;
}

body[data-color="1E202D"] .dt-date.is-overdue {
    color: #f87171;
}

body[data-color="1E202D"] .dt-date.is-due-today {
    color: #fbbf24;
}

/* the tint/ink pair is computed against a white surface, so on the dark
   theme the badge flips to a translucent hue with a light label */
body[data-color="1E202D"] .dc-status-badge {
    background: color-mix(in srgb, var(--dc-badge-dot, #64748b) 22%, transparent);
    border-color: color-mix(in srgb, var(--dc-badge-dot, #64748b) 45%, transparent);
    color: #f1f5f9;
}

@supports not (background: color-mix(in srgb, red 20%, transparent)) {
    body[data-color="1E202D"] .dc-status-badge {
        background: #2f3440;
        border-color: #3f4553;
    }
}

/* ── Narrow screens ─────────────────────────────────────────────── */

@media (max-width: 991px) {
    .all-tasks-view > .nav-tabs.title .title-tab h4 {
        padding: 12px 14px !important;
    }

    .all-tasks-view #task-table td.task-truncate-column {
        max-width: 11rem;
    }

    .all-tasks-view #task-table th.task-title-column,
    .all-tasks-view #task-table td.task-title-column {
        min-width: 14rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .all-tasks-view > .nav-tabs.title > li:not(.title-tab) > a,
    a.dc-status-badge-link .dc-status-badge {
        transition: none;
    }
}


/* --------------------------------------------------------------------------
 * Online meet / delivery notification body inside appAlert
 *
 * .app-alert.animate is locked to height: 55px for the usual one-line toast,
 * so a multi-line delivery report used to spill out of the coloured box.
 * Scope the relaxed sizing to alerts that actually carry a notice body.
 * -------------------------------------------------------------------------- */
.app-alert.animate:has(.app-notice) {
    height: auto;
    min-height: 55px;
    bottom: auto;
    width: 360px;
    max-width: calc(100vw - 30px);
    padding: 14px 42px 14px 16px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.22);
    overflow: hidden;
}

.app-alert-message:has(.app-notice) {
    display: block;
    max-width: none;
    min-width: 0;
    margin-right: 0;
}

.app-alert .app-notice-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.app-alert .app-notice-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.app-alert .app-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.app-alert .app-notice-item svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    stroke-width: 2.25;
}

.app-alert .app-notice-item.is-ok svg {
    color: #b8f2d2;
}

.app-alert .app-notice-item.is-warn svg {
    color: #ffd98a;
}

.app-alert .app-notice-item.is-bad svg {
    color: #ffb3c1;
}

.app-alert .app-notice-item.is-muted svg,
.app-alert .app-notice-item.is-muted {
    color: rgba(255, 255, 255, 0.7);
}

/* keep the auto-dismiss progress bar flush with the taller box */
.app-alert.animate:has(.app-notice) .progress {
    margin: 12px -42px -14px -16px;
}

.inspection-photo-suggestions {
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #334155);
    border: 1px solid var(--bs-border-color, #d8dee6);
    border-radius: 6px;
    max-height: 230px;
    overflow-y: auto;
    margin-top: 6px;
}
.inspection-photo-suggestions[hidden] { display: none; }
.inspection-photo-suggestions [role="option"] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
}
.inspection-photo-suggestions img { width: 56px; height: 56px; object-fit: contain; }
.inspection-photo-suggestions [aria-selected="true"],
.inspection-photo-suggestions [role="option"]:hover { background: #e8eef8; color: #172033; }
body[data-color="1E202D"] .inspection-photo-suggestions { background: #272a33; color: #e5e7eb; border-color: #49515f; }
body[data-color="1E202D"] .inspection-photo-suggestions [aria-selected="true"],
body[data-color="1E202D"] .inspection-photo-suggestions [role="option"]:hover { background: #3c475d; color: #fff; }
.inspection-photo-hint { color: #64748b; }
body[data-color="1E202D"] .inspection-photo-hint { color: #b6c0d0; }
body[data-color="1E202D"] .inspection-photo-warning { color: #fca5a5 !important; }

/* Native notification surfaces: semantic colors remain stable across user themes. */
body .app-alert.alert {
    --notice-bg: #eff6ff; --notice-ink: #1e40af; --notice-border: #bfdbfe;
    height: auto; min-height: 52px; bottom: auto;
    max-width: min(420px, calc(100vw - 30px));
    padding: 14px 42px 14px 16px; border-radius: 7px;
    background: var(--notice-bg) !important; color: var(--notice-ink) !important;
    border: 1px solid var(--notice-border) !important; box-shadow: none;
    overflow: hidden;
}
/* Inline form feedback stays within its popup and uses the available width. */
body .app-alert:not(.animate) { position: relative; width: 100%; max-width: none; margin: 0 0 16px; }
body .app-alert.alert-danger { --notice-bg: #fff1f2; --notice-ink: #9f1239; --notice-border: #fecdd3; }
body .app-alert.alert-success { --notice-bg: #f0fdf4; --notice-ink: #166534; --notice-border: #bbf7d0; }
body .app-alert.alert-warning { --notice-bg: #fffbeb; --notice-ink: #92400e; --notice-border: #fde68a; }
body .app-alert .app-alert-message { min-width: 0; max-width: 100%; margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
body .app-alert .btn-close { filter: none; opacity: .65; top: 10px; right: 8px; width: 28px; height: 28px; padding: 0; }
body .app-alert .btn-close:hover { opacity: 1; }
body .app-alert .btn-close:focus-visible { outline: 2px solid var(--notice-ink); outline-offset: 3px; }
body .app-alert .progress { background: transparent; }
body .app-alert .progress-bar { background: var(--notice-ink) !important; opacity: .3; }
body .app-alert a { color: inherit !important; text-decoration: underline; }
body[data-color="1E202D"] .app-alert { --notice-bg: #202f49; --notice-ink: #bfdbfe; --notice-border: #42628e; }
body[data-color="1E202D"] .app-alert.alert-danger { --notice-bg: #3c2530; --notice-ink: #fecdd3; --notice-border: #865366; }
body[data-color="1E202D"] .app-alert.alert-success { --notice-bg: #20392e; --notice-ink: #bbf7d0; --notice-border: #4b7862; }
body[data-color="1E202D"] .app-alert.alert-warning { --notice-bg: #3e3221; --notice-ink: #fde68a; --notice-border: #88703c; }
body[data-color="1E202D"] .app-alert .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
body .app-alert .app-notice-list { border-color: var(--notice-border); }
body .app-alert .app-notice-item,
body .app-alert .app-notice-item svg { color: inherit !important; }

/* Native task confirmations, shared by Timesheet actions. */
.swal2-popup.dc-native-confirmation {
    width: min(420px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #4e5e6a;
    font-family: inherit;
    font-size: 14px;
}
.dc-native-confirmation .swal2-icon {
    width: 40px; height: 40px; margin: 0 auto 12px;
    border-width: 2px;
}
.dc-native-confirmation .swal2-icon .swal2-icon-content { font-size: 28px; }
.dc-native-confirmation .swal2-title {
    padding: 0; color: inherit; font-size: 20px; font-weight: 600;
}
.dc-native-confirmation .swal2-html-container {
    margin: 10px 0 0; color: inherit; font-size: 14px; line-height: 1.5;
}
.dc-native-confirmation .swal2-actions {
    width: 100%; justify-content: flex-end; gap: 8px; margin: 20px 0 0;
}
.dc-native-confirmation .swal2-actions .btn { margin: 0; }
.dc-native-confirmation .btn:focus-visible {
    outline: 2px solid var(--dc-primary-focus-ring, #2563eb); outline-offset: 3px;
}
body[data-color="1E202D"] .swal2-popup.dc-native-confirmation {
    background: #2B2E3B; color: #e2e8f0; border-color: #3b4253;
}
body[data-color="1E202D"] .dc-native-confirmation .btn-default {
    background: #252936 !important; color: #e2e8f0 !important; border-color: #475569 !important;
}

/* Shared confirmations use the same native surface in every module. */
#confirmationModal .modal-dialog { width: min(420px, calc(100vw - 32px)); margin-inline: auto; }
#confirmationModal .dc-native-confirmation { padding: 22px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #4e5e6a; }
#confirmationModal .modal-header { padding: 0; border: 0; }
#confirmationModal .modal-title { font-size: 20px; font-weight: 600; color: inherit; }
#confirmationModal .modal-body { padding: 10px 0 0; line-height: 1.5; }
#confirmationModal .modal-body .container-fluid { padding: 0; }
#confirmationModal .modal-footer { padding: 20px 0 0; border: 0; gap: 8px; }
#confirmationModal .modal-footer .btn { margin: 0; }
.dc-native-confirmation { overflow-wrap: anywhere; }
.dc-native-confirmation .swal2-input,
.dc-native-confirmation .swal2-textarea,
.dc-native-confirmation .swal2-select { color: inherit; background: transparent; border: 1px solid #718096; font: inherit; max-width: calc(100% - 32px); }
.dc-native-confirmation .swal2-validation-message { color: #9f1239; background: #fff1f2; }
.dc-native-confirmation .swal2-actions { flex-wrap: wrap; }
.dc-native-confirmation .swal2-actions .btn { white-space: normal; }
body[data-color="1E202D"] #confirmationModal .dc-native-confirmation { background: #2B2E3B; color: #e2e8f0; border-color: #3b4253; }
body[data-color="1E202D"] .dc-native-confirmation .swal2-validation-message { background: #3c2530; color: #fecdd3; }
body[data-color="1E202D"] .dc-native-confirmation .swal2-close { color: #e2e8f0; }
body[data-color="1E202D"] .dc-native-confirmation .swal2-input,
body[data-color="1E202D"] .dc-native-confirmation .swal2-textarea,
body[data-color="1E202D"] .dc-native-confirmation .swal2-select { background: #252936; color: #e2e8f0; border-color: #7c8798; }
@media (prefers-reduced-motion: reduce) {
    .swal2-popup.dc-native-confirmation { animation: none !important; }
}
.form-builder-dialog.dc-native-confirmation {
    position: fixed !important; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px));
    box-sizing: border-box; padding: 22px; border: 1px solid #e2e8f0;
    border-radius: 8px; background: #fff; color: #4e5e6a; font: inherit;
}
.form-builder-dialog.dc-native-confirmation .button-wrap { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form-builder-dialog.dc-native-confirmation .button-wrap .btn { margin: 0; }
body[data-color="1E202D"] .form-builder-dialog.dc-native-confirmation { background: #2B2E3B; color: #e2e8f0; border-color: #3b4253; }
#confirmationModal .modal-header,
#confirmationModal .modal-body,
#confirmationModal .modal-footer { background: transparent !important; color: inherit; }
body #confirmationModal .btn-danger,
body .swal2-popup.dc-native-confirmation .btn-danger { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }
body #confirmationModal .btn-danger:hover,
body #confirmationModal .btn-danger:focus,
body .swal2-popup.dc-native-confirmation .btn-danger:hover,
body .swal2-popup.dc-native-confirmation .btn-danger:focus { background: #912018 !important; border-color: #912018 !important; color: #fff !important; }

/* Keep attached profile create actions within the field width. */
#job-info-form .quick-create-control,
#general-info-form .quick-create-control {
    max-width: 620px;
}

/* The second modal is normally a side panel; this short form stays centered. */
#ajaxModal2 > .modal-dialog.profile-department-dialog {
    float: none !important;
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    margin: 1.75rem auto;
}

body[data-color="1E202D"] #profile-job-position-form .quick-create-action,
body[data-color="1E202D"] #general-info-form .quick-create-action {
    background: #343c4b;
    border-color: #7c8798;
    color: #e3e7ef !important;
}

body[data-color="1E202D"] #profile-job-position-form .quick-create-action:hover,
body[data-color="1E202D"] #profile-job-position-form .quick-create-action:focus,
body[data-color="1E202D"] #general-info-form .quick-create-action:hover,
body[data-color="1E202D"] #general-info-form .quick-create-action:focus {
    background: #434e60;
    color: #ffffff !important;
}

body[data-color="1E202D"] #profile-job-position-form .quick-create-action:focus-visible,
body[data-color="1E202D"] #general-info-form .quick-create-action:focus-visible {
    outline: 2px solid #a7b8ff;
    outline-offset: 2px;
}

.inventory-grid-feedback {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.inventory-grid-feedback[hidden],
#inventory-grid-retry[hidden] {
    display: none !important;
}

.inventory-grid-feedback.is-error {
    color: #b42318;
}

body[data-color="1E202D"] .inventory-grid-feedback.is-error {
    color: #ffb4a8;
}

/* Shared name suggestion trigger: clients, suppliers and both lead forms. */
.name-suggestion-control {
    position: relative;
    width: 100%;
    max-width: 620px;
}
.name-suggestion-control input.company_name_input_section,
.name-suggestion-control .select2-container .select2-choice {
    padding-inline-end: 42px !important;
}
.name-suggestion-control .select2-container {
    width: 100% !important;
    padding: 0 !important;
}
.name-suggestion-control .select2-container .select2-choice .select2-arrow {
    display: none !important;
}
.name-suggestion-toggle {
    position: absolute;
    inset-inline-end: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #4e5e6a;
    cursor: pointer;
    z-index: 3;
}
.name-suggestion-toggle:hover {
    background: #f1f5fa;
}
.name-suggestion-toggle:focus-visible {
    outline: 2px solid #29689e;
    outline-offset: -2px;
}
body[data-color="1E202D"] .name-suggestion-toggle {
    color: #d5d9e2;
}
body[data-color="1E202D"] .name-suggestion-toggle:hover {
    background: #343c4b;
}
body[data-color="1E202D"] .name-suggestion-toggle:focus-visible {
    outline-color: #a7b8ff;
}
