/* --- Extracted & Minified Custom CSS --- */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.dashboard-title,
.sidebar-brand,
.modern-card-header h2,
.form-label-custom,
.btn-friendly-search,
.table-header-text,
.custom-select-wrapper,
.empty-state-container,
.modal-title {
    font-family: "Roboto", sans-serif !important;
}
body,
.modern-card,
.table-header-row,
.table-data-row,
.modal-card,
.custom-select-trigger,
.dropdown-search-input,
.custom-select-dropdown,
.lob-badge,
.status-badge,
.td-content,
.form-label-custom {
    transition:
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease;
}
body {
    background-color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1030;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}
#sidebar {
    width: 260px;
    position: fixed;
    top: 24px;
    left: 24px;
    height: calc(100vh - 48px);
    border-radius: 20px;
    background-color: #0f172a;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s ease,
        border-color 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1040;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}
#sidebar::-webkit-scrollbar {
    width: 6px;
}
#sidebar::-webkit-scrollbar-track {
    background: 0 0;
    margin: 20px 0;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
.sidebar-brand {
    padding: 30px 24px 20px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    transition: padding 0.4s ease;
}
.sidebar-brand::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    margin-right: 12px;
    border-radius: 10px;
    transition: margin 0.4s ease;
}
#sidebar ul {
    list-style: none;
    padding: 0 16px;
    margin-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
#sidebar ul li {
    margin-bottom: 4px;
}
#sidebar ul li a {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(6px);
}
#sidebar ul li.active a {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
#sidebar ul li a i {
    margin-right: 16px;
    font-size: 1.25rem;
    transition:
        transform 0.3s ease,
        margin 0.4s ease;
}
#sidebar ul li a:hover i {
    transform: scale(1.1);
}
.logout-item {
    margin-top: auto !important;
    margin-bottom: 20px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.logout-item a:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}
@media (min-width: 992px) {
    #sidebar.collapsed {
        width: 88px;
    }
    #sidebar.collapsed .brand-text,
    #sidebar.collapsed .nav-text {
        display: none;
    }
    #sidebar.collapsed .sidebar-brand {
        justify-content: center;
        padding: 30px 0 20px;
    }
    #sidebar.collapsed .sidebar-brand::before {
        margin-right: 0;
    }
    #sidebar.collapsed ul li a {
        justify-content: center;
        padding: 12px 0;
    }
    #sidebar.collapsed ul li a:hover {
        transform: translateY(-2px);
    }
    #sidebar.collapsed ul li a i {
        margin-right: 0;
    }
    #content.collapsed {
        width: calc(100% - 136px);
        margin-left: 136px;
    }
}
.sidebar-popover {
    position: fixed;
    left: 124px;
    background: #1e3a8a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px) translateY(-50%);
    transition:
        opacity 0.2s ease,
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}
.sidebar-popover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #1e3a8a;
}
.sidebar-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-50%);
}
#content {
    width: calc(100% - 310px);
    margin-left: 310px;
    padding: 24px 25px 25px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.mobile-header .menu-toggle {
    background: 0 0;
    border: none;
    color: #1e293b;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.header-left-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.desktop-toggle-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.desktop-toggle-btn:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.breadcrumb-text {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
    display: block;
}
.dashboard-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #64748b;
}
.header-icons .material-icons-round {
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-icons .material-icons-round:hover {
    color: #2563eb;
    transform: translateY(-3px) scale(1.05);
}
.header-text-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.header-text-link:hover {
    color: #2563eb;
    transform: translateY(-2px);
}
.modern-card {
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    margin-bottom: 24px;
    position: relative;
}
.modern-card-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    padding: 24px 30px;
    color: #fff;
    border-radius: 20px 20px 0 0;
}
.modern-card-header h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0;
}
.modern-card-body {
    padding: 30px;
}
.form-label-custom {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 10px;
    display: block;
}
.input-group.input-group-outline .form-control {
    border-radius: 12px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 400;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-trigger {
    border: 1px solid #d2d6da;
    border-radius: 12px;
    min-height: 42px;
    padding: 6px 36px 6px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}
.custom-select-wrapper.is-open .custom-select-trigger {
    border-color: #2563eb;
    border-top-color: transparent !important;
    box-shadow:
        inset 1px 0 #2563eb,
        inset -1px 0 #2563eb,
        inset 0 -1px #2563eb;
}
.custom-select-wrapper.is-open .custom-select-trigger::after,
.custom-select-wrapper.is-open .custom-select-trigger::before {
    content: "";
    position: absolute;
    top: -1px;
    width: 8px;
    height: 1px;
    background-color: transparent;
    box-shadow: inset 0 1px #2563eb;
}
.custom-select-wrapper.is-open .custom-select-trigger::before {
    left: 0;
    border-top-left-radius: 12px;
}
.custom-select-wrapper.is-open .custom-select-trigger::after {
    right: 0;
    border-top-right-radius: 12px;
    width: calc(100% - 10px);
}
.dropdown-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: transform 0.4s ease;
}
.custom-select-wrapper.is-open .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}
.placeholder-text {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
}
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modern-tag-pill {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 8px 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.modern-tag-pill i {
    font-size: 14px;
    cursor: pointer;
    color: #2563eb;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.modern-tag-pill i:hover {
    color: #fff;
    background-color: #ef4444;
    transform: scale(1.15) rotate(90deg);
}
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.dropdown-search-box {
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.dropdown-search-box i {
    position: absolute;
    left: 20px;
    top: 18px;
    color: #64748b;
    font-size: 18px;
}
.dropdown-search-input {
    width: 100%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px 6px 36px;
    color: #334155;
    font-size: 0.9rem;
    outline: 0;
}
.dropdown-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.options-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
}
.custom-option {
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}
.custom-option:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}
.custom-option.is-selected {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}
.dropdown-fade-enter-active,
.dropdown-fade-leave-active {
    transition: all 0.3s ease;
}
.dropdown-fade-enter-from,
.dropdown-fade-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}
.btn-friendly-search {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 0.95rem;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}
.btn-friendly-search:hover {
    box-shadow: 0 12px 20px -8px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.table-responsive-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}
