:root {
    --xmoto-phase2-hero-pad: clamp(1rem, 1.6vw, 1.5rem);
    --xmoto-phase2-grid-gap: clamp(.8rem, 1.4vw, 1.15rem);
}

body.xmoto-theme-light .xmoto-page-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: var(--xmoto-phase2-hero-pad);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(251, 252, 255, .95) 100%);
    border: 1px solid var(--xmoto-border);
    border-radius: 22px;
    box-shadow: var(--xmoto-shadow-sm);
    overflow: hidden;
}

body.xmoto-theme-light .xmoto-page-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 210px;
    height: 140px;
    background: radial-gradient(circle at top left, rgba(242, 165, 26, .18), transparent 72%);
    pointer-events: none;
}

body.xmoto-theme-light .xmoto-page-hero > * {
    position: relative;
    z-index: 1;
}

body.xmoto-theme-light .xmoto-page-hero__content {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

body.xmoto-theme-light .xmoto-page-hero__eyebrow {
    font-size: .71rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--xmoto-brand-strong);
}

body.xmoto-theme-light .xmoto-page-hero__subtext,
body.xmoto-theme-light .xmoto-page-helper,
body.xmoto-theme-light .xmoto-page-subtle-note {
    color: var(--xmoto-muted);
}

body.xmoto-theme-light .xmoto-page-hero__subtext {
    max-width: 64ch;
    font-size: .92rem;
    line-height: 1.5;
}

body.xmoto-theme-light .xmoto-page-hero__actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

body.xmoto-theme-light .xmoto-page-subtle-note {
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%) !important;
    border-color: rgba(242, 165, 26, .14) !important;
}

body.xmoto-theme-light .xmoto-report-page .nfe-header {
    padding: var(--xmoto-phase2-hero-pad);
    margin-bottom: .85rem;
}

body.xmoto-theme-light .xmoto-report-page .nfe-header h2,
body.xmoto-theme-light .xmoto-tracking-page .route-perspective-header__title,
body.xmoto-theme-light .xmoto-order-entry-page h1,
body.xmoto-theme-light .xmoto-upload-page h2 {
    color: var(--xmoto-text-strong);
    font-weight: 800;
}

body.xmoto-theme-light .xmoto-toolbar-card {
    padding: 1rem 1rem .95rem;
    border-radius: 20px !important;
}

body.xmoto-theme-light .xmoto-toolbar-card .form-label {
    font-size: .68rem !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--xmoto-muted) !important;
}

body.xmoto-theme-light .xmoto-report-page .nfe-quick-filters,
body.xmoto-theme-light .xmoto-filter-pills {
    gap: .55rem !important;
}

body.xmoto-theme-light .xmoto-report-page .nfe-quick-filters .btn,
body.xmoto-theme-light .xmoto-filter-pills .btn {
    border-radius: 999px !important;
    padding-inline: .95rem;
    background: rgba(255,255,255,.94) !important;
}

body.xmoto-theme-light .xmoto-report-page .nfe-quick-filters .btn-primary,
body.xmoto-theme-light .xmoto-filter-pills .btn-primary {
    color: var(--xmoto-ink) !important;
}

body.xmoto-theme-light .xmoto-table-card {
    border-radius: 22px !important;
    border: 1px solid var(--xmoto-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    box-shadow: var(--xmoto-shadow-sm) !important;
}

body.xmoto-theme-light .xmoto-report-page .table-nfe {
    font-size: .88rem;
}

body.xmoto-theme-light .xmoto-report-page .table-nfe tbody td {
    padding-top: .78rem;
    padding-bottom: .78rem;
    border-color: #edf1f6;
}

body.xmoto-theme-light .xmoto-report-page .table-nfe thead tr.sticky-header th {
    padding-top: .9rem;
    padding-bottom: .9rem;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

body.xmoto-theme-light .xmoto-report-page .table-nfe thead tr.filters-row th {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,250,252,.98) 100%) !important;
    top: 47px;
    box-shadow: inset 0 -1px 0 #edf1f6;
}

body.xmoto-theme-light .xmoto-report-page .table-nfe thead tr.filters-row input,
body.xmoto-theme-light .xmoto-report-page .table-nfe thead tr.filters-row select {
    border-radius: 10px !important;
    background: #fff;
}

body.xmoto-theme-light .xmoto-report-page .nfe-summary .summary-card {
    position: relative;
    align-items: stretch;
    gap: .85rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
}

body.xmoto-theme-light .xmoto-report-page .nfe-summary .summary-card i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff7e4 0%, #fff2cf 100%);
    color: var(--xmoto-brand-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.xmoto-theme-light .xmoto-report-page .summary-label {
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .69rem;
    font-weight: 800;
    color: var(--xmoto-muted);
}

body.xmoto-theme-light .xmoto-report-page .summary-value {
    font-size: 1.03rem;
    color: var(--xmoto-ink);
}

body.xmoto-theme-light .xmoto-tracking-shell .card-header {
    padding: 1rem 1rem .8rem;
}

body.xmoto-theme-light .xmoto-tracking-page .route-perspective-header {
    gap: 1rem;
}

body.xmoto-theme-light .xmoto-tracking-page .route-perspective-toolbar__form {
    border-radius: 18px !important;
    padding: .9rem;
    border: 1px solid rgba(228, 233, 241, .9);
}

body.xmoto-theme-light .xmoto-tracking-page .route-perspective-toolbar__field label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--xmoto-muted);
}

body.xmoto-theme-light .xmoto-tracking-page .invoice-tracking-grid {
    gap: 1rem;
}

