
/* =========================================================
   ATHERIOT TRAVEL — SUMMARY CARD
   COMPLETE RESPONSIVE CSS
========================================================= */

/* =========================================================
   SUMMARY CARD
========================================================= */

.summary-card {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 20px auto;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;

    overflow: hidden;
    box-sizing: border-box;
}

/* =========================================================
   HEADER
========================================================= */

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 64px;
    padding: 0 15px;

    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.summary-header i {
    font-size: clamp(18px, 4vw, 22px);
    flex-shrink: 0;
    color: var(--heading);
}

.summary-header h2 {
    margin: 0;
    font-size: clamp(18px, 4vw, 22px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--heading);
}

/* =========================================================
   BODY
========================================================= */

.summary-body {
    padding: 10px 15px 16px;
}

/* =========================================================
   SUMMARY ROW
========================================================= */

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

    gap: 16px;
    min-height: 48px;

    box-sizing: border-box;
}

/* =========================================================
   LEFT SIDE
========================================================= */

.summary-label {
    display: flex;
    align-items: center;

    gap: 11px;
    min-width: 0;

    color: var(--text);
}

.summary-label i {
    width: 20px;
    min-width: 20px;

    text-align: center;
    font-size: 15px;
    color: var(--muted);
}

.summary-label span {
    min-width: 0;

    font-size: clamp(14px, 3.5vw, 17px);
    line-height: 1.4;

    overflow-wrap: anywhere;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.summary-row strong {
    flex-shrink: 0;

    color: var(--heading);
    font-size: clamp(14px, 3.5vw, 17px);
    font-weight: 600;

    white-space: nowrap;
}

/* =========================================================
   DIVIDER
========================================================= */

.summary-divider {
    height: 1px;
    margin: 7px 0;
    background: var(--border);
}

/* =========================================================
   TOTAL EXPENSES & TOTAL OVERTIME
========================================================= */

.total-row strong,
.overtime-row strong {
    font-size: clamp(16px, 4vw, 19px);
    font-weight: 700;
    color: var(--heading);
    opacity: 1;
}

.total-row .summary-label,
.overtime-row .summary-label {
    font-weight: 600;
}

/* =========================================================
   TOTAL RECEIVABLES SETUP NOTICE
========================================================= */

.receivables-setup {
    display: flex;
    align-items: flex-start;

    gap: clamp(10px, 1.5vw, 16px);

    width: auto;
    min-width: 0;

    /* FIX: Remove additional horizontal margins */
    margin: 8px 0 16px;

    padding: clamp(12px, 2vw, 18px);

    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;

    box-sizing: border-box;
}

/* Respect the hidden attribute */

.receivables-setup[hidden] {
    display: none !important;
}

/* =========================================================
   NOTICE ICON
========================================================= */

.receivables-setup-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: clamp(30px, 3vw, 38px);
    height: clamp(30px, 3vw, 38px);

    font-size: clamp(15px, 1.5vw, 18px);

    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);

    border-radius: 10px;
}

/* =========================================================
   NOTICE CONTENT
========================================================= */

.receivables-setup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1 1 0;
    min-width: 0;

    gap: 8px;
    padding: 0;
    margin: 0;
}

/* Heading */

