/* =========================================================
   ATHERIOT TRAVEL
   Responsive Main Stylesheet
   Full Theme Support: Light / Dark
========================================================= */


/* =========================================================
   LIGHT THEME - DEFAULT
========================================================= */

:root {
    --primary: #007bff;
    --primary-hover: #0069d9;

    --success: #28a745;
    --success-hover: #218838;

    --danger: #dc3545;
    --danger-hover: #c82333;

    --background: #f5f7fb;

    --surface: #ffffff;
    --surface-secondary: #f8fafc;

    --text: #333333;
    --heading: #222222;
    --muted: #666666;

    --border: #e5e5e5;
    --border-light: #eeeeee;
    --input-border: #cccccc;

    --hover-bg: #f8fbff;

    --empty-icon-bg: #f1f5f9;
    --empty-icon-color: #2563eb;
    --empty-border: #cbd5e1;

    --nav-background: #ffffff;
    --nav-text: #6b7280;
    --nav-hover: #f1f5f9;

    --toast-bg: #222222;
    --toast-text: #ffffff;

    --cancel: #666666;
    --cancel-hover: #555555;

    --shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.06);

    --content-width: 1024px;
    --radius: 8px;
}


/* =========================================================
   DARK THEME
========================================================= */

body.dark {
    --primary: #3b82f6;
    --primary-hover: #2563eb;

    --success: #22c55e;
    --success-hover: #16a34a;

    --danger: #ef4444;
    --danger-hover: #dc2626;

    --background: #111827;

    --surface: #1f2937;
    --surface-secondary: #263244;

    --text: #f3f4f6;
    --heading: #ffffff;
    --muted: #9ca3af;

    --border: #374151;
    --border-light: #374151;
    --input-border: #4b5563;

    --hover-bg: #263244;

    --empty-icon-bg: #263244;
    --empty-icon-color: #60a5fa;
    --empty-border: #4b5563;

    --nav-background: #1f2937;
    --nav-text: #9ca3af;
    --nav-hover: #374151;

    --toast-bg: #f3f4f6;
    --toast-text: #111827;

    --cancel: #6b7280;
    --cancel-hover: #4b5563;

    --shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.35);
}


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}


body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--background);

    font-family:
        "Roboto",
        "Noto Sans",
        Arial,
        sans-serif;

    color: var(--text);

    padding-bottom: 110px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


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

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

    margin: 20px auto;

    padding:
        clamp(18px, 3vw, 25px)
        clamp(15px, 3vw, 30px);

    background: var(--primary);

    color: #ffffff;

    border-radius: var(--radius);

    text-align: center;

    box-shadow:
        0 4px 12px
        rgba(0, 123, 255, 0.12);
}


header h1 {
    margin-bottom: 8px;

    font-size:
        clamp(1.7rem, 4vw, 2.2rem);

    font-weight: 700;

    color: #ffffff;
}


header h2 {
    font-size:
        clamp(0.9rem, 2vw, 1rem);

    font-weight: 500;

    color: #ffffff;
}


/* =========================================================
   COMMON SECTION
========================================================= */

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

    margin: 20px auto;

    padding:
        clamp(18px, 3vw, 25px);

    background: var(--surface);

    color: var(--text);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


/* =========================================================
   EMPLOYEE SECTION
========================================================= */

#employee-section {
    text-align: center;
}


#employee-section input {
    width: min(100%, 400px);

    height: 45px;

    margin: 0 5px;

    padding: 0 12px;

    border:
        1px solid var(--input-border);

    border-radius: 7px;

    background: var(--surface);

    color: var(--text);

    font-family: inherit;

    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.25s ease;
}


#employee-section input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 123, 255, 0.15);
}


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

#setEmployee,
#addExpense {
    border: none;

    background: var(--primary);

    color: #ffffff;

    font-family: inherit;

    font-weight: 600;

    cursor: pointer;

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


#setEmployee {
    height: 45px;

    padding: 0 20px;

    border-radius: 7px;

    font-size: 1rem;
}


#setEmployee:hover {
    background: var(--primary-hover);
}


#setEmployee:active,
#addExpense:active {
    transform: scale(0.99);
}


