/* Hospital F&B — orange, black, white */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root,
[data-bs-theme=light],
html {
    --hfb-navy: #111111;
    --hfb-navy-2: #1a1a1a;
    --hfb-ink: #111111;
    --hfb-muted: #6b6b6b;
    --hfb-faint: #8a8a8a;
    --hfb-line: #ececec;
    --hfb-line-strong: #e0e0e0;
    --hfb-surface: #f6f6f6;
    --hfb-card: #ffffff;
    --hfb-teal: #ea580c;
    --hfb-teal-dark: #c2410c;
    --hfb-teal-soft: #fff7ed;
    --hfb-teal-mid: #f97316;
    --hfb-primary: #ea580c;
    --hfb-primary-dark: #c2410c;
    --hfb-primary-light: #fff7ed;
    --hfb-success: #1a7f4c;
    --hfb-warning: #b45309;
    --hfb-danger: #b42318;
    --hfb-info: #ea580c;
    --hfb-shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 8px 24px rgba(17, 17, 17, 0.04);
    --hfb-radius: 10px;
    --hfb-sidebar: 256px;
    --hfb-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --bs-primary: #ea580c;
    --bs-primary-rgb: 234, 88, 12;
    --bs-link-color: #ea580c;
    --bs-link-hover-color: #c2410c;
    --bs-body-font-family: var(--hfb-font);
    --bs-body-color: #111111;
    --bs-border-radius: 8px;
    --bs-focus-ring-color: rgba(234, 88, 12, 0.25);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body.hfb-app {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    font-family: var(--hfb-font);
    font-size: 15px;
    color: var(--hfb-ink);
    background: var(--hfb-surface);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hfb-teal); }
a:hover { color: var(--hfb-teal-dark); }

/* ─── Shell ─── */
.hfb-shell {
    margin-left: var(--hfb-sidebar);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: margin-left 0.2s ease;
}

.hfb-main {
    flex: 1;
    overflow-y: auto;
    padding: 1.35rem 1.6rem 1.75rem;
    background:
        linear-gradient(180deg, #f3f3f3 0%, var(--hfb-surface) 140px);
}

.hfb-main::-webkit-scrollbar { width: 8px; }
.hfb-main::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 8px; }

/* ─── Sidebar ─── */
#hfb-sidebar {
    width: var(--hfb-sidebar);
    min-width: var(--hfb-sidebar);
    max-width: var(--hfb-sidebar);
    height: 100vh;
    background: #111111;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.22);
    transition: width 0.2s ease, min-width 0.2s ease, max-width 0.2s ease;
}

#hfb-sidebar.is-collapsed {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.hfb-brand {
    padding: 1.05rem 1.15rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.hfb-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
}

.hfb-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35);
}

.hfb-brand-mark i { color: #fff; font-size: 1.05rem; }

.hfb-brand-name {
    color: #f4f7fa;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hfb-hospital-chip {
    margin: 0.85rem 0.9rem 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.hfb-hospital-chip .k {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9a9a9a;
    font-weight: 600;
}

.hfb-hospital-chip .n {
    color: #fed7aa;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.hfb-hospital-chip .r {
    font-size: 0.7rem;
    color: #8aa0a8;
    margin-top: 2px;
}

.hfb-nav-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 0 1.2rem;
}

.hfb-nav-scroll::-webkit-scrollbar { width: 5px; }
.hfb-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }

.hfb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 14px;
    margin: 2px 10px;
    border-radius: 8px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.hfb-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hfb-nav-link.hfb-nav-active {
    background: rgba(249, 115, 22, 0.16);
    color: #fff7ed;
    border-left-color: var(--hfb-teal-mid);
    font-weight: 600;
}

.hfb-nav-icon {
    font-size: 1.02rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.78;
}

.hfb-nav-link:hover .hfb-nav-icon,
.hfb-nav-link.hfb-nav-active .hfb-nav-icon {
    opacity: 1;
    color: #fdba74;
}

.hfb-nav-title {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8a8a8a;
    padding: 0.85rem 1.35rem 0.28rem;
}

.hfb-nav-parent { user-select: none; }
.hfb-arrow {
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform 0.2s;
    opacity: 0.4;
    flex-shrink: 0;
}
.hfb-submenu-wrap.open .hfb-arrow { transform: rotate(90deg); color: #fdba74; opacity: 0.9; }
.hfb-sub { display: none; padding-left: 0.45rem; }
.hfb-submenu-wrap.open .hfb-sub { display: block; }
.hfb-nav-sub { font-size: 0.82rem; padding: 6px 10px 6px 14px; }
.hfb-nav-sub .hfb-nav-icon { font-size: 0.9rem; width: 16px; }
.hfb-nav-badge {
    margin-left: auto;
    background: #c2413b;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 6px;
}

#hfb-sidebar.is-collapsed .hfb-brand-name,
#hfb-sidebar.is-collapsed .hfb-hospital-chip,
#hfb-sidebar.is-collapsed .hfb-nav-title,
#hfb-sidebar.is-collapsed .hfb-nav-link span,
#hfb-sidebar.is-collapsed .hfb-arrow,
#hfb-sidebar.is-collapsed .hfb-sub {
    display: none;
}

