@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans Arabic";
    src: url("fonts/NotoSansArabic-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ht-brand-coral: #e9724c;
    --ht-brand-coral-rgb: 233, 114, 76;
    --ht-primary: #b94f32;
    --ht-primary-rgb: 185, 79, 50;
    --ht-primary-dark: #9e412a;
    --ht-primary-subtle: #fce1d8;
    --ht-primary-very-subtle: #fff1ea;
    --ht-accent: #f4b183;
    --ht-background: #faf6f1;
    --ht-surface: #ffffff;
    --ht-surface-secondary: #f7f2ed;
    --ht-border: #e8ddd6;
    --ht-border-strong: #9c8e86;
    --ht-text: #24313a;
    --ht-text-secondary: #66707a;
    --ht-text-muted: #69727a;
    --ht-success: #246b43;
    --ht-success-rgb: 36, 107, 67;
    --ht-success-soft: #e2f1e8;
    --ht-warning: #c66b16;
    --ht-warning-rgb: 198, 107, 22;
    --ht-warning-foreground: #8a470f;
    --ht-warning-soft: #fae9d4;
    --ht-error: #a83939;
    --ht-error-rgb: 168, 57, 57;
    --ht-error-soft: #f8dede;
    --ht-info: #315e91;
    --ht-info-rgb: 49, 94, 145;
    --ht-info-soft: #e2eaf4;
    --ht-sidebar: #24313a;
    --ht-sidebar-dark: #1d2830;
    --ht-sidebar-hover: #303f49;
    --ht-sidebar-active: #3a4650;
    --ht-sidebar-text: #f5f7f8;
    --ht-sidebar-muted: #bcc5ca;
    --ht-radius-control: 0.5rem;
    --ht-radius-surface: 0.75rem;
    --ht-shadow-raised: 0 0.5rem 1.5rem rgba(36, 49, 58, 0.08);
    --bs-primary: var(--ht-primary);
    --bs-primary-rgb: var(--ht-primary-rgb);
    --bs-danger: var(--ht-error);
    --bs-danger-rgb: var(--ht-error-rgb);
    --bs-warning: var(--ht-warning);
    --bs-warning-rgb: var(--ht-warning-rgb);
    --bs-success: var(--ht-success);
    --bs-success-rgb: var(--ht-success-rgb);
    --bs-info: var(--ht-info);
    --bs-info-rgb: var(--ht-info-rgb);
    --bs-body-color: var(--ht-text);
    --bs-body-bg: var(--ht-background);
    --bs-border-color: var(--ht-border);
    --bs-border-radius: var(--ht-radius-control);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--ht-background);
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Inter", "Noto Sans Arabic", sans-serif;
    font-variant-numeric: tabular-nums;
    background: var(--ht-background);
    color: var(--ht-text);
}

body {
    line-height: 1.55;
}

a,
.btn-link {
    color: var(--ht-primary);
}

a:hover,
.btn-link:hover {
    color: var(--ht-primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

.admin-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

.content {
    width: 100%;
    max-width: 100rem;
    margin-inline: auto;
    padding: 1.75rem clamp(1rem, 2.5vw, 2.5rem) 4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ht-text);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.55rem, 2vw, 2rem);
}