body.xmoto-theme-light .xmoto-order-entry-page,
body.xmoto-theme-light .xmoto-upload-page {
    display: grid;
    gap: 1rem;
}

body.xmoto-theme-light .xmoto-form-page-card {
    border-radius: 24px !important;
}

body.xmoto-theme-light .xmoto-form-page-card .card-body {
    padding: 1.35rem 1.35rem 1.2rem !important;
}

body.xmoto-theme-light .xmoto-form-page .form-label,
body.xmoto-theme-light .xmoto-order-entry-page .form-label,
body.xmoto-theme-light .xmoto-upload-page .form-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--xmoto-muted);
}

body.xmoto-theme-light .xmoto-order-entry-page .form-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .8rem;
    border: 1px solid var(--xmoto-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.xmoto-theme-light .xmoto-order-entry-page .tall-textarea,
body.xmoto-theme-light .xmoto-order-modal-form .tall-textarea {
    min-height: 160px;
    resize: vertical;
}

body.xmoto-theme-light .xmoto-order-entry-page .suggest-box,
body.xmoto-theme-light .xmoto-order-modal-form .suggest-box {
    margin-top: 6px;
    border-radius: 16px !important;
    border: 1px solid var(--xmoto-border) !important;
    box-shadow: var(--xmoto-shadow-md);
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    overflow: hidden;
}

body.xmoto-theme-light .xmoto-order-entry-page .suggest-item,
body.xmoto-theme-light .xmoto-order-modal-form .suggest-item {
    padding: .7rem .9rem;
    border-bottom: 1px solid #eef2f6;
}

body.xmoto-theme-light .xmoto-order-entry-page .suggest-item:last-child,
body.xmoto-theme-light .xmoto-order-modal-form .suggest-item:last-child {
    border-bottom: none;
}

body.xmoto-theme-light .xmoto-order-entry-page .suggest-item:hover,
body.xmoto-theme-light .xmoto-order-modal-form .suggest-item:hover {
    background: #fff7e7;
}

body.xmoto-theme-light .xmoto-upload-page .card .form-text {
    color: var(--xmoto-muted);
}

body.xmoto-theme-light .xmoto-order-modal-form {
    display: grid;
    gap: .95rem;
}

body.xmoto-theme-light .xmoto-order-modal-form__section {
    margin: 0;
    padding: .95rem 1rem 1rem;
    border: 1px solid #edf1f6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.xmoto-theme-light .xmoto-order-modal-form__section--primary {
    border-color: rgba(242, 165, 26, .22);
    background: linear-gradient(180deg, #fff9ee 0%, #ffffff 100%);
}

body.xmoto-theme-light .xmoto-order-modal-form hr {
    display: none;
}

body.xmoto-theme-light .xmoto-order-modal-form__actions {
    margin-top: .25rem !important;
}

body.xmoto-theme-light .xmoto-order-modal-form__actions .btn {
    min-width: 120px;
}

body.xmoto-theme-light .btn-outline-info,
body.xmoto-theme-light .btn.btn-outline-info {
    color: var(--xmoto-ink) !important;
    background: #fff !important;
    border-color: rgba(59, 130, 246, .22) !important;
}

body.xmoto-theme-light .btn-outline-info:hover,
body.xmoto-theme-light .btn.btn-outline-info:hover {
    background: #eff6ff !important;
    border-color: rgba(59, 130, 246, .38) !important;
    color: #1d4ed8 !important;
}

body.xmoto-theme-light .btn-secondary,
body.xmoto-theme-light .btn.btn-secondary {
    background: linear-gradient(180deg, #2e3744 0%, #202833 100%) !important;
    border-color: #1c232d !important;
    box-shadow: 0 12px 20px rgba(15, 23, 42, .16);
}

body.xmoto-theme-light .btn-secondary:hover,
body.xmoto-theme-light .btn.btn-secondary:hover {
    background: linear-gradient(180deg, #394452 0%, #262f3a 100%) !important;
}

@media (max-width: 1199.98px) {
    body.xmoto-theme-light .xmoto-report-page .nfe-summary .summary-item {
        min-width: calc(50% - .5rem);
    }
}

@media (max-width: 991.98px) {
    body.xmoto-theme-light .xmoto-page-hero,
    body.xmoto-theme-light .xmoto-report-page .nfe-header {
        flex-direction: column;
        align-items: stretch;
    }

    body.xmoto-theme-light .xmoto-page-hero__actions {
        justify-content: flex-start;
    }

    body.xmoto-theme-light .xmoto-report-page .nfe-summary .summary-item {
        min-width: 100%;
    }

    body.xmoto-theme-light .xmoto-order-modal-form__section {
        padding: .85rem;
    }
}

@media (max-width: 767.98px) {
    body.xmoto-theme-light .xmoto-report-page .nfe-header,
    body.xmoto-theme-light .xmoto-page-hero,
    body.xmoto-theme-light .xmoto-toolbar-card,
    body.xmoto-theme-light .xmoto-tracking-shell .card-header,
    body.xmoto-theme-light .xmoto-form-page-card .card-body {
        padding: .9rem !important;
    }

    body.xmoto-theme-light .xmoto-report-page .nfe-quick-filters .btn,
    body.xmoto-theme-light .xmoto-filter-pills .btn,
    body.xmoto-theme-light .xmoto-page-hero__actions .btn {
        width: 100%;
    }

    body.xmoto-theme-light .xmoto-report-page .table-nfe {
        font-size: .83rem;
    }
}