body.hfb-app.nav-collapsed .hfb-shell { margin-left: 72px; }

/* ─── Header ─── */
.hfb-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hfb-line);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hfb-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.4rem;
    min-height: 62px;
}

.hfb-topbar-left,
.hfb-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

#sidebar-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--hfb-line);
    background: #fff;
    border-radius: 8px;
    color: var(--hfb-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#sidebar-toggle:hover {
    border-color: var(--hfb-teal);
    color: var(--hfb-teal);
}

.hfb-crumb .breadcrumb { margin: 0; background: none; padding: 0; }
.hfb-crumb .breadcrumb-item,
.hfb-crumb .breadcrumb-item a {
    font-size: 0.8rem;
    color: var(--hfb-muted);
    text-decoration: none;
}
.hfb-crumb .breadcrumb-item.active {
    color: var(--hfb-ink);
    font-weight: 600;
}

.hfb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hfb-teal-soft);
    color: var(--hfb-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hfb-user-name { font-size: 0.84rem; font-weight: 650; color: var(--hfb-ink); white-space: nowrap; }
.hfb-user-role { font-size: 0.7rem; color: var(--hfb-muted); }

.hfb-flash { padding: 0.55rem 1.4rem 0; }

/* ─── Footer ─── */
.hfb-footer {
    border-top: 1px solid var(--hfb-line);
    background: #fff;
    padding: 0.55rem 1.4rem;
    font-size: 0.76rem;
    color: var(--hfb-faint);
    flex-shrink: 0;
}

/* ─── Page header ─── */
.page-header {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-header-left h4 {
    font-weight: 700;
    color: var(--hfb-ink);
    margin: 0;
    font-size: 1.38rem;
    letter-spacing: -0.02em;
}
.page-header-left .breadcrumb { margin: 0.15rem 0 0; background: none; padding: 0; }
.page-header-left p { color: var(--hfb-muted); }

/* ─── Cards ─── */
.card {
    border: 1px solid var(--hfb-line);
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
    background: var(--hfb-card);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--hfb-line);
    padding: 0.9rem 1.2rem;
}
.card-title {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--hfb-ink);
    margin: 0;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}
.card-body { padding: 1.15rem 1.25rem; }