h1:focus {
    outline: none;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-heading h1 {
    margin-bottom: 0.25rem;
}

.page-heading p {
    max-width: 48rem;
    margin: 0;
    color: var(--ht-text-secondary);
}

.page-kicker {
    margin-bottom: 0.25rem;
    color: var(--ht-primary);
    font-size: 0.78rem;
    font-weight: 750;
}

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

.section-heading {
    margin: 2rem 0 0.85rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.section-heading p {
    margin: 0.2rem 0 0;
    color: var(--ht-text-secondary);
}

.card {
    overflow: hidden;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
    box-shadow: none;
}

.card-header,
.card-footer {
    border-color: var(--ht-border);
    background: var(--ht-surface-secondary);
}

.metric {
    min-height: 7.25rem;
}

.metric-value {
    color: var(--ht-primary-dark);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 750;
    line-height: 1.2;
}

.metric-caption {
    color: var(--ht-text-secondary);
    font-size: 0.88rem;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: minmax(16rem, 1.25fr) minmax(16rem, 0.75fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.dashboard-primary {
    display: flex;
    min-height: 11rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--ht-radius-surface);
    border-inline-start: 0.3rem solid var(--ht-brand-coral);
    background: var(--ht-sidebar);
    color: #fff;
}

.dashboard-primary h2,
.dashboard-primary .metric-value {
    color: #fff;
}

.dashboard-primary h2 {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-primary p {
    max-width: 34rem;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.dashboard-primary .metric-value {
    font-size: clamp(2.3rem, 6vw, 4rem);
}

.dashboard-primary-link {
    color: inherit;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.dashboard-primary-link:hover,
.dashboard-primary-link:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 0 0.2rem rgba(var(--ht-brand-coral-rgb), 0.2);
}

.dashboard-primary-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.dashboard-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-secondary .metric {
    min-height: 0;
    padding: 1rem;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.85rem;
}

.operation-card {
    display: flex;
    min-height: 8.25rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease;
}

.operation-card:hover,
.operation-card:focus-visible {
    border-color: var(--ht-primary);
    color: inherit;
    transform: translateY(-1px);
}

.operation-card.is-warning {
    border-inline-start: 0.25rem solid var(--ht-warning);
}

.operation-card.is-error {
    border-inline-start: 0.25rem solid var(--ht-error);
}

.operation-card.is-info {
    border-inline-start: 0.25rem solid var(--ht-info);
}

.operation-card strong {
    display: block;
    font-size: 1rem;
}

.operation-card .admin-icon {
    color: var(--ht-primary);
}

.operation-card.is-warning .admin-icon {
    color: var(--ht-warning-foreground);
}

.operation-card.is-error .admin-icon {
    color: var(--ht-error);
}

.operation-card.is-info .admin-icon {
    color: var(--ht-info);
}

.operation-value {
    color: var(--ht-text);
    font-size: 1.75rem;
    font-weight: 750;
}

.table-responsive {
    overflow: auto;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
}

.table {
    min-width: 48rem;
    margin-bottom: 0;
    color: var(--ht-text);
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.85rem;
    border-bottom-color: var(--ht-border);
}

.table thead th {
    white-space: nowrap;
    border-bottom-width: 1px;
    background: var(--ht-surface-secondary);
    color: var(--ht-text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.table-primary-cell {
    min-width: 11rem;
}

.table-secondary {
    color: var(--ht-text-secondary);
    font-size: 0.82rem;
}

.table-action {
    text-align: end;
}

.table tbody tr:last-child > * {
    border-bottom: 0;
}

.table tbody tr:hover > * {
    background: var(--ht-primary-very-subtle);
}

.order-mobile-card dt,
.order-mobile-card dd {
    margin-bottom: 0;
}

.order-mobile-card dt {
    color: var(--ht-text-secondary);
    font-weight: 600;
}

.status,
.status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(var(--ht-primary-rgb), 0.28);
    border-radius: 999px;
    background: var(--ht-primary-subtle);
    color: var(--ht-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.status-success {
    border-color: rgba(var(--ht-success-rgb), 0.32);
    background: var(--ht-success-soft);
    color: var(--ht-success);
}

.status-warning {
    border-color: rgba(var(--ht-warning-rgb), 0.34);
    background: var(--ht-warning-soft);
    color: var(--ht-warning-foreground);
}

.status-error {
    border-color: rgba(var(--ht-error-rgb), 0.32);
    background: var(--ht-error-soft);
    color: var(--ht-error);
}

.status-info {
    border-color: rgba(var(--ht-info-rgb), 0.32);
    background: var(--ht-info-soft);
    color: var(--ht-info);
}

.status-neutral {
    border-color: var(--ht-border);
    background: var(--ht-surface-secondary);
    color: var(--ht-text-secondary);
}

.status-badge .admin-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.reference,
.money,
time,
[dir="ltr"] {
    font-family: "Inter", "Noto Sans Arabic", sans-serif;
    font-variant-numeric: tabular-nums;
}

.reference {
    color: var(--ht-text-secondary);
    font-size: 0.82rem;
}

.money {
    white-space: nowrap;
    font-weight: 700;
}

.empty-state,
.error-state,
.loading-state {
    padding: 2rem;
    border: 1px dashed var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
    color: var(--ht-text-secondary);
    text-align: center;
}

.error-state {
    border-color: rgba(var(--ht-error-rgb), 0.35);
    color: var(--ht-error);
}

.admin-state {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem;
    border: 1px dashed var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
    color: var(--ht-text-secondary);
    text-align: start;
}

.admin-state strong {
    display: block;
    color: var(--ht-text);
}

.admin-state p {
    max-width: 36rem;
    margin: 0.2rem 0 0;
}

.admin-state-error {
    border-color: rgba(var(--ht-error-rgb), 0.35);
}

.admin-state-error strong,
.admin-state-error .admin-state-icon {
    color: var(--ht-error);
}

.admin-state-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--ht-surface-secondary);
    color: var(--ht-primary);
}

.admin-state-action {
    margin-top: 0.75rem;
}

.filter-panel {
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
}

.filter-panel .form-control,
.filter-panel .form-select,
.filter-panel .btn {
    min-height: 2.65rem;
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 0.85rem;
}

.entity-card {
    padding: 1rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
}

.entity-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.entity-card h2,
.entity-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.entity-subtitle {
    margin-top: 0.15rem;
    color: var(--ht-text-secondary);
    font-size: 0.86rem;
}

.entity-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.entity-facts > div {
    min-width: 0;
    padding-block: 0.25rem;
}

.entity-facts dt {
    color: var(--ht-text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
}

.entity-facts dd {
    margin: 0.1rem 0 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.review-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ht-border);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
    gap: 1rem;
}

.detail-panel {
    padding: 1rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
}

.detail-panel + .detail-panel {
    margin-top: 1rem;
}

.detail-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-panel-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
    margin: 0;
}

.detail-list dt,
.detail-list dd {
    margin: 0;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ht-border);
}

.detail-list dt {
    color: var(--ht-text-secondary);
    font-size: 0.86rem;
    font-weight: 650;
}

.detail-list dd {
    overflow-wrap: anywhere;
}

.timeline {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.7rem;
    padding-bottom: 1rem;
}

.timeline-item:not(:last-child)::before {
    position: absolute;
    top: 1.25rem;
    right: 0.7rem;
    width: 1px;
    height: calc(100% - 0.35rem);
    background: var(--ht-border);
    content: "";
}

.timeline-marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 1.4rem;
    height: 1.4rem;
    place-items: center;
    border: 3px solid var(--ht-surface);
    border-radius: 50%;
    background: var(--ht-primary);
    box-shadow: 0 0 0 1px var(--ht-border);
}

.timeline-content strong {
    display: block;
}

.timeline-meta {
    color: var(--ht-text-secondary);
    font-size: 0.8rem;
}

.conversation {
    display: grid;
    gap: 0.75rem;
}

.conversation-message {
    padding: 0.85rem 1rem;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-control);
    background: var(--ht-surface);
}

.conversation-message.is-admin {
    border-inline-start: 0.2rem solid var(--ht-primary);
    background: var(--ht-primary-very-subtle);
}

.conversation-message p {
    margin: 0.5rem 0 0;
    white-space: pre-wrap;
}

.audit-details summary {
    color: var(--ht-primary);
    cursor: pointer;
    font-weight: 650;
}

.audit-details pre {
    max-width: 42rem;
    max-height: 18rem;
    margin: 0.4rem 0;
    overflow: auto;
    direction: ltr;
    text-align: left;
}

.failure-note {
    margin-top: 0.2rem;
    color: var(--ht-error);
    font-size: 0.8rem;
}

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.admin-pager-summary {
    color: var(--ht-text-secondary);
    font-size: 0.88rem;
}

.btn {
    min-height: 2.75rem;
    border-radius: var(--ht-radius-control);
    font-weight: 650;
}

.btn-sm {
    min-height: 2.75rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ht-primary);
    --bs-btn-border-color: var(--ht-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ht-primary-dark);
    --bs-btn-hover-border-color: var(--ht-primary-dark);
    --bs-btn-focus-shadow-rgb: var(--ht-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ht-primary-dark);
    --bs-btn-active-border-color: var(--ht-primary-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--ht-primary);
    --bs-btn-disabled-border-color: var(--ht-primary);
    border-color: var(--ht-primary);
    background-color: var(--ht-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--ht-primary-dark) !important;
    background-color: var(--ht-primary-dark) !important;
    color: #fff !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--ht-primary);
    --bs-btn-border-color: var(--ht-primary);
    --bs-btn-hover-color: var(--ht-primary-dark);
    --bs-btn-hover-bg: var(--ht-primary-subtle);
    --bs-btn-hover-border-color: var(--ht-primary);
    --bs-btn-focus-shadow-rgb: var(--ht-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ht-primary-dark);
    --bs-btn-active-border-color: var(--ht-primary-dark);
    --bs-btn-disabled-color: var(--ht-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--ht-primary);
    border-color: var(--ht-primary);
    color: var(--ht-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus:not(:active) {
    border-color: var(--ht-primary);
    background: var(--ht-primary-subtle);
    color: var(--ht-primary-dark);
}

.btn-outline-danger {
    --bs-btn-color: var(--ht-error);
    --bs-btn-border-color: var(--ht-error);
    --bs-btn-hover-color: var(--ht-error);
    --bs-btn-hover-bg: var(--ht-error-soft);
    --bs-btn-hover-border-color: var(--ht-error);
    --bs-btn-focus-shadow-rgb: var(--ht-error-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ht-error);
    --bs-btn-active-border-color: var(--ht-error);
    --bs-btn-disabled-color: var(--ht-error);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--ht-error);
    border-color: rgba(var(--ht-error-rgb), 0.55);
    color: var(--ht-error);
}

.form-control,
.form-select {
    min-height: 2.75rem;
    border-color: var(--ht-border-strong);
    border-radius: var(--ht-radius-control);
    background-color: var(--ht-surface);
    color: var(--ht-text);
}

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

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--ht-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ht-primary-rgb), 0.16);
}

