/* =========================================================
   BASE
   ====================================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
    /*content: "SAMPLE DATA";*/
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: clamp(28px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 0.35rem;
    color: rgba(15, 23, 42, 0.08);
    text-transform: uppercase;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

/* App background shell */
.app-shell {
    background: #F3F4F6;
}


/* =========================================================
   LAYOUT: SIDEBAR + MAIN AREA
   ====================================================== */

.sidebar {
    background: #FFFFFF;
}

/* Main content column – sits to the right of sidebar */
.main-area {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page-main {
    padding-bottom: 2rem;
    margin-top: 64px;
}

.content-wrapper {
    width: 100%;
    max-width: none;
}


.app-shell > .page-main {
    margin-left: 260px;
    width: calc(100% - 260px);
}


.main-area .page-main {
    margin-left: 0;
    width: 100%;
}

/* Mobile / tablet layout */
@media (max-width: 1024px) {
    .main-area {
        margin-left: 0;
        width: 100%;
    }

    .app-shell > .page-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .header-bar {
        left: 0;
    }
}


/* =========================================================
   SIDEBAR STYLES
   ====================================================== */

.sidebar-header {
    min-height: 72px;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    background: #1F3F6D;
    display: flex;
    align-items: center;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.sidebar-body {
    padding-bottom: 1.5rem;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 0.75rem;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94A3B8;
    padding-left: 0.75rem;
    margin-bottom: 0.25rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #222;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-item:hover {
    background: #F1F5F9;
    color: #003DA5;
}

.sidebar-item-logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.sidebar-icon-wrap {
    width: 1.5rem;
    display: flex;
    justify-content: center;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
}

/* Active sidebar item */
.active-sidebar-item {
    background: #EEF4FF;
    color: #003DA5;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
}

.active-sidebar-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 999px;
    background: #003DA5;
}

/* Submenu */
.sidebar-submenu {
    padding-left: 2.75rem;
    margin-top: 0.25rem;
}

.sidebar-subitem {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: #64748B;
    transition: color 0.15s ease;
}

.sidebar-subitem:hover {
    color: #1D74F5;
}

/* Submenu caret */
.chevron-icon .chevron-img {
    width: 0.7rem;
    height: 0.7rem;
    transition: transform 0.15s ease;
}

.sidebar-link-toggle.open .chevron-img {
    transform: rotate(180deg);
}

/* Overlay behind sidebar (mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 150;
}

/* Highlighted active subitem (option A style) */
.sidebar-subitem.active-sidebar-item {
    background: #EEF4FF !important;
    border-radius: 10px !important;
    color: #003DA5 !important;
    font-weight: 600 !important;
    position: relative;
    padding-left: 20px !important;
}

.sidebar-subitem.active-sidebar-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: #003DA5;
    border-radius: 999px;
}


/* =========================================================
   HEADER BAR (TOP)
   ====================================================== */

.header-bar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    background: #fff;
    padding: 12px 20px;
    z-index: 200;
    display: flex;
    align-items: center;
}

.header-brand-text {
    margin-left: 10px;
    line-height: 1.1;
}

.header-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #94A3B8;
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
}

/* Mobile toggles and icons */
.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.icon-sm {
    height: 14px;
    width: 14px;
}

.icon-xs {
    height: 14px;
    width: 14px;
}

.icon-md {
    height: 20px;
    width: 20px;
}

.mobile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 999px;
    background: #1F3F6D;
}

.mobile-portalsub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #64748B;
    font-weight: 600;
}

.mobile-portaltitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0F172A;
}


/* =========================================================
   GLOBAL BUTTONS
   ====================================================== */

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-outline {
    border: 1px solid #E5E7EB;
    background: #ffffff;
    color: #475569;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background: #F8FAFC;
    border-color: #1D74F5;
    color: #1D74F5;
}

/* Primary CTA (Download Billing etc.) */
.btn-primary {
    background: #1E9733;
    color: #fff;
    border-radius: 8px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(30,151,51,.25);
    transition: 200ms ease;
    border: none;
}
.btn-primary:hover {
    background: #177a2a;
    transform: translateY(-1px);
}

