﻿/* ==================== FONTS ==================== */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* ==================== PAGE CONTAINER ==================== */
.companies-page {
    padding: 16px;
    padding-left: 0;
    padding-bottom: 40px;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    margin-bottom: 16px;
}

.breadcrumb-home-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.breadcrumb-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

.breadcrumb-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.breadcrumb-link {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #4B5563;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 16px;
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.page-title {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin: 0;
    outline: none;
    border: none;
}

.page-title:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.info-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    cursor: pointer;
}

.page-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

/* ==================== SEARCH/FILTER CONTAINER ==================== */
.search-filter-container {
    background: #FFFFFF;
    border: 0.63px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    padding: 12px 12px 0 12px;
    margin-bottom: 16px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
}

.filter-label-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 4px;
}

.filter-label {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #374151;
}

.filter-input-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 12px;
    padding-top: 6px;
    align-items: center;
}

/* Search Input */
.search-input-wrapper {
    width: 100%;
    position: relative;
    height: 31.89px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0.5;
}

.search-input {
    width: 100%;
    height: 31.89px;
    padding: 4px 12px 4px 32px;
    background: #F9FAFB;
    border: none;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #111827;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #6B7280;
}

.search-input:focus {
    outline: none;
    border-color: #083050;
}

/* Filter Dropdowns */
.filter-dropdown {
    width: 100%;
    height: 31.89px;
    padding: 0 32px 0 12px;
    background-color: #F9FAFB;
    border: none;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('/images/Vector.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    cursor: pointer;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #083050;
}

/* ==================== TABLE ==================== */
.companies-table {
    background: #FFFFFF;
    border: 0.63px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

.table-header {
    display: flex;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.table-header .header-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    cursor: pointer;
    background: #FFFFFF;
}

.table-header .header-cell:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 12px 8px;
}

.table-header .header-cell:not(:first-child) {
    flex: 1;
}

.sort-icon {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    opacity: 0.7;
}

/* Table Body */
.table-body {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
}

.table-row {
    display: flex;
    align-items: center;
    border-bottom: 0.63px solid #F3F4F6;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table-row:hover {
    background-color: #F9FAFB;
}

.table-row.expanded {
    background-color: #FFFFFF;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    min-height: 41px;
    box-sizing: border-box;
}

.table-cell:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 10px 8px;
    justify-content: center;
}

.table-cell:not(:first-child) {
    flex: 1;
}

/* Only Company Code column (2nd cell) should be bold */
.table-cell:nth-child(2) {
    font-weight: 600;
}

.arrow-icon {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

/* Status Column */
.status-cell {
    justify-content: flex-start;
}

.company-status-active,
.company-status-inactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    padding: 4px 12px;
    border-radius: 16px;
    width: 65px;
    box-sizing: border-box;
}

.company-status-active {
    background: #DCFCE7;
    border: 0.63px solid #B9F8CF;
    color: #016630;
}

.company-status-inactive {
    background: #F3F4F6;
    border: 0.63px solid #E5E7EB;
    color: #6B7280;
}

.status-dot {
    display: none;
}

.status-dot-active {
    background-color: #22C55E;
}

.status-dot-inactive {
    background-color: #6B7280;
}

/* ==================== EXPANDED ROW (OLD - kept for reference) ==================== */
.expanded-details {
    background-color: #FAFBFC;
    padding: 12px 16px 12px 52px;
    border-bottom: 0.63px solid #F3F4F6;
    border-left: 3px solid #083050;
}

.expanded-layout {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-only-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: #083050;
    border: 0.63px solid #083050;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
    gap: 4px;
}

.grey-line {
    display: none;
}

.expanded-content {
    display: flex;
    gap: 24px;
}

.detail-pair {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-label {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #083050;
}

.detail-value {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

/* ==================== NEW EXPANDED ROW DESIGN ==================== */
.expanded-details-new {
    background: transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05) inset;
    padding: 24px 24px 24px 56px;
    border-bottom: 0.63px solid #F3F4F6;
}

.payroll-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-right: 0;
}

.payroll-details-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #6B7280;
}

.payroll-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border: 1px solid #083050;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.payroll-expand-btn:hover {
    background-color: #F0F5FA;
}

