/* =========================================================
   STANX DESIGN SYSTEM
   ========================================================= */

:root {

    /* Background */
    --bg-main: #f7f6f3;
    --bg-white: #ffffff;

    /* Text */
    --text-primary: #171717;
    --text-secondary: #707070;
    --text-muted: #999999;

    /* Brand */
    --brand-gold: #ffc928;
    --brand-orange: #ff9f00;
    --brand-red: #ef2b23;

    /* UI */
    --border: #e7e4df;

    /* Brand Gradient */
    --brand-gradient: linear-gradient(
        135deg,
        #ffc928 0%,
        #ff9f00 45%,
        #ef2b23 100%
    );

}

#page-loader {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

#page-loader.is-active { opacity: 1; }

.page-loader-bar {
    width: 42%;
    height: 100%;
    background: var(--brand-gradient);
    box-shadow: 0 0 12px rgba(255, 159, 0, .7);
    transform: translateX(-120%);
}

#page-loader.is-active .page-loader-bar {
    animation: page-loader-slide 1.1s ease-in-out infinite;
}

@keyframes page-loader-slide {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(170%); }
    100% { transform: translateX(290%); }
}


/* =========================================================
   BASIC RESET
   ========================================================= */

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


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-primary);

}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {

    min-height: 100vh;

    background: #f7f6f3;

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    overflow: hidden;

}


/* =========================================================
   BACKGROUND
   ========================================================= */

.login-background {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}


.glow {

    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.18;

}


.glow-one {

    width: 450px;

    height: 450px;

    background: #ff9f00;

    top: -180px;

    right: -100px;

}


.glow-two {

    width: 400px;

    height: 400px;

    background: #ef2b23;

    bottom: -200px;

    left: -120px;

}


/* =========================================================
   LOGIN WRAPPER
   ========================================================= */

.login-wrapper {

    width: 100%;

    max-width: 440px;

    padding: 25px;

    position: relative;

    z-index: 2;

}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {

    background: rgba(255, 255, 255, 0.96);

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

    border-radius: 24px;

    padding: 48px 45px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.10);

}


/* =========================================================
   STANX LOGO
   ========================================================= */

.stanx-logo {

    text-align: center;

}


.stanx-mark {

    width: 58px;

    height: 58px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: var(--brand-gradient);

    color: white;

    font-size: 32px;

    font-weight: 900;

    font-style: italic;

    box-shadow:
        0 10px 25px rgba(239, 43, 35, 0.25);

}


.stanx-name {

    font-size: 38px;

    font-weight: 900;

    letter-spacing: 7px;

    background: var(--brand-gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}


/* =========================================================
   SUBTITLE
   ========================================================= */

.login-subtitle {

    text-align: center;

    margin-top: 10px;

    margin-bottom: 38px;

    color: var(--text-secondary);

    font-size: 11px;

    letter-spacing: 4px;

    font-weight: 600;

}


/* =========================================================
   INPUTS
   ========================================================= */

.input-group {

    margin-bottom: 20px;

}


.input-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: var(--text-primary);

}


.input-group input {

    width: 100%;

    height: 50px;

    padding: 0 16px;

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

    border-radius: 11px;

    background: #fafafa;

    color: var(--text-primary);

    font-size: 16px;

    outline: none;

    transition: 0.2s ease;

}


.input-group input::placeholder {

    color: #aaa;

}


.input-group input:focus {

    background: #ffffff;

    border-color: var(--brand-orange);

    box-shadow:
        0 0 0 3px rgba(255, 159, 0, 0.12);

}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {

    width: 100%;

    height: 52px;

    margin-top: 8px;

    border: none;

    border-radius: 11px;

    background: var(--brand-gradient);

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    box-shadow:
        0 10px 25px rgba(239, 43, 35, 0.18);

    transition: 0.2s ease;

}


.login-button span {

    font-size: 20px;

    line-height: 1;

}


.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(239, 43, 35, 0.25);

}


.login-button:active {

    transform: translateY(0);

}


/* =========================================================
   ERROR
   ========================================================= */

.login-error {

    margin-top: 18px;

    padding: 11px;

    text-align: center;

    border-radius: 9px;

    background: rgba(239, 43, 35, 0.08);

    border: 1px solid rgba(239, 43, 35, 0.18);

    color: #d92820;

    font-size: 13px;

}


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

.login-footer {

    margin-top: 30px;

    text-align: center;

    color: #999999;

    font-size: 9px;

    letter-spacing: 3px;

}


.login-footer span {

    color: var(--brand-orange);

    margin: 0 5px;

}


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

@media (max-width: 500px) {

    .login-wrapper {

        padding: 18px;

    }


    .login-card {

        padding: 38px 25px;

        border-radius: 20px;

    }


    .stanx-name {

        font-size: 32px;

        letter-spacing: 5px;

    }

}

/* =========================================================
   STANX APPLICATION SHELL
   ========================================================= */


/* =========================================================
   APP LAYOUT
   ========================================================= */

.app-layout {

    min-height: 100vh;

    display: flex;

    background: var(--bg-main);

}


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

.sidebar {

    width: 245px;

    min-height: 100vh;

    background: #111111;

    color: white;

    display: flex;

    flex-direction: column;

    padding: 28px 18px;

    flex-shrink: 0;

}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.sidebar-logo img {

    width: 175px;

    height: auto;

    display: block;

}


.sidebar-logo img {

    width: 150px;

    height: auto;

    display: block;

}


/* =========================================================
   SIDEBAR SECTION TITLE
   ========================================================= */

.sidebar-section-title {

    color: #777777;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    padding: 0 13px;

    margin-bottom: 10px;

}


/* =========================================================
   SIDEBAR NAV
   ========================================================= */

.sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.nav-item {

    display: flex;

    align-items: center;

    gap: 13px;

    height: 46px;

    padding: 0 13px;

    border-radius: 10px;

    color: #bcbcbc;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: 0.2s ease;

}


.nav-item:hover {

    background: #1d1d1d;

    color: white;

}


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

.nav-item.active {

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.18)
    );

    color: white;

}


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

.nav-icon {

    width: 22px;

    text-align: center;

    font-size: 17px;

    color: #999999;

}


.nav-item:hover .nav-icon {

    color: var(--brand-orange);

}


.nav-item.active .nav-icon {

    color: var(--brand-orange);

}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {

    margin-top: auto;

}


.sidebar-divider {

    height: 1px;

    background: #292929;

    margin: 15px 10px;

}


.logout-item:hover {

    color: #ff6b5f;

}


.logout-item:hover .nav-icon {

    color: #ef2b23;

}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {

    flex: 1;

    min-width: 0;

}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {

    height: 82px;

    background: rgba(255, 255, 255, 0.92);

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 38px;

}


/* =========================================================
   TOPBAR TITLE
   ========================================================= */

.topbar-title {

    font-size: 22px;

    font-weight: 700;

    color: var(--text-primary);

}


.topbar-subtitle {

    margin-top: 4px;

    font-size: 11px;

    color: var(--text-muted);

}


/* =========================================================
   USER AREA
   ========================================================= */

.topbar-user {

    display: flex;

    align-items: center;

    gap: 11px;

}


.user-avatar {

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--brand-gradient);

    color: white;

    font-size: 14px;

    font-weight: 700;

}


.user-info {

    line-height: 1.2;

}


.user-name {

    font-size: 13px;

    font-weight: 600;

    color: var(--text-primary);

}


.user-role {

    margin-top: 4px;

    font-size: 10px;

    color: var(--text-muted);

}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {

    padding: 35px 38px;

    max-width: 1600px;

}


/* =========================================================
   COMMON CARD
   ========================================================= */

.stanx-card {

    background: var(--bg-white);

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

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.035);

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .sidebar {

        width: 210px;

    }


    .topbar {

        padding: 0 25px;

    }


    .page-content {

        padding: 28px 25px;

    }

}


@media (max-width: 650px) {

    .sidebar {

        width: 70px;

        padding: 25px 10px;

    }


    .sidebar-logo {

        justify-content: center;

        padding: 5px 0 30px;

    }


    .sidebar-logo img {

        width: 42px;

        height: 42px;

        object-fit: contain;

        object-position: left;

    }


    .sidebar-section-title {

        display: none;

    }


    .nav-item {

        justify-content: center;

        padding: 0;

    }


    .nav-item span:not(.nav-icon) {

        display: none;

    }


    .nav-icon {

        font-size: 19px;

    }


    .topbar {

        height: 72px;

        padding: 0 18px;

    }


    .topbar-title {

        font-size: 18px;

    }


    .topbar-subtitle {

        display: none;

    }


    .user-info {

        display: none;

    }


    .page-content {

        padding: 22px 18px;

    }

}

/* =========================================================
   STANX DASHBOARD
   ========================================================= */


/* =========================================================
   WELCOME
   ========================================================= */