/* Neutral secondary button (Back etc.) */
.btn-secondary {
    border-radius: 999px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #CBD5E1;
}

/* Green submit button (forms) */
.btn-submit-green {
    background: #4CAF50;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 11px 24px;
    display: inline-block;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}
.btn-submit-green:hover {
    background: #43A047;
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.35);
    transform: translateY(-1px);
}
/* Secondary button (Cancel / Back) to complement Green submit button */
.btn-cancel {
    background: #FFFFFF;
    color: #374151;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 24px;
    display: inline-block;
    border: 1px solid #D1D5DB;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.btn-cancel:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
}


/* =========================================================
   CARDS & SECTIONS
   ====================================================== */

.card {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #E5E7EB;
    padding: 0.9rem 1rem !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.card-compact {
    padding: 0.9rem 1.1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Icon bubbles */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 999px;
}

.bg-soft-green {
    background: #DCFCE7;
}

.bg-soft-blue {
    background: #DBEAFE;
}

.bg-soft-slate {
    background: #F1F5F9;
}

/* Section titles */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
}

.section-title-sm {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
}

.section-subtitle {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 0.2rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid transparent;
}

.badge-active {
    background: #DCFCE7;
    border-color: #BBF7D0;
    color: #166534;
}

.badge-dot {
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: #16A34A;
    margin-right: 0.4rem;
}

/* Labels & values */
.label-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    font-weight: 600;
}

.value-lg {
    font-size: 0.95rem;
    color: #0F172A;
    margin-top: 0.25rem;
    font-weight: 500;
}

.value-md {
    font-size: 0.85rem;
    color: #334155;
}

.text-body-sm {
    font-size: 0.85rem;
    color: #4B5563;
}

.text-muted-xs {
    font-size: 0.7rem;
    color: #94A3B8;
}

.value-link a {
    font-size: 0.9rem;
    color: #1D74F5;
    font-weight: 500;
    text-decoration: none;
}
.value-link a:hover {
    text-decoration: underline;
}

/* Policy grid */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

