:root {
    --olypen-blue: #0057a8;
    --olypen-blue-dark: #003f7d;
    --olypen-blue-soft: #e8f2ff;
    --app-bg: #f3f6fa;
    --app-panel: #ffffff;
    --app-border: #d9e2ec;
    --app-text: #17212f;
    --app-muted: #64748b;
    --app-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --app-shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
}

* {
    box-sizing: border-box;
}

body.app-body {
    background:
        radial-gradient(circle at top left, rgba(0, 87, 168, .08), transparent 32rem),
        var(--app-bg);
    color: var(--app-text);
    min-height: 100vh;
}

body.login-body {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(0, 87, 168, .1), transparent 30rem),
        var(--app-bg);
    color: var(--app-text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.app-container {
    margin: 0 auto;
    max-width: 1360px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.login-shell {
    width: min(100%, 28rem);
}

.login-card {
    background: var(--app-panel);
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 18px;
    box-shadow: var(--app-shadow);
    padding: 1.5rem;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: .85rem;
    margin-bottom: 1.35rem;
}

.login-brand img {
    display: block;
    height: 40px;
    width: auto;
}

.login-brand .dashboard-kicker {
    color: #7b8da3;
    font-size: .7rem;
    font-weight: 740;
    margin-bottom: .22rem;
}

.login-brand h1 {
    font-size: 1.9rem;
    font-weight: 860;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.login-form {
    display: grid;
    gap: .85rem;
}

.login-form .form-label {
    margin-bottom: -.35rem;
}

.login-submit {
    margin-top: .25rem;
    width: 100%;
}

.login-error {
    background: #fff1f1;
    border: 1px solid rgba(185, 28, 28, .22);
    border-radius: 12px;
    color: #991b1b;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
}

.login-footer {
    color: #8794a6;
    margin: 1rem auto 0;
    max-width: 24rem;
    text-align: center;
}

.login-footer p {
    font-size: .75rem;
    line-height: 1.5;
    margin: 0 0 .45rem;
}

.login-footer a {
    color: inherit;
}

.app-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-header-inner {
    align-items: center;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: auto minmax(20rem, 1fr) auto;
    padding-bottom: .78rem;
    padding-top: .78rem;
}

.app-brand {
    align-items: center;
    color: var(--app-text);
    display: inline-flex;
    gap: .8rem;
    min-height: 3rem;
    text-decoration: none;
}

.app-brand:hover {
    color: var(--app-text);
}

.app-brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

.app-brand-text {
    border-left: 1px solid var(--app-border);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0;
    padding-left: .85rem;
    white-space: nowrap;
}

.app-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.app-nav-link {
    border-radius: 999px;
    color: #334155;
    font-size: .94rem;
    font-weight: 650;
    padding: .48rem .8rem;
    transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
    text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    background: var(--olypen-blue-soft);
    color: var(--olypen-blue-dark);
}

.app-nav-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(0, 87, 168, .18);
}

.app-header-tools {
    align-items: center;
    display: flex;
    gap: .85rem;
    justify-content: flex-end;
}

.app-order-search .form-control {
    background: #f9fbfd;
    border-color: #cbd5e1;
    border-radius: 999px;
    font-size: .84rem;
    max-width: 8.5rem;
    min-height: 2.25rem;
    min-width: 8.5rem;
    padding-left: .85rem;
}

.app-order-search .form-control:focus {
    background: #fff;
    border-color: rgba(0, 87, 168, .55);
    box-shadow: 0 0 0 .18rem rgba(0, 87, 168, .12);
}

.app-user {
    border-left: 1px solid var(--app-border);
    line-height: 1.2;
    padding-left: .85rem;
    text-align: right;
}

.app-user-name {
    color: var(--app-text);
    font-size: .9rem;
    font-weight: 700;
}

.app-user-name span,
.app-user-meta {
    color: var(--app-muted);
    font-weight: 500;
}

.app-user-meta {
    font-size: .75rem;
    margin-top: .18rem;
}

.app-logout {
    color: var(--olypen-blue);
    font-weight: 650;
    text-decoration: none;
}

.app-main {
    padding-bottom: 2.5rem;
    padding-top: 1.35rem;
}

.app-card {
    background: var(--app-panel);
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 18px;
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

.app-card-header {
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    padding: 1.15rem 1.25rem;
}

.app-card-body {
    padding: 1.25rem;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.page-header h1 {
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.page-subtitle {
    color: var(--app-muted);
    font-size: .98rem;
    margin-top: .35rem;
}

.queue-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .42rem;
}

.metric-pill {
    align-items: center;
    background: #eef4fb;
    border: 1px solid rgba(100, 116, 139, .16);
    border-radius: 999px;
    color: #40546b;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    min-height: 1.75rem;
    padding: .35rem .7rem;
}

.metric-pill-warning {
    background: #fff4d6;
    border-color: rgba(180, 83, 9, .2);
    color: #7c3d00;
}

.metric-pill-danger {
    background: #ffe8e8;
    border-color: rgba(185, 28, 28, .2);
    color: #991b1b;
}

.page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.app-filter-card {
    margin-bottom: 1rem;
    margin-top: .2rem;
}

.queue-filter-form {
    row-gap: 1rem;
}

.queue-filter-form .btn {
    min-height: 3rem;
}

.search-primary-card {
    border-color: rgba(0, 87, 168, .2);
    box-shadow: 0 18px 46px rgba(0, 87, 168, .1);
    margin-bottom: 1.75rem;
}

.search-primary-card .app-card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.search-primary-form {
    row-gap: 1.25rem;
}

.search-primary-card .app-card-body {
    padding-bottom: 1.45rem;
    padding-top: 1.45rem;
}

.search-primary-submit {
    align-self: end;
}

.search-primary-form .btn,
.search-time-form .btn {
    min-height: 3rem;
}

.search-section-heading {
    margin: .35rem 0 1rem;
}

.search-section-heading h2 {
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0;
}

.search-section-heading > div {
    color: var(--app-muted);
    font-size: .9rem;
    margin-top: .25rem;
}

.search-tools-grid {
    align-items: stretch;
}

.search-secondary-card {
    box-shadow: var(--app-shadow-soft);
}

.search-secondary-card .dashboard-card-header h2 {
    font-size: 1.05rem;
}

.search-time-form {
    row-gap: 1rem;
}

.create-order-grid {
    margin-top: .2rem;
}

.create-step-card {
    display: flex;
    flex-direction: column;
}

.create-step-card .app-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-bottom: 1.35rem;
}

.create-form-grid {
    row-gap: 1.15rem;
}

.step-eyebrow {
    color: #7a8ba0;
    display: block;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .08em;
    margin-bottom: .3rem;
    text-transform: uppercase;
}

.create-remarks-field {
    border-top: 1px solid rgba(148, 163, 184, .18);
    margin-top: .1rem;
    padding-top: 1rem;
}

.create-description-field textarea.form-control {
    min-height: 8.75rem;
    resize: vertical;
}

.create-service-card input:disabled {
    background: #f1f5f9;
    border-color: #d5dee9;
    color: #64748b;
    cursor: not-allowed;
    font-weight: 650;
}

.create-submit-row {
    border-top: 1px solid rgba(148, 163, 184, .18);
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1.25rem;
}

.edit-order-actions {
    align-items: center;
    gap: .55rem;
}

.edit-order-actions .btn {
    min-height: 2.65rem;
}

.edit-order-actions .btn-primary {
    min-width: 6.75rem;
}

.edit-cancel-action {
    color: #64748b;
    font-weight: 750;
    min-height: 2.65rem;
    text-decoration: none;
}

.edit-cancel-action:hover {
    color: var(--olypen-blue-dark);
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.edit-order-form .dashboard-kicker {
    color: #7b8da3;
    font-weight: 750;
}

.edit-order-form .page-header {
    margin-bottom: 1.3rem;
}

.edit-order-grid {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1.35rem;
}

.edit-workflow-card {
    box-shadow: var(--app-shadow-soft);
}

.edit-workflow-card .app-card-header {
    background: #fbfdff;
}

.edit-workflow-card .step-eyebrow {
    margin-bottom: .4rem;
}

.edit-order-card {
    border-color: rgba(0, 87, 168, .18);
    box-shadow: 0 14px 32px rgba(0, 87, 168, .07);
}

.edit-order-card .app-card-body {
    padding-bottom: 1.4rem;
    padding-top: 1.4rem;
}

.edit-order-fields {
    row-gap: 1.15rem;
}

.edit-order-form .form-check {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 10px;
    display: flex;
    gap: .5rem;
    min-height: 3rem;
    padding: .62rem .8rem;
}

.edit-order-form .form-check-input {
    margin-left: 0;
    margin-top: 0;
}

.edit-remarks-card .app-card-body {
    padding-bottom: 1.4rem;
}

.edit-description-field {
    border-top: 1px solid rgba(148, 163, 184, .18);
    margin-top: .1rem;
    padding-top: 1rem;
}

.edit-description-field textarea.form-control {
    min-height: 8.75rem;
    resize: vertical;
}

.dashboard-hero {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.dashboard-kicker {
    color: var(--olypen-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 .28rem;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.dashboard-hero p:last-child {
    color: var(--app-muted);
    font-size: 1rem;
    margin: .48rem 0 0;
}

.dashboard-grid {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 29rem);
}

.dashboard-breakdown {
    min-width: 0;
}

.dashboard-sidebar {
    display: grid;
    gap: 1.25rem;
}

.dashboard-card-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-card-header h2 {
    color: #0f172a;
    font-size: 1.16rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-card-header p {
    color: #52657a;
    font-size: .92rem;
    font-weight: 500;
    margin: .25rem 0 0;
}

.status-count-pill,
.flag-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 750;
    justify-content: center;
    line-height: 1;
    min-height: 1.65rem;
    padding: .38rem .65rem;
    white-space: nowrap;
}

.status-count-pill {
    background: var(--olypen-blue-soft);
    color: var(--olypen-blue-dark);
}

.flag-pill {
    background: #fff3cd;
    color: #8a5a00;
    min-width: 2rem;
}

.flag-pill-hot {
    background: #ffe3a3;
    box-shadow: 0 0 0 1px rgba(180, 83, 9, .2), 0 6px 16px rgba(180, 83, 9, .12);
    color: #7c3d00;
}

.flag-pill-empty {
    background: #eef2f7;
    color: var(--app-muted);
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    font-size: 1rem;
}

.dashboard-table thead th {
    background: #f6f9fc;
    border-bottom: 1px solid var(--app-border);
    color: #243449;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .9rem 1.35rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    border-color: #edf2f7;
    padding: 1rem 1.35rem;
    vertical-align: middle;
    white-space: nowrap;
}

.dashboard-table tbody tr:hover {
    background: #f6faff;
}

.app-table {
    font-size: .95rem;
}

.app-table thead th {
    background: #f6f9fc;
    border-bottom: 1px solid var(--app-border);
    color: #243449;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .85rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table tbody td {
    border-color: #edf2f7;
    padding: .9rem 1rem;
    vertical-align: middle;
}

.app-table tbody tr:hover {
    background: #f6faff;
}

.queue-table tbody tr:nth-child(even):not(.is-past-due):not(.is-due-today) {
    background: #fbfdff;
}

.queue-table tbody tr:nth-child(even):not(.is-past-due):not(.is-due-today):hover,
.queue-table tbody tr:hover {
    background: #f3f8ff;
}

.queue-table tbody tr {
    transition: background-color .12s ease, box-shadow .12s ease;
}

.queue-table tbody tr.is-past-due {
    background: #fff3f3;
    box-shadow: inset 4px 0 0 #c92a2a;
}

.queue-table tbody tr.is-past-due:hover {
    background: #ffebeb;
    box-shadow: inset 4px 0 0 #b91c1c;
}

.queue-table tbody tr.is-due-today {
    background: #f5f9ff;
    box-shadow: inset 4px 0 0 var(--olypen-blue);
}

.queue-table tbody tr.is-due-today:hover {
    background: #eef6ff;
}

.queue-table .queue-id,
.queue-table .queue-date {
    white-space: nowrap;
}

.queue-table .queue-id a {
    color: #083b70;
    font-size: 1rem;
    font-weight: 850;
    text-decoration: none;
    text-underline-offset: .18rem;
}

.queue-table .queue-id a:hover {
    color: var(--olypen-blue-dark);
    text-decoration: underline;
}

.queue-flag-pill {
    align-items: center;
    background: #ffe3a3;
    border: 1px solid rgba(180, 83, 9, .24);
    border-radius: 999px;
    color: #7c3d00;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .02em;
    min-height: 1.55rem;
    padding: .25rem .58rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table a {
    color: var(--olypen-blue-dark);
    font-weight: 750;
    text-decoration: none;
}

.app-table a:hover {
    color: var(--olypen-blue);
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.admin-create-card {
    border-color: rgba(0, 87, 168, .18);
    box-shadow: 0 14px 34px rgba(0, 87, 168, .08);
}

.admin-create-card .app-card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-create-actions {
    align-self: end;
}

.admin-create-actions-inner {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    min-height: 3rem;
}

.admin-create-actions-inner .form-check {
    align-items: center;
    display: flex;
    gap: .45rem;
    min-height: 3rem;
}

.admin-create-actions-inner .form-check-input {
    margin-top: 0;
}

.admin-users-table tbody tr {
    transition: background-color .12s ease;
}

.admin-users-table tbody tr:hover {
    background: #f6faff;
}

.admin-users-table .admin-user-id a {
    color: #083b70;
    font-size: 1rem;
    font-weight: 850;
    text-decoration: none;
    text-underline-offset: .18rem;
}

.admin-users-table .admin-user-id a:hover {
    color: var(--olypen-blue-dark);
    text-decoration: underline;
}

.admin-user-detail-form input:disabled,
.admin-user-detail-form input[readonly] {
    background: #f1f5f9;
    border-color: #d5dee9;
    color: #64748b;
    cursor: not-allowed;
    font-weight: 650;
}

.admin-user-detail-form > .row {
    row-gap: .35rem;
}

.admin-user-detail-form > .row > [class*="col-"] {
    border-bottom: 1px solid rgba(226, 232, 240, .72);
    padding-bottom: .85rem;
}

.admin-user-detail-form .form-label {
    color: #64748b;
    font-weight: 760;
}

.admin-user-detail-form .form-control:not(:disabled),
.admin-user-detail-form .form-select {
    color: #172033;
    font-weight: 650;
}

.admin-password-control .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.admin-password-control .btn {
    border-color: #cbd5e1;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    color: #31516f;
    font-weight: 750;
    min-height: 3rem;
    min-width: 4.25rem;
}

.admin-password-control .btn:hover {
    background: #edf6ff;
    border-color: rgba(0, 87, 168, .35);
    color: var(--olypen-blue-dark);
}

.admin-permissions-section {
    border-top: 1px solid rgba(148, 163, 184, .22);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.section-eyebrow {
    color: #52647a;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .07em;
    margin-bottom: .85rem;
    text-transform: uppercase;
}

.admin-permissions-section .form-check {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    display: flex;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .55rem .75rem;
}

.admin-permissions-section .form-check-input {
    margin-left: 0;
    margin-top: 0;
}

.admin-detail-actions {
    border-top: 1px solid rgba(148, 163, 184, .22);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.admin-danger-zone {
    border-top: 1px solid rgba(220, 38, 38, .18);
    margin-top: 1.35rem;
    padding-top: 1.25rem;
}

.admin-danger-zone .btn-outline-danger {
    border-color: rgba(220, 38, 38, .55);
    color: #b42318;
    font-weight: 700;
    min-height: 2.45rem;
}

.admin-danger-zone .btn-outline-danger:hover {
    background: #fff1f1;
    border-color: rgba(185, 28, 28, .7);
    color: #991b1b;
}

.status-link {
    align-items: center;
    background: #f1f7ff;
    border: 1px solid rgba(0, 87, 168, .16);
    border-radius: 999px;
    color: var(--olypen-blue-dark);
    display: inline-flex;
    font-size: .92rem;
    font-weight: 760;
    min-height: 1.85rem;
    padding: .3rem .72rem;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.status-link:hover {
    background: #e3f0ff;
    border-color: rgba(0, 87, 168, .35);
    box-shadow: 0 8px 18px rgba(0, 87, 168, .08);
    color: var(--olypen-blue-dark);
    text-decoration: none;
}

.order-count {
    color: var(--app-text);
    font-size: 1.05rem;
    font-weight: 760;
}

.dashboard-form {
    display: grid;
    gap: 1.05rem;
}

.dashboard-form .form-label,
.dashboard-inline-form .form-label,
.app-form .form-label {
    color: #475569;
    font-size: .82rem;
    font-weight: 750;
    margin-bottom: .35rem;
}

.dashboard-form .form-select,
.dashboard-inline-form .form-control,
.app-form .form-control,
.app-form .form-select {
    border-color: #cbd5e1;
    border-radius: 12px;
    min-height: 3rem;
}

.app-form textarea.form-control {
    min-height: auto;
}

.app-form .form-control:focus,
.app-form .form-select:focus {
    border-color: rgba(0, 87, 168, .55);
    box-shadow: 0 0 0 .18rem rgba(0, 87, 168, .12);
}

.btn-primary {
    background: var(--olypen-blue);
    border-color: var(--olypen-blue);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 87, 168, .14);
    font-weight: 800;
    min-height: 3rem;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn-primary:hover {
    background: var(--olypen-blue-dark);
    border-color: var(--olypen-blue-dark);
    box-shadow: 0 10px 24px rgba(0, 87, 168, .2);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--olypen-blue);
    border-radius: 12px;
    color: var(--olypen-blue);
    font-weight: 750;
}

.btn-outline-primary:hover {
    background: var(--olypen-blue);
    border-color: var(--olypen-blue);
}

.dashboard-inline-form {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) 6.5rem;
}

.modem-link {
    color: var(--olypen-blue);
    display: inline-block;
    font-weight: 700;
    margin-top: 1rem;
    text-decoration: none;
}

.modem-link:hover {
    color: var(--olypen-blue-dark);
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.orders-table td,
.orders-table th {
    white-space: nowrap;
}

.order-detail-actions {
    align-items: center;
    gap: .55rem;
}

.order-detail-actions form {
    margin: 0;
}

.order-detail-actions .btn {
    min-height: 2.45rem;
}

.order-primary-action {
    box-shadow: 0 8px 18px rgba(0, 87, 168, .14);
    font-weight: 850;
}

.order-detail-grid {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1.35rem;
}

.order-priority-card {
    border-color: rgba(0, 87, 168, .2);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.order-priority-card .app-card-header {
    background: #f8fbff;
}

.order-secondary-card {
    box-shadow: var(--app-shadow-soft);
}

.order-secondary-card .app-card-header h2,
.order-notes-card .app-card-header h2 {
    font-size: 1.05rem;
}

.detail-grid dl {
    row-gap: 0;
}

.detail-grid dt {
    color: #64748b;
    font-size: .86rem;
    font-weight: 780;
}

.detail-grid dd {
    color: var(--app-text);
    font-weight: 650;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.order-detail-grid dl.row {
    align-items: baseline;
}

.order-detail-grid dt,
.order-detail-grid dd {
    padding-bottom: .55rem;
    padding-top: .55rem;
}

.order-detail-grid dt:not(:first-of-type),
.order-detail-grid dd:not(:first-of-type) {
    border-top: 1px solid rgba(226, 232, 240, .72);
}

.order-notes-card .app-card-body {
    padding: 1.4rem;
}

.order-note-form {
    background: #f8fbff;
    border: 1px solid rgba(0, 87, 168, .12);
    border-radius: 14px;
    margin-bottom: 1.15rem;
    padding: 1rem;
}

.order-note-form textarea.form-control {
    margin-bottom: .75rem !important;
    min-height: 6.25rem;
    resize: vertical;
}

.order-note-form .btn {
    min-width: 7.5rem;
}

.order-note {
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    line-height: 1.5;
    margin-bottom: .85rem;
    padding-bottom: .85rem;
}

.order-note:last-of-type {
    margin-bottom: 0;
}

.app-footer {
    background: transparent;
    border-top: 1px solid rgba(148, 163, 184, .24);
    color: #8794a6;
    padding: 1.5rem 0 2rem;
}

.app-footer p {
    font-size: .78rem;
    line-height: 1.55;
    max-width: 780px;
}

@media (max-width: 1100px) {
    .app-header-inner {
        grid-template-columns: 1fr;
    }

    .app-nav,
    .app-header-tools {
        justify-content: flex-start;
    }

    .app-user {
        text-align: left;
    }

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

@media (max-width: 700px) {
    .app-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-header {
        position: static;
    }

    .app-header-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .app-order-search .form-control,
    .app-order-search {
        max-width: none;
        width: 100%;
    }

    .app-user {
        border-left: 0;
        border-top: 1px solid var(--app-border);
        padding-left: 0;
        padding-top: .75rem;
    }

    .app-brand-logo {
        height: 36px;
    }

    .app-brand-text {
        font-size: .95rem;
    }

    .app-nav-link {
        padding: .45rem .65rem;
    }

    .dashboard-hero {
        margin-bottom: 1rem;
    }

    .dashboard-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-actions {
        justify-content: flex-start;
        width: 100%;
    }

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

    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding: .9rem 1rem;
    }

    .admin-create-actions-inner {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
    }

    .admin-create-actions-inner .form-check {
        justify-content: flex-start;
        min-height: auto;
    }

    .admin-create-actions-inner .btn {
        width: 100%;
    }

    .admin-detail-actions,
    .admin-danger-zone {
        text-align: left;
    }

    .admin-detail-actions .btn,
    .admin-danger-zone .btn {
        width: 100%;
    }

    .edit-order-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-order-actions .btn,
    .edit-order-actions .edit-cancel-action {
        width: 100%;
    }
}
