.text-danger {
    font-size: 12px;
}

.form-area-st .text-danger {
    position: relative;
    top: -11px;

}


/* Hide all DataTables sort arrow icons to match Workface system design */
table.dataTable thead .dt-column-order,
table.dataTable thead th.dt-orderable-asc span.dt-column-order,
table.dataTable thead th.dt-orderable-desc span.dt-column-order,
table.dataTable thead th:before,
table.dataTable thead th:after,
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
    display: none !important;
    content: '' !important;
}
 #employee-list th, #employee-list td,
 #help-desk-list th, #help-desk-list td,
 #expense-list th, #expense-list td,
 #pending-expense-list th, #pending-expense-list td,
 #expense_report_table th, #expense_report_table td,
 #expense-history-list th, #expense-history-list td {
   /* width: 16.66%; */
   text-align: start;
   white-space: nowrap;
 }
 
 .datepicker {
     z-index: 99 !important;
 }
 
 .datepicker:before {
     display: none;
 }
 
 .datepicker:after {
     display: none;
 }
 
 .datepicker table tr th {
     border-bottom: 2px solid #ddd;
     border-radius: 0;
     height: 35px;
     width: 35px;
     font-size: 14px;
     text-align: center;
 }
 
 .datepicker table tr td {
     border-top: 1px solid #ddd;
     border-radius: 0;
     height: 35px;
     width: 35px;
     font-size: 14px;
 }
 
 .datepicker table tr td.day:hover {
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker table tr td.day.focused {
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker table tr td.today {
     background-image: none;
     background-color: #1593DC;
     color: #ffffff;
     text-align: center;
 }
 
 .datepicker table tr td.today:hover {
     background-image: none;
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker table tr td.today:hover:hover {
     background-image: none;
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker table tr td.today.disabled {
     background-image: none;
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker table tr td.today.disabled:hover {
     background-image: none;
     background-color: #1593DC;
     color: #ffffff;
 }
 
 .datepicker-days .table-condensed tbody tr td {
     text-align: center;
 }
 
 .datepicker-days .table-condensed tbody tr td.active {
     background-image: none;
     background-color: #111111;
     color: #ffffff;
 }
 
 .datepicker-days .table-condensed tbody tr td.disabled:hover {
     background-color: transparent;
     color: #999;
     cursor: no-drop;
 }

#employee-list th,
#employee-list td,
#expense-list th,
#expense-list td,
#pending-expense-list th,
#pending-expense-list td,
#expense_report_table th,
#expense_report_table td,
#expense-history-list th,
#expense-history-list td {
    /* width: 16.66%; */
    text-align: start;
    white-space: nowrap;
}

.datepicker {
    z-index: 99 !important;
}

.datepicker:before {
    display: none;
}

.datepicker:after {
    display: none;
}

.datepicker table tr th {
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    height: 35px;
    width: 35px;
    font-size: 14px;
    text-align: center;
}

.datepicker table tr td {
    border-top: 1px solid #ddd;
    border-radius: 0;
    height: 35px;
    width: 35px;
    font-size: 14px;
}

.datepicker table tr td.day:hover {
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.day.focused {
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
    text-align: center;
}

.datepicker table tr td.today:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today:hover:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today.disabled {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today.disabled:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker-days .table-condensed tbody tr td {
    text-align: center;
}

.datepicker-days .table-condensed tbody tr td.active {
    background-image: none;
    background-color: #111111;
    color: #ffffff;
}

.datepicker-days .table-condensed tbody tr td.disabled:hover {
    background-color: transparent;
    color: #999;
    cursor: no-drop;
}

#employee-list th,
#employee-list td {
    /* width: 16.66%; */
    text-align: start;
    white-space: nowrap;
}

.datepicker {
    z-index: 99 !important;
}

.datepicker:before {
    display: none;
}

.datepicker:after {
    display: none;
}

.datepicker table tr th {
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    height: 35px;
    width: 35px;
    font-size: 14px;
    text-align: center;
}

.datepicker table tr td {
    border-top: 1px solid #ddd;
    border-radius: 0;
    height: 35px;
    width: 35px;
    font-size: 14px;
}

.datepicker table tr td.day:hover {
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.day.focused {
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
    text-align: center;
}

.datepicker table tr td.today:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today:hover:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today.disabled {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker table tr td.today.disabled:hover {
    background-image: none;
    background-color: #1593DC;
    color: #ffffff;
}

.datepicker-days .table-condensed tbody tr td {
    text-align: center;
}

.datepicker-days .table-condensed tbody tr td.active {
    background-image: none;
    background-color: #111111;
    color: #ffffff;
}

.datepicker-days .table-condensed tbody tr td.disabled:hover {
    background-color: transparent;
    color: #999;
    cursor: no-drop;
}

.up-head-date .in-area .icon {
    position: relative;
}

/* ==========================================================================
   DataTables Consistent Line-of-Sight Loader & Backdrop Dimming
   ========================================================================== */
div.dt-container,
div.dataTables_wrapper {
    position: relative;
}

div.dt-processing,
div.dataTables_processing,
div.processing-loader {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 160px;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000 !important;
    box-sizing: border-box !important;
    text-align: center;
}

/* Ensure DataTables display:none inline style properly hides the overlay */
div.dt-processing[style*="display: none"],
div.dataTables_processing[style*="display: none"],
div.dt-processing.d-none,
div.dataTables_processing.d-none {
    display: none !important;
}

div.dt-processing>div:last-child,
div.dataTables_processing>div:last-child,
div.processing-loader>div:last-child {
    position: absolute !important;
    top: 85px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 20px !important;
    margin: 0 !important;
}

div.dt-processing>div:last-child>div,
div.dataTables_processing>div:last-child>div,
div.processing-loader>div:last-child>div {
    position: absolute;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffce07 !important;
    box-shadow: 0 0 6px rgba(255, 206, 7, 0.5);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

div.dt-processing>div:last-child>div:nth-child(1),
div.dataTables_processing>div:last-child>div:nth-child(1),
div.processing-loader>div:last-child>div:nth-child(1) {
    left: 8px;
    animation: datatables-loader-1 .6s infinite;
}

div.dt-processing>div:last-child>div:nth-child(2),
div.dataTables_processing>div:last-child>div:nth-child(2),
div.processing-loader>div:last-child>div:nth-child(2) {
    left: 8px;
    animation: datatables-loader-2 .6s infinite;
}

div.dt-processing>div:last-child>div:nth-child(3),
div.dataTables_processing>div:last-child>div:nth-child(3),
div.processing-loader>div:last-child>div:nth-child(3) {
    left: 32px;
    animation: datatables-loader-2 .6s infinite;
}

div.dt-processing>div:last-child>div:nth-child(4),
div.dataTables_processing>div:last-child>div:nth-child(4),
div.processing-loader>div:last-child>div:nth-child(4) {
    left: 56px;
    animation: datatables-loader-3 .6s infinite;
}



@keyframe datatables-loader-1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}


.remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 17px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-img:hover {
    background-color: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.img-cof-er img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.img-cof-er {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
}

.remove-img:active {
    transform: scale(0.9);
}

.iti {
    width: 100%;
}

.dt-paging-button {
    display: inline-block !important;
    padding: 3px 9px !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    border-radius: 4px !important;
    background-color: transparent !important;
    font-size: 10px;
}

div.dt-container .dt-paging .dt-paging-button.current {
    background: transparent;
    color: #ffce07 !important;
    border: 1px solid #ffce07 !important;
    background-color: transparent !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: transparent;
    color: #ffce07 !important;
    border: 1px solid #ffce07 !important;
    background-color: transparent !important;
}

div.dt-container .dt-paging .dt-paging-button {

    color: #000 !important;

}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover,
div.dt-container .dt-paging .dt-paging-button.disabled:active {
    color: #fff !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover,
div.dt-container .dt-paging .dt-paging-button.disabled:active {
    color: #000 !important;
    font-size: 15px !important;
}

div.dt-container .dt-paging .dt-paging-button.next {
    color: #000 !important;
    font-size: 15px !important;
}

div.dt-container .dt-search,
.dt-search {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    height: 38px !important;
    background: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}

div.dt-container .dt-search:focus-within,
.dt-search:focus-within {
    border-color: #FFCE07 !important;
    box-shadow: 0 0 0 3px rgba(255, 206, 7, 0.2) !important;
}

div.dt-container .dt-search label,
.dt-search label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 12px;
}

div.dt-container .dt-search img,
.dt-search img {
    width: 15px !important;
    height: 15px !important;
    margin: 0 8px 0 0 !important;
    position: static !important;
    top: 0 !important;
    left: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

div.dt-container .dt-search input,
.dt-search input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100% !important;
    font-size: 12.5px !important;
    color: #1E293B !important;
    background: transparent !important;
    position: static !important;
    top: 0 !important;
    text-align: start;
}

div.dt-container .dt-search input:focus,
div.dt-container .dt-search input:focus-visible,
.dt-search input:focus,
.dt-search input:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dt-length {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.dt-length label {
    text-transform: capitalize;
    padding-right: 5px;
    font-size: 12px;
    color: #A2A1A8;
    font-weight: 300;
}

.dt-length label select {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #A2A1A8;
    font-size: 10px;
}

.dt-length .dt-input {
    font-size: 12px !important;
    padding: 5px !important;
}

@media screen and (max-width: 767px) {
    div.dt-container div.dt-layout-row:not(.dt-layout-table) {
        display: flex !important;
    }
}


@media screen and (max-width: 500px) {
    div.dt-container .dt-search input {
        width: 110px;
    }

    .dt-paging-button {
        padding: 0px 7px !important;
        font-size: 12px !important;
    }

    .dt-info {
        font-size: 12px !important;
    }

    /* .dt-search {
        padding: 7px;
        padding-top: 1px;
    }

    .dt-search img {
        top: -1px !important;
    } */
}

@media screen and (max-width: 400px) {
    div.dt-container div.dt-layout-row:not(.dt-layout-table) {
        display: block !important;
    }

    .dt-search {
        display: flex;
        align-items: center;
    }

    div.dt-container .dt-search input {
        width: 100%;
    }

    .dt-length {
        display: block !important;
    }

    div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell.dt-layout-start {
        text-align: start;
    }

    .dt-paging {
        text-align: start;
    }
}

#attendance-overview {
    width: 100%;
    height: 485px;
    background-color: block;
}

#total-employees {
    width: 100%;
    height: 80px;
}

#Employees-deparmnet {
    width: 100%;
    height: 340px;
}

img,
svg:focus {
    outline: none;
    border: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#select-all-employees {
    position: relative !important;
    z-index: 999 !important;
}

.ui-timepicker-container {
    z-index: 1056 !important;
    /* Bootstrap modal's z-index is 1055 */
}

.show-face-resgister img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.show-face-resgister .box-images {
    position: relative;
    height: 130px;
    margin-bottom: 20px;
}

.show-face-resgister .box-images img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.show-face-resgister .icon-se a {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: red;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    margin-top: 5px;
    font-size: 12px;
}


.show-face-resgister .icon-se a i {
    color: #fff;
    font-size: 10px;
}

.control-area .action-dropdown button {
    border: none;
    background: transparent;
    padding: 0;
}


.control-area .action-dropdown button i {
    color: #000;
}

.control-area .action-dropdown .dropdown-menu li a {
    font-size: 12px;
    color: #000;

}

.control-area .action-dropdown .dropdown-menu li a p {
    font-size: 12px;
    color: #000;

}

.control-area .action-dropdown .dropdown-menu {
    min-width: 100px;
    padding: 4px;
}

.control-area .action-dropdown button.dropdown-toggle::after {
    display: none;
}

.control-area .action-dropdown button:active,
.control-area .action-dropdown button:focus,
.control-area .action-dropdown button:hover {
    background: transparent;
}

#suggestions {
    position: absolute;
    background: #fff;
    z-index: 1000;
    width: 100%;
    border: 1px solid #ddd;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

/* ==========================================================================
   Multi-tenant Layout: Prevent Double Scrollbars & Overflow
   ========================================================================== */

/* 1. Prevent global page horizontal scrollbar */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* 2. On desktop viewports, prevent outer page vertical scrollbar so only inner content scrolls */
@media (min-width: 992px) {

    html,
    body {
        height: 100vh;
        overflow-y: hidden;
    }

    .main-area-wrap {
        height: 100vh;
        box-sizing: border-box;
        overflow: hidden;
    }

    .main-area-wrap main {
        height: calc(100vh - 40px);
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .main-area-wrap main .main-wrap-inset,
    .main-area-wrap main .main-wrap-inset-in {
        height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .main-area-wrap main .box-wrap {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .main-area-wrap main .box-wrap .box-area {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(100vh - 170px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* 3. Ensure box-area container NEVER has an outer horizontal scrollbar and has smooth vertical scrolling */
.main-area-wrap main .box-wrap .box-area {
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.main-area-wrap main .box-wrap .box-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.main-area-wrap main .box-wrap .box-area::-webkit-scrollbar-track {
    background: transparent;
}

.main-area-wrap main .box-wrap .box-area::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.main-area-wrap main .box-wrap .box-area::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* 4. Table responsive styling without phantom horizontal scrollbars */
#employee-list,
#help-desk-list,
#expense-list,
#pending-expense-list,
#expense_report_table,
#expense-history-list {
    width: 100% !important;
    table-layout: auto;
    margin: 0 !important;
}

#employee-list th, #employee-list td,
#help-desk-list th, #help-desk-list td,
#expense-list th, #expense-list td,
#pending-expense-list th, #pending-expense-list td,
#expense_report_table th, #expense_report_table td,
#expense-history-list th, #expense-history-list td {
    vertical-align: middle !important;
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
    scrollbar-width: thin;
}

/* ==========================================================================
   5. TOPBAR NOTIFICATION BELL & DROPDOWN POLISHED DESIGN
   ========================================================================== */
.main-area-wrap main .up-area .user-detil-side .bell {
    position: relative;
}

/* Reset link button dimensions inside the bell dropdown menu so they NEVER inherit the 50px square */
.main-area-wrap main .up-area .user-detil-side .bell .dropdown-menu a,
.bell .dropdown-menu a {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Dropdown Menu Box (Desktop Default) */
.main-area-wrap main .up-area .user-detil-side .bell .dropdown-menu,
.bell .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 92vw !important;
    padding: 0 !important;
    margin-top: 8px !important;
    transform: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.22) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden;
    z-index: 1060 !important;
}

/* Floating Clean Modal Sheet for Notifications Dropdown on Tablet & Mobile (<= 768px) */
@media screen and (max-width: 768px) {

    .main-area-wrap main .up-area .user-detil-side .bell .dropdown-menu,
    .main-area-wrap .bell .dropdown-menu,
    .bell .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        transform: none !important;
        border-radius: 16px !important;
        border: 1px solid rgba(162, 161, 168, 0.25) !important;
        box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
        z-index: 1070 !important;
        overflow: hidden !important;
        animation: bellMobileSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes bellMobileSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    body:has(.bell .dropdown-menu.show)::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1065;
        pointer-events: none;
    }

    .bell-notification-scroll {
        max-height: min(380px, calc(75vh - 120px)) !important;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 480px) {

    .main-area-wrap main .up-area .user-detil-side .bell .dropdown-menu,
    .main-area-wrap .bell .dropdown-menu,
    .bell .dropdown-menu {
        top: 54px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 14px !important;
    }
}

/* Dropdown Header */
.bell-dropdown-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    list-style: none !important;
}

.bell-dropdown-header .header-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px;
}

.bell-dropdown-header #markAllNotificationsRead {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    cursor: pointer;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: transparent !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bell-dropdown-header #markAllNotificationsRead:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    text-decoration: none !important;
}

/* Scroll List */
.bell-notification-scroll {
    max-height: 320px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.bell-notification-scroll::-webkit-scrollbar {
    width: 5px;
}

.bell-notification-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Individual Notification Items */
.bell-notification-item {
    list-style: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease;
}

.bell-notification-item:last-child {
    border-bottom: none !important;
}

.main-area-wrap main .up-area .user-detil-side .bell .dropdown-menu a.notification-link,
.bell .dropdown-menu a.notification-link,
.bell-notification-item .notification-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: #1e293b !important;
    background: transparent !important;
}

.bell-notification-item.unread {
    background-color: #f8fafc !important;
}

.bell-notification-item:hover {
    background-color: #f1f5f9 !important;
}

.bell-notification-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
}

/* Dropdown Footer */
.bell-dropdown-footer {
    list-style: none !important;
    padding: 10px 16px !important;
    background: #f8fafc !important;
    border-top: 1px solid #edf2f7 !important;
    text-align: center !important;
}

.bell-dropdown-footer a.view-all-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-decoration: none !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    transition: color 0.15s ease;
}

.bell-dropdown-footer a.view-all-link:hover {
    color: #0f172a !important;
}

/* Empty State */
.bell-empty-state {
    padding: 28px 16px !important;
    text-align: center !important;
    list-style: none !important;
}

.bell-empty-state .empty-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 8px;
}

.bell-empty-state .empty-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}

.bell-empty-state .empty-subtext {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   FOOTER BOTTOM PINNING & VIEWPORT FIX
   ========================================================================== */
.main-area-wrap main .main-wrap-inset,
.main-area-wrap main .main-wrap-inset-in {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
}

.main-area-wrap main .box-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-area-wrap main .box-wrap .copy-right,
.box-wrap .copy-right,
.copy-right {
    margin-top: auto !important;
    padding: 18px 0 10px 0 !important;
}

/* ==========================================================================
   6. QATARDAY-STYLE ROLES & PERMISSIONS CARD GRID
   ========================================================================== */
.qatarday-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.qatarday-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.perm-item-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 4px;
    transition: background 0.12s ease;
}

.perm-item-row:hover {
    background: #f8fafc;
}

.perm-item-row .form-check-input {
    margin: 0 !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.perm-item-row .perm-title {
    margin-left: 2px;
    color: #1f2937;
    font-size: 12.5px;
    line-height: 1.35;
}

.perm-item-row.is-checked {
    background: #fffdf0;
}

.perm-item-row.is-checked .perm-title {
    color: #111827 !important;
    font-weight: 600 !important;
}

.perm-item-row.is-locked {
    background: #fffdf0;
    cursor: default;
}

/* ==========================================================================
   7. TOPBAR, PROFILE & BREADCRUMBS RESPONSIVE STABILIZATION
   ========================================================================== */
.main-area-wrap main .up-area {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    min-height: 64px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.main-area-wrap main .up-area .type-name {
    flex: 0 1 auto !important;
    min-width: 140px !important;
    max-width: 38% !important;
    overflow: hidden !important;
}

.main-area-wrap main .up-area .type-name h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #16151C !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-area-wrap main .up-area .type-name ul,
.main-area-wrap main .up-area .type-name ul.breadcrumb-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 6px !important;
}

.main-area-wrap main .up-area .type-name ul li {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748B !important;
}

.main-area-wrap main .up-area .type-name ul li.active {
    color: #1E293B !important;
    font-weight: 500 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-area-wrap main .up-area .type-name ul li a {
    color: #64748B !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.main-area-wrap main .up-area .type-name ul li a:hover {
    color: #1E293B !important;
}

.main-area-wrap main .up-area .type-name ul i,
.main-area-wrap main .up-area .type-name ul li.separator i {
    font-size: 10px !important;
    padding: 0 2px !important;
    color: #94A3B8 !important;
}

/* User detail side: tenant switcher, bell, user profile */
.main-area-wrap main .up-area .user-detil-side {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 10px !important;
    margin-left: auto !important;
}

/* Bell icon styling */
.main-area-wrap main .up-area .user-detil-side .bell>a {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.25) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.main-area-wrap main .up-area .user-detil-side .bell>a:hover {
    background: #f8fafc !important;
    border-color: rgba(162, 161, 168, 0.4) !important;
    color: #1e293b !important;
}

/* User profile dropdown button & container */
.main-area-wrap main .up-area .user-detil-side .dropdown {
    position: relative !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-profile-btn {
    border: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

/* Remove old pseudo-element dropdown arrow */
.main-area-wrap main .up-area .user-detil-side .dropdown button::after,
.main-area-wrap main .up-area .user-detil-side .dropdown .dropdown-toggle::after,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-profile-btn::after {
    display: none !important;
    content: none !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details {
    display: inline-flex !important;
    align-items: center !important;
    height: 44px !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.25) !important;
    border-radius: 12px !important;
    padding: 4px 10px 4px 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    max-width: 215px !important;
    box-sizing: border-box !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button:hover .user-details,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details:hover {
    background: #f8fafc !important;
    border-color: rgba(162, 161, 168, 0.4) !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .img-area,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .img-area {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1.5px solid #E2E8F0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    flex-shrink: 0 !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .img-area img,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .img-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    min-width: 0 !important;
    max-width: 110px !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area h3,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area h3,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area .user-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #16151C !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area p,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area p,
.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area .user-role {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748B !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown .user-details .arrow-area {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: #64748B !important;
}

/* Dropdown menu styling */
.main-area-wrap main .up-area .user-detil-side .dropdown .dropdown-menu {
    min-width: 175px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(162, 161, 168, 0.2) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    padding: 6px !important;
    margin-top: 6px !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown .dropdown-menu li a {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    transition: background 0.15s ease !important;
}

.main-area-wrap main .up-area .user-detil-side .dropdown .dropdown-menu li a:hover {
    background: #F1F5F9 !important;
}

/* Responsive adjustment for viewports up to 1400px (1366px standard laptops) */
@media screen and (max-width: 1400px) {
    .main-area-wrap main .up-area {
        padding: 10px 16px !important;
        gap: 10px !important;
    }

    .main-area-wrap main .up-area .type-name {
        max-width: 32% !important;
    }

    .main-area-wrap main .up-area .user-detil-side {
        gap: 8px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area {
        max-width: 95px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .tenant-switcher-bar {
        padding: 3px 6px !important;
        gap: 6px !important;
    }
}

/* Expense Management Design Polish */
.btn-import-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    border: 1.5px solid #FFCE07;
    background-color: #ffffff !important;
    color: #222222 !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    line-height: normal;
}

.btn-import-header:hover {
    background-color: #FFF9E6 !important;
    border-color: #E0B400 !important;
    color: #111111 !important;
    box-shadow: 0 4px 12px rgba(255, 206, 7, 0.22);
    transform: translateY(-1px);
}

.btn-import-header:active {
    transform: translateY(0);
}

.btn-import-header svg,
.btn-import-header i {
    color: #222222;
    transition: transform 0.2s ease;
}

.btn-import-header:hover svg,
.btn-import-header:hover i {
    color: #000000;
    transform: translateY(-1px);
}

/* Proof Attachment Badges & Action Buttons (Visually distinct from Status badges) */
.proof-view-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #F3F4F6;
    border: 1px solid #D1D5DB;
    color: #374151 !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.proof-view-chip i {
    font-size: 13px;
    color: #4B5563;
    transition: color 0.2s ease;
}

.proof-view-chip:hover {
    background-color: #E5E7EB;
    border-color: #9CA3AF;
    color: #111827 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.proof-view-chip:hover i {
    color: #111827;
}

.proof-attach-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #FAFAFA;
    border: 1px dashed #B0B5BD;
    color: #4B5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    line-height: normal;
    white-space: nowrap;
}

.proof-attach-chip i {
    font-size: 11px;
    color: #6B7280;
    transition: color 0.2s ease;
}

.proof-attach-chip:hover {
    background-color: #FFFDF0;
    border-color: #FFCE07;
    border-style: solid;
    color: #A17500;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.18);
}

.proof-attach-chip:hover i {
    color: #A17500;
}

/* Quick Upload Proof Modal & Attachment Cards (Workface Design System) */
.modal-workface .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.modal-workface .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f2f5;
    background-color: #ffffff;
}

.modal-workface .modal-body {
    padding: 22px 24px;
    background-color: #ffffff;
}

.modal-workface .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f2f5;
    background-color: #fafbfc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-workface .btn-modal-cancel {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid rgba(162, 161, 168, 0.35);
    background-color: #ffffff;
    color: #222222;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: normal;
}

.modal-workface .btn-modal-cancel:hover {
    background-color: #f5f5f5;
    border-color: #222222;
}

.modal-workface .btn-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(91deg, #FFE88B 0.01%, #FFCE07 100.01%);
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: normal;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.25);
}

.modal-workface .btn-modal-submit:hover {
    box-shadow: 0 4px 12px rgba(255, 206, 7, 0.4);
    transform: translateY(-1px);
}

.modal-workface .modal-target-banner {
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.modal-upload-box .modal-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #fafbfc;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 0;
}

.modal-upload-box .modal-upload-label:hover {
    border-color: #FFCE07;
    background-color: #FFFDF2;
}

.modal-upload-box .upload-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #FFCE07;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.modal-upload-box .upload-main-text {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    display: block;
    margin-bottom: 3px;
}

.modal-upload-box .upload-sub-text {
    font-size: 11px;
    color: #64748b;
    display: block;
}

.modal-upload-box .selected-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: #eef9f2;
    border: 1px solid #c7ecd5;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.current-proof-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* Table Cell Ellipsis for Long Text */
.cell-ellipsis {
    display: inline-block;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: default;
}

@media (max-width: 1024px) {
    .main-area-wrap main {
        width: 100% !important;
    }
}

.cell-ellipsis-loc {
    max-width: 140px;
    color: #334155;
    font-weight: 500;
}

/* Stacked Title + Subtext Expense Date Column */
.wf-title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.wf-title-stack .cell-ellipsis {
    padding: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: left !important;
    max-width: 210px;
    display: block;
}

.wf-title-stack .wf-title-date {
    font-size: 11.5px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.3;
    white-space: nowrap;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .wf-title-stack .wf-title-date span {
    padding: 0 !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    display: inline !important;
    line-height: 1.3 !important;
}

.wf-meta-dot {
    margin: 0 3px;
    color: #94a3b8 !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .wf-title-stack span.wf-company-badge {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    margin-top: 4px;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3 !important;
}

/* Compact Office Location Filter Select, Month Input & Reset Button */
.wf-filter-input {
    max-width: 170px;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #334155;
    border-radius: 10px !important;
    border: 1px solid rgba(162, 161, 168, 0.35) !important;
    padding: 6px 12px !important;
    background-color: #ffffff;
    box-shadow: none !important;
}

.wf-filter-input:focus {
    border-color: #FFCE07 !important;
    box-shadow: 0 0 0 3px rgba(255, 206, 7, 0.16) !important;
}

.wf-filter-select {
    max-width: 215px;
    width: 215px;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #334155;
    border-radius: 10px !important;
    border: 1px solid rgba(162, 161, 168, 0.35) !important;
    padding: 6px 32px 6px 12px !important;
    background-color: #ffffff;
    box-shadow: none !important;
    text-overflow: ellipsis;
}

/* Clean, Well-Spaced Expense DataTable Layout (Prevents Clipping & Clutter) */
.wf-expense-table {
    width: 100% !important;
    table-layout: auto;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #1e293b !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td span.cell-ellipsis {
    padding: 0 !important;
    text-align: left !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    max-width: 115px;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table tbody tr td span.cell-ellipsis:has(.wf-category-badge),
.cell-ellipsis:has(.wf-category-badge) {
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .wf-title-stack span.cell-ellipsis {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #16151C !important;
    max-width: 240px;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td span.cell-ellipsis-loc {
    max-width: 120px;
    color: #334155 !important;
    font-weight: 500 !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td.wf-col-user {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td.wf-col-amount {
    white-space: nowrap;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .proof-view-chip,
.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .proof-attach-chip {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    gap: 4px;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td span.pending,
.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td span.ontime,
.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td span.late {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .control-area {
    gap: 8px !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table.wf-expense-table tbody tr td .control-area a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.wf-filter-select:focus {
    border-color: #FFCE07 !important;
    box-shadow: 0 0 0 3px rgba(255, 206, 7, 0.16) !important;
}

.wf-reset-filter-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.35) !important;
    color: #64748b !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
}

.wf-reset-filter-btn:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

/* Improved Approve & Reject Icon Action Buttons Across Tables */
.wf-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wf-btn-approve,
.wf-btn-reject {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
}

.wf-btn-approve {
    background-color: #ecfdf5;
    color: #059669 !important;
    border: 1px solid #a7f3d0;
}

.wf-btn-approve:hover {
    background-color: #10b981;
    color: #ffffff !important;
    border-color: #10b981;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.28);
    transform: translateY(-1px);
}

.wf-btn-reject {
    background-color: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
}

.wf-btn-reject:hover {
    background-color: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.28);
    transform: translateY(-1px);
}

.wf-btn-approve svg path,
.wf-btn-reject svg path {
    transition: fill 0.18s ease-in-out;
}

.wf-btn-approve:hover svg path,
.wf-btn-reject:hover svg path {
    fill: #ffffff;
}

/* Amount Value & Concatenated Currency Badge in Expense Tables */
.wf-amount-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table tbody tr td .wf-amount-val,
.wf-amount-val {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.2 !important;
    display: inline !important;
}

.main-area-wrap main .box-wrap .box-area .table-responsive table tbody tr td .wf-currency-badge,
.wf-currency-badge {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Category Pill Badge across Expense Listings, Pending Expenses & Reports */
.main-area-wrap main .box-wrap .box-area .table-responsive table tbody tr td .wf-category-badge,
.wf-category-badge {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-block !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle;
    line-height: 1.3 !important;
}

/* Seamless Currency + Amount Horizontal Input Group (Matching Workface Native System Design) */
.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    border-radius: 10px !important;
    border: 1px solid rgba(162, 161, 168, 0.2) !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: border-color 0.15s ease-in-out;
}

.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group:focus-within {
    border-color: #FFCE07 !important;
}

.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group.is-invalid {
    border-color: #dc3545 !important;
}

.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group select.wf-currency-select {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    border: none !important;
    border-right: 1px solid rgba(162, 161, 168, 0.2) !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    font-weight: 300 !important;
    font-size: 14px !important;
    padding: 14px 10px 14px 14px !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group input.wf-amount-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    padding: 14px !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px !important;
    color: #212529 !important;
    font-weight: 300 !important;
}

.tabs-area .tab-content .info-area-set-form .form-group .wf-currency-amount-group input.wf-amount-input::placeholder {
    color: #212529 !important;
    font-weight: 300 !important;
    opacity: 0.65;
}

/* Enterprise Topbar Tenant Switcher Dropdowns (Comfortable Arrow Clearance & Ellipsis) */
.wf-tenant-select {
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #F8FAFC !important;
    color: #1E293B !important;
    font-family: inherit !important;
    cursor: pointer !important;
    padding: 4px 32px 4px 10px !important;
    /* 32px right padding gives comfortable clearance before the arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 11px 9px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

.wf-tenant-select:hover {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

.wf-tenant-select:focus {
    border-color: #FFCE07 !important;
    box-shadow: 0 0 0 2px rgba(255, 206, 7, 0.22) !important;
    background-color: #FFFFFF !important;
    outline: none !important;
}

.wf-tenant-company-select {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    min-width: 140px;
    max-width: 175px;
}

.wf-tenant-location-select {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    min-width: 125px;
    max-width: 165px;
}


/* ==========================================================================
   RESPONSIVE TOPBAR & HEADER POLISH (Mobile, Tablet, Desktop)
   - Don't hide or remove anything: all elements fully accessible & responsive
   - Hamburger menu drawer trigger placed on the RIGHT side of the header
   - Sidebar close button placed at the top-right corner of the mobile drawer
   - Workface logo placed on the left side of the mobile header
   - Dedicated full-width tenant scope bar on mobile screens
   - Full greeting / page title & breadcrumbs preserved across all viewports
   ========================================================================== */

/* 1. Mobile Brand Logo (Left Side of Header) */
.mobile-brand-wrap {
    display: none !important;
}

.mobile-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.mobile-brand-logo img {
    height: 28px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
}

/* 2. Mobile Menu Trigger Button (Right Side in .user-actions-wrap) */
.mobile-menu-btn {
    display: none !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.25) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: #f8fafc !important;
    border-color: rgba(162, 161, 168, 0.45) !important;
    outline: none !important;
}

.mobile-menu-btn .hamburger-box {
    width: 17px;
    height: 13px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-btn .hamburger-box span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: transform 0.22s ease-in-out, opacity 0.18s ease-in-out;
}

.mobile-menu-btn.is-active .hamburger-box span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-box span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-active .hamburger-box span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* 3. Sidebar Off-Canvas Drawer & Close Button (Top-Right Corner) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.is-active {
    display: block;
    opacity: 1;
}

.sidebar-close-btn {
    display: none !important;
}

/* 4. Base Containers in .up-area */
.tenant-scope-container {
    display: inline-flex;
    align-items: center;
}

.user-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Hide legacy trailing hamburger menu from style.css */
.main-area-wrap .user-detil-side .menu-lisshow,
.main-area-wrap .menu-lisshow {
    display: none !important;
}

/* Ensure user profile dropdown is NEVER hidden by style.css */
.main-area-wrap main .up-area .user-detil-side .dropdown {
    display: inline-block !important;
}

/* Ensure type-name (greeting / breadcrumbs) is NEVER hidden by style.css */
.main-area-wrap main .up-area .type-name {
    display: block !important;
}

/* Profile summary header inside user dropdown */
.user-dropdown-summary .img-area {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Desktop (> 1250px) Layout Preservation */
@media screen and (min-width: 1251px) {
    .main-area-wrap main .up-area {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        padding: 16px 30px !important;
        background: rgba(162, 161, 168, 0.05) !important;
        border-bottom: 1px solid rgba(162, 161, 168, 0.2) !important;
        gap: 12px 16px !important;
    }

    .main-area-wrap main .up-area .mobile-brand-wrap,
    .main-area-wrap main .up-area .mobile-menu-btn {
        display: none !important;
    }

    .main-area-wrap main .up-area .type-name {
        flex: 0 1 auto !important;
        max-width: 320px !important;
        min-width: 0 !important;
    }

    .main-area-wrap main .up-area .user-detil-side {
        display: inline-flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
}

/* 6. Tablet & Below Universal Off-Canvas Sidebar (<= 1250px) */
@media screen and (max-width: 1250px) {
    .main-area-wrap {
        display: block !important;
    }

    .main-area-wrap aside.sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 285px !important;
        max-width: 85vw !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.16) !important;
        background: #fffae6 !important;
        padding: 20px 16px !important;
        overflow-y: auto !important;
        display: block !important;
    }

    .main-area-wrap aside.sidebar.is-active {
        transform: translateX(0) !important;
    }

    .main-area-wrap main {
        width: 100% !important;
        margin-left: 0 !important;
        float: unset !important;
    }

    .sidebar-close-btn {
        display: flex !important;
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(162, 161, 168, 0.25) !important;
        color: #1e293b !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.2s ease !important;
        z-index: 10001 !important;
        padding: 0 !important;
    }

    .sidebar-close-btn:hover,
    .sidebar-close-btn:active {
        background: #F1F5F9 !important;
        color: #0f172a !important;
        transform: scale(1.05);
    }

    .main-area-wrap aside.sidebar .side-area {
        width: 100% !important;
    }

    .main-area-wrap aside.sidebar .side-area .logo-area {
        width: 155px !important;
        margin: 6px auto 22px auto !important;
        text-align: center !important;
        display: block !important;
    }

    /* Logo visible in header when sidebar is collapsed */
    .main-area-wrap main .up-area .mobile-brand-wrap {
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Hamburger visible on the right of header */
    .mobile-menu-btn {
        display: inline-flex !important;
    }

    /* Hide role subtitle in user pill to save space */
    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area p,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area p {
        display: none !important;
    }
}

/* 7. Tablet Landscape / Small Laptop Viewports (992px to 1250px) - Single Fluid Row */
@media screen and (min-width: 992px) and (max-width: 1250px) {
    .main-area-wrap main .up-area {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 20px !important;
        gap: 12px !important;
        background: rgba(162, 161, 168, 0.05) !important;
        border-bottom: 1px solid rgba(162, 161, 168, 0.2) !important;
    }

    .main-area-wrap main .up-area .mobile-brand-wrap {
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }

    .main-area-wrap main .up-area .mobile-brand-logo img {
        height: 28px !important;
        max-width: 130px !important;
    }

    .main-area-wrap main .up-area .type-name {
        display: block !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 250px !important;
    }

    .main-area-wrap main .up-area .type-name h2 {
        font-size: 16.5px !important;
        line-height: 22px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .main-area-wrap main .up-area .type-name ul li {
        font-size: 12px !important;
        line-height: 16px !important;
    }

    .main-area-wrap main .up-area .user-detil-side {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-switcher-bar {
        height: 40px !important;
        padding: 3px 8px !important;
        gap: 6px !important;
        border-radius: 10px !important;
    }

    .wf-tenant-company-select {
        min-width: 110px !important;
        max-width: 150px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 3px 22px 3px 8px !important;
    }

    .wf-tenant-location-select {
        min-width: 105px !important;
        max-width: 140px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 3px 22px 3px 8px !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .bell>a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .dropdown button .user-details,
    .main-area-wrap main .up-area .user-actions-wrap .dropdown .user-details {
        height: 38px !important;
        border-radius: 10px !important;
        padding: 3px 8px 3px 5px !important;
        gap: 6px !important;
        max-width: 160px !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .dropdown button .user-details .detail-area h3,
    .main-area-wrap main .up-area .user-actions-wrap .dropdown .user-details .detail-area h3 {
        font-size: 12.5px !important;
    }

    .mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
    }
}

/* 8. Tablet Portrait Viewports (700px to 991px) - Clean 2-Row Structured Layout */
@media screen and (min-width: 700px) and (max-width: 991px) {
    .main-area-wrap main .up-area {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 18px !important;
        gap: 10px 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(162, 161, 168, 0.2) !important;
    }

    /* ROW 1: Logo on Left */
    .main-area-wrap main .up-area .mobile-brand-wrap {
        display: inline-flex !important;
        align-items: center !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        margin-right: 14px !important;
    }

    .main-area-wrap main .up-area .mobile-brand-logo img {
        height: 28px !important;
        max-width: 125px !important;
    }

    /* ROW 1: Page Greeting / Title */
    .main-area-wrap main .up-area .type-name {
        display: block !important;
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .main-area-wrap main .up-area .type-name h2 {
        font-size: 16.5px !important;
        line-height: 22px !important;
        margin: 0 !important;
        color: #16151C !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .main-area-wrap main .up-area .type-name ul li {
        font-size: 12px !important;
        line-height: 16px !important;
        color: #64748B !important;
    }

    /* Flatten user-detil-side to position actions and tenant bar independently */
    .main-area-wrap main .up-area .user-detil-side {
        display: contents !important;
    }

    /* ROW 1: Bell + Profile + Hamburger on Right */
    .main-area-wrap main .up-area .user-actions-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        order: 3 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .bell>a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .dropdown button .user-details,
    .main-area-wrap main .up-area .user-actions-wrap .dropdown .user-details {
        height: 38px !important;
        border-radius: 10px !important;
        padding: 3px 8px 3px 5px !important;
        gap: 6px !important;
        max-width: 170px !important;
    }

    .main-area-wrap main .up-area .user-actions-wrap .dropdown button .user-details .detail-area h3,
    .main-area-wrap main .up-area .user-actions-wrap .dropdown .user-details .detail-area h3 {
        font-size: 12.5px !important;
    }

    .mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
    }

    /* ROW 2: Dedicated Full-Width Tenant Switcher Bar */
    .main-area-wrap main .up-area .tenant-scope-container {
        display: flex !important;
        width: 100% !important;
        order: 4 !important;
        margin-top: 6px !important;
        padding-top: 8px !important;
        border-top: 1px dashed rgba(162, 161, 168, 0.2) !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-switcher-bar {
        width: 100% !important;
        height: 42px !important;
        padding: 4px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        background: #F8FAFC !important;
        border: 1px solid rgba(162, 161, 168, 0.25) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
        justify-content: space-between !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-display-pill {
        width: 100% !important;
        height: 42px !important;
        padding: 4px 12px !important;
        border-radius: 10px !important;
        justify-content: flex-start !important;
        background: #F8FAFC !important;
    }

    .wf-tenant-company-select,
    .wf-tenant-location-select {
        height: 34px !important;
        font-size: 12px !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        padding: 3px 24px 3px 8px !important;
        background-position: right 6px center !important;
        background-size: 9px 7px !important;
    }
}

/* 9. Mobile Viewport (<= 699px) - Clean 3-Tier Structured Layout */
@media screen and (max-width: 699px) {
    .main-area-wrap main .up-area {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        gap: 8px 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(162, 161, 168, 0.2) !important;
    }

    /* TIER 1: Logo on Left */
    .main-area-wrap main .up-area .mobile-brand-wrap {
        display: inline-flex !important;
        align-items: center !important;
        order: 1 !important;
        flex: 0 0 auto !important;
    }

    .main-area-wrap main .up-area .mobile-brand-logo img {
        height: 26px !important;
        max-width: 115px !important;
    }

    /* Flatten user-detil-side */
    .main-area-wrap main .up-area .user-detil-side {
        display: contents !important;
    }

    /* TIER 1: Bell + User Profile + Hamburger on Right */
    .main-area-wrap main .up-area .user-actions-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    .main-area-wrap main .up-area .user-detil-side .bell>a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details {
        height: 38px !important;
        border-radius: 10px !important;
        padding: 3px 8px 3px 5px !important;
        gap: 6px !important;
        max-width: 170px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .img-area,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .img-area {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area {
        max-width: 90px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area h3,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area h3 {
        font-size: 12px !important;
    }

    /* TIER 2: Tenant Switcher Bar (Dedicated 100% Full-Width Row) */
    .main-area-wrap main .up-area .tenant-scope-container {
        display: flex !important;
        width: 100% !important;
        order: 3 !important;
        margin-top: 2px !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-switcher-bar {
        width: 100% !important;
        height: 40px !important;
        padding: 3px 6px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        background: #F8FAFC !important;
        border: 1px solid rgba(162, 161, 168, 0.25) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
        justify-content: space-between !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-display-pill {
        width: 100% !important;
        height: 40px !important;
        padding: 4px 10px !important;
        border-radius: 10px !important;
        justify-content: flex-start !important;
        background: #F8FAFC !important;
    }

    .wf-tenant-company-select,
    .wf-tenant-location-select {
        height: 32px !important;
        font-size: 11.5px !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        padding: 3px 24px 3px 8px !important;
        background-position: right 6px center !important;
        background-size: 9px 7px !important;
    }

    .ghr-company-name-label {
        font-size: 11.5px !important;
        max-width: 115px !important;
    }

    /* TIER 3: Page Greeting / Title & Breadcrumbs (Dedicated 100% Full-Width Row) */
    .main-area-wrap main .up-area .type-name {
        display: block !important;
        width: 100% !important;
        order: 4 !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 1px dashed rgba(162, 161, 168, 0.15) !important;
        max-width: 100% !important;
    }

    .main-area-wrap main .up-area .type-name h2 {
        font-size: 16.5px !important;
        line-height: 22px !important;
        margin: 0 !important;
        color: #16151C !important;
        font-weight: 600 !important;
    }

    .main-area-wrap main .up-area .type-name ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-area-wrap main .up-area .type-name ul li {
        font-size: 12px !important;
        line-height: 16px !important;
        color: #64748B !important;
    }

    .breadcrumb-list {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .breadcrumb-list li {
        font-size: 11.5px !important;
    }
}

/* 10. Extra Small Mobile Viewports (<= 480px) */
@media screen and (max-width: 480px) {
    .main-area-wrap main .up-area {
        padding: 8px 10px !important;
        gap: 6px 0 !important;
    }

    .mobile-brand-logo img {
        height: 24px !important;
        max-width: 105px !important;
    }

    .mobile-menu-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 8px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .bell>a {
        width: 26px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    .main-area-wrap {
        padding: 2px;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details {
        height: 36px !important;
        border-radius: 8px !important;
        padding: 2px 6px 2px 4px !important;
        gap: 5px !important;
    }

    .main-area-wrap main .up-area .user-detil-side .dropdown button .user-details .detail-area,
    .main-area-wrap main .up-area .user-detil-side .dropdown .user-details .detail-area {
        max-width: 75px !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-switcher-bar {
        height: 38px !important;
        padding: 2px 4px !important;
        gap: 4px !important;
    }

    .main-area-wrap main .up-area .tenant-scope-container .tenant-switcher-bar span {
        font-size: 10px !important;
        padding: 2px 5px !important;
    }

    .ghr-company-name-label {
        font-size: 11px !important;
        max-width: 85px !important;
    }

    .wf-tenant-company-select,
    .wf-tenant-location-select {
        height: 30px !important;
        font-size: 11px !important;
        padding: 2px 20px 2px 6px !important;
    }

    .main-area-wrap main .up-area .type-name h2 {
        font-size: 15.5px !important;
    }
}

/* ==========================================================================
   12. Import Pages (Employees / Expenses) UI/UX Pro
   ========================================================================== */

/* Target Tenant Banner */
.import-tenant-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

.import-tenant-banner .banner-info-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.import-tenant-banner .banner-badge-wrap {
    flex-shrink: 0 !important;
}

/* Actions Bar */
.import-actions-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    width: 100% !important;
}

/* Download Sample Button */
.btn-import-sample {
    height: 40px !important;
    border-radius: 10px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #16151C !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    background: linear-gradient(91deg, #FFE88B 0.01%, #FFCE07 100.01%) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    white-space: nowrap !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-import-sample:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(253, 201, 0, 0.3) !important;
    color: #16151C !important;
}

.btn-import-sample:active {
    transform: translateY(0) !important;
}

/* Form Buttons Group (Back & Import) */
.import-form-buttons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

/* Back Button */
.btn-import-back {
    height: 40px !important;
    border-radius: 10px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.3) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

.btn-import-back:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-import-back:active {
    transform: scale(0.98);
}

/* Import Submit Button */
.btn-import-submit {
    height: 40px !important;
    border-radius: 10px !important;
    padding: 0 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #16151C !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    background: linear-gradient(91deg, #FFE88B 0.01%, #FFCE07 100.01%) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-import-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(253, 201, 0, 0.3) !important;
    color: #16151C !important;
}

.btn-import-submit:active {
    transform: translateY(0) !important;
}

/* Tablet & Mobile Responsiveness (<= 768px) */
@media screen and (max-width: 768px) {
    .import-actions-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    /* Template download button full-width with clean single-line text */
    .btn-import-sample {
        width: 100% !important;
        height: 42px !important;
        font-size: 13px !important;
        justify-content: center !important;
        order: 1 !important;
    }

    /* Form buttons container full-width with 50/50 equal split */
    .import-form-buttons {
        display: flex !important;
        width: 100% !important;
        gap: 10px !important;
        order: 2 !important;
    }

    .btn-import-back {
        flex: 1 1 0 !important;
        width: 50% !important;
        height: 42px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .btn-import-submit {
        flex: 1 1 0 !important;
        width: 50% !important;
        height: 42px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Extra Small Mobile (<= 480px) */
@media screen and (max-width: 480px) {
    .import-tenant-banner {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .import-tenant-banner .banner-info-wrap {
        gap: 10px !important;
    }

    .import-tenant-banner .banner-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .import-tenant-banner .banner-title {
        font-size: 12.5px !important;
    }

    .import-tenant-banner .banner-desc {
        font-size: 10.5px !important;
    }

    .btn-import-sample {
        height: 40px !important;
        font-size: 12.5px !important;
    }

    .btn-import-back,
    .btn-import-submit {
        height: 40px !important;
        font-size: 12.5px !important;
    }
}

/* ==========================================================================
   11. Employee Management Toolbar & Filter Bar UI/UX Pro
   ========================================================================== */

/* Base & Desktop Styling */
.main-area-wrap main .box-wrap .box-area .clockin-teble.empreport .in-head {
    display: block !important;
    margin-bottom: 16px !important;
}

.employee-toolbar-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    width: 100% !important;
}

/* Filters Group (Left) */
.employee-filters-group {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.employee-filters-group .filter-item-dept,
.employee-filters-group .filter-item-loc {
    flex: 0 1 auto !important;
    min-width: 160px !important;
    max-width: 220px !important;
}

.wf-filter-select {
    height: 38px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(162, 161, 168, 0.25) !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    padding: 6px 28px 6px 12px !important;
    text-align: left !important;
    line-height: normal !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    background-position: right 10px center !important;
    cursor: pointer !important;
}

.wf-filter-select:focus {
    border-color: #FDC900 !important;
    box-shadow: 0 0 0 3px rgba(253, 201, 0, 0.2) !important;
    outline: none !important;
}

.btn-filter-reset {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(162, 161, 168, 0.25) !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.btn-filter-reset:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.btn-filter-reset:active {
    transform: scale(0.96);
}

/* Actions Group (Right) */
.employee-actions-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px 10px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.btn-action-roster,
.btn-action-add {
    height: 38px !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #16151C !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    background: linear-gradient(91deg, #FFE88B 0.01%, #FFCE07 100.01%) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    white-space: nowrap !important;
    border: none !important;
}

.btn-action-roster:hover,
.btn-action-add:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(253, 201, 0, 0.3) !important;
    color: #16151C !important;
}

.btn-action-roster:active,
.btn-action-add:active {
    transform: translateY(0) !important;
}

.btn-action-add img {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
}

/* Tablet Viewport (700px to 991px) */
@media screen and (min-width: 700px) and (max-width: 991px) {
    .employee-toolbar-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .employee-filters-group {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .employee-filters-group .filter-item-dept,
    .employee-filters-group .filter-item-loc {
        min-width: 135px !important;
        max-width: 175px !important;
        flex: 1 1 auto !important;
    }

    .wf-filter-select {
        height: 38px !important;
        font-size: 12.5px !important;
        padding: 5px 24px 5px 10px !important;
    }

    .employee-actions-group {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .btn-action-roster,
    .btn-action-add {
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }
}

/* Mobile Viewport (<= 699px) */
@media screen and (max-width: 699px) {
    .main-area-wrap main .box-wrap .box-area .clockin-teble.empreport .in-head {
        margin-bottom: 12px !important;
    }

    .employee-toolbar-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Actions on top for immediate access */
    .employee-actions-group {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        order: 1 !important;
        margin: 0 !important;
    }

    .btn-action-roster,
    .btn-action-add {
        flex: 1 1 0 !important;
        width: 50% !important;
        height: 40px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    /* Filters Group below Actions */
    .employee-filters-group {
        display: flex !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        order: 2 !important;
        margin: 0 !important;
    }

    .employee-filters-group .filter-item-dept {
        flex: 1 1 130px !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .employee-filters-group .filter-item-loc {
        flex: 1 1 130px !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .wf-filter-select {
        height: 38px !important;
        font-size: 12px !important;
        padding: 5px 22px 5px 8px !important;
        border-radius: 8px !important;
    }

    .btn-filter-reset {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 8px !important;
    }
}

/* Extra Small Mobile (<= 480px) */
@media screen and (max-width: 480px) {
    .employee-toolbar-wrap {
        gap: 8px !important;
    }

    .employee-actions-group {
        gap: 6px !important;
    }

    .btn-action-roster,
    .btn-action-add {
        height: 38px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }

    .btn-action-add img {
        width: 12px !important;
        height: 12px !important;
    }

    .employee-filters-group {
        gap: 6px !important;
    }

    /* Department select full-width for effortless readability */
    .employee-filters-group .filter-item-dept {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Location select shares row with Reset button */
    .employee-filters-group .filter-item-loc {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .wf-filter-select {
        height: 36px !important;
        font-size: 12px !important;
    }

    .btn-filter-reset {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}


/* ==========================================================================
   SECTION 13: UI/UX PRO ENHANCEMENTS (REPORTS, ATTENDANCE, LEAVES, EXPENSES)
   ========================================================================== */

/* --- 13.1 Stat Cards Responsive Mobile Grid --- */
@media screen and (max-width: 768px) {
    .total-cnt-ar {
        margin-top: 6px !important;
        margin-bottom: 12px !important;
    }

    .total-cnt-ar .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .total-cnt-ar [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-bottom: 8px !important;
    }

    .total-cnt-ar [class*="col-"] .item-it {
        border-radius: 12px !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in {
        padding: 10px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .left-s {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .left-s p {
        font-size: 11px !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        opacity: 0.9 !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .left-s h4 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .right-s {
        margin-left: 6px !important;
        flex: 0 0 auto !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .right-s .icon-area {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.18) !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .item-in .right-s .icon-area svg {
        width: 16px !important;
        height: 16px !important;
    }

    .total-cnt-ar [class*="col-"] .item-it .update-set {
        padding: 6px 12px !important;
        font-size: 9.5px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

/* --- 13.2 Report & Attendance Toolbars (Desktop Default) --- */
.report-toolbar-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    margin-bottom: 20px !important;
}

.report-filters-group {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
}

.report-filter-item {
    position: relative !important;
}

.report-filter-item.report-filter-date {
    width: 155px !important;
}

.report-filter-item.report-filter-daterange {
    min-width: 215px !important;
    width: 225px !important;
}

.report-filter-item.report-filter-status {
    min-width: 145px !important;
}

.report-filter-item.report-filter-loc {
    min-width: 160px !important;
}

.report-filter-item.report-filter-dept {
    min-width: 180px !important;
}

.report-filter-item .form-control,
.report-filter-item .form-select {
    height: 40px !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    padding: 0 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.report-filter-item .form-control:focus,
.report-filter-item .form-select:focus {
    border-color: #FFCE07 !important;
    box-shadow: 0 0 0 3px rgba(255, 206, 7, 0.25) !important;
    outline: none !important;
}

/* Actions Group (Reset + Export) */
.report-actions-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    margin-top: 10px;
}

/* Modern Pro Reset Button */
.wf-btn-reset,
.btn-filter-reset,
.wf-reset-filter-btn {
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.wf-btn-reset i,
.btn-filter-reset i,
.wf-reset-filter-btn i {
    font-size: 13px !important;
    color: #64748B !important;
    transition: transform 0.25s ease !important;
}

.wf-btn-reset:hover,
.btn-filter-reset:hover,
.wf-reset-filter-btn:hover {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

.wf-btn-reset:hover i,
.btn-filter-reset:hover i,
.wf-reset-filter-btn:hover i {
    color: #0F172A !important;
    transform: rotate(-180deg) !important;
}

.wf-btn-reset:active,
.btn-filter-reset:active,
.wf-reset-filter-btn:active {
    transform: scale(0.98) !important;
}

/* Modern Pro Export Button */
.btn-report-export {
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: 10px !important;
    border: none !important;
    background: linear-gradient(91deg, #FFE88B 0.01%, #FFCE07 100.01%) !important;
    color: #16151C !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(255, 206, 7, 0.25) !important;
    white-space: nowrap !important;
}

.btn-report-export svg {
    width: 17px !important;
    height: 17px !important;
    color: #16151C !important;
    fill: currentColor !important;
    transition: transform 0.2s ease !important;
}

.btn-report-export:hover {
    background: linear-gradient(91deg, #FFDE59 0.01%, #E5B806 100.01%) !important;
    color: #16151C !important;
    box-shadow: 0 3px 10px rgba(253, 201, 0, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-report-export:hover svg {
    transform: translateY(-1px) !important;
}

.btn-report-export:active {
    transform: scale(0.98) !important;
}

/* Fix paragraphs inside export buttons on legacy report views */
.clockin-teble.empreport .exportbt button p,
.exportbt button p {
    margin: 0 !important;
    line-height: 1 !important;
}

/* Responsive Toolbars on Tablet & Mobile (<= 768px) */
@media screen and (max-width: 768px) {
    .report-toolbar-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .report-filters-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        order: 1 !important;
    }

    /* Date Range input: Full width (100%) on Line 1 */
    .report-filters-group .report-filter-daterange {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Single Date input (Daily Attendance): 50% on Line 1 */
    .report-filters-group .report-filter-date {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Office Location: 50% */
    .report-filters-group .report-filter-loc {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Status Dropdown (Leaves & Expense): 50% */
    .report-filters-group .report-filter-status {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Department Dropdown (Employee Report): 50% when paired with location */
    .report-filters-group .report-filter-daterange~.report-filter-dept {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Department Dropdown (Daily Attendance): 100% full width */
    .report-filters-group .report-filter-date~.report-filter-loc~.report-filter-dept,
    .report-filters-group .report-filter-date~.report-filter-dept {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Hide orphaned reset in filter group if present */
    .report-filters-group .report-filter-reset {
        display: none !important;
    }

    .report-filters-group .form-control,
    .report-filters-group .form-select {
        width: 100% !important;
        height: 40px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    /* Row 3: Action Buttons (Reset + Export) side-by-side (50% / 50%) */
    .report-actions-group {
        display: flex !important;
        width: 100% !important;
        gap: 10px !important;
        margin-left: 0 !important;
        margin-top: 2px !important;
        order: 2 !important;
    }

    .report-actions-group .wf-btn-reset {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .report-actions-group .btn-report-export {
        flex: 1 1 auto !important;
        width: auto !important;
        height: 42px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Small mobile (<= 480px) */
@media screen and (max-width: 480px) {
    .report-filters-group {
        gap: 6px !important;
    }

    .report-filters-group .report-filter-date,
    .report-filters-group .report-filter-loc,
    .report-filters-group .report-filter-status,
    .report-filters-group .report-filter-daterange~.report-filter-dept {
        flex: 1 1 calc(50% - 3px) !important;
        width: calc(50% - 3px) !important;
    }

    .report-actions-group {
        gap: 8px !important;
    }

    .report-actions-group .wf-btn-reset {
        height: 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        flex: 0 0 40px !important;
        padding: 0 !important;
        font-size: 13px !important;
    }

    .report-actions-group .btn-report-export {
        height: 40px !important;
        font-size: 12.5px !important;
        flex: 1 1 auto !important;
        width: auto !important;
    }
}

/* --- 13.3 Leaves Apply Form Styling --- */
.wf-leave-dropzone {
    margin-bottom: 0 !important;
}

.wf-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.wf-dropzone-label:hover {
    border-color: #FFCE07;
    background: #FFFDF0;
}

.wf-dropzone-label .icons {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FEF08A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #854D0E;
}

.wf-dropzone-label .wf-dropzone-text {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.wf-dropzone-label .wf-dropzone-hint {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.leave-form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-leave-back {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    background: #F1F5F9;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-leave-back:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.btn-leave-submit {
    height: 42px;
    padding: 0 26px;
    border-radius: 10px;
    background: #FFCE07;
    color: #1E293B;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-leave-submit:hover {
    background: #E5B806;
    color: #0F172A;
    box-shadow: 0 4px 10px rgba(255, 206, 7, 0.5);
}

@media screen and (max-width: 768px) {
    .leave-form-actions-bar {
        display: flex !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .btn-leave-back,
    .btn-leave-submit {
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* --- 13.4 Expense List Toolbar & Actions --- */
.expense-toolbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.expense-filters-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.expense-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-expense-action {
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-expense-import {
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #1E293B;
}

.btn-expense-import:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}

.btn-expense-add {
    background: #FFCE07;
    color: #1E293B;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.35);
}

.btn-expense-add:hover {
    background: #E5B806;
    color: #0F172A;
    box-shadow: 0 4px 10px rgba(255, 206, 7, 0.45);
}

.btn-expense-add img {
    width: 14px;
    height: 14px;
}

@media screen and (max-width: 768px) {
    .expense-toolbar-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    /* Actions on Row 1 */
    .expense-actions-group {
        order: 1 !important;
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
        gap: 8px !important;
    }

    .btn-expense-action {
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 40px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    /* Filters on Row 2 */
    .expense-filters-group {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .expense-filter-month {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 120px !important;
    }

    .expense-filter-loc {
        flex: 1 1 calc(50% - 50px) !important;
        min-width: 120px !important;
    }

    .expense-filter-reset {
        flex: 0 0 38px !important;
        width: 38px !important;
    }

    .expense-filters-group .wf-filter-input,
    .expense-filters-group .wf-filter-select {
        height: 38px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }
}

@media screen and (max-width: 480px) {
    .expense-actions-group {
        gap: 6px !important;
    }

    .btn-expense-action {
        height: 38px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    .expense-filters-group {
        gap: 6px !important;
    }

    .expense-filter-month {
        flex: 1 1 calc(50% - 3px) !important;
        min-width: 110px !important;
    }

    .expense-filter-loc {
        flex: 1 1 calc(50% - 45px) !important;
        min-width: 110px !important;
    }

    .expense-filters-group .wf-filter-input,
    .expense-filters-group .wf-filter-select {
        height: 36px !important;
        font-size: 12px !important;
    }

    .expense-filter-reset .wf-btn-reset {
        height: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
    }
}

/* --- 13.5 DataTables Mobile Polish --- */
@media screen and (max-width: 768px) {
    div.dt-container .dt-search input {
        width: 100% !important;
        height: 38px !important;
        border-radius: 8px !important;

        font-size: 13px !important;
        padding: 6px 12px 6px 32px !important;
        box-sizing: border-box !important;
    }

    div.dt-container .dt-length select {
        height: 34px !important;
        border-radius: 6px !important;
        border: 1px solid #E2E8F0 !important;
        padding: 2px 20px 2px 8px !important;
        font-size: 12.5px !important;
    }

    div.dt-container div.dt-layout-row:not(.dt-layout-table) {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
}


/* ==========================================================================
   16. NOTIFICATIONS INBOX RESPONSIVE DESIGN (PRO UI/UX)
   ========================================================================== */

.inbox-controls-bar {
    background: #FFFFFF;
    border-radius: 12px;
}

.inbox-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inbox-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
}

.inbox-subheading {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

.badge-unread-count-text {
    font-weight: 600;
    color: #2563EB;
}

.btn-inbox-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-inbox-mark-all:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.btn-inbox-mark-all:active {
    transform: scale(0.98);
}

/* Scrollable Filter Tabs */
.inbox-tabs-wrapper {
    position: relative;
    width: 100%;
    margin-top: 12px;
    padding-bottom: 2px;
}

.inbox-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.inbox-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.inbox-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.inbox-tab-pill:hover {
    background: #EDF2F7;
    border-color: #CBD5E1;
    color: #0F172A !important;
}

.inbox-tab-pill.active {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.inbox-tab-pill.active i {
    color: inherit !important;
}

.inbox-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #E2E8F0;
    color: #334155;
    line-height: 1;
}

.inbox-tab-pill.active .inbox-tab-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.inbox-tab-badge.badge-danger {
    background: #EF4444 !important;
    color: #FFFFFF !important;
}

/* Notifications Cards List */
.notifications-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-left: 4px solid transparent;
}

.inbox-card.unread {
    background: #F8FAFC;
    border-color: #E2E8F0;
    border-left: 4px solid #2563EB;
}

.inbox-card:hover {
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.inbox-card.unread:hover {
    border-left-color: #1D4ED8;
}

.inbox-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.inbox-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.inbox-card-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inbox-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inbox-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.inbox-unread-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #DBEAFE;
}

.inbox-unread-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2563EB;
}

.inbox-timestamp {
    font-size: 12px;
    color: #64748B;
    display: inline-flex;
    align-items: center;
}

.inbox-card-message {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    word-break: break-word;
}

.inbox-card.unread .inbox-card-message {
    font-weight: 600;
    color: #0F172A;
}

.inbox-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-inbox-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-inbox-details:hover {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF !important;
}

.btn-inbox-details i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.btn-inbox-details:hover i {
    transform: translateX(3px);
}

.btn-inbox-check {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-inbox-check:hover {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #15803D;
    transform: scale(1.05);
}

/* Empty State */
.inbox-empty-state {
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    padding: 48px 20px;
}

.inbox-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #94A3B8;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Overrides (<= 768px) */
@media screen and (max-width: 768px) {
    .inbox-controls-bar {
        margin-bottom: 16px !important;
    }

    .inbox-controls-header {
        align-items: center;
    }

    .inbox-heading {
        font-size: 1.05rem;
    }

    .inbox-card {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .inbox-card-main {
        align-items: flex-start;
        gap: 10px;
    }

    .inbox-card-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 10px;
    }

    .inbox-card-content {
        gap: 4px;
    }

    .inbox-card-meta {
        gap: 6px;
    }

    .inbox-type-badge {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .inbox-timestamp {
        font-size: 11px;
    }

    .inbox-card-message {
        font-size: 13px;
        line-height: 1.42;
        margin-top: 2px;
    }

    .inbox-card-mobile-check {
        margin-left: auto;
        flex-shrink: 0;
    }

    .inbox-card-mobile-check .btn-inbox-check {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .inbox-card-mobile-action {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #F1F5F9;
    }

    .inbox-card-mobile-action .btn-inbox-details {
        width: 100%;
        height: 36px;
        font-size: 12.5px;
        background: #F8FAFC;
        border-color: #E2E8F0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .inbox-card-mobile-action .btn-inbox-details:hover {
        background: #0F172A;
        border-color: #0F172A;
        color: #FFFFFF !important;
    }

    .inbox-pagination-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .inbox-pagination-links {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
    }
}


/* ==========================================================================
   14. ASSIGN ROLE & EMPLOYEE ROLES UI/UX PRO POLISH
   ========================================================================== */

/* --- 14.1 Employee Profile Summary Card --- */
.wf-assign-role-profile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.wf-profile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.wf-profile-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.wf-profile-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-profile-avatar-img.is-placeholder {
    object-fit: contain;
    padding: 10px;
    background: #f1f5f9;
}

.wf-profile-info-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.wf-profile-name-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wf-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.wf-profile-id-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.wf-profile-meta-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wf-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wf-meta-chip i {
    font-size: 11px;
    color: #64748b;
}

.wf-meta-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.wf-profile-role-col {
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
}

.wf-profile-role-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
}

.wf-role-pill-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.wf-role-unassigned-badge {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* --- 14.2 Role Selector Card --- */
.wf-assign-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.wf-assign-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.wf-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.wf-role-select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.wf-role-select:focus {
    border-color: #ffce07;
    box-shadow: 0 0 0 2px rgba(255, 206, 7, 0.25);
    outline: none;
}

.wf-role-scope-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    border-radius: 10px;
}

/* --- 14.3 Form Actions Bar --- */
.wf-assign-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-assign-back {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-assign-back:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.btn-assign-submit {
    height: 42px;
    padding: 0 28px;
    border-radius: 10px;
    background: #ffce07;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-assign-submit:hover {
    background: #e5b806;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(255, 206, 7, 0.5);
}

/* Mobile & Tablet Responsive (<= 768px) */
@media screen and (max-width: 768px) {
    .wf-assign-role-profile {
        padding: 14px 16px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
    }

    .wf-profile-top-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .wf-profile-left-group {
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .wf-profile-avatar-wrap {
        width: 48px !important;
        height: 48px !important;
        margin-top: 2px !important;
    }

    .wf-profile-name {
        font-size: 14.5px !important;
    }

    .wf-profile-meta-tags {
        gap: 5px !important;
        margin-top: 6px !important;
    }

    .wf-meta-chip {
        font-size: 11px !important;
        padding: 2.5px 7px !important;
    }

    .wf-profile-role-col {
        width: 100% !important;
        margin-left: 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }

    .wf-profile-role-label {
        margin-bottom: 0 !important;
        font-size: 11.5px !important;
    }

    .wf-role-pill-badge {
        font-size: 11.5px !important;
        padding: 4px 12px !important;
    }

    /* Actions side-by-side on mobile */
    .wf-assign-actions-bar {
        display: flex !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .btn-assign-back,
    .btn-assign-submit {
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
        text-align: center !important;
        justify-content: center !important;
    }
}


/* ==========================================================================
   17. DOCUMENTS MODULE RESPONSIVE FORM & ACTIONS (PRO UI/UX)
   ========================================================================== */

.wf-doc-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
}

.btn-doc-reset {
    height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    background: #ffffff;
    color: #DC2626 !important;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #FECACA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-doc-reset:hover {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #B91C1C !important;
}

.btn-doc-back {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    background: #F8FAFC;
    color: #475569 !important;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-doc-back:hover {
    background: #E2E8F0;
    color: #0F172A !important;
}

.btn-doc-submit {
    height: 42px;
    padding: 0 28px;
    border-radius: 10px;
    background: #FFCE07;
    color: #0F172A;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-doc-submit:hover {
    background: #E5B806;
    color: #0F172A;
    box-shadow: 0 4px 10px rgba(255, 206, 7, 0.5);
}

.btn-doc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* View Document Attachment Pill */
.wf-btn-view-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #FFFDF0;
    border: 1px solid #FDE047;
    color: #854D0E !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.wf-btn-view-doc:hover {
    background: #FFCE07;
    border-color: #E5B806;
    color: #0F172A !important;
    box-shadow: 0 2px 6px rgba(255, 206, 7, 0.25);
}

/* Mobile & Tablet Responsive (<= 768px) */
@media screen and (max-width: 768px) {
    .wf-doc-actions-bar {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    .btn-doc-reset,
    .btn-doc-back,
    .btn-doc-submit {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 42px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .info-area-set-form {
        padding: 0 !important;
    }

    .tabs-area .tab-content .info-area-set-form .form-group input,
    .tabs-area .tab-content .info-area-set-form .form-group select,
    .tabs-area .tab-content .info-area-set-form .form-group textarea {
        font-size: 13.5px !important;
        padding: 11px 14px !important;
    }
}