/* =========================================================
   TRAVEL EXPENSE FORM
========================================================= */

#expense-form {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 20px auto;

    padding:
        clamp(18px, 3vw, 25px);

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


/* =========================================================
   RECORD ENTRY HEADING
========================================================= */

#expense-form h2 {
    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 52px;

    margin: 0 0 4px;

    padding: 0 4px;

    color: var(--heading);

    font-size:
        clamp(1.2rem, 3vw, 1.4rem);

    font-weight: 700;
}


/* =========================================================
   HEADING ICON
========================================================= */

#expense-form h2 i {
    flex-shrink: 0;

    color: var(--text);

    font-size:
        clamp(18px, 3vw, 21px);
}


/* =========================================================
   FORM CONTROLS
========================================================= */

#expense-form input,
#expense-form select,
#expense-form button {
    width: 100%;

    min-width: 0;

    height: 56px;

    margin: 0;

    padding: 0 15px;

    border:
        1px solid var(--input-border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--text);

    font-family: inherit;

    font-size:
        clamp(0.95rem, 2vw, 1.05rem);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.25s ease;
}


/* =========================================================
   INPUT FOCUS
========================================================= */

#expense-form input:focus,
#expense-form select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 123, 255, 0.15);
}


/* =========================================================
   SELECT
========================================================= */

#expense-form select {
    cursor: pointer;
}


/* =========================================================
   ADD TRAVEL RECORD
========================================================= */

#expense-form #addExpense {
    width: 100%;

    height: 56px;

    padding: 0 15px;

    border: none;

    border-radius: 9px;

    background: var(--primary);

    color: #ffffff;

    font-size:
        clamp(0.95rem, 2vw, 1.05rem);

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}


/* =========================================================
   CANCEL EDIT
========================================================= */

#expense-form #cancelEdit {
    height: 56px;

    padding: 0 15px;

    border: none;

    border-radius: 9px;

    background: var(--cancel);

    color: #ffffff;

    font-family: inherit;

    font-size: 1rem;

    cursor: pointer;
}


/* =========================================================
   TABLET FORM
   600px – 900px
========================================================= */

@media (min-width: 600px) and (max-width: 900px) {

    #expense-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    #expense-form h2 {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   DESKTOP FORM
   901px+
========================================================= */

@media (min-width: 901px) {

    #expense-form {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    #expense-form h2 {
        grid-column: 1 / -1;

        min-height: 58px;

        margin-bottom: 4px;
    }
}


/* =========================================================
   REMOVE NUMBER INPUT SPINNERS
========================================================= */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}


input[type="number"] {
    appearance: textfield;
}


/* =========================================================
   TRAVEL RECORDS SECTION
========================================================= */

#expense-list {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

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

    /* Match the other sections */
    padding: 25px;
}


/* =========================================================
   TRAVEL RECORDS HEADING
========================================================= */

#expense-list h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;

    border-bottom:
        1px solid var(--border-light);

    color: var(--heading);

    font-size:
        clamp(1.2rem, 3vw, 1.4rem);
}


/* =========================================================
   TRAVEL RECORDS HEADING ICON
========================================================= */

#expense-list h2 i {
    flex-shrink: 0;

    color: var(--heading);
}


/* =========================================================
   TABLE SCROLL CONTAINER
========================================================= */