.alert-info {
    --bs-alert-color: var(--ht-info);
    --bs-alert-bg: var(--ht-info-soft);
    --bs-alert-border-color: rgba(var(--ht-info-rgb), 0.32);
}

.form-label {
    color: var(--ht-text-secondary);
    font-size: 0.88rem;
    font-weight: 650;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 0.18rem solid var(--ht-primary-dark);
    outline-offset: 0.16rem;
}

.alert {
    border-radius: var(--ht-radius-control);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: var(--ht-background);
}

.login-card {
    display: grid;
    width: min(100%, 58rem);
    overflow: hidden;
    grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-surface);
    background: var(--ht-surface);
    box-shadow: var(--ht-shadow-raised);
}

.login-brand-panel {
    display: flex;
    min-height: 31rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--ht-sidebar);
    color: #fff;
}

.login-brand-mark {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--ht-radius-control);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.7rem;
    font-weight: 800;
}

.login-brand-panel h1 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.login-brand-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.login-kicker {
    margin-bottom: 0.65rem;
    color: var(--ht-accent);
    font-size: 0.84rem;
    font-weight: 700;
}

.login-form-panel {
    align-self: center;
    padding: clamp(1.75rem, 5vw, 3.5rem);
}

.login-heading {
    margin-bottom: 1.75rem;
}