.payroll-expand-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Inner Payroll Table */
.payroll-inner-table {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.payroll-inner-header {
    display: flex;
    background: #083050;
    border-bottom: 1px solid #083050;
}

.payroll-inner-header .payroll-inner-cell {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 8px 16px;
    flex: 1;
}

.payroll-inner-body {
    max-height: 180px;
    overflow-y: auto;
}

/* Nested table showing count */
.nested-showing-count {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #4B5563;
    text-align: right;
    padding: 8px 12px;
    /*background: #F9FAFB;*/
    /*border-top: 1px solid #E5E7EB;*/
}

.payroll-inner-row {
    display: flex;
    border-bottom: 1px solid #F3F4F6;
}

.payroll-inner-row:last-child {
    border-bottom: none;
}

.payroll-inner-row .payroll-inner-cell {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
    padding: 12px 16px;
    flex: 1;
}

.payroll-inner-row .payroll-name-cell {
    font-weight: 500;
    color: #111827;
}

/* ==================== PAYROLL OVERLAY ==================== */
.payroll-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.payroll-overlay-container {
    width: 100%;
    max-width: 1152px;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.payroll-overlay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.payroll-overlay-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payroll-overlay-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 30.8px;
    color: #083050;
}

.payroll-overlay-subtitle {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
}

.payroll-overlay-search-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payroll-overlay-search-wrapper {
    position: relative;
    width: 294px;
}

.payroll-overlay-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
    pointer-events: none;
}

.payroll-overlay-search-input {
    width: 100%;
    height: 36px;
    padding: 4px 12px 4px 40px;
    background: #F9FAFB;
    border: 0.67px solid #D1D5DB;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #111827;
    box-sizing: border-box;
}

.payroll-overlay-search-input::placeholder {
    color: #6B7280;
}

.payroll-overlay-search-input:focus {
    outline: none;
    border-color: #083050;
}

.payroll-overlay-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.payroll-overlay-close-btn:hover {
    background-color: #F3F4F6;
}

.payroll-overlay-close-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.payroll-overlay-body {
    flex: 1;
    padding: 24px;
    background: #F9FAFB;
    overflow-y: auto;
}

.payroll-overlay-table {
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.payroll-overlay-table-header {
    display: flex;
    background: #083050;
    border-bottom: 0.67px solid #083050;
}

.payroll-overlay-header-cell {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 8px 16px;
    flex: 1;
}

.payroll-overlay-table-body {
    max-height: 400px;
    overflow-y: auto;
    min-height: 200px;
}

.payroll-overlay-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
}

.payroll-overlay-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
}

.payroll-overlay-table-row {
    display: flex;
    border-bottom: 0.67px solid #F3F4F6;
}

.payroll-overlay-table-row:last-child {
    border-bottom: none;
}

.payroll-overlay-cell {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
    padding: 14px 16px;
    flex: 1;
}

.payroll-overlay-name-cell {
    font-weight: 500;
    color: #111827;
}

.payroll-overlay-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(249, 250, 251, 0.3);
    border-top: 0.67px solid #E5E7EB;
}