.table-scroll {
    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


/* =========================================================
   TABLE
========================================================= */

.table-scroll table {
    width: max-content;

    min-width: 100%;

    border-collapse: collapse;

    table-layout: auto;

    white-space: nowrap;
}


/* =========================================================
   TABLE CELLS
========================================================= */

.table-scroll th,
.table-scroll td {
    padding:
        clamp(9px, 1.5vw, 12px);

    border-bottom:
        1px solid var(--border);

    text-align: center;

    white-space: nowrap;

    color: var(--text);
}


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

.table-scroll th {
    font-weight: 600;

    color: var(--heading);
}


/* =========================================================
   TABLE ROW
========================================================= */

.table-scroll tbody tr {
    transition:
        background 0.2s ease;
}


.table-scroll tbody tr:hover {
    background: var(--hover-bg);
}


/* =========================================================
   AMOUNT COLUMN
========================================================= */

.table-scroll td:nth-child(6),
.table-scroll .amount-cell {
    text-align: center !important;
}


/* =========================================================
   ACTION COLUMN
========================================================= */

.table-scroll td:last-child {
    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.table-scroll td:last-child button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 45px;

    padding:
        9px 14px;

    margin: 3px;

    border: none;

    border-radius: 7px;

    color: #ffffff;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform 0.1s ease,
        opacity 0.2s ease;
}


.table-scroll td:last-child button:active {
    transform: scale(0.96);
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.table-scroll td:last-child button:first-child {
    background: var(--primary);
}


.table-scroll td:last-child button:first-child:hover {
    background: var(--primary-hover);
}


/* =========================================================
   DELETE BUTTON
========================================================= */

.table-scroll td:last-child button:last-child {
    background: var(--danger);
}


.table-scroll td:last-child button:last-child:hover {
    background: var(--danger-hover);
}


/* =========================================================
   EXPORT TO EXCEL
========================================================= */

#exportExcel {
    display: flex;

    width: fit-content;

    max-width: 100%;

    margin:
        20px auto;

    padding:
        12px 24px;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 7px;

    background: var(--success);

    color: #ffffff;

    font-family: inherit;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

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


#exportExcel:hover {
    background: var(--success-hover);
}


#exportExcel:active {
    transform: scale(0.98);
}


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

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

    margin: 20px auto;

    padding: 15px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-align: center;
}


#summary h2 {
    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom:
        1px solid var(--border-light);

    color: var(--heading);

    font-size:
        clamp(1.2rem, 3vw, 1.3rem);
}


#summary p {
    margin: 10px 0;

    line-height: 1.5;

    color: var(--text);
}


#total,
#totalOverTime {
    font-size: 1.1rem;

    font-weight: 700;

    color: var(--heading);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;

    margin-top: 30px;

    padding: 20px;

    background: var(--primary);

    color: #ffffff;

    text-align: center;
}


footer a {
    color: #ffffff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;

    transition:
        opacity 0.2s ease;
}


footer a:hover {
    opacity: 0.8;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    bottom: 25px;

    right: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 20px;

    background: var(--toast-bg);

    color: var(--toast-text);

    border-radius: 10px;

    font-size: 14px;

    opacity: 0;

    transform: translateY(20px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease;

    z-index: 9999;
}


.toast.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   EMPTY TRAVEL STATE
========================================================= */

.empty-travel-state {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 45px 25px;

    margin-top: 20px;

    border-radius: 18px;

    background: var(--surface);

    border:
        1px dashed var(--empty-border);
}


.empty-icon {
    width: 80px;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--empty-icon-bg);

    margin-bottom: 18px;
}


.empty-icon i {
    font-size: 32px;

    color: var(--empty-icon-color);
}


.empty-travel-state h3 {
    margin: 0;

    font-size: 20px;

    font-weight: 600;

    color: var(--heading);
}


.empty-travel-state p {
    max-width: 330px;

    margin: 10px 0 22px;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   ADD FIRST TRAVEL BUTTON
========================================================= */

#addFirstTravel {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border: none;

    border-radius: 10px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    background: var(--primary);

    color: #ffffff;
}


#addFirstTravel:hover {
    background: var(--primary-hover);
}


/* =========================================================
   EMPTY TRAVEL RECORDS
========================================================= */

.empty-state {
    display: none;

    text-align: center;

    padding: 60px 20px;

    border-radius: 16px;

    background: var(--surface);
}


.empty-state .empty-icon {
    width: 80px;

    height: 80px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 32px;

    background: var(--empty-icon-bg);

    color: var(--empty-icon-color);
}


.empty-state h3 {
    margin-bottom: 10px;

    font-size: 22px;

    color: var(--heading);
}


.empty-state p {
    max-width: 400px;

    margin: 0 auto 25px;

    line-height: 1.6;

    color: var(--muted);
}