.dashboard-welcome {

    margin-bottom: 30px;

}


.dashboard-welcome h1 {

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);

    margin-bottom: 7px;

}


.dashboard-welcome p {

    color: var(--text-secondary);

    font-size: 14px;

}


/* =========================================================
   STAT CARDS
   ========================================================= */

.dashboard-stats {

    display: grid;

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

    gap: 18px;

    margin-bottom: 35px;

}


.stat-card {

    background: white;

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

    border-radius: 16px;

    padding: 22px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.035);

    transition: 0.2s ease;

}


.stat-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.07);

}


.stat-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.stat-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 201, 40, 0.16),
            rgba(239, 43, 35, 0.10)
        );

    color: var(--brand-orange);

    font-size: 18px;

}


.stat-label {

    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 700;

    color: var(--text-muted);

}


.stat-value {

    margin-top: 20px;

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);

}


.stat-description {

    margin-top: 6px;

    color: var(--text-muted);

    font-size: 11px;

}


.status-online {

    color: #159447;

    font-size: 22px;

}


/* =========================================================
   DASHBOARD SECTION
   ========================================================= */

.dashboard-section {

    margin-bottom: 30px;

}


.section-heading {

    margin-bottom: 15px;

}


.section-heading h2 {

    font-size: 17px;

    font-weight: 700;

    color: var(--text-primary);

}


.section-heading p {

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;

}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {

    display: grid;

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

    gap: 15px;

}


.quick-action {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 19px;

    background: white;

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

    border-radius: 14px;

    text-decoration: none;

    color: var(--text-primary);

    transition: 0.2s ease;

}


.quick-action:hover {

    border-color: #f1b33a;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

}


.quick-action-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: var(--brand-gradient);

    color: white;

    font-size: 18px;

}


.quick-action-title {

    font-size: 13px;

    font-weight: 700;

}


.quick-action-description {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;

}


.quick-action-arrow {

    margin-left: auto;

    color: #b0b0b0;

    font-size: 18px;

    transition: 0.2s ease;

}


.quick-action:hover .quick-action-arrow {

    color: var(--brand-orange);

    transform: translateX(3px);

}


/* =========================================================
   SYSTEM CARD
   ========================================================= */

.system-card {

    background: white;

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

    border-radius: 16px;

    padding: 22px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.system-status {

    display: flex;

    align-items: center;

    gap: 13px;

}


.status-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #24b35b;

    box-shadow:
        0 0 0 5px rgba(36, 179, 91, 0.10);

}


.system-status strong {

    display: block;

    font-size: 13px;

}


.system-status p {

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;

}


.system-brand {

    display: flex;

    align-items: baseline;

    gap: 7px;

}


.system-brand span {

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;

}


.system-brand small {

    color: var(--text-muted);

    font-size: 8px;

    letter-spacing: 2px;

}


/* =========================================================
   DASHBOARD RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .dashboard-stats {

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

    }


    .quick-actions {

        grid-template-columns:
            1fr;

    }

}


@media (max-width: 650px) {

    .dashboard-stats {

        grid-template-columns:
            1fr;

    }


    .dashboard-welcome h1 {

        font-size: 23px;

    }


    .system-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

    }

}

/* =========================================
   STUDENT FORM
========================================= */

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}


/* Form Card */

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    max-width: 850px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.form-card-header {
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.form-card-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-card-header p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}


/* Form */

.student-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.student-form .notice-full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fafafa;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.10);
}

.form-group input::placeholder {
    color: #b0b0b0;
}


/* Form Actions */

.form-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.primary-button {
    border: none;
    padding: 12px 20px;
    border-radius: 9px;
    background: var(--brand-gradient);
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-button span {
    margin-left: 8px;
    font-size: 16px;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(239, 43, 35, 0.18);
}


/* Flash Messages */

.message-container {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flash-message.success {
    background: #edf9f1;
    color: #168044;
    border: 1px solid #ccefd8;
}

.flash-message.error {
    background: #fff0ef;
    color: #d52d25;
    border: 1px solid #f5cfcc;
}

.materials-admin-card {
    margin-bottom: 28px;
}

.materials-admin-list {
    margin-top: 28px;
}

.activity-admin-form {
    margin-bottom: 28px;
}

.activity-admin-list {
    margin-top: 28px;
}

.activity-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.activity-check input {
    accent-color: var(--brand-orange);
}

.activity-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.activity-status.active {
    color: #237a45;
    background: #e8f6ed;
}

.activity-status.inactive {
    color: #8a5d28;
    background: #fff2dc;
}

.activity-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-action-link,
.table-action-button,
.danger-action-button,
.secondary-action-link {
    display: inline-block;
    border: 0;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--brand-orange);
    background: #fff8ed;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.table-action-button:hover,
.table-action-link:hover,
.secondary-action-link:hover {
    color: var(--brand-red);
}

.danger-action-button {
    color: #a52b22;
    background: #fff0ed;
}

.year-end-report-actions {
    display: grid;
    gap: 22px;
    margin: 24px 0 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.year-end-download-row .primary-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.year-end-email-form {
    display: grid;
    gap: 8px;
    max-width: 620px;
}

.year-end-email-form label {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}

.year-end-email-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.year-end-email-controls input {
    flex: 1 1 360px;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    background: #fafafa;
    font: inherit;
    font-size: 13px;
}

.year-end-email-controls input:focus {
    border-color: var(--brand-orange);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.10);
}

.year-end-email-controls button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.year-end-finalize-section {
    margin-top: 28px;
}

.year-end-finalize-section h2 {
    margin: 0 0 14px;
}

.year-end-finalize-section p + p {
    margin-top: 10px;
}

.year-end-finalize-section .danger-action-button {
    margin-top: 14px;
}

.activity-question-list {
    display: grid;
    gap: 22px;
}

.activity-question-card {
    margin-bottom: 0;
}

.activity-question-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.activity-question-heading h2 {
    display: inline;
    margin: 0 0 6px 9px;
    font-size: 20px;
}

.activity-question-heading p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.activity-order {
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
}

.inline-edit-form,
.activity-option-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.inline-edit-form {
    margin-bottom: 22px;
}

.inline-edit-form input[type="text"],
.inline-edit-form input[type="number"],
.activity-option-row input[type="text"],
.activity-option-row input[type="number"] {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.inline-edit-form input[type="text"] {
    flex: 1 1 320px;
}

.inline-edit-form input[type="number"],
.activity-option-row input[type="number"] {
    width: 90px;
}

.activity-options {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.activity-options h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.activity-option-row {
    margin-bottom: 9px;
}

.activity-option-row input[type="text"] {
    flex: 1 1 220px;
}

.activity-option-row input[type="radio"] {
    accent-color: var(--brand-orange);
}

.activity-add-option {
    margin-top: 15px;
    margin-bottom: 0;
}

.activity-empty-options {
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
}

.practice-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.practice-new-button {
    text-decoration: none;
}

.practice-admin-list {
    margin-top: 28px;
}

.practice-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.practice-status.active {
    color: #237a45;
    background: #e8f6ed;
}

.practice-status.inactive {
    color: #8a5d28;
    background: #fff2dc;
}

.practice-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.practice-form-card {
    margin-bottom: 28px;
}

.practice-week-fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    grid-column: 1 / -1;
    gap: 12px;
}

.practice-week-separator {
    padding-bottom: 13px;
    color: var(--text-muted);
    font-size: 13px;
}

.practice-message-field {
    grid-column: 1 / -1;
}

.practice-message-field textarea,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fafafa;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}

.practice-message-field textarea:focus,
.form-group textarea:focus {
    border-color: var(--brand-orange);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.10);
}

@media (max-width: 760px) {
    .practice-page-header {
        flex-direction: column;
    }

    .practice-new-button {
        width: 100%;
        text-align: center;
    }

    .practice-week-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .practice-week-separator {
        display: none;
    }

    .practice-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .activity-question-heading {
        flex-direction: column;
    }

    .activity-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-actions form,
    .activity-actions .table-action-link,
    .activity-actions .table-action-button {
        width: 100%;
    }

    .activity-actions .table-action-link,
    .activity-actions .table-action-button {
        text-align: center;
    }
}


/* Mobile */

@media (max-width: 700px) {

    .student-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: auto;
    }

    .form-card {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .year-end-report-actions {
        gap: 20px;
        margin: 20px 0 30px;
    }

    .year-end-email-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .year-end-email-controls input,
    .year-end-email-controls button {
        width: 100%;
        box-sizing: border-box;
    }

    .year-end-email-controls input {
        flex: 0 0 auto;
        height: auto;
    }

}

/* =========================================
   OPERATIONS
========================================= */

.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1000px;
}

.operation-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
    transition: 0.2s ease;
}

.operation-card:hover {
    transform: translateY(-2px);
    border-color: #f1b33a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.operation-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;

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

    border-radius: 12px;

    background: var(--brand-gradient);
    color: white;

    font-size: 20px;
    font-weight: 700;
}