.login-heading span {
    color: var(--ht-primary);
    font-size: 0.82rem;
    font-weight: 750;
}

.login-heading h2 {
    margin: 0.25rem 0;
    font-size: 1.55rem;
}

.login-heading p {
    margin: 0;
    color: var(--ht-text-secondary);
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid var(--ht-success);
}

.invalid {
    outline: 1px solid var(--ht-error);
}

.validation-message {
    color: var(--ht-error);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 1000;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--ht-warning-rgb), 0.4);
    border-radius: var(--ht-radius-control);
    background: var(--ht-warning-soft);
    color: var(--ht-warning-foreground);
    box-shadow: var(--ht-shadow-raised);
}

@media (max-width: 700px) {
    .content {
        padding: 1.25rem 0.85rem 3rem;
    }

    .page-heading {
        flex-direction: column;
    }

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

    .page-actions > * {
        flex: 1 1 auto;
    }

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

    .dashboard-primary {
        min-height: 9rem;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .detail-list dd {
        padding-top: 0.1rem;
    }

    .admin-pager {
        flex-wrap: wrap;
    }

    .admin-pager-summary {
        width: 100%;
        order: -1;
        text-align: center;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 1.4rem;
    }

    .login-brand-panel p {
        max-width: 34rem;
    }

    .login-form-panel {
        width: 100%;
        padding: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .responsive-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .responsive-table {
        display: block;
        min-width: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .responsive-table tr {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--ht-border);
        border-radius: var(--ht-radius-surface);
        background: var(--ht-surface);
    }

    .responsive-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 0.42fr) minmax(0, 1fr);
        gap: 0.6rem;
        align-items: start;
        padding: 0.65rem 0.8rem;
        border-bottom: 1px solid var(--ht-border);
        overflow-wrap: anywhere;
    }

    .responsive-table td::before {
        color: var(--ht-text-secondary);
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 650;
    }

    .responsive-table td[data-label=""]::before {
        display: none;
    }

    .responsive-table td[data-label=""] {
        grid-template-columns: 1fr;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table .table-action {
        text-align: stretch;
    }

    .responsive-table .table-action .btn {
        width: 100%;
    }
}

@media (min-width: 701px) and (max-width: 1024px) {
    .table-responsive.responsive-table-wrap.wardiya-shifts-table-wrap {
        overflow: hidden;
        border: 1px solid var(--ht-border);
        border-radius: var(--ht-radius-surface);
        background: var(--ht-surface);
    }

    .table.align-middle.responsive-table.wardiya-shifts-table {
        display: table;
        width: 100%;
        min-width: 0;
        margin-bottom: 0;
        table-layout: fixed;
    }

    .wardiya-shifts-table thead {
        display: table-header-group;
    }

    .wardiya-shifts-table tbody {
        display: table-row-group;
    }

    .wardiya-shifts-table tr {
        display: table-row;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .wardiya-shifts-table th,
    .wardiya-shifts-table td {
        display: table-cell;
        padding: 0.6rem 0.65rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
        vertical-align: top;
    }

    .wardiya-shifts-table td::before {
        display: none;
        content: none;
    }

    .wardiya-shifts-table .table-primary-cell {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .dashboard-primary {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-secondary,
    .entity-facts {
        grid-template-columns: 1fr;
    }

    .responsive-table td {
        grid-template-columns: minmax(5.75rem, 0.4fr) minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