.empty-add-btn {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 10px;

    text-decoration: none;

    background: var(--primary);

    color: #ffffff;

    font-weight: 600;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    header {
        margin-top: 25px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    #expense-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        padding-bottom: 100px;
    }


    header {
        width:
            calc(100% - 24px);

        margin:
            12px auto;

        padding:
            18px 15px;
    }


    header h1 {
        font-size: 1.8rem;
    }


    header h2 {
        font-size: 0.95rem;
    }


    section {
        width:
            calc(100% - 24px);

        margin:
            12px auto;

        padding: 18px;
    }


    #employee-section input {
        display: block;

        width: 100%;

        max-width: 100%;

        margin:
            0 0 10px;
    }


    #setEmployee {
        display: block;

        width: 100%;

        margin: 0;
    }


    #expense-form {
        width:
            calc(100% - 24px);

        margin:
            12px auto;

        padding: 18px;

        grid-template-columns: 1fr;

        gap: 10px;
    }


    #expense-form input,
    #expense-form select,
    #expense-form button,
    #expense-form #addExpense {
        height: 52px;

        font-size: 1rem;
    }


    /* =====================================================
       TRAVEL RECORDS - MOBILE
       Keep exactly 15px internal padding
    ===================================================== */

    #expense-list {
        width:
            calc(100% - 24px);

        margin:
            12px auto;

        padding: 15px;
    }


    #expense-list h2 {
        margin-bottom: 15px;

        font-size: 1.2rem;
    }


    .table-scroll {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .table-scroll th,
    .table-scroll td {
        padding: 10px;
    }


    .table-scroll td:last-child button {
        padding:
            9px 14px;
    }


    #exportExcel {
        width: 100%;

        margin:
            18px auto;

        padding: 14px;
    }


    #summary {
        width:
            calc(100% - 24px);

        margin:
            12px auto;

        padding: 15px;
    }


    .toast {
        left: 12px;

        right: 12px;

        bottom: 85px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    header {
        width:
            calc(100% - 16px);

        padding:
            15px 12px;
    }


    header h1 {
        font-size: 1.55rem;
    }


    header h2 {
        font-size: 0.85rem;
    }


    section {
        width:
            calc(100% - 16px);

        padding: 15px;
    }


    #expense-form {
        width:
            calc(100% - 16px);

        padding: 15px;
    }


    #expense-form input,
    #expense-form select,
    #expense-form button,
    #expense-form #addExpense {
        height: 48px;

        padding: 0 12px;

        font-size: 0.95rem;
    }


    /* =====================================================
       TRAVEL RECORDS - SMALL MOBILE
       Keep exactly 15px internal padding
    ===================================================== */

    #expense-list {
    width:
        calc(100% - 24px);

    margin:
        12px auto;

    padding:
        15px;

    box-sizing:
        border-box;
}


    .table-scroll th,
    .table-scroll td {
        padding: 8px;
    }


    .table-scroll td:last-child button {
        min-width: 40px;

        padding:
            8px 12px;
    }


    #summary {
        width:
            calc(100% - 16px);

        padding: 15px;
    }


    #exportExcel {
        padding:
            12px 15px;
    }
}


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

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline:
        3px solid
        rgba(0, 123, 255, 0.4);

    outline-offset: 2px;
}


/* =========================================================
   REDUCE MOTION
========================================================= */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;
    }
}

/* =========================================
   TRAVEL RECORDS ACCORDION
   LIGHT & DARK MODE
========================================= */

#expense-list h2 {
    margin: 0;
}

/* Accordion Button */

#recordsAccordionBtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    padding: 16px;

    background: transparent;
    border: none;
    color: var(--heading);

    font: inherit;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
    box-sizing: border-box;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

/* Accordion Icons */

#recordsAccordionBtn .fa-clipboard-list {
    margin-right: 10px;
    color: var(--heading);
}

#recordsAccordionBtn .fa-chevron-down {
    margin-left: auto;
    font-size: 15px;
    color: var(--heading);

    transition: transform 0.3s ease;
}

/* Arrow Rotation */

#recordsAccordionBtn[aria-expanded="true"]
.fa-chevron-down {
    transform: rotate(180deg);
}

/* Accordion Content */

#recordsAccordionContent {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    color: var(--heading);
}

/* Hidden State */

#recordsAccordionContent[hidden] {
    display: none !important;
}

/* Keyboard Focus */

#recordsAccordionBtn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

/* Mobile */