.operation-content {
    min-width: 0;
}

.operation-content h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.operation-content p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.operation-arrow {
    margin-left: auto;
    color: #b0b0b0;
    font-size: 20px;
    transition: 0.2s ease;
}

.operation-card:hover .operation-arrow {
    color: var(--brand-orange);
    transform: translateX(3px);
}


@media (max-width: 750px) {

    .operations-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   SERVICES PAGE
========================================= */

.services-header {
    margin-bottom: 32px;
}


/* Stanet Records Logo */

.services-logo {
    width: 300px;
    height: auto;
    display: block;

    margin-bottom: 4px;
}


/* Description */

.services-header p {
    color: var(--text-secondary);
    font-size: 14px;
}


/* Services Grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    max-width: 1200px;
}


/* Service Card */

.service-card {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 22px 24px;

    background: white;

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

    border-radius: 16px;

    text-decoration: none;

    color: var(--text-primary);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);

    transition: 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);

    border-color: #f1b33a;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}


/* Icon */

.service-icon {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

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

    border-radius: 14px;

    background: var(--brand-gradient);

    color: white;

    font-size: 25px;

    font-weight: 700;
}


/* Content */

.service-content {
    min-width: 0;
}

.service-content h2 {
    font-size: 17px;

    font-weight: 700;

    color: var(--text-primary);
}

.service-content p {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* Arrow */

.service-arrow {
    margin-left: auto;

    color: #b0b0b0;

    font-size: 22px;

    transition: 0.2s ease;
}

.service-card:hover .service-arrow {
    color: var(--brand-orange);

    transform: translateX(4px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .services-logo {
        width: 240px;
    }

    .service-card {
        padding: 18px;
    }

    .service-icon {
        width: 52px;
        height: 52px;

        font-size: 20px;
    }

    .service-content h2 {
        font-size: 15px;
    }

    .service-content p {
        font-size: 11px;
    }

}

/* =========================================
   DASHBOARD BRAND
========================================= */

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 30px;
}

.dashboard-brand-mark {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

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

    border-radius: 13px;

    background: #fff5e9;

    overflow: hidden;
}

.dashboard-brand-mark img {
    width: 38px;
    height: 38px;

    object-fit: contain;

    display: block;
}

.dashboard-welcome-text {
    min-width: 0;
}

.dashboard-welcome h1 {
    margin: 0;

    font-size: 27px;
    font-weight: 700;

    color: var(--text-primary);
}

.dashboard-welcome p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================
   DASHBOARD STATISTICS
========================================= */

.dashboard-stats {
    display: grid;

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

    gap: 18px;

    margin-bottom: 35px;
}

.stat-card {
    background: white;

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

    border-radius: 16px;

    padding: 22px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);

    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.stat-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: flex;

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

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.16),
        rgba(239, 43, 35, 0.10)
    );

    color: var(--brand-orange);

    font-size: 18px;
}

.stat-label {
    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 700;

    color: var(--text-muted);
}

.stat-value {
    margin-top: 20px;

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);
}

.stat-description {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================
   MANAGER SECTION
========================================= */

.manager-section {
    margin-bottom: 0;
}

.manager-grid {
    display: grid;

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

    gap: 22px;

    width: 100%;
}


/* =========================================
   MANAGER CARDS
========================================= */

.manager-card {
    position: relative;

    min-height: 170px;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 28px;

    background: white;

    border: 1px solid #f0d59e;

    border-radius: 18px;

    text-decoration: none;

    color: var(--text-primary);

    overflow: hidden;

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);

    transition: all 0.2s ease;
}

.manager-card:hover {
    transform: translateY(-3px);

    border-color: var(--brand-orange);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.08);
}

.music-icon {
    background: #3b2a20;
    color: #f3e4d3;
}

.manager-card-icon.music-icon {
    background: #2f241f !important;
    color: #f1dfc8 !important;
}


/* =========================================
   MUSIC CLASS ICON
========================================= */

.manager-card-icon {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 16px;

    background: var(--brand-gradient);

    color: white;

    font-size: 38px;

    font-weight: 700;

    box-shadow:
        0 8px 18px rgba(239, 43, 35, 0.15);
}

.music-icon {
    font-family: Georgia, serif;
}


/* =========================================
   STANET RECORDS LOGO
========================================= */

.manager-logo {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 15px;

    overflow: hidden;
}

.manager-logo img {
    width: 82px;
    height: 82px;

    object-fit: contain;

    display: block;
}


/* =========================================
   MANAGER CONTENT
========================================= */

.manager-card-content {
    min-width: 0;
}

.manager-card-label {
    display: block;

    margin-bottom: 7px;

    color: var(--brand-orange);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.manager-card-content h2 {
    margin: 0;

    font-size: 21px;

    font-weight: 700;

    color: var(--text-primary);
}

.manager-card-content p {
    margin-top: 9px;

    max-width: 390px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   MANAGER ARROW
========================================= */

.manager-card-arrow {
    margin-left: auto;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 50%;

    background: #fff6e8;

    color: var(--brand-orange);

    font-size: 23px;

    transition: all 0.2s ease;
}

.manager-card:hover .manager-card-arrow {
    transform: translateX(5px);

    background: var(--brand-gradient);

    color: white;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manager-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .dashboard-welcome {
        gap: 12px;
    }

    .dashboard-brand-mark {
        width: 44px;
        height: 44px;
    }

    .dashboard-brand-mark img {
        width: 32px;
        height: 32px;
    }

    .dashboard-welcome h1 {
        font-size: 23px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .manager-card {
        min-height: 145px;

        padding: 20px;

        gap: 15px;
    }

    .manager-card-icon {
        width: 56px;
        height: 56px;

        font-size: 28px;
    }

    .manager-logo {
        width: 62px;
        height: 62px;
    }

    .manager-logo img {
        width: 62px;
        height: 62px;
    }

    .manager-card-content h2 {
        font-size: 17px;
    }

    .manager-card-content p {
        font-size: 11px;
    }

    .manager-card-arrow {
        width: 36px;
        height: 36px;

        font-size: 19px;
    }

}

/* =========================================
   SIMPLE STANX LOGIN
========================================= */

.stanx-login-page {
    margin: 0;

    min-height: 100vh;

    background: #f7f6f3;

    color: var(--text-primary);

    font-family: inherit;
}


/* Main container */

.simple-login-container {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;
}


/* Login card */

.simple-login-container .login-card {
    width: 100%;

    max-width: 420px;

    box-sizing: border-box;

    padding: 38px 42px;

    background: #ffffff;

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

    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.06);
}


/* Small S icon */

.simple-login-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 12px;

    display: flex;

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

    border-radius: 12px;

    background: #fff5e9;
}

.simple-login-icon img {
    width: 34px;
    height: 34px;

    object-fit: contain;

    display: block;
}


/* STANX logo */

.simple-login-container .login-logo {
    text-align: center;

    margin-bottom: 20px;
}

.simple-login-container .login-logo img {
    width: 190px;

    max-width: 100%;

    height: auto;

    display: block;

    margin: 0 auto;
}


/* Heading */

.simple-login-container .login-heading {
    text-align: center;

    margin-bottom: 28px;
}

.simple-login-container .login-heading h1 {
    margin: 0;

    font-size: 25px;

    font-weight: 700;

    color: var(--text-primary);
}

.simple-login-container .login-heading p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 13px;
}


/* Inputs */

.simple-login-container .login-input-group {
    margin-bottom: 18px;
}

.simple-login-container .login-input-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 17px;

    font-weight: 700;

    color: var(--text-primary);
}

.simple-login-container .login-input-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

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

    border-radius: 9px;

    background: #fafafa;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition: 0.2s ease;
}

.simple-login-container .login-input-group input:focus {
    border-color: var(--brand-orange);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(255, 159, 0, 0.10);
}

.simple-login-container .login-input-group input::placeholder {
    color: #b3b3b3;
}


/* Login button */

.simple-login-container .stanx-login-button {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 8px;

    padding: 13px 18px;

    border: none;

    border-radius: 9px;

    background: var(--brand-gradient);

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.simple-login-container .stanx-login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(239, 43, 35, 0.18);
}

.simple-login-container .login-button-arrow {
    font-size: 17px;

    transition: 0.2s ease;
}

.simple-login-container .stanx-login-button:hover
.login-button-arrow {
    transform: translateX(4px);
}


/* Error */

.simple-login-container .login-error {
    margin-top: 15px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fff0ef;

    border: 1px solid #f5cfcc;

    color: #d52d25;

    font-size: 12px;

    text-align: center;
}


/* Footer */

.simple-login-container .login-security {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    color: #a0a0a0;

    font-size: 8px;

    letter-spacing: 1.8px;

    font-weight: 700;
}

