main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

:root {
    --orders-text: #173126;
    --orders-accent: #1f5a44;
    --orders-shadow: 0 1rem 2.5rem rgba(20, 40, 30, 0.14);
    --auth-bg: #f5f2ea;
    --auth-surface: #ffffff;
    --auth-surface-soft: #f7f5ef;
    --auth-text: #1f2a24;
    --auth-muted: #6d776f;
    --auth-accent: #2c6b4f;
    --auth-accent-deep: #204c39;
    --auth-border: #d9e0d8;
    --auth-border-strong: #c8d1c8;
    --auth-ring: rgba(44, 107, 79, 0.14);
    --auth-display-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    --auth-ui-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
    background:
        radial-gradient(circle at top left, rgba(212, 228, 214, 0.75), transparent 28%),
        linear-gradient(180deg, #f8f6f0 0%, #f2ede2 100%);
    color: var(--orders-text);
}

.page-main {
    padding-top: 88px;
}

.page-container {
    width: 100%;
}

.page-footer {
    position: relative;
    z-index: 2;
}

.orders-bootstrap-page,
.orders-shell {
    display: grid;
    gap: 1.5rem;
    padding: 0.5rem 0 2rem;
}

.orders-hero-card,
.orders-stat-card,
.accordion-item,
.card.shadow-sm,
.card.border-0.shadow-sm {
    box-shadow: var(--orders-shadow) !important;
}

.card {
    box-shadow: 0 1rem 2.5rem rgba(20, 40, 30, 0.12);
}

.orders-hero-card {
    background: linear-gradient(135deg, rgba(27, 87, 64, 0.98), rgba(62, 112, 87, 0.92));
}

.orders-overline {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--orders-accent);
}

.orders-hero-card .orders-overline {
    color: rgba(255, 255, 255, 0.72);
}

.orders-hero-copy {
    max-width: 52rem;
    color: rgba(255, 255, 255, 0.82);
}

.orders-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.orders-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    opacity: 0.95;
}

.orders-stat-card-forest::before { background: #2b6b53; }
.orders-stat-card-moss::before { background: #7a8f57; }
.orders-stat-card-sand::before { background: #b9844f; }
.orders-stat-card-night::before { background: #35516f; }

.orders-stat-value {
    display: block;
    font-size: clamp(1.65rem, 2vw, 2.35rem);
    line-height: 1;
    color: var(--orders-text);
}

.orders-grid-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(31, 90, 68, 0.04);
}

.orders-grid-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6c757d;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.orders-grid-table tbody td {
    vertical-align: middle;
}

.orders-grid-stack {
    display: grid;
    gap: 0.26rem;
}

.orders-grid-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--orders-text);
}

.orders-actions-cell {
    min-width: 220px;
}

.orders-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    font-size: 0.94rem;
}

.orders-pager .pagination {
    margin: 0;
    gap: 0.35rem;
}

@media (max-width: 1199px) {
    .sticky-xl-top {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 767px) {
    .orders-table-footer {
        flex-direction: column;
        align-items: start;
    }

    .orders-grid-table thead {
        display: none;
    }

    .orders-grid-table,
    .orders-grid-table tbody,
    .orders-grid-table tr,
    .orders-grid-table td {
        display: block;
        width: 100%;
    }

    .orders-grid-table tr {
        margin-bottom: 0.85rem;
        border: 1px solid rgba(31, 90, 68, 0.12);
        border-radius: 22px;
        background: rgba(255, 250, 241, 0.9);
        overflow: hidden;
    }

    .orders-grid-table tbody td {
        border-top: 0;
        padding: 0.85rem 1rem;
    }
}

.auth-page {
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: var(--auth-ui-font);
}

.auth-navbar {
    background: #23332b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-main {
    display: flex;
    align-items: stretch;
    padding-top: 84px;
    padding-bottom: 24px;
}

.auth-container {
    position: relative;
    display: flex;
    flex: 1;
    align-items: stretch;
    padding: 0 18px 24px;
}

.auth-container .alert {
    position: absolute;
    top: 102px;
    left: 50%;
    z-index: 5;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%);
    box-shadow: none;
}

.auth-footer {
    background: transparent !important;
    padding-top: 0 !important;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 460px);
    width: min(1120px, 100%);
    min-height: calc(100vh - 132px);
    margin: 0 auto;
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    background: var(--auth-surface);
    overflow: hidden;
    box-shadow: none;
}

.auth-showcase,
.auth-panel {
    min-width: 0;
}

.auth-showcase {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--auth-surface-soft);
    border-right: 1px solid var(--auth-border);
    color: var(--auth-text);
}

.auth-showcase-inner {
    max-width: 580px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--auth-accent);
    box-shadow: none;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-title {
    margin: 0;
    font-family: var(--auth-display-font);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    max-width: 30rem;
    margin: 1rem 0 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--auth-muted);
}

.auth-feature-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--auth-text);
}

.auth-feature-list li::before {
    content: "";
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 0;
    background: var(--auth-accent);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--auth-surface);
}

.auth-panel-inner {
    width: min(100%, 420px);
    padding: 0;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-surface-soft);
    color: var(--auth-accent);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form-title {
    margin: 1.25rem 0 0;
    font-family: var(--auth-display-font);
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--auth-text);
}

.auth-form-subtitle {
    margin: 0.7rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--auth-muted);
}

.auth-form {
    margin-top: 1.75rem;
}

.auth-field {
    margin-bottom: 0.9rem;
}

.auth-label {
    margin-bottom: 0.42rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    min-height: 52px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--auth-border-strong);
    border-radius: 12px;
    background: var(--auth-surface);
    color: var(--auth-text);
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input::placeholder {
    color: rgba(95, 111, 103, 0.7);
}

.auth-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 0.22rem var(--auth-ring);
    color: var(--auth-text);
}

.auth-error,
.auth-error-inline {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: #b73b3b;
}

.auth-hint {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: var(--auth-muted);
}

.auth-field-checkbox {
    margin-top: 1rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-check .form-check-input {
    float: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border-color: var(--auth-border-strong);
    border-radius: 4px;
    box-shadow: none;
}

.auth-check .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-check-label {
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.auth-actions {
    margin-top: 1.35rem;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: background-color 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    background: var(--auth-accent-deep);
}

.auth-note {
    margin: 0.8rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

.auth-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
    font-size: 0.92rem;
    color: var(--auth-muted);
}

.auth-secondary-link {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus {
    color: var(--auth-accent-deep);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 16px;
    }

    .auth-showcase {
        border-right: 0;
        border-bottom: 1px solid var(--auth-border);
        min-height: auto;
    }

    .auth-panel {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .auth-main {
        padding-top: 78px;
        padding-bottom: 18px;
    }

    .auth-container {
        padding: 0 12px 18px;
    }

    .auth-shell {
        border-radius: 12px;
    }

    .auth-showcase,
    .auth-panel {
        padding: 1.25rem;
    }

    .auth-brand {
        margin-bottom: 1.75rem;
    }

    .auth-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .auth-panel-inner {
        width: 100%;
        padding: 0;
    }

    .auth-container .alert {
        top: 90px;
    }
}