@media (max-width: 600px) {
    #recordsAccordionBtn {
        padding: 14px 12px;
        font-size: 16px;
    }

    #recordsAccordionBtn .fa-chevron-down {
        font-size: 14px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    #recordsAccordionBtn,
    #recordsAccordionBtn .fa-chevron-down {
        transition: none;
    }
}

#recordsAccordionHeading[hidden] {
    display: none !important;
}







/* ==========================================
   ATHERIOT TRAVEL
   SMART SCROLL CONTROLLER

   Maximum layout width: 1050px
   Responsive: Desktop / Tablet / Mobile
========================================== */

.smart-scroll-btn {

    /* Fixed floating controller */
    position: fixed;

    /*
       Align to the right edge of a centered
       1050px container, with 16px spacing.
    */
    right: max(
        16px,
        calc((100% - 1050px) / 2 + 16px)
    );

    left: auto;

    /* Above bottom navigation */
    bottom: 90px;

    z-index: 1000;

    /* Dimensions */
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;

    /* Alignment */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Appearance */
    background: var(--surface);
    color: var(--heading);

    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.15);

    /* Typography */
    font-size: 18px;

    /* Behavior */
    cursor: pointer;
    box-sizing: border-box;

    /* Animation */
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


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

.smart-scroll-btn i {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;

    pointer-events: none;
}


/* ==========================================
   HOVER
========================================== */

@media (hover: hover) {

    .smart-scroll-btn:hover {
        transform: translateY(-3px);

        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.20);
    }

}


/* ==========================================
   ACTIVE
========================================== */

.smart-scroll-btn:active {
    transform: scale(0.95);
}


/* ==========================================
   KEYBOARD FOCUS
========================================== */

.smart-scroll-btn:focus-visible {
    outline: 2px solid var(--heading);
    outline-offset: 3px;
}


/* ==========================================
   HIDDEN STATE
========================================== */

.smart-scroll-btn[hidden] {
    display: none !important;
}


/* ==========================================
   TABLET
   601px - 1050px
========================================== */

@media (max-width: 1050px) {

    .smart-scroll-btn {
        right: 16px;
        left: auto;

        bottom: 85px;

        width: 46px;
        height: 46px;

        min-width: 46px;
        min-height: 46px;
    }

}


/* ==========================================
   MOBILE
   Up to 600px
========================================== */

@media (max-width: 600px) {

    .smart-scroll-btn {
        right: 14px;
        left: auto;

        bottom: 85px;

        width: 44px;
        height: 44px;

        min-width: 44px;
        min-height: 44px;

        font-size: 16px;
    }

    .smart-scroll-btn i {
        font-size: 16px;
    }

}


/* ==========================================
   SMALL MOBILE
   Up to 360px
========================================== */

@media (max-width: 360px) {

    .smart-scroll-btn {
        right: 12px;
        bottom: 80px;

        width: 42px;
        height: 42px;

        min-width: 42px;
        min-height: 42px;
    }

}


/* ==========================================
   REDUCED MOTION
========================================== */

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

    .smart-scroll-btn {
        transition: none;
    }

}



/* ==========================================
   ATHERIOT TRAVEL - VIEW ALL RECORDS
========================================== */

#viewAllRecords.view-records-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    margin-top: 20px;

    background: var(--surface);
    color: var(--heading);

    border: 1px solid var(--border);
    border-radius: 10px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    box-sizing: border-box;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Hover */

#viewAllRecords.view-records-btn:hover {
    background: var(--border);
    text-decoration: none;
}

/* Icons */

#viewAllRecords.view-records-btn i {
    font-size: 15px;
    color: inherit;
}

/* Hidden when no records exist */

#viewAllRecords.view-records-btn[hidden] {
    display: none !important;
}

/* Mobile */

@media (max-width: 600px) {
    #viewAllRecords.view-records-btn {
        min-height: 44px;
        padding: 12px;
        margin-top: 16px;
        font-size: 14px;
    }
}



.edit-name-container.hidden {
    display: none !important;
}

.hourly-popup[hidden] {
    display: none !important;
}


#expense-form > h2 {
    padding-left: 18px;
}

#recordsAccordionBtn {
    gap: 8px;
}

#recordsAccordionBtn > .fa-clipboard-list {
    margin-right: 0;
}