/* Address & tags */
.address-box {
    border-radius: 0.6rem;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.tag-primary,
.tag-secondary {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.tag-primary {
    background: #DBEAFE;
    color: #1E3A8A;
    border: 1px solid #BFDBFE;
}

.tag-secondary {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

/* Soft background section wrapper (for Select Plan + Payment History) */
.section-bg {
    background: linear-gradient(180deg, #F8FAFC, #EDF1F5);
}


/* =========================================================
   CONTACT PANEL
   ====================================================== */

.contact-panel {
    position: fixed;
    right: 0;
    top: 64px;
    width: 100%;
    max-width: 380px;
    height: calc(100% - 64px);
    background: #ffffff;
    border-left: 1px solid #E5E7EB;
    box-shadow: -8px 0 20px rgba(15,23,42,0.08);
    z-index: 300;
    padding: 1.25rem;
    overflow-y: auto;
    animation: slideInRightSoft 0.18s ease-out;
}

@keyframes slideInRightSoft {
    from {
        transform: translateX(12px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
}

.contact-subtitle {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.2rem;
}

.close-contact {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
}
.close-contact:hover {
    color: #475569;
}

.contact-body {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.6;
}

.contact-box {
    border-radius: 0.6rem;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
}

.contact-box-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.link {
    color: #1D74F5;
    text-decoration: underline;
}
.link:hover {
    color: #1F3F6D;
}


/* =========================================================
   RESOURCES / ACCORDION LIST
   ====================================================== */

.resource-list {
    margin-top: 0.5rem;
}

.resources-card {
    margin-bottom: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.resources-toggle {
    width: 100%;
    background: #f3f4f6;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resources-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.resources-content {
    display: none;
    padding: 12px 16px;
    background: #fcfcfc;
}

.resources-subheading {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}

.resources-item-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resources-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    padding: 9px 12px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #2c2c2c;
}
.resources-item:hover {
    background: #eef4ff;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon {
    width: 18px;
    height: 18px;
}

.arrow-icon {
    width: 16px;
    transition: transform 0.25s ease;
}

.arrow-rotate {
    transform: rotate(180deg);
}

.resources-item span {
    font-size: 13.5px;
    line-height: 1.35;
    color: #333;
}


/* =========================================================
   FORMS / UPDATE INFORMATION PAGE
   ====================================================== */

/* Text inputs & selects (general) */
.form-input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    padding: 8px 11px;
    font-size: 0.9rem;
    color: #111827;
    background: #FFFFFF;
    outline: none;
}
.form-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Dropdown arrow for selects */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L10.5 12L15 8' stroke='%236B7280' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
    border: 1px solid #D1D5DB !important;
}
select.form-input:focus {
    border: 1px solid #2563EB !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
select.form-input::-ms-expand {
    display: none;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 4px;
}

.info-copy {
    font-size: 0.85rem;
    color: #4B5563;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 10px 12px;
}


.request-select-box {
    background: #F1F5FF;
    border: 1px solid #CFE0FF;
    border-radius: 10px;
    padding: 14px 14px 16px;
    margin-bottom: 18px;
}


.form-section {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 16px 18px;
    margin-bottom: 20px;
}


.upload-box {
    border-radius: 12px;
    border: 2px dashed #A0AEC0;
    background: #FAFBFC;
    padding: 20px 24px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-box:hover {
    border-color: #4CAF50;
    background: #F4FFF6;
}
.upload-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}
.upload-sub {
    font-size: 0.8rem;
    color: #6B7280;
}



/* Select Plan dropdown */
.billing-select {
    border: 1px solid #CBD5E1;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    outline: none;
    transition: 150ms;
}
.billing-select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}

/* Search input */
.billing-search {
    border: 1px solid #CBD5E1;
    background: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: 150ms;
    height: 40px;
}
.billing-search:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}

/* Scroll container around table */
.table-scroll-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Base table behaviour */
table {
    border-collapse: separate;
    border-spacing: 0;
}
th, td {
    white-space: nowrap;
}

/* Billing table styling */
.billing-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.billing-table thead th {
    background: #F8FAFC;
    color: #475569;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.billing-table tbody td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #EEF2F6;
    color: #1E293B;
    white-space: nowrap;
}

/* Row height */
.billing-table tbody tr {
    height: 46px;
}

/* Alternate row shading */
.billing-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

/* Hover row */
.billing-table tbody tr:hover {
    background: #F8FAFE;
}

/* Make important columns a bit wider */
.billing-table td:nth-child(1) { min-width: 120px; }
.billing-table td:nth-child(2) { min-width: 140px; }
.billing-table td:nth-child(3) { min-width: 140px; }
.billing-table td:nth-child(4) { min-width: 130px; }
.billing-table td:nth-child(5) { min-width: 150px; }
.billing-table td:nth-child(6) { min-width: 130px; }
.billing-table td:nth-child(7) { min-width: 130px; }
.billing-table td:nth-child(8) { min-width: 130px; }
.billing-table td:nth-child(9) { min-width: 100px; }
.billing-table td:nth-child(10){ min-width: 300px; }

/* Status badge inside table */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.status-closed {
    background: #E2E8F0;
    color: #475569;
}

/* Negative values */
.negative {
    color: #DC2626;
    font-weight: 600;
}

/* Page-size select */
.page-size-select {
    background-color: white;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    min-width: 70px;
    font-size: 14px;
    appearance: none;
    background-image: url('assets/images/angle-down.png');
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Pagination buttons */
.pagination-btn {
    border: 1px solid #CBD5E1;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    background: #F8F8F8;
}
.pagination-btn:hover {
    border-color: #2563EB;
    background-color: #E3E3E3;
}
.pagination-btn.disabled {
    opacity: .4;
    pointer-events: none;
}


/* =========================================================
   AUTH PAGES (LOGIN / REGISTER / FORGOT)
   ====================================================== */

.auth-body {
    min-height: 100vh;
    background: #EEF2F7;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-shell {
    width: 100%;
    max-width: 960px;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 480px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-left {
    background: #F3F4F6;
    padding: 32px 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-left-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-left-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.auth-left-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0F172A;
}

.auth-left-subtitle {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.auth-left-footer {
    font-size: 0.75rem;
    color: #94A3B8;
}

.auth-right {
    background: #FFFFFF;
    padding: 64px 58px !important;
}

@media (max-width: 768px) {
    .auth-shell {
        max-width: 480px;
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-right {
        padding: 32px 24px 28px !important;
    }
    .auth-left {
        padding: 24px 24px 20px;
    }
}

.auth-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 0.35rem;
}

.auth-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.auth-description {
    font-size: 0.87rem;
    color: #6B7280;
    margin-bottom: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Each field block */
.auth-form > div {
    margin-bottom: 22px;
}

.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 10px;
}

.auth-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    padding: 14px 12px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #F9FAFB;
}

.auth-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background: #FFFFFF;
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 16px;
}

.auth-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4B5563;
}

.auth-checkbox-wrap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #CBD5E1;
}

.auth-link {
    font-size: 0.8rem;
    color: #2563EB;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
}

/* Auth primary button – green TAPP style */
.auth-primary-btn {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background-color: #21B356;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.auth-primary-btn:hover {
    background-color: #1E9E4C;
    box-shadow: 0 10px 20px rgba(33,179,86,0.35);
}
.auth-secondary-btn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #1F2937;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-secondary-btn:hover {
    background-color: #F8FAFC;
    border-color: #94A3B8;
    box-shadow: 0 8px 16px rgba(15,23,42,0.08);
}

.auth-footer-text {
    margin-top: 28px;
    font-size: 0.8rem;
    color: #6B7280;
    text-align: center;
}
.auth-footer-text a {
    color: #2563EB;
    font-weight: 500;
    text-decoration: none;
}
.auth-footer-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE NAV / SIDEBAR DRAWER
   ====================================================== */

/* hamburger hidden on desktop */
#mobileMenu {
    display: none;
}