.simple-login-container .login-security b {
    color: var(--brand-orange);

    font-size: 9px;
}


/* Mobile */

@media (max-width: 500px) {

    .simple-login-container {
        padding: 20px;
    }

    .simple-login-container .login-card {
        padding: 32px 24px;
    }

    .simple-login-container .login-logo img {
        width: 170px;
    }

}


/* =========================================
   STUDENTS LIST PAGE
========================================= */

.students-page {
    width: 100%;
}


/* Page Header */

.students-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.students-header h1 {
    margin: 0;

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);
}

.students-header p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* Add Student Button */

.add-student-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 17px;

    border-radius: 9px;

    background: var(--brand-gradient);

    color: white;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    box-shadow: 0 5px 15px rgba(239, 43, 35, 0.12);

    transition: 0.2s ease;
}

.add-student-button:hover {
    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(239, 43, 35, 0.18);
}


/* Table Card */

.students-table-card {
    background: white;

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

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}


/* Table Header */

.students-table-header {
    padding: 21px 24px;

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

.students-table-header h2 {
    margin: 0;

    font-size: 16px;

    font-weight: 700;

    color: var(--text-primary);
}

.students-table-header p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}


/* Table Wrapper */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* Table */

.students-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}


/* Header */

.students-table thead {
    background: #faf9f7;
}

.students-table th {
    padding: 13px 24px;

    text-align: left;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* Rows */

.students-table td {
    padding: 16px 24px;

    border-top: 1px solid #f0eee9;

    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;
}

.student-phone-form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.student-phone-form input {
    width: 165px;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
}

.students-table tbody tr {
    transition: 0.15s ease;
}

.students-table tbody tr:hover {
    background: #fffaf3;
}


/* Student ID */

.student-id {
    color: var(--text-muted);

    font-size: 11px;

    font-weight: 600;
}


/* Student Name */

.student-name-cell {
    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--text-primary);

    font-weight: 600;
}


/* Avatar */

.student-avatar {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.12)
    );

    color: var(--brand-orange);

    font-size: 12px;

    font-weight: 700;
}


/* Empty State */

.empty-students {
    padding: 65px 20px !important;

    text-align: center !important;

    color: var(--text-secondary) !important;
}

.empty-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 13px;

    display: flex;

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

    border-radius: 12px;

    background: #fff5e9;

    color: var(--brand-orange);

    font-size: 21px;
}

.empty-students strong {
    display: block;

    color: var(--text-primary);

    font-size: 14px;
}

.empty-students p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}

.empty-add-button {
    display: inline-block;

    margin-top: 15px;

    padding: 9px 14px;

    border-radius: 8px;

    background: var(--brand-gradient);

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 650px) {

    .students-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .students-header h1 {
        font-size: 23px;
    }

    .add-student-button {
        width: 100%;

        justify-content: center;
    }

    .students-table-header {
        padding: 18px;
    }

    .students-table th,
    .students-table td {
        padding-left: 18px;

        padding-right: 18px;
    }

}

/* =========================================
   DUES PAGE
========================================= */

.dues-page {
    width: 100%;
}

.dues-header {
    margin-bottom: 28px;
}

.dues-header h1 {
    margin: 0;

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);
}

.dues-header p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================
   FLASH MESSAGES
========================================= */

.dues-messages {
    margin-bottom: 20px;
}

.due-message {
    padding: 12px 15px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 600;
}

.due-message.success {
    background: #edf9f1;

    border: 1px solid #ccefd8;

    color: #168044;
}

.due-message.error {
    background: #fff0ef;

    border: 1px solid #f5cfcc;

    color: #d52d25;
}


/* =========================================
   DUE SECTION
========================================= */

.due-section {
    margin-bottom: 28px;

    background: white;

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

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}


/* Section Header */

.due-section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 21px 24px;

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

.due-title-row {
    display: flex;

    align-items: center;

    gap: 13px;
}

.due-section-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.12)
    );

    color: var(--brand-orange);

    font-size: 18px;

    font-weight: 700;
}

.due-section-header h2 {
    margin: 0;

    font-size: 16px;

    font-weight: 700;

    color: var(--text-primary);
}

.due-section-header p {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}

.due-count {
    padding: 6px 10px;

    border-radius: 20px;

    background: #fff5e9;

    color: var(--brand-orange);

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


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

.due-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.due-table {
    width: 100%;

    min-width: 650px;

    border-collapse: collapse;
}

.due-table thead {
    background: #faf9f7;
}

.due-table th {
    padding: 13px 24px;

    text-align: left;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    white-space: nowrap;
}

.due-table td {
    padding: 15px 24px;

    border-top: 1px solid #f0eee9;

    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;
}

.due-table tbody tr {
    transition: 0.15s ease;
}

.due-table tbody tr:hover {
    background: #fffaf3;
}


/* ID */

.due-id {
    color: var(--text-muted);

    font-size: 11px;

    font-weight: 600;
}


/* Student */

.due-student {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-primary);
}

.due-student strong {
    font-size: 12px;
}

.due-avatar {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.12)
    );

    color: var(--brand-orange);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================
   STATUS
========================================= */

.status-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.7px;
}

.status-badge.unpaid {
    background: #fff0ef;

    color: #d52d25;
}

.status-badge.paid {
    background: #edf9f1;

    color: #168044;
}

.status-badge.partial {
    background: #fff8eb;

    color: #b45309;
}


/* =========================================
   CLEAR BUTTON
========================================= */

.clear-button {
    padding: 7px 13px;

    border: 1px solid #f1b33a;

    border-radius: 7px;

    background: #fffaf0;

    color: var(--brand-orange);

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.clear-button:hover {
    background: var(--brand-gradient);

    border-color: transparent;

    color: white;

    transform: translateY(-1px);
}


/* Empty */

.no-dues {
    padding: 35px !important;

    text-align: center !important;

    color: var(--text-muted) !important;

    font-size: 12px !important;
}


/* =========================================
   POPUP
========================================= */

.stanx-popup {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

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

    padding: 20px;

    background: rgba(17, 17, 17, 0.48);

    backdrop-filter: blur(3px);
}


.stanx-popup-content {
    position: relative;

    width: 100%;

    max-width: 420px;

    padding: 30px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);

    animation: popupAppear 0.18s ease;
}


@keyframes popupAppear {

    from {
        opacity: 0;

        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }

}


/* Popup Close */

.popup-close {
    position: absolute;

    top: 15px;

    right: 17px;

    width: 30px;
    height: 30px;

    border: none;

    background: transparent;

    color: #999;

    font-size: 22px;

    cursor: pointer;
}

.popup-close:hover {
    color: var(--text-primary);
}


/* Popup Icon */

.popup-icon {
    width: 44px;
    height: 44px;

    display: flex;

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

    margin-bottom: 15px;

    border-radius: 11px;

    background: var(--brand-gradient);

    color: white;

    font-size: 19px;

    font-weight: 700;
}


/* Popup Heading */

.stanx-popup-content h2 {
    margin: 0;

    font-size: 19px;

    color: var(--text-primary);
}

.stanx-popup-content > p {
    margin-top: 6px;

    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 12px;
}


/* Popup Fields */

.popup-field {
    margin-bottom: 17px;
}

.popup-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 11px;

    font-weight: 700;
}

.popup-field input,
.popup-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

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

    border-radius: 8px;

    background: #fafafa;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 12px;

    outline: none;

    resize: vertical;
}

.popup-field input:focus,
.popup-field textarea:focus {
    border-color: var(--brand-orange);

    background: white;

    box-shadow:
        0 0 0 3px rgba(255, 159, 0, 0.10);
}


/* Popup Actions */

.popup-actions {
    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 23px;
}

.popup-cancel,
.popup-submit {
    padding: 10px 15px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.popup-cancel {
    border: 1px solid var(--border);

    background: white;

    color: var(--text-secondary);
}

.popup-cancel:hover {
    background: #f7f6f3;
}

.popup-submit {
    border: none;

    background: var(--brand-gradient);

    color: white;
}

.popup-submit:hover {
    box-shadow: 0 6px 15px rgba(239, 43, 35, 0.18);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 650px) {

    .dues-header h1 {
        font-size: 23px;
    }

    .due-section-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 18px;
    }

    .due-table th,
    .due-table td {
        padding-left: 18px;

        padding-right: 18px;
    }

    .stanx-popup-content {
        padding: 25px 20px;
    }

}

/* =========================================
   PRODUCTION INFO
========================================= */

.production-page {
    width: 100%;
}


/* Header */

.production-header {
    margin-bottom: 28px;
}

.production-header h1 {
    margin: 0;

    font-size: 27px;

    font-weight: 700;

    color: var(--text-primary);
}

.production-header p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================
   FILTER CARD
========================================= */

.production-filter-card {
    margin-bottom: 22px;

    padding: 22px 24px;

    background: white;

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

    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}


.production-filters {
    display: grid;

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

    gap: 14px;
}