.custom-data-table {
    min-width: 1400px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.table-grid-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1.5fr 1.5fr 0.8fr 0.5fr 0.8fr 2.2fr;
    gap: 16px;
    align-items: stretch;
}
.table-header-row {
    border-bottom: 2px solid #e2e8f0;
    margin-top: 20px;
    background-color: #fff;
}
.table-data-row {
    border-bottom: 1px solid #f1f5f9;
    background-color: #fff;
}
.table-data-row:hover {
    background-color: #f8fafc;
}
.table-header-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    padding: 16px 0;
}
.td-content {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    word-break: break-word;
    display: flex;
    align-items: center;
    padding: 24px 0;
}
.sticky-col {
    position: sticky;
    left: 0;
    background-color: inherit;
    z-index: 2;
    padding-right: 16px !important;
    transition: background-color 0.4s ease;
}
.sticky-col::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}
.est-name-link {
    color: #1c77f2;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.est-name-link:hover {
    color: #1a5cff;
}
.lob-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 10px;
}
.lob-badge {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 170px;
    white-space: normal;
    line-height: 1.2;
    min-height: 26px;
    box-sizing: border-box;
}
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.badge-fixed-width {
    width: 90px;
}
.badge-type-new {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.badge-type-renew {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}
.badge-blue {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.badge-green {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.badge-amber {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.action-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.action-btn-pill {
    border: none;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #fff;
    width: 190px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.action-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn-color-process {
    background-color: #2563eb;
}
.btn-color-process:hover {
    background-color: #1d4ed8;
}
.btn-color-add-emp {
    background-color: #10b981;
}
.btn-color-add-emp:hover {
    background-color: #059669;
}
.btn-color-view-neg {
    background-color: #ef4444;
}
.btn-color-view-neg:hover {
    background-color: #dc2626;
}
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.empty-state-icon i {
    font-size: 40px;
}
.empty-state-container h3 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.empty-state-container p {
    color: #64748b;
    font-size: 1rem;
    margin: 0 auto;
    line-height: 1.5;
}
.footer-count-text {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-close-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.modal-fade-enter-active,
.modal-fade-leave-active {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-fade-enter-from,
.modal-fade-leave-to {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}
body.dark-mode {
    background-color: #0b0f19;
}
body.dark-mode #sidebar {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.05);
}
body.dark-mode .dashboard-title {
    color: #fff;
}
body.dark-mode .modern-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
body.dark-mode .modern-card-body {
    background: #111827;
}
body.dark-mode .form-label-custom {
    color: #e2e8f0;
}
body.dark-mode .custom-select-trigger {
    background: #111827;
    border-color: #374151;
    color: #fff;
}
body.dark-mode .custom-select-wrapper.is-open .custom-select-trigger {
    border-color: #3b82f6;
}
body.dark-mode .dropdown-search-box {
    background: #111827;
    border-color: #1f2937;
}
body.dark-mode .dropdown-search-input {
    background: #1f2937;
    border-color: #374151;
    color: #fff;
}
body.dark-mode .dropdown-search-input:focus {
    border-color: #3b82f6;
}
body.dark-mode .custom-select-dropdown {
    background: #111827;
    border-color: #374151;
}
body.dark-mode .custom-option {
    color: #cbd5e1;
}
body.dark-mode .custom-option:hover {
    background-color: #1f2937;
}
body.dark-mode .modern-tag-pill {
    background-color: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}
body.dark-mode .table-data-row,
body.dark-mode .table-header-row {
    background-color: #111827;
    border-color: #1f2937;
}
body.dark-mode .table-data-row:hover {
    background-color: #1f2937;
}
body.dark-mode .td-content {
    color: #e2e8f0;
}
body.dark-mode .est-name-link {
    color: #60a5fa;
}
body.dark-mode .lob-badge {
    background-color: rgba(71, 85, 105, 0.2);
    color: #94a3b8;
    border-color: rgba(71, 85, 105, 0.4);
}
body.dark-mode .badge-type-new {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
body.dark-mode .badge-type-renew {
    background-color: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}
body.dark-mode .modal-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
body.dark-mode .modal-title {
    color: #fff;
}
body.dark-mode .modal-close-btn {
    background: #1f2937;
    color: #94a3b8;
}
@media (max-width: 991.98px) {
    #sidebar {
        transform: translateX(-120%);
    }
    #sidebar.show {
        transform: translateX(0);
    }
    #content {
        width: 100%;
        margin-left: 0;
        padding: 16px;
    }
    .mobile-header {
        display: flex;
    }
    .dashboard-header-bar,
    .desktop-toggle-btn {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .table-grid-row .sticky-col {
        position: static !important;
        z-index: 1 !important;
        padding-right: 0 !important;
    }
    .table-grid-row .sticky-col::after {
        display: none !important;
    }
}
.modern-stat-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    position: relative;
    margin-top: 35px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.06);
}
.modern-stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    top: -24px;
    left: 24px;
}
.modern-stat-icon i {
    font-size: 32px;
}
.icon-royal-blue {
    background-color: #2563eb;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}
.icon-slate-navy {
    background-color: #475569;
    box-shadow: 0 10px 20px -5px rgba(71, 85, 105, 0.4);
}
.icon-sea-teal {
    background-color: #0ea5e9;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}
.modern-stat-info {
    text-align: right;
    padding-top: 10px;
}
.modern-stat-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
}
.modern-stat-info h3 {
    color: #334155;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0;
}

/* Re-added Card Footers and Buttons */
.modern-stat-footer {
    border-top: 1px solid #f1f5f9;
    margin-top: 24px;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
}
.btn-view-pill {
    background: #f8f9fa;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-view-pill:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

/* --- UPGRADED PANELS --- */
.modern-panel-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.modern-panel-header {
    padding: 28px 30px 20px;
}
.modern-panel-header h4 {
    color: #334155;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.modern-panel-header p {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 400;
}
.modern-panel-header p i {
    font-size: 18px;
    margin-right: 6px;
    color: #0ea5e9;
}

/* Friendly Floating Table Layout */
.modern-table-wrapper {
    padding: 0 20px 20px;
    overflow-x: auto;
}
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.modern-table th {
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    border: none;
}
.modern-table th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.modern-table th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.modern-table td {
    padding: 18px 24px;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}
.modern-table td:first-child {
    border-left: 1px solid #f1f5f9;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}
.modern-table td:last-child {
    border-right: 1px solid #f1f5f9;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Row Hover Lift Effect */
.modern-table tr:hover td {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}
.est-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1e293b;
    font-weight: 600;
}
.est-cell .icon-bg {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.est-cell i {
    font-size: 20px;
}

/* Friendly Table Button */
.btn-friendly-action {
    background: #eff6ff;
    color: #2563eb;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-friendly-action:hover {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}
.btn-friendly-action i {
    font-size: 16px;
}

/* Soft Bubble Timeline Layout */
.timeline-container {
    padding: 10px 24px 24px;
    flex-grow: 1;
}
.timeline-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 24px;
    position: relative;
    gap: 16px;
}

/* Dashed Line instead of solid */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -24px;
    width: 2px;
    border-left: 2px dashed #cbd5e1;
    background: transparent;
}
.timeline-item:last-child::before {
    display: none;
}

/* Cute Notification Icon */
.timeline-icon {
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}
.timeline-icon i {
    font-size: 24px;
}

/* Bubble Card for content */
.timeline-content-bubble {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 16px;
    flex-grow: 1;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}
.timeline-item:hover .timeline-content-bubble {
    background: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
    transform: translateX(4px);
}

.timeline-content-bubble h6 {
    margin: 0 0 6px 0;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.timeline-content-bubble p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}
.timeline-content-bubble p i {
    font-size: 14px;
    color: #94a3b8;
}

/* Tiny pill badge for the time */
.time-badge {
    font-size: 0.7rem;
    color: #10b981;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