/* overlay hidden by default */
#sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {

    /* show hamburger only on tablet/mobile */
    #mobileMenu {
        display: inline-flex;
    }

    /* sidebar as sliding drawer */
    #sidebar {
        width: 82vw;
        transform: translateX(-100%) !important;
        transition: transform 0.2s ease-out;
    }

    #sidebar.show {
        transform: translateX(0) !important;
    }

    /* overlay only on mobile when .show is added */
    #sidebar-overlay.show {
        display: block;
    }

    /* header spans full width on mobile */
    .header-bar {
        left: 0;
    }
}


/* =========================================================
   UTILITIES & SCROLLBARS
   ====================================================== */

.hidden {
    display: none !important;
}

/* Scrollbars for sidebar & contact */
#sidebar::-webkit-scrollbar,
.contact-panel::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-thumb,
.contact-panel::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}



/* ========================= FIXED HEADER ====================== */
.header-bar {
    position: fixed !important;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 14px 22px;
    z-index: 400;
    border-bottom: 1px solid #E5E7EB;
}

/* ========================= MAIN AREA SPACING ================= */
.page-main {
    margin-top: 64px !important;
}

/* ========================= SIDEBAR FIX ====================== */
.sidebar {
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.main-area {
    margin-left: 260px;
}


td.text-green-700 {
    color: #0A8A30 !important;
}

td.text-orange-600 {
    color: #E18500 !important;
}


/* FORCE FIX FOR MOBILE RESPONSIVENESS */
@media(max-width: 1024px) {

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

    .header-bar {
        left: 0 !important;
        width: 100% !important;
    }

    .page-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .max-w-[1150px] {
        margin-left: 0 !important;
    }
}



/* =============================
   DOCUMENT MANAGEMENT — HIPAA eSign styles
   ============================= */

.esign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.esign-item a.item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.esign-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.esign-controls svg {
  width: 18px;
  height: 18px;
  stroke: #1d4ed8;
}

.esign-btn {
  background: #1d74f5;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

.esign-btn:hover {
  background: #155fcc;
}




/* ===========================
   Plan Summary — Label — Value rows
   =========================== */

/* Card tweaks for clear spacing */
.card .card-header-simple { padding: 16px 20px; border-bottom: 1px solid transparent; }
.card .p-0 { padding: 0; }
.card .divide-y > div { padding-left: 0; padding-right: 0; }

/* Row layout */
.card .divide-y .p-4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Benefit label */
.card .text-slate-700 {
  color: #334155; /* slightly darker label */
  font-size: 14px;
}

/* Benefit value */
.card .text-slate-900 {
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
}

/* Responsive: on very small screens, stack */
@media (max-width: 480px) {
  .card .divide-y .p-4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .card .divide-y .p-4 .text-slate-900 {
    font-size: 13px;
  }
}



.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-icon {
  width: 10px;
  height: 14px;
  fill: #cbd5e1; /* subtle slate */
}


/* Buttons */
.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 160px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.filter-btn:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* Chevron */
.chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
}

/* Dropdown */
.filter-menu {
  position: absolute;
  top: 48px;
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: none;
  z-index: 20;
}

.filter-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.filter-menu label:hover {
  background: #f8fafc;
  border-radius: 8px;
}

.year-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #64748b;
}