.production-filter label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.production-filter input,
.production-filter select {
    width: 100%;

    box-sizing: border-box;

    height: 40px;

    padding: 0 11px;

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

    border-radius: 8px;

    background: #fafafa;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 11px;

    outline: none;
}


.production-filter input:focus,
.production-filter select:focus {
    border-color: var(--brand-orange);

    background: white;

    box-shadow:
        0 0 0 3px rgba(255, 159, 0, 0.08);
}


/* Filter buttons */

.production-filter-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 18px;
}


.production-search-button,
.production-clear-button {
    padding: 9px 16px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.production-search-button {
    border: none;

    background: var(--brand-gradient);

    color: white;
}


.production-clear-button {
    border: 1px solid var(--border);

    background: white;

    color: var(--text-secondary);
}


.production-clear-button:hover {
    background: #f7f6f3;
}


/* =========================================
   RESULTS
========================================= */

.production-results-card {
    background: white;

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

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}


.production-results-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 21px 24px;

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


.production-results-header h2 {
    margin: 0;

    font-size: 16px;

    color: var(--text-primary);
}


.production-results-header p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}


/* Export */

.production-export-button {
    display: inline-flex;

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

    box-sizing: border-box;

    text-decoration: none;
}


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

.production-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.production-table {
    width: 100%;

    min-width: 850px;

    border-collapse: collapse;
}


.production-table thead {
    background: #faf9f7;
}


.production-table th {
    padding: 13px 20px;

    text-align: left;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    white-space: nowrap;
}


.production-table td {
    padding: 15px 20px;

    border-top: 1px solid #f0eee9;

    color: var(--text-secondary);

    font-size: 11px;

    white-space: nowrap;
}


.production-table tbody tr:hover {
    background: #fffaf3;
}


/* Invoice */

.production-invoice-id {
    color: var(--text-muted);

    font-weight: 600;
}


/* Client */

.production-client {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-primary);
}


.production-client-avatar {
    width: 34px;
    height: 34px;

    display: flex;

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

    flex-shrink: 0;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.12)
    );

    color: var(--brand-orange);

    font-size: 11px;

    font-weight: 700;
}


/* Amount */

.production-amount {
    color: var(--text-primary);

    font-size: 12px;
}


/* Empty */

.production-empty {
    padding: 60px 20px !important;

    text-align: center !important;
}


.production-empty-icon {
    width: 46px;
    height: 46px;

    margin: 0 auto 12px;

    display: flex;

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

    border-radius: 11px;

    background: #fff5e9;

    color: var(--brand-orange);
}


.production-empty strong {
    display: block;

    color: var(--text-primary);

    font-size: 13px;
}


.production-empty p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .production-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-filter {
        grid-column: span 2;
    }

}


@media (max-width: 650px) {

    .production-header h1 {
        font-size: 23px;
    }

    .production-filter-card {
        padding: 18px;
    }

    .production-filters {
        grid-template-columns: 1fr;
    }

    .search-filter {
        grid-column: span 1;
    }

    .production-filter-actions {
        justify-content: stretch;

        flex-direction: column;
    }

    .production-search-button,
    .production-clear-button {
        width: 100%;

        text-align: center;
    }

    .production-results-header {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

}


/* =========================================================
   SERVICE HISTORY
   ========================================================= */

.service-history-page {
    width: 100%;
}

.service-history-header {
    margin-bottom: 25px;
}

.service-history-header h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-history-header p {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 14px;
}


/* FILTER CARD */

.service-history-filter-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.service-history-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 14px;
}

.service-history-filter {
    min-width: 0;
}

.service-history-filter label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.service-history-filter input,
.service-history-filter select {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.service-history-filter input:focus,
.service-history-filter select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 159, 0, 0.10);
}

.service-history-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.service-history-search-button {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 9px;
    background: var(--brand-gradient);
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.service-history-clear-button {
    height: 40px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.service-history-clear-button:hover {
    border-color: #cfcac2;
    color: var(--text-primary);
}


/* RESULTS */

.service-history-results-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.service-history-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.service-history-results-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.service-history-results-header p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}


/* TABLE */

.service-history-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.service-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.service-history-table th {
    padding: 13px 18px;
    text-align: left;
    background: #faf9f7;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-history-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #f0eeeb;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.service-history-table tbody tr:hover {
    background: #fffaf3;
}

.service-history-table tbody tr:last-child td {
    border-bottom: none;
}


/* INVOICE */

.service-history-invoice-id {
    color: var(--brand-orange);
    font-weight: 700;
}


/* CLIENT */

.service-history-client {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-history-client strong {
    color: var(--text-primary);
}

.service-history-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f0e5d8;
    color: #5a3b2a;
    font-size: 11px;
    font-weight: 700;
}


/* AMOUNT */

.service-history-amount {
    color: var(--text-primary);
}


/* ACTIONS */

.service-history-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.service-history-view-button {
    height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #2f241f;
    color: #f1dfc8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.service-history-view-button:hover {
    background: #211a17;
}

.service-history-download-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
}

.service-history-download-button:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}


/* EMPTY */

.service-history-empty {
    padding: 70px 20px !important;
    text-align: center !important;
}

.service-history-empty-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f0e5d8;
    color: #5a3b2a;
    font-size: 23px;
}

.service-history-empty strong {
    color: var(--text-primary);
    font-size: 14px;
}

.service-history-empty p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .service-history-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .service-history-filters {
        grid-template-columns: 1fr;
    }

    .service-history-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-history-search-button,
    .service-history-clear-button {
        width: 100%;
    }

}


/* =========================================================
   SERVICE HISTORY INVOICE
   ========================================================= */

.history-invoice-page {
    width: 100%;
}

.history-invoice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.history-invoice-top h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.history-invoice-top p {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.history-invoice-actions {
    display: flex;
    gap: 10px;
}

.history-back-button,
.history-download-button {
    height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.history-back-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--text-secondary);
}

.history-download-button {
    background: var(--brand-gradient);
    color: white;
}


/* INVOICE CARD */

.history-invoice-card {
    width: 100%;
    box-sizing: border-box;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
}


/* BRAND / INVOICE NUMBER */

.history-invoice-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.history-invoice-brand img {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.history-invoice-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.history-invoice-number span {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
}

.history-invoice-number strong {
    margin-top: 5px;
    font-size: 21px;
    color: var(--text-primary);
}

.history-invoice-number small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 11px;
}


/* CLIENT */

.history-client-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 0;
}