.payroll-overlay-showing {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

.payroll-overlay-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payroll-overlay-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payroll-overlay-page-btn:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.payroll-overlay-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payroll-overlay-page-btn img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.payroll-overlay-page-info {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

/* ==================== PAGINATION WRAPPER (in grey area) ==================== */
.pagination-wrapper {
    padding: 16px 0;
}

/* ==================== NO RESULTS ==================== */
.no-results {
    padding: 40px 16px;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #6B7280;
}

/* ==================== FOCUS STYLES ==================== */
.search-input:focus,
.filter-dropdown:focus {
    outline: none;
}

/* ==================== RESPONSIVE - 1920px+ ==================== */
@media (min-width: 1920px) {
    .companies-page {
        max-width: 1525px;
    }
    
    .search-filter-container,
    .companies-table,
    .table-footer {
        max-width: 1493px;
    }

    .filter-label,
    .search-input-wrapper,
    .filter-dropdown {
        flex: 1 1 0;
    }
}

/* ==================== RESPONSIVE - 1600px ==================== */
@media (max-width: 1600px) {
    .companies-page {
        padding: 16px;
        padding-left: 0;
    }

    .filter-label-row,
    .filter-input-row {
        gap: 14px;
    }
}

/* ==================== RESPONSIVE - 1440px ==================== */
@media (max-width: 1440px) {
    .filter-label-row,
    .filter-input-row {
        gap: 12px;
    }

    .filter-label {
        font-size: 11px;
    }

    .search-input {
        font-size: 13px;
    }

    .filter-dropdown {
        font-size: 13px;
    }
}

/* ==================== RESPONSIVE - 1366px ==================== */
@media (max-width: 1366px) {
    .companies-page {
        padding: 12px;
        padding-left: 0;
    }

    .filter-label-row,
    .filter-input-row {
        gap: 10px;
    }

    .filter-label {
        font-size: 11px;
    }

    .search-input {
        font-size: 12px;
        height: 30px;
    }

    .filter-dropdown {
        font-size: 12px;
        height: 30px;
    }

    .search-input-wrapper {
        height: 30px;
    }

    .table-header .header-cell {
        font-size: 13px;
        padding: 10px 12px;
    }

    .table-cell {
        font-size: 13px;
        padding: 10px 12px;
    }

    .table-body {
        max-height: calc(100vh - 320px);
    }

    .company-status-active,
    .company-status-inactive {
        font-size: 11px;
        padding: 3px 10px;
        width: 58px;
    }
}

/* ==================== RESPONSIVE - 1200px ==================== */
@media (max-width: 1200px) {
    .filter-label-row,
    .filter-input-row {
        gap: 8px;
    }

    .table-header .header-cell {
        font-size: 12px;
        padding: 8px 10px;
    }

    .table-cell {
        font-size: 12px;
        padding: 8px 10px;
    }

    .table-header .header-cell:first-child,
    .table-cell:first-child {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
    }

    .expanded-details {
        padding: 10px 12px 10px 44px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 12px;
    }
}

/* ==================== RESPONSIVE - 1024px ==================== */
@media (max-width: 1024px) {
    .filter-label-row,
    .filter-input-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-header .header-cell,
    .table-cell {
        padding: 8px;
        font-size: 11px;
    }

    .sort-icon {
        width: 10px;
        height: 10px;
    }
}

/* ==================== RESPONSIVE - 992px ==================== */
@media (max-width: 992px) {
    .filter-label-row,
    .filter-input-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-filter-container {
        padding: 10px;
    }

    .expanded-layout {
        flex-wrap: wrap;
        gap: 10px;
    }

    .expanded-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .view-only-pill {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* ==================== RESPONSIVE - 768px ==================== */
@media (max-width: 768px) {
    .companies-page {
        padding: 8px;
        padding-left: 0;
    }

    .breadcrumb {
        margin-bottom: 10px;
        gap: 6px;
    }

    .breadcrumb-text,
    .breadcrumb-current {
        font-size: 12px;
    }

    .page-title {
        font-size: 16px;
    }

    .page-description {
        font-size: 12px;
    }

    .search-filter-container {
        border-radius: 8px;
        padding: 8px;
    }

    .filter-label-row {
        display: none;
    }

    .filter-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .search-input-wrapper,
    .filter-dropdown {
        width: 100%;
        max-width: none;
    }

    .search-input {
        height: 38px;
        font-size: 14px;
    }

    .filter-dropdown {
        height: 38px;
        font-size: 14px;
    }

    .search-input-wrapper {
        height: 38px;
    }

    .companies-table {
        border-radius: 8px;
    }

    .table-header {
        display: none;
    }

    .table-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 6px;
    }

    .table-cell {
        width: 100%;
        padding: 4px 0;
        min-height: auto;
        font-size: 13px;
    }

    .table-cell:first-child {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .table-cell:nth-child(2) {
        font-weight: 600;
        font-size: 14px;
    }

    .expanded-details {
        padding: 10px;
        padding-left: 12px;
    }

    .expanded-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .expanded-content {
        flex-direction: column;
        gap: 6px;
    }

    .table-footer {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 10px 0;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .company-status-active,
    .company-status-inactive {
        width: 60px;
        font-size: 11px;
    }
}

/* ==================== RESPONSIVE - 576px ==================== */
@media (max-width: 576px) {
    .companies-page {
        padding: 6px;
        padding-left: 0;
    }

    .breadcrumb {
        flex-wrap: wrap;
        gap: 4px;
    }

    .breadcrumb-home-icon,
    .breadcrumb-arrow {
        width: 12px;
        height: 12px;
    }

    .page-title-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-title {
        font-size: 15px;
    }

    .info-icon {
        width: 16px;
        height: 16px;
    }

    .page-description {
        font-size: 11px;
    }

    .search-input {
        height: 36px;
        font-size: 13px;
        padding-left: 28px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
        left: 10px;
    }

    .filter-dropdown {
        height: 36px;
        font-size: 13px;
    }

    .search-input-wrapper {
        height: 36px;
    }

    .table-row {
        padding: 10px;
    }

    .table-cell {
        font-size: 12px;
    }

    .detail-pair {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 12px;
    }

    .company-status-active,
    .company-status-inactive {
        width: 55px;
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ==================== RESPONSIVE - 480px ==================== */
@media (max-width: 480px) {
    .breadcrumb-text,
    .breadcrumb-current {
        font-size: 11px;
    }

    .page-title {
        font-size: 14px;
    }

    .search-input,
    .filter-dropdown {
        height: 34px;
        font-size: 12px;
    }

    .search-input-wrapper {
        height: 34px;
    }

    .table-cell {
        font-size: 11px;
    }

    .arrow-icon {
        width: 8px;
        height: 8px;
    }
}

/* ==================== RESPONSIVE - NEW EXPANDED ROW ==================== */
@media (max-width: 1366px) {
    .expanded-details-new {
        padding: 20px 20px 20px 48px;
    }

    .payroll-inner-header .payroll-inner-cell,
    .payroll-inner-row .payroll-inner-cell {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    .expanded-details-new {
        padding: 16px 16px 16px 40px;
    }

    .payroll-details-title {
        font-size: 11px;
    }

    .payroll-inner-header .payroll-inner-cell {
        font-size: 11px;
        padding: 6px 10px;
    }

    .payroll-inner-row .payroll-inner-cell {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .expanded-details-new {
        padding: 14px;
    }

    .payroll-inner-table {
        overflow-x: auto;
    }

    .payroll-inner-header,
    .payroll-inner-row {
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .expanded-details-new {
        padding: 12px;
    }

    .payroll-details-header {
        margin-bottom: 12px;
    }

    .payroll-details-title {
        font-size: 10px;
    }

    .payroll-inner-body {
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    .expanded-details-new {
        padding: 10px;
    }

    .payroll-inner-header .payroll-inner-cell,
    .payroll-inner-row .payroll-inner-cell {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* ==================== RESPONSIVE - PAYROLL OVERLAY ==================== */
@media (max-width: 1200px) {
    .payroll-overlay-container {
        max-width: 95%;
        margin: 0 16px;
    }

    .payroll-overlay-title {
        font-size: 20px;
    }

    .payroll-overlay-search-wrapper {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .payroll-overlay-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .payroll-overlay-search-section {
        width: 100%;
        justify-content: space-between;
    }

    .payroll-overlay-search-wrapper {
        flex: 1;
        max-width: 300px;
    }

    .payroll-overlay-body {
        padding: 16px;
    }

    .payroll-overlay-header-cell,
    .payroll-overlay-cell {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .payroll-overlay-container {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .payroll-overlay-header {
        padding: 16px;
    }

    .payroll-overlay-title {
        font-size: 18px;
    }

    .payroll-overlay-subtitle {
        font-size: 13px;
    }

    .payroll-overlay-search-wrapper {
        width: 100%;
        max-width: none;
    }

    .payroll-overlay-body {
        padding: 12px;
    }

    .payroll-overlay-table-header,
    .payroll-overlay-table-row {
        min-width: 500px;
    }

    .payroll-overlay-table {
        overflow-x: auto;
    }

    .payroll-overlay-footer {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .payroll-overlay-showing {
        font-size: 13px;
    }

    .payroll-overlay-page-info {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .payroll-overlay-header {
        padding: 12px;
    }

    .payroll-overlay-title {
        font-size: 16px;
    }

    .payroll-overlay-body {
        padding: 10px;
    }

    .payroll-overlay-header-cell,
    .payroll-overlay-cell {
        padding: 8px 10px;
        font-size: 11px;
    }

    .payroll-overlay-page-btn {
        width: 28px;
        height: 28px;
    }

    .payroll-overlay-page-btn img {
        width: 12px;
        height: 12px;
    }
}