/* ─── KPI ─── */
.kpi-card {
    border-radius: var(--hfb-radius);
    padding: 1.15rem 1.2rem;
    position: relative;
    overflow: hidden;
    color: var(--hfb-ink);
    background: #fff !important;
    border: 1px solid var(--hfb-line);
    box-shadow: var(--hfb-shadow);
}
.kpi-card::after { display: none; }
.kpi-card .kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}
.kpi-card .kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hfb-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.kpi-card .kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: var(--hfb-ink);
    letter-spacing: -0.03em;
}
.kpi-card .kpi-sub {
    font-size: 0.75rem;
    color: var(--hfb-faint);
    margin-top: 8px;
}
.kpi-bg-blue .kpi-icon,
.kpi-bg-cyan .kpi-icon { background: var(--hfb-teal-soft); color: var(--hfb-teal); }
.kpi-bg-green .kpi-icon { background: #e8f6ee; color: var(--hfb-success); }
.kpi-bg-amber .kpi-icon { background: #fef3c7; color: var(--hfb-warning); }
.kpi-bg-red .kpi-icon { background: #fde8e6; color: var(--hfb-danger); }
.kpi-bg-purple .kpi-icon { background: #eee8fb; color: #6d28d9; }
.kpi-bg-blue, .kpi-bg-green, .kpi-bg-amber, .kpi-bg-cyan, .kpi-bg-red, .kpi-bg-purple {
    background: #fff !important;
}

/* ─── Tables ─── */
.table { margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 0.78rem 1rem; vertical-align: middle; }
.table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--hfb-muted);
    border-bottom: 1px solid var(--hfb-line-strong);
    background: #f7f7f7;
    white-space: nowrap;
}
.table tbody td {
    font-size: 0.875rem;
    color: #333333;
    border-bottom: 1px solid var(--hfb-line);
}
.table tbody tr:hover { background: #fff7ed; }
.table-responsive { border-radius: 0 0 var(--hfb-radius) var(--hfb-radius); }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--hfb-line-strong);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.84rem;
    font-family: inherit;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--hfb-teal);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { font-size: 0.8rem; color: var(--hfb-muted); }
.page-item.active .page-link {
    background: var(--hfb-teal);
    border-color: var(--hfb-teal);
}
.page-link { color: var(--hfb-teal); }

code {
    font-size: 0.76rem;
    background: #f4f4f4;
    color: #333333;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--hfb-line);
}

/* ─── Badges ─── */
.sbadge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.sbadge-pending { background: #fef6d8; color: #7a4e09; }
.sbadge-confirmed { background: var(--hfb-teal-soft); color: #9a3412; }
.sbadge-kitchen { background: #e4f1fb; color: #0c4a6e; }
.sbadge-ready, .sbadge-delivered, .sbadge-active, .sbadge-approved, .sbadge-qc_passed, .sbadge-served {
    background: #e6f6ec; color: #14532d;
}
.sbadge-cancelled, .sbadge-npo, .sbadge-voided, .sbadge-discontinued { background: #fde8e6; color: #7f1d1d; }
.sbadge-discharged, .sbadge-draft { background: #eef2f5; color: #475569; }
.sbadge-labelled { background: #fce7f3; color: #831843; }
.sbadge-dispatched, .sbadge-nurse_received { background: #ede9fe; color: #4c1d95; }
.sbadge-sent_to_kitchen { background: #e0e7ff; color: #312e81; }
.sbadge-collected, .sbadge-submitted, .sbadge-modified { background: #fef3c7; color: #78350f; }

.badge.bg-primary { background: var(--hfb-teal) !important; }
.badge.bg-secondary { background: #64748b !important; }

/* ─── Forms ─── */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #444444;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--hfb-line-strong);
    font-size: 0.9rem;
    min-height: 40px;
    color: var(--hfb-ink);
    background: #fff;
    transition: border 0.15s, box-shadow 0.15s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--hfb-teal);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
    outline: none;
}
.form-control:read-only,
.form-select:disabled {
    background: #f5f5f5;
    color: #555555;
}
.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--hfb-danger); }
.form-check-label {
    font-size: 0.86rem;
    color: #333333;
}
textarea.form-control {
    min-height: 90px;
    padding-top: 0.55rem;
}
.form-switch .form-check-input:focus { box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14); }

.select2-container--default .select2-selection--single {
    border: 1px solid var(--hfb-line-strong);
    border-radius: 8px;
    height: 40px;
    padding-top: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--hfb-teal);
}

/* ─── Buttons ─── */
.btn {
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--hfb-teal) !important;
    border-color: var(--hfb-teal) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-check:checked + .btn-primary {
    background: var(--hfb-teal-dark) !important;
    border-color: var(--hfb-teal-dark) !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: var(--hfb-teal);
    border-color: #fdba74;
    background: #fff;
}
.btn-outline-primary:hover {
    background: var(--hfb-teal);
    border-color: var(--hfb-teal);
    color: #fff;
}
.btn-outline-secondary {
    color: #555555;
    border-color: var(--hfb-line-strong);
    background: #fff;
}
.btn-outline-secondary:hover {
    background: #f5f5f5;
    color: var(--hfb-ink);
    border-color: #c5d0d8;
}
.btn-outline-dark {
    color: #555555;
    border-color: var(--hfb-line-strong);
    background: #fff;
}
.btn-outline-dark:hover {
    background: #f5f5f5;
    color: var(--hfb-ink);
    border-color: #c5d0d8;
}
.btn-light {
    background: #f5f5f5;
    border-color: var(--hfb-line);
    color: #444444;
}
.btn-sm { padding: 0.28rem 0.7rem; font-size: 0.78rem; border-radius: 7px; }
.btn-success { background: var(--hfb-success); border-color: var(--hfb-success); color: #fff; }
.btn-success:hover { background: #146c40; border-color: #146c40; color: #fff; }
.btn-danger { background: var(--hfb-danger); border-color: var(--hfb-danger); }
.btn-warning { background: #d97706; border-color: #d97706; color: #fff; }
.form-control-sm, .form-select-sm { min-height: 34px; font-size: 0.82rem; }
.input-group-text {
    background: #f5f5f5;
    border-color: var(--hfb-line-strong);
    color: var(--hfb-muted);
    font-size: 0.82rem;
}
.nav-pills .nav-link.active { background: var(--hfb-teal); }
.nav-link { color: var(--hfb-muted); }
.nav-tabs .nav-link.active { color: var(--hfb-teal); border-color: var(--hfb-line) var(--hfb-line) #fff; }
.nav-tabs .nav-link:hover { color: var(--hfb-teal); }

.hfb-person-card {
    background: var(--hfb-teal-soft);
    border: 1px solid #fed7aa;
}

body.hfb-app,
body.hfb-app.sidebar-enable {
    padding-left: 0 !important;
    margin: 0 !important;
}

/* ─── Alerts ─── */
.alert {
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    padding: 0.7rem 0.95rem;
}
.alert-info {
    background: var(--hfb-teal-soft);
    border-color: #fed7aa;
    color: #9a3412;
}
.alert-warning {
    background: #fff7e6;
    border-color: #f3ddb0;
    color: #7a4e09;
}
.alert-danger, .alert-error {
    background: #fdecea;
    border-color: #f4c7c3;
    color: #7f1d1d;
}
.alert-success {
    background: #e8f6ee;
    border-color: #b7dcc6;
    color: #14532d;
}

/* ─── Toast / modal / empty ─── */
#hfb-toast-wrap {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.hfb-toast {
    min-width: 260px;
    max-width: 360px;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.86rem;
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(12, 26, 42, 0.18);
    animation: toastIn 0.22s ease;
    pointer-events: all;
}
.hfb-toast.t-success { background: var(--hfb-success); color: #fff; }
.hfb-toast.t-error { background: var(--hfb-danger); color: #fff; }
.hfb-toast.t-info { background: var(--hfb-teal); color: #fff; }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(12, 26, 42, 0.18);
}
.modal-header { border-bottom: 1px solid var(--hfb-line); }
.modal-footer { border-top: 1px solid var(--hfb-line); }

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hfb-faint);
    margin: 1.5rem 0 0.75rem;
}
.empty-state { padding: 3rem 1rem; text-align: center; }
.empty-state i { font-size: 2.4rem; color: #d4d4d4; margin-bottom: 0.75rem; display: block; }
.empty-state p { color: var(--hfb-muted); font-size: 0.9rem; }

.list-group-item { border-color: var(--hfb-line); }
.list-group-item-action:hover { background: #fff7ed; }

.dropdown-menu {
    border: 1px solid var(--hfb-line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(12, 26, 42, 0.12);
    font-size: 0.86rem;
}
.dropdown-item { border-radius: 6px; margin: 2px 6px; padding: 7px 10px; }
.dropdown-item:hover { background: var(--hfb-teal-soft); color: var(--hfb-teal-dark); }
.dropdown-item.text-danger:hover { background: #fdecea; color: var(--hfb-danger); }

.text-primary { color: var(--hfb-teal) !important; }
.text-muted { color: var(--hfb-muted) !important; }

/* ─── Login ─── */
body.hfb-login {
    font-family: var(--hfb-font);
    min-height: 100vh;
    margin: 0;
    background: #111111;
}

.hfb-login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 480px);
}

.hfb-login-hero {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(234, 88, 12, 0.32), transparent 50%),
        linear-gradient(165deg, #111111 0%, #1a1a1a 52%, #ea580c 160%);
    color: #f3f3f3;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hfb-login-hero .mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}
.hfb-login-hero .mark i { font-size: 1.45rem; color: #fff; }
.hfb-login-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    color: #fff;
}
.hfb-login-hero p {
    max-width: 28rem;
    color: #cfcfcf;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.hfb-login-panel {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 2.5rem 2.4rem;
}

.hfb-login-card { width: 100%; max-width: 380px; margin: 0 auto; }
.hfb-login-card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}
.hfb-login-card .sub {
    color: var(--hfb-muted);
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.hfb-login-field { margin-bottom: 1.05rem; }
.hfb-login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 6px;
}
.hfb-login-field .iw { position: relative; }
.hfb-login-field .iw i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    font-size: 0.95rem;
    pointer-events: none;
}
.hfb-login-field .iw input {
    width: 100%;
    padding: 0.62rem 0.9rem 0.62rem 2.35rem;
    border: 1px solid var(--hfb-line-strong);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--hfb-ink);
    background: #f7f7f7;
    outline: none;
    font-family: inherit;
}
.hfb-login-field .iw input:focus {
    border-color: var(--hfb-teal);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
    background: #fff;
}
.hfb-login-submit {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--hfb-teal);
    color: #fff;
    font-weight: 650;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}
.hfb-login-submit:hover { background: var(--hfb-teal-dark); }
.hfb-login-foot {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--hfb-faint);
    font-size: 0.74rem;
}
.hfb-login-hero ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}
.hfb-login-hero li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cfcfcf;
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.hfb-login-hero li i {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(234, 88, 12, 0.22);
    color: #fdba74;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hfb-login-wrap { grid-template-columns: 1fr; }
    .hfb-login-hero { display: none; }
}

@media (max-width: 768px) {
    #hfb-sidebar { transform: translateX(-100%); }
    #hfb-sidebar.is-open { transform: translateX(0); }
    .hfb-shell, body.hfb-app.nav-collapsed .hfb-shell { margin-left: 0; }
    .hfb-main { padding: 1rem; }
}