.history-client-box,
.history-status-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-section-label {
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.history-client-box strong {
    font-size: 15px;
    color: var(--text-primary);
}

.history-client-box span:not(.history-section-label) {
    color: var(--text-secondary);
    font-size: 11px;
}

.history-status-box {
    align-items: flex-end;
}

.history-status {
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.history-status-paid {
    background: #eaf6ed;
    color: #287a3d;
}

.history-status-unpaid {
    background: #fff1e8;
    color: #b85a20;
}


/* ITEMS */

.history-items-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.history-items-header,
.history-item-row {
    display: grid;
    grid-template-columns: 1.3fr 2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.history-items-header {
    padding: 12px 16px;
    background: #faf9f7;
    border-bottom: 1px solid var(--border);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.history-item-row {
    padding: 16px;
    border-bottom: 1px solid #f0eeeb;
}

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

.history-item-row strong {
    font-size: 12px;
    color: var(--text-primary);
}

.history-item-description {
    color: var(--text-secondary);
    font-size: 11px;
}

.history-item-amount {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}


/* TOTAL */

.history-total-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 35px;
    padding: 25px 5px;
}

.history-total-section span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.history-total-section strong {
    font-size: 22px;
    color: var(--text-primary);
}


/* FOOTER */

.history-invoice-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
}


/* MOBILE */

@media (max-width: 650px) {

    .history-invoice-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .history-invoice-actions {
        width: 100%;
    }

    .history-back-button,
    .history-download-button {
        flex: 1;
    }

    .history-invoice-card {
        padding: 22px;
    }

    .history-invoice-brand img {
        width: 110px;
        max-width: 110px;
        max-height: 45px;
    }

    .history-client-section {
        flex-direction: column;
    }

    .history-status-box {
        align-items: flex-start;
    }

    .history-items-header,
    .history-item-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .history-item-amount {
        text-align: left;
    }

    .history-invoice-footer {
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================================================
   GENERATED INVOICE
   ========================================================= */

.invoice-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}


/* ---------------------------------------------------------
   ACTION BAR
   --------------------------------------------------------- */

.invoice-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.invoice-actions h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
    font-weight: 700;
    color: #222;
}

.invoice-actions p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* Buttons */

.invoice-actions > div:last-child {
    display: flex;
    gap: 12px;
}

.generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    background: #222;
    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.generate-button:hover {
    background: #f39c12;
    color: #111;
}


/* ---------------------------------------------------------
   INVOICE PAPER
   --------------------------------------------------------- */

.invoice-section {
    background: #ffffff;

    border-radius: 14px;

    padding: 50px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    border: 1px solid #ebe7e2;
}


/* Company */

.invoice-section > h1 {
    margin: 0;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #222;
}

.invoice-section > h2 {
    margin: 8px 0 35px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #f39c12;
}


/* ---------------------------------------------------------
   CLIENT / INVOICE DETAILS
   --------------------------------------------------------- */

.invoice-section .form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    padding: 25px 0;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    margin-bottom: 35px;
}

.invoice-section .form-row > div {
    display: flex;
    flex-direction: column;
}

.invoice-section .form-row > div:last-child {
    align-items: flex-end;
    text-align: right;
}

.invoice-section .form-row strong {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #999;
}

.invoice-section .form-row p {
    margin: 2px 0;

    font-size: 14px;

    line-height: 1.5;

    color: #444;
}

.invoice-section .form-row p:first-of-type {
    font-weight: 600;

    color: #222;
}


/* ---------------------------------------------------------
   ITEMS TABLE
   --------------------------------------------------------- */

.invoice-table {
    width: 100%;

    border-collapse: collapse;

    margin-top: 10px;

    font-size: 14px;
}

.invoice-table thead {
    background: #f7f5f2;
}

.invoice-table th {
    padding: 14px 16px;

    text-align: left;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #777;

    border-bottom: 1px solid #e3dfda;
}

.invoice-table th:last-child {
    text-align: right;
}

.invoice-table td {
    padding: 17px 16px;

    color: #444;

    border-bottom: 1px solid #eeeeee;

    vertical-align: top;
}

.invoice-table td:last-child {
    text-align: right;

    font-weight: 600;

    color: #222;

    white-space: nowrap;
}

.invoice-table tbody tr:hover {
    background: #faf9f7;
}


/* ---------------------------------------------------------
   TOTAL
   --------------------------------------------------------- */

.invoice-total {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 50px;

    padding: 22px 16px;

    margin-top: 5px;

    border-bottom: 1px solid #e5e1dc;
}

.invoice-total strong:first-child {
    font-size: 12px;

    letter-spacing: 1.5px;

    color: #777;
}

.invoice-total strong:last-child {
    font-size: 22px;

    color: #222;
}


/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

.invoice-section > p:last-child {
    margin-top: 25px;

    font-size: 13px;

    color: #777;
}

.invoice-section > p:last-child strong {
    color: #333;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .invoice-container {
        padding: 20px;
    }

    .invoice-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-actions > div:last-child {
        width: 100%;
    }

    .generate-button {
        flex: 1;
    }

    .invoice-section {
        padding: 25px;
    }

    .invoice-section .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .invoice-section .form-row > div:last-child {
        align-items: flex-start;
        text-align: left;
    }

    .invoice-table {
        font-size: 13px;
    }

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

    .invoice-total {
        gap: 25px;
    }

}

/* =========================================================
   STANX - CREATE INVOICE
   Scoped specifically to invoice.html
   ========================================================= */

.invoice-page {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 35px 30px 60px;
    box-sizing: border-box;
}


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

.invoice-page .invoice-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 25px;
}

.invoice-page .invoice-actions h1 {
    margin: 0;
    padding: 0;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 700;

    color: #222;
}

.invoice-page .invoice-actions p {
    margin: 6px 0 0;
    padding: 0;

    font-size: 14px;
    line-height: 1.4;

    color: #777;
}


/* =========================================================
   MAIN INVOICE CARD
   ========================================================= */

.invoice-page .invoice-section {
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #ebe7e2;
    border-radius: 14px;

    padding: 45px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   INVOICE BRANDING
   ========================================================= */

.invoice-page .invoice-create-header {
    margin: 0 0 35px;
    padding: 0;

    border-bottom: 1px solid #ebe7e2;
    padding-bottom: 22px;
}

.invoice-page .invoice-create-header h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 800;

    letter-spacing: 0.5px;

    color: #222;
}

.invoice-page .invoice-create-header h2 {
    margin: 7px 0 0;

    padding: 0;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 2px;

    color: #f39c12;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.invoice-page .invoice-form-section {
    margin: 0;
    padding: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.invoice-page .invoice-section-title {
    margin: 0 0 18px;

    font-size: 13px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: 1.2px;

    color: #333;
}

.invoice-page .invoice-section-title span {
    display: block;
}


/* =========================================================
   CLIENT FORM ROW
   IMPORTANT:
   This is scoped so it doesn't conflict with STANX .form-row
   ========================================================= */

.invoice-page .form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin: 0 0 22px;
    padding: 0;

    border: none;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.invoice-page .invoice-field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.invoice-page .invoice-field label {
    display: block;

    margin: 0 0 8px;

    font-size: 11px;

    line-height: 1.2;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    color: #777;
}

.invoice-page .invoice-field input {
    width: 100%;

    height: 44px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #ddd8d2;

    border-radius: 8px;

    background: #faf9f7;

    color: #222;

    font-family: inherit;

    font-size: 14px;

    outline: none;

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

.invoice-page .invoice-field input:focus {
    border-color: #f39c12;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(243, 156, 18, 0.10);
}

.invoice-page .invoice-field input::placeholder {
    color: #aaa;
}

/* Payment Status Radio Options */
.invoice-page .payment-status-options {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 44px;
}

.invoice-page .payment-status-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.invoice-page .payment-status-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f39c12;
    margin: 0;
}


/* =========================================================
   SERVICES
   ========================================================= */

.invoice-page .invoice-services-section {
    margin-top: 38px;

    padding-top: 30px;

    border-top: 1px solid #ebe7e2;
}

.invoice-page .invoice-services-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin: 0 0 20px;
}

.invoice-page .invoice-services-header .invoice-section-title {
    margin: 0;
}

.invoice-page .invoice-services-header p {
    margin: 5px 0 0;

    font-size: 13px;
    line-height: 1.4;

    color: #888;
}


/* =========================================================
   ADD SERVICE BUTTON
   ========================================================= */

.invoice-page .generate-button {
    display: inline-flex;

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

    min-height: 40px;

    padding: 0 18px;

    box-sizing: border-box;

    border: none;
    border-radius: 8px;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    white-space: nowrap;

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

.invoice-page .generate-button:hover {
    background: #f39c12;

    color: #111;

    transform: translateY(-1px);
}


/* =========================================================
   SERVICE ROW
   ========================================================= */

.invoice-page #services-container {
    width: 100%;
}

.invoice-page .invoice-service-row {
    display: grid;

    grid-template-columns:
        minmax(150px, 1fr)
        minmax(200px, 1.5fr)
        minmax(120px, 0.7fr)
        42px;

    gap: 15px;

    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    margin: 0 0 12px;

    background: #faf9f7;

    border: 1px solid #ebe7e2;

    border-radius: 10px;

    align-items: end;
}

.invoice-page .invoice-service-row .invoice-field {
    min-width: 0;
}


/* =========================================================
   REMOVE BUTTON
   ========================================================= */

.invoice-page .remove-service-wrapper {
    display: flex;

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

    height: 44px;
}