.year-expand-btn:hover {
    background: #f1f5f9;
}

.year-expand-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.15s ease;
}

.year-expand-btn[aria-expanded="true"] .year-expand-icon {
    transform: rotate(90deg);
}

/* Search */
.search-input {
  height: 42px;
  width: 320px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}

.search-input::placeholder {
  color: #94a3b8;
}


.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #e5e7eb;
  color: #334155;
}

.detail-row strong {
  font-weight: 600;
  color: #0f172a;
}



.policy-tab {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.policy-tab:hover {
  background: #e2e8f0;
}

.policy-tab.active {
  background: #e0e7ff;
  color: #1d4ed8;
  font-weight: 600;
}


.policy-panel {
  display: none;
}

.policy-panel.active {
  display: block;
}



.panel-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f172a;
}



.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dotted #e5e7eb;
  font-size: 14px;
  color: #334155;
}

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

.detail-row strong {
  font-weight: 600;
  color: #0f172a;
}



@media (max-width: 768px) {
  .policy-tab {
    padding: 8px 10px;
    font-size: 14px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


 /* Policy Panel Benefits */

.policy-panel {
  margin-bottom: 2rem;              
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 14px;              
}


.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;               
  margin-bottom: 12px;             

  background: #f1f5f9;
  border-radius: 8px;             

  font-size: 13.5px;
  line-height: 1.45;               
  color: #334155;
}


.detail-row:nth-child(even) {
  background: #eaf2ff;
}

.detail-row span {
  font-weight: 500;
}


.detail-row strong {
  font-weight: 600;
  color: #0f172a;
  white-space: normal;             
  margin-left: 16px;
  text-align: right;
  max-width: 55%;
}

.phw-dropdown-group {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.phw-dropdown-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phw-dropdown-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.phw-dropdown {
    position: relative;
    display: inline-block;
}

.phw-dropdown-btn {
    background: transparent;
    border: 1px solid #cfd8e3;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.phw-dropdown-btn.phw-disabled {
    color: #8a8f98;
    border-color: #e2e6ea;
    opacity: 0.7;
    cursor: not-allowed;
}

.phw-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #0d6efd;
    margin-left: 2px;
}

.phw-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 4px 0;
    list-style: none;
    margin: 0;
}

.phw-dropdown-menu.phw-show {
    display: block;
}

.phw-dropdown-item {
    padding: 8px 14px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
}

.phw-dropdown-item:hover {
    background: #f1f5fb;
}

.phw-dropdown-item.phw-active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 500;
}

/* ===========================
   Claim Invoice — Custom Date Range Picker (Flatpickr) Styles
   =========================== */
/* Input look = existing form controls */
.flatpickr-input {
    height: 38px;
    font-size: 13px;
    border: 1px solid rgb(203 213 225); /* slate-300 */
    border-radius: 0.375rem; /* rounded-md */
    background-color: #fff;
    color: rgb(30 41 59); /* slate-800 */
    padding: 0.5rem 0.75rem;
    box-shadow: none;
}

.flatpickr-input:focus {
    outline: none;
    border-color: rgb(148 163 184); /* slate-400 */
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

/* Calendar popup look */
.flatpickr-calendar {
    border: 1px solid rgb(226 232 240); /* slate-200 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-family: inherit;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
    background: rgb(248 250 252); /* slate-50 */
}

.flatpickr-day:hover {
    background: rgb(241 245 249); /* slate-100 */
}