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;
}

/* ——— Order view ——— */
.order-view-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

.order-view-hero .letter-spacing {
    letter-spacing: 0.08em;
}

.order-view-status-wrap .order-status-badge {
    font-size: 1rem;
    padding: 0.5em 0.85em;
}

.order-view-track {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    color: #1e293b;
}

.order-view-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.order-view-dl dt {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-view-dl dd {
    margin-bottom: 1rem;
    color: #0f172a;
}

.order-view-dl dd:last-child {
    margin-bottom: 0;
}

.order-view-dl.row dt {
    padding-top: 0.35rem;
}

.order-view-dl.row dd {
    margin-bottom: 0.75rem;
}

.order-view-empty {
    color: #94a3b8;
    font-style: normal;
}

.order-view-rx thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
}

.order-view-rx tbody td {
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.order-view-rx tbody tr:last-child td {
    border-bottom: 0;
}

.order-view-muted-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1 !important;
}

.order-view-remark {
    line-height: 1.6;
    color: #334155;
}

@media (max-width: 767.98px) {
    .order-view-hero .card-body {
        padding: 1.25rem !important;
    }
}

/* ——— Order index ——— */
.order-index-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

.order-index-eyebrow {
    letter-spacing: 0.08em;
}

.order-index-table-card .grid-view {
    border: 0;
}

.order-index-table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.order-index-table thead th a {
    color: #64748b;
}

.order-index-table tbody td {
    border-color: #f1f5f9;
    vertical-align: middle;
}

.order-index-table .filters td {
    background: #fafbfc;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.order-index-track {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    padding: 0.2rem 0.45rem;
    background: #f1f5f9;
    border-radius: 0.25rem;
    color: #334155;
    text-decoration: none;
}

.order-index-track:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.order-index-product {
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-status-badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.order-index-grid .btn + .btn {
    margin-left: 0.25rem;
}

@media (max-width: 767.98px) {
    .order-index-table-card {
        border-radius: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .order-index-table .ps-4,
    .order-index-table thead th.ps-4 {
        padding-left: 0.75rem !important;
    }

    .order-index-table .pe-4 {
        padding-right: 0.75rem !important;
    }
}