.invoice-page .remove-service-button {
    display: flex;

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

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #ddd8d2;

    border-radius: 8px;

    background: #fff;

    color: #888;

    font-family: inherit;

    font-size: 21px;

    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.invoice-page .remove-service-button:hover {
    background: #222;

    border-color: #222;

    color: #fff;
}


/* =========================================================
   TOTAL
   ========================================================= */

.invoice-page .invoice-total {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 45px;

    width: 100%;

    box-sizing: border-box;

    margin: 20px 0 0;

    padding: 22px 10px;

    border-top: 1px solid #ddd8d2;

    border-bottom: 1px solid #ebe7e2;
}

.invoice-page .invoice-total span {
    font-size: 12px;

    line-height: 1.2;

    font-weight: 500;

    letter-spacing: 1px;

    color: #555;
}

.invoice-page .invoice-total strong {
    min-width: 120px;

    text-align: right;

    font-size: 21px;

    line-height: 1.2;

    color: #222;
}


/* =========================================================
   BOTTOM ACTIONS
   ========================================================= */

.invoice-page .invoice-submit-area {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    width: 100%;

    box-sizing: border-box;

    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #ebe7e2;
}

.invoice-page .invoice-cancel-button {
    display: inline-flex;

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

    min-height: 40px;

    padding: 0 15px;

    color: #555;

    font-size: 14px;

    text-decoration: none;

    border-radius: 7px;

    transition: background 0.2s ease;
}

.invoice-page .invoice-cancel-button:hover {
    background: #f5f3f0;

    color: #222;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .invoice-page {
        padding: 25px 20px 50px;
    }

    .invoice-page .invoice-section {
        padding: 30px;
    }

    .invoice-page .invoice-service-row {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-page .remove-service-wrapper {
        justify-content: flex-start;
    }

}


@media (max-width: 650px) {

    .invoice-page {
        padding: 20px 15px 40px;
    }

    .invoice-page .invoice-actions {
        margin-bottom: 20px;
    }

    .invoice-page .invoice-actions h1 {
        font-size: 25px;
    }

    .invoice-page .invoice-section {
        padding: 22px;
    }

    .invoice-page .invoice-create-header h1 {
        font-size: 25px;
    }

    .invoice-page .form-row {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .invoice-page .invoice-services-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .invoice-page .invoice-service-row {
        grid-template-columns: 1fr;
    }

    .invoice-page .remove-service-wrapper {
        height: auto;

        justify-content: flex-start;
    }

    .invoice-page .invoice-total {
        gap: 20px;
    }

}

/* =========================================================
   ADD SERVICE AREA
   ========================================================= */

.invoice-page .invoice-add-service-row {
    display: grid;

    grid-template-columns:
        1fr
        1.4fr
        0.7fr
        auto;

    gap: 15px;

    align-items: end;

    padding: 20px;

    background: #faf9f7;

    border: 1px solid #ebe7e2;

    border-radius: 10px;
}


.invoice-page .invoice-add-service-row select {
    width: 100%;

    height: 44px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #ddd8d2;

    border-radius: 8px;

    background: #faf9f7;

    color: #222;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    cursor: pointer;
}


.invoice-page .invoice-add-service-row select:focus {
    border-color: #f39c12;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(243, 156, 18, 0.10);
}


/* =========================================================
   ADD SERVICE BUTTON
   ========================================================= */

.invoice-page .invoice-add-button-wrapper {
    display: flex;

    align-items: flex-end;

    height: 44px;
}


/* =========================================================
   ADDED INVOICE ITEMS
   ========================================================= */

.invoice-page .invoice-items {
    width: 100%;

    margin-top: 15px;
}


.invoice-page .invoice-item-row {
    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        150px
        42px;

    gap: 15px;

    align-items: center;

    padding: 15px 20px;

    margin-bottom: 8px;

    border: 1px solid #ebe7e2;

    border-radius: 9px;

    background: #fff;
}


.invoice-page .invoice-item-service {
    font-size: 14px;

    font-weight: 600;

    color: #222;
}


.invoice-page .invoice-item-description {
    font-size: 13px;

    color: #777;
}


.invoice-page .invoice-item-amount {
    text-align: right;

    font-size: 14px;

    font-weight: 600;

    color: #222;
}


/* =========================================================
   REMOVE ADDED SERVICE
   ========================================================= */

.invoice-page .invoice-item-row
.remove-service-button {
    display: flex;

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

    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid #ddd8d2;

    border-radius: 8px;

    background: #fff;

    color: #888;

    font-size: 20px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.invoice-page .invoice-item-row
.remove-service-button:hover {
    background: #222;

    border-color: #222;

    color: #fff;
}


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

@media (max-width: 850px) {

    .invoice-page .invoice-add-service-row {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-page .invoice-add-button-wrapper {
        height: auto;
    }

    .invoice-page .invoice-item-row {
        grid-template-columns:
            1fr 1fr 120px 42px;
    }

}


@media (max-width: 600px) {

    .invoice-page .invoice-add-service-row {
        grid-template-columns: 1fr;
    }

    .invoice-page .invoice-add-button-wrapper {
        height: auto;
    }

    .invoice-page .invoice-item-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .invoice-page .invoice-item-amount {
        text-align: left;
    }

}

/* =========================================================
   GENERATED INVOICE
   ========================================================= */

.generated-invoice-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 30px 60px;
    box-sizing: border-box;
}


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

.generated-invoice-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
}

.generated-invoice-header h1 {
    margin: 0;

    font-size: 30px;

    line-height: 1.2;

    color: #222;
}

.generated-invoice-header p {
    margin: 6px 0 0;

    font-size: 14px;

    color: #777;
}


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

.generated-invoice-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.invoice-action-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

    border-radius: 8px;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.invoice-action-button:hover {
    background: #f39c12;

    color: #111;
}


/* =========================================================
   INVOICE CARD
   ========================================================= */

.generated-invoice-card {
    width: 100%;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #ebe7e2;

    border-radius: 14px;

    padding: 45px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   BRAND
   ========================================================= */

.generated-invoice-brand {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid #e5e1dc;
}

.generated-invoice-brand h2 {
    margin: 0;

    font-size: 27px;

    line-height: 1.2;

    letter-spacing: 0.5px;

    color: #222;
}

.generated-invoice-brand span {
    display: block;

    margin-top: 7px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #f39c12;
}

.generated-invoice-number {
    text-align: right;
}

.generated-invoice-number span {
    margin: 0;

    color: #888;
}

.generated-invoice-number strong {
    display: block;

    margin-top: 5px;

    font-size: 20px;

    color: #222;
}

.generated-invoice-number small {
    display: block;

    margin-top: 5px;

    font-size: 12px;

    color: #888;
}


/* =========================================================
   CLIENT SECTION
   ========================================================= */

.generated-client-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    padding: 30px 0;

    border-bottom: 1px solid #ebe7e2;
}

.generated-client-box {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.generated-label {
    margin-bottom: 8px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #999;
}

.generated-client-box strong {
    margin-bottom: 3px;

    font-size: 15px;

    color: #222;
}

.generated-client-box span:not(.generated-label) {
    font-size: 13px;

    line-height: 1.5;

    color: #666;
}

.generated-invoice-meta {
    display: flex;

    flex-direction: column;

    align-items: flex-end;
}

.generated-invoice-meta strong {
    font-size: 14px;

    color: #333;
}


/* =========================================================
   ITEMS
   ========================================================= */

.generated-items-section {
    margin-top: 30px;
}

.generated-items-header {
    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        130px;

    gap: 20px;

    padding: 12px 15px;

    background: #f7f5f2;

    border-bottom: 1px solid #e3dfda;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #777;
}

.generated-items-header span:last-child {
    text-align: right;
}

.generated-item-row {
    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        130px;

    gap: 20px;

    align-items: center;

    padding: 17px 15px;

    border-bottom: 1px solid #eeeeee;
}

.generated-item-row strong {
    font-size: 14px;

    color: #222;
}

.generated-item-description {
    font-size: 13px;

    color: #666;
}

.generated-item-amount {
    text-align: right;

    font-size: 14px;

    font-weight: 600;

    color: #222;
}


/* =========================================================
   TOTAL
   ========================================================= */

.generated-total {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 50px;

    padding: 22px 15px;

    border-bottom: 1px solid #ddd8d2;
}

.generated-total span {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #777;
}

.generated-total strong {
    min-width: 130px;

    text-align: right;

    font-size: 22px;

    color: #222;
}


/* =========================================================
   STATUS
   ========================================================= */

.generated-status {
    display: flex;

    justify-content: flex-end;

    gap: 12px;

    padding: 18px 15px;

    font-size: 12px;

    color: #777;
}

.generated-status strong {
    color: #333;
}


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

.generated-invoice-footer {
    display: flex;

    justify-content: space-between;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #ebe7e2;

    font-size: 11px;

    color: #999;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 750px) {

    .generated-invoice-page {
        padding: 25px 20px 50px;
    }

    .generated-invoice-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .generated-invoice-actions {
        width: 100%;
    }

    .invoice-action-button {
        flex: 1;
    }

    .generated-invoice-card {
        padding: 25px;
    }

    .generated-invoice-brand {
        flex-direction: column;

        gap: 20px;
    }

    .generated-invoice-number {
        text-align: left;
    }

    .generated-client-section {
        grid-template-columns: 1fr;
    }

    .generated-invoice-meta {
        align-items: flex-start;
    }

    .generated-items-header,
    .generated-item-row {
        grid-template-columns:
            1fr
            1fr
            100px;
    }

}


@media (max-width: 550px) {

    .generated-invoice-page {
        padding: 20px 15px 40px;
    }

    .generated-invoice-card {
        padding: 20px;
    }

    .generated-items-header {
        display: none;
    }

    .generated-item-row {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .generated-item-amount {
        text-align: left;
    }

    .generated-total {
        gap: 20px;
    }

    .generated-invoice-footer {
        flex-direction: column;

        gap: 5px;
    }

}

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

.delete-student-button {
    width: 36px;
    height: 36px;

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

    border: 1px solid #ead8d5;
    border-radius: 9px;

    background: #fff7f6;

    color: #d52d25;

    font-size: 15px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.delete-student-button:hover {
    background: #ef2b23;

    border-color: #ef2b23;

    color: white;

    transform: translateY(-1px);
}

/* =========================================
   STANX PUBLIC STUDENT APPLICATION
========================================= */

.student-apply-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: #f7f6f3;

}


/* =========================================
   APPLICATION CARD
========================================= */

.student-apply-card {

    width: 100%;

    max-width: 500px;

    padding: 42px;

    background: #ffffff;

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

    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.08);

}


/* =========================================
   STANX BRANDING
========================================= */

.student-apply-logo {

    text-align: center;

    margin-bottom: 32px;

}


.student-apply-logo-image {

    width: 150px;

    height: auto;

    display: block;

    margin: 0 auto;

}


.student-apply-byline {

    margin-top: 4px;

    color: #999999;

    font-size: 9px;

    letter-spacing: 0.8px;

}


.student-apply-subtitle {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}


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

.student-apply-field {

    margin-bottom: 18px;

}


.student-apply-field label {

    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 700;

    color: var(--text-primary);

}


.student-apply-field input {

    width: 100%;

    height: 46px;

    padding: 0 13px;

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

    border-radius: 9px;

    background: #fafafa;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 14px;

    outline: none;

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

}


.student-apply-field input:hover {

    border-color: #d8d2ca;

}


.student-apply-field input:focus {

    background: #ffffff;

    border-color: var(--brand-orange);

    box-shadow:
        0 0 0 3px rgba(255, 159, 0, 0.10);

}


.student-apply-field input::placeholder {

    color: #aaaaaa;

}


/* =========================================
   SUBMIT BUTTON
========================================= */

.student-apply-button {

    width: 100%;

    height: 46px;

    margin-top: 8px;

    border: none;

    border-radius: 9px;

    background: var(--brand-gradient);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.student-apply-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(239, 43, 35, 0.18);

}


.student-apply-button:active {

    transform: translateY(0);

}


/* =========================================
   SUCCESS MESSAGE
========================================= */

.student-apply-success {

    padding: 25px 10px;

    text-align: center;

}


.student-apply-success-icon {

    width: 55px;

    height: 55px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #edf9f1;

    color: #168044;

    font-size: 25px;

    font-weight: 700;

}


.student-apply-success h2 {

    margin: 0;

    color: var(--text-primary);

    font-size: 20px;

    font-weight: 700;

}


.student-apply-success p {

    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;

}


/* =========================================
   ERROR MESSAGE
========================================= */

.student-apply-error {

    margin-bottom: 18px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fff0ef;

    border: 1px solid #f5cfcc;

    color: #d52d25;

    font-size: 12px;

    text-align: center;

}


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

.student-apply-footer {

    margin-top: 25px;

    text-align: center;

    color: #aaaaaa;

    font-size: 9px;

    letter-spacing: 0.8px;

}


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

@media (max-width: 600px) {

    .student-apply-page {

        padding: 20px;

        align-items: flex-start;

    }


    .student-apply-card {

        margin-top: 30px;

        padding: 32px 24px;

        border-radius: 18px;

    }


    .student-apply-logo-image {

        width: 135px;

    }


    .student-apply-field {

        margin-bottom: 16px;

    }

}

/* =========================================
   STUDENT REQUESTS
========================================= */

.requests-page {
    width: 100%;
}

.requests-header {
    margin-bottom: 24px;
}

.requests-header h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
}

.requests-header p {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 14px;
}


/* FILTERS */

.requests-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.request-filter {
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s ease;
}

.request-filter:hover {
    border-color: #d8c5a5;
    color: var(--brand-orange);
}

.request-filter.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: white;
}


/* CARD */

.requests-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.requests-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* TABLE */

.requests-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.requests-table thead {
    background: #faf9f7;
}

.requests-table th {
    padding: 13px 20px;
    text-align: left;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.requests-table td {
    padding: 15px 20px;
    border-top: 1px solid #f0eee9;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.requests-table tbody tr:hover {
    background: #fffaf3;
}


/* ID */

.request-id {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}


/* STUDENT */

.request-student {
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

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

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.18),
        rgba(239, 43, 35, 0.12)
    );

    color: var(--brand-orange);

    font-size: 12px;
    font-weight: 700;
}