.receivables-setup-content h4 {
    margin: 0;
    padding: 0;

    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 650;
    line-height: 1.4;

    color: var(--heading, #1e293b);
    overflow-wrap: anywhere;
}

/* Description */

.receivables-setup-content p {
    margin: 0;
    padding: 0;

    font-size: clamp(12px, 1.1vw, 14px);
    line-height: 1.6;

    color: var(--text, #64748b);
    overflow-wrap: anywhere;
}

/* =========================================================
   CONFIGURE NOW BUTTON
========================================================= */

.receivables-setup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    align-self: flex-start;

    width: fit-content;
    max-width: 100%;
    min-height: 36px;

    /* FIX: Same horizontal alignment as heading */
    margin: 4px 0 0;

    padding: 9px 13px;

    background: #2563eb;
    color: #ffffff;

    border-radius: 8px;

    font-size: clamp(12px, 1vw, 13px);
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.receivables-setup-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.receivables-setup-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.receivables-setup-btn i {
    font-size: 12px;
    flex-shrink: 0;
}

/* =========================================================
   MOBILE — UP TO 600PX
========================================================= */

@media (max-width: 600px) {

    .summary-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        border-radius: 14px;
    }

    .summary-header {
        min-height: 56px;
        padding: 0 15px;
    }

    .summary-body {
        padding: 8px 15px 14px;
    }

    .summary-row {
        min-height: 46px;
        gap: 10px;
    }

    .summary-label {
        gap: 9px;
    }

    .summary-label i {
        width: 19px;
        min-width: 19px;
        font-size: 14px;
    }

    .summary-label span {
        font-size: 14px;
    }

    .summary-row strong {
        font-size: 14px;
    }

    .total-row strong,
    .overtime-row strong {
        font-size: 16px;
        font-weight: 700;
        color: var(--heading);
        opacity: 1;
    }
}

/* =========================================================
   SMALL PHONES — UP TO 380PX
========================================================= */

@media (max-width: 380px) {

    .summary-card {
        width: calc(100% - 16px);
        margin: 12px auto;
    }

    .summary-header {
        min-height: 54px;
    }

    .summary-body {
        padding: 6px 15px 12px;
    }

    .summary-row {
        min-height: 44px;
        gap: 8px;
    }

    .summary-label {
        gap: 8px;
    }

    .summary-label i {
        width: 18px;
        min-width: 18px;
    }
}

/* =========================================================
   TABLETS — 601PX TO 1023PX
========================================================= */

@media (min-width: 601px) and (max-width: 1023px) {

    .summary-card {
        margin: 20px auto;
    }

    .summary-body {
        padding: 10px 15px 18px;
    }

    .summary-row {
        min-height: 50px;
    }
}

/* =========================================================
   LAPTOPS & DESKTOPS — 1024PX+
========================================================= */

@media (min-width: 1024px) {

    .summary-card {
        width: min(
            calc(100% - 40px),
            var(--content-width)
        );

        margin: 20px auto;
    }

    .summary-body {
        padding: 10px 15px 18px;
    }

    .summary-row {
        min-height: 50px;
    }
}

/* =========================================================
   NOTICE — MOBILE
========================================================= */

@media (max-width: 480px) {

    .receivables-setup {
        margin: 8px 0 15px;
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .receivables-setup-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
        border-radius: 8px;
    }

    .receivables-setup-content {
        gap: 8px;
    }

    .receivables-setup-content h4 {
        font-size: 13px;
    }

    .receivables-setup-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .receivables-setup-btn {
        font-size: 12px;
        padding: 9px 12px;
        min-height: 34px;
        gap: 6px;
    }
}

/* =========================================================
   EXTRA SMALL MOBILES — UP TO 320PX
========================================================= */

@media (max-width: 320px) {

    .receivables-setup {
        padding: 10px;
        gap: 8px;
    }

    .receivables-setup-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .receivables-setup-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .receivables-setup-btn {
        transition: none;
    }

    .receivables-setup-btn:hover {
        transform: none;
    }
}



/* =========================================================
   ATHERIOT TRAVEL — INCOME TAX ADVISORY
   RESPONSIVE: MOBILE / TABLET / LAPTOP / DESKTOP
========================================================= */

/* =========================
   ADVISORY CONTAINER
========================= */

.receivables-tax-notice {
    display: flex;
    align-items: flex-start;

    gap: clamp(10px, 1.5vw, 16px);

    width: 100%;
    min-width: 0;

    /* Same margins as earnings setup notice */
    margin: 8px 0 16px;

    padding: clamp(12px, 2vw, 18px);

    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;

    box-sizing: border-box;
}

/* Respect the HTML hidden attribute */

.receivables-tax-notice[hidden] {
    display: none !important;
}

/* =========================
   ADVISORY ICON
========================= */

.receivables-tax-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: clamp(30px, 3vw, 38px);
    height: clamp(30px, 3vw, 38px);

    font-size: clamp(15px, 1.5vw, 18px);

    color: #d97706;
    background: rgba(245, 158, 11, 0.12);

    border-radius: 10px;
}

/* =========================
   ADVISORY CONTENT
========================= */

.receivables-tax-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1 1 0;
    min-width: 0;

    gap: 8px;
    padding: 0;
    margin: 0;
}

/* Advisory heading */

.receivables-tax-content h4 {
    margin: 0;
    padding: 0;

    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 650;
    line-height: 1.4;

    color: var(--heading, #1e293b);

    overflow-wrap: anywhere;
}

/* Advisory description */

.receivables-tax-content p {
    margin: 0;
    padding: 0;

    font-size: clamp(12px, 1.1vw, 14px);
    line-height: 1.6;

    color: var(--text, #64748b);

    overflow-wrap: anywhere;
}

/* =========================================================
   TABLET — 481PX TO 1024PX
========================================================= */

@media (min-width: 481px) and (max-width: 1024px) {

    .receivables-tax-notice {
        gap: 12px;
        padding: 15px;
    }

    .receivables-tax-content {
        gap: 9px;
    }
}

/* =========================================================
   MOBILE — UP TO 480PX
========================================================= */

@media (max-width: 480px) {

    .receivables-tax-notice {
        margin: 8px 0 15px;
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .receivables-tax-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
        border-radius: 8px;
    }

    .receivables-tax-content {
        gap: 8px;
    }

    .receivables-tax-content h4 {
        font-size: 13px;
    }

    .receivables-tax-content p {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* =========================================================
   EXTRA SMALL MOBILES — UP TO 320PX
========================================================= */

@media (max-width: 320px) {

    .receivables-tax-notice {
        padding: 10px;
        gap: 8px;
    }

    .receivables-tax-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}


/* ESTIMATED RECEIVABLES */

.receivables-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.receivables-value strong {
    font-weight: 700;
}

.receivables-value small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary, #777);
    opacity: 0.75;
}



/* ==========================================
   EARNINGS ADVISORY CLOSE BUTTON
========================================== */

.receivables-tax-notice {
    position: relative;
    padding-right: 45px;
}

/* Close Button */
.tax-advisory-close {
    position: absolute;
    top: 10px;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    color: inherit;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    opacity: 0.7;

    transition: 
        background 0.2s ease,
        opacity 0.2s ease;
}

/* Hover */
.tax-advisory-close:hover {
    background: rgba(128, 128, 128, 0.15);
    opacity: 1;
}

/* Keyboard Accessibility */
.tax-advisory-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 480px) {
    .receivables-tax-notice {
        padding-right: 42px;
    }

    .tax-advisory-close {
        top: 8px;
        right: 8px;
    }
}

/* Keep advisory hidden when dismissed */
.receivables-tax-notice[hidden] {
    display: none !important;
}