.request-student strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
}

.request-student small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}


/* STATUS */

.request-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.request-status.pending {
    background: #fff4dc;
    color: #b87516;
}

.request-status.approved {
    background: #edf9f1;
    color: #168044;
}

.request-status.rejected {
    background: #fff0ef;
    color: #d52d25;
}


/* REVIEW */

.request-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border-radius: 7px;

    background: #fff6e8;
    color: var(--brand-orange);

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s ease;
}

.request-view-button:hover {
    background: var(--brand-gradient);
    color: white;
}

.request-completed {
    color: var(--text-muted);
    font-size: 10px;
}


/* EMPTY */

.requests-empty {
    padding: 60px 20px !important;
    text-align: center !important;
}

.requests-empty-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 13px;

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

    border-radius: 12px;

    background: #fff5e9;
    color: var(--brand-orange);

    font-size: 20px;
    font-weight: 700;
}

.requests-empty strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.requests-empty p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================
   STUDENT REQUEST REVIEW
========================================= */

.request-review-page {
    width: 100%;
}

.request-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.request-review-header h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
}

.request-review-header p {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 14px;
}

.request-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s ease;
}

.request-back-button:hover {
    border-color: #d8c5a5;
    color: var(--brand-orange);
}


/* REVIEW CARD */

.request-review-card {
    max-width: 850px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}


/* CARD HEADER */

.request-review-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px;
    border-bottom: 1px solid #f0eee9;
}

.request-review-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(255, 201, 40, 0.20),
        rgba(239, 43, 35, 0.13)
    );
    color: var(--brand-orange);
    font-size: 18px;
    font-weight: 700;
}

.request-review-card-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
}

.request-review-card-header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}


/* DETAILS */

.request-review-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.request-detail {
    padding: 20px 24px;
    border-bottom: 1px solid #f0eee9;
}

.request-detail:nth-child(odd) {
    border-right: 1px solid #f0eee9;
}

.request-detail span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.request-detail strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.request-review-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff4dc;
    color: #b87516 !important;
    font-size: 9px !important;
    letter-spacing: 0.5px;
}


/* ACTIONS */

.request-review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px 24px;
    background: #faf9f7;
}

.request-review-actions form {
    margin: 0;
}

.request-reject-button,
.request-approve-button {
    height: 40px;
    padding: 0 17px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.request-reject-button {
    border: 1px solid #f0cfcc;
    background: #ffffff;
    color: #d52d25;
}

.request-reject-button:hover {
    background: #fff0ef;
}

.request-approve-button {
    border: none;
    background: var(--brand-gradient);
    color: #ffffff;
}

.request-approve-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(239, 43, 35, 0.18);
}

.request-reject-button:active,
.request-approve-button:active {
    transform: translateY(0);
}


/* MOBILE */

@media (max-width: 700px) {

    .request-review-header {
        flex-direction: column;
    }

    .request-review-details {
        grid-template-columns: 1fr;
    }

    .request-detail:nth-child(odd) {
        border-right: none;
    }

    .request-review-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .request-review-actions form {
        width: 100%;
    }

    .request-reject-button,
    .request-approve-button {
        width: 100%;
    }

}


/* =========================================================
   UNPAID INVOICES PAGE
   ========================================================= */

.unpaid-invoices-page {
    width: 100%;
}

.unpaid-invoices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.unpaid-invoices-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.unpaid-invoices-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.unpaid-invoices-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.unpaid-invoices-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.unpaid-invoices-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.unpaid-invoices-card-header p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.unpaid-count-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff4dc;
    color: #b87516;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.unpaid-invoices-table-wrapper {
    overflow-x: auto;
}

.unpaid-invoices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.unpaid-invoices-table th {
    padding: 12px 18px;
    background: #faf8f5;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}

.unpaid-invoices-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0ede8;
    color: var(--text-primary);
    vertical-align: middle;
}

.unpaid-invoices-table tbody tr:hover {
    background: #fdfcfb;
}

.unpaid-invoices-table tbody tr:last-child td {
    border-bottom: none;
}

.unpaid-invoice-link {
    text-decoration: none;
}

.unpaid-invoice-id {
    font-family: monospace;
    font-weight: 700;
    color: var(--brand-orange);
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff6e8;
}

.unpaid-invoice-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.unpaid-client-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unpaid-client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 201, 40, 0.2), rgba(239, 43, 35, 0.15));
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.unpaid-client-details strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.unpaid-client-details span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.unpaid-amount-total {
    font-size: 13px;
    color: var(--text-muted);
}

.unpaid-amount-paid {
    font-size: 13px;
    color: #168044;
}

.unpaid-amount-outstanding {
    font-size: 14px;
    font-weight: 700;
    color: #d52d25;
}

.unpaid-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.unpaid-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #edf9f1;
    color: #168044;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.unpaid-empty-state strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.unpaid-empty-state p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.popup-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================================
   REQUEST COUNT BADGE
========================================= */

.nav-item-label {
    flex: 1;
}

.request-count-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;

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

    border-radius: 10px;

    background: var(--brand-gradient);
    color: #ffffff;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;
}


