/* Admin panel look: the app's teal brand on cool, light surfaces with a dark teal side menu,
   modern cards and tables, and compact inputs like the Nawadi app. Login and register keep auth.css. */

/* ---------- Tajawal, served locally (wwwroot/fonts) ---------- */
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Tajawal-Light.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Tajawal-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Tajawal-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Tajawal-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype'); }

html, body { font-family: var(--hm-font, 'Tajawal', 'Segoe UI', system-ui, Arial, sans-serif); }

/* ================= Top bar ================= */
.hm-appbar.mud-appbar {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    color: #1F2937 !important;
    border-bottom: 1px solid rgba(15, 118, 110, .08);
    box-shadow: 0 2px 18px rgba(15, 23, 42, .05) !important;
}
.hm-appbar .mud-toolbar { gap: 8px; }
.hm-appbar .mud-icon-button {
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 50%;
    color: #1F2937;
    background: rgba(15, 118, 110, .06);
    border: 1px solid rgba(15, 118, 110, .10);
    transition: background .18s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.hm-appbar .mud-icon-button:hover { background: rgba(15, 118, 110, .13); transform: scale(1.06); }

.hm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-start: 4px; }
.hm-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    filter: drop-shadow(0 5px 10px rgba(15, 118, 110, .30));
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.hm-brand:hover .hm-brand-mark { transform: rotate(-6deg) scale(1.07); }
.hm-brand-tx { display: flex; flex-direction: column; line-height: 1.15; }
.hm-brand-tx b {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.2px;
    background: linear-gradient(100deg, #1F2937 30%, #0F766E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hm-brand-tx small { font-size: 10.5px; font-weight: 700; color: #94A3B8; }

.hm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #115E59;
    background: #E6F6F4;
    border: 1px solid rgba(15, 118, 110, .18);
}
.hm-pill-btn { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.hm-pill-btn:hover { background: #CCFBF1; box-shadow: 0 4px 14px rgba(15, 118, 110, .16); }

.hm-today {
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    background: rgba(15, 23, 42, .04);
    border: 1px solid rgba(15, 23, 42, .06);
}

.hm-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 4px 3px 10px;
    border: 1px solid rgba(15, 118, 110, .12);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    color: #1F2937;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.hm-me:hover { border-color: rgba(15, 118, 110, .35); box-shadow: 0 6px 18px rgba(15, 118, 110, .14); }
.hm-me-tx { flex-direction: column; align-items: flex-start; line-height: 1.15; }
.hm-me-tx b { font-size: 12.5px; font-weight: 800; }
.hm-me-tx small { font-size: 10.5px; color: #94A3B8; direction: ltr; }
.hm-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0F766E, #2DD4BF);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, .45), 0 4px 12px rgba(15, 118, 110, .25);
}
.hm-avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.hm-me-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(135deg, #E6F6F4, #fff); }
.hm-me-head b { display: block; font-size: 14px; font-weight: 800; color: #1F2937; }
.hm-me-head small { font-size: 12px; color: #64748B; }
.hm-me-list { min-width: 220px; }

/* ================= Side menu ================= */
.hm-drawer.mud-drawer { border-inline-end: 1px solid rgba(255, 255, 255, .04); }
.hm-nav-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 12px 10px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .22), rgba(15, 118, 110, .04));
    border: 1px solid rgba(94, 234, 212, .18);
}
.hm-nav-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.hm-nav-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hm-nav-tx b { font-size: 14px; font-weight: 800; color: #fff; }
.hm-nav-tx small { font-size: 11.5px; color: #5EEAD4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-drawer .mud-navmenu { padding-bottom: 16px; }
.hm-drawer .mud-nav-link {
    border-radius: 12px;
    margin: 2px 10px;
    width: calc(100% - 20px);
    padding-block: 7px;
    color: #CFE3E0;
    transition: background .15s ease, transform .12s ease;
}
.hm-drawer .mud-nav-link .mud-nav-link-text { font-size: 13.5px; font-weight: 600; }
.hm-drawer .mud-nav-link .mud-icon-root { color: #8FB5B0; width: 20px; height: 20px; }
.hm-drawer .mud-nav-link:hover { background: rgba(255, 255, 255, .06); }
.hm-drawer .mud-nav-link:active { transform: scale(.98); }
.hm-drawer .mud-nav-link.active {
    background: linear-gradient(270deg, rgba(15, 118, 110, .32), rgba(15, 118, 110, .06));
    color: #5EEAD4 !important;
    box-shadow: inset -3px 0 0 #0F766E;
}
.hm-drawer .mud-nav-link.active .mud-icon-root { color: #2DD4BF !important; }
.hm-drawer .mud-nav-group > .mud-nav-link .mud-nav-link-text { font-weight: 800; }
.hm-drawer .mud-collapse-container .mud-nav-link { margin-inline-start: 22px; width: calc(100% - 32px); }
.hm-drawer .mud-divider { border-color: rgba(255, 255, 255, .08); margin-inline: 14px; }

/* ================= Page background and content ================= */
.hm-main {
    min-height: 100vh;
    background:
        radial-gradient(1000px 520px at 10% -180px, rgba(20, 184, 166, .14), transparent 65%),
        radial-gradient(720px 440px at 110% 320px, rgba(45, 212, 191, .11), transparent 65%),
        radial-gradient(860px 480px at 58% 115%, rgba(94, 53, 177, .05), transparent 70%),
        linear-gradient(180deg, #FAFCFC 0%, #F3F7F7 60%, #EEF4F4 100%);
}
.hm-page { padding: 18px 20px 40px; max-width: 1600px; margin: 0 auto; }
@media (max-width: 600px) { .hm-page { padding: 12px 10px 32px; } }

/* Cards: rounded, warm hairline border, soft shadow instead of Material elevation. */
.hm-app .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-popover):not(.mud-table) {
    border-radius: 16px !important;
}
.hm-app .mud-paper.mud-elevation-1,
.hm-app .mud-paper.mud-elevation-2,
.hm-app .mud-paper.mud-elevation-3,
.hm-app .mud-paper.mud-elevation-4,
.hm-app .mud-paper.mud-elevation-10 {
    box-shadow: 0 1px 2px rgba(15, 40, 40, .04), 0 10px 26px rgba(15, 40, 40, .05) !important;
    border: 1px solid #E3ECEB;
}
.hm-app .mud-paper.mud-paper-outlined { border-color: #E3ECEB; background: #fff; }

/* Tables. */
.hm-app .mud-table {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #E3ECEB;
    box-shadow: 0 1px 2px rgba(15, 40, 40, .04), 0 10px 26px rgba(15, 40, 40, .05) !important;
}
.hm-app .mud-table-toolbar { padding-inline: 14px; gap: 10px; }
.hm-app .mud-table-head .mud-table-cell {
    background: #EFF8F7 !important;
    color: #134E4A !important;
    font-size: 12.5px;
    font-weight: 800 !important;
    white-space: nowrap;
    border-bottom: 1px solid #D7EBE8 !important;
}
.hm-app .mud-table-bordered .mud-table-cell { border-inline-end-color: #E8F0EF !important; }
.hm-app .mud-table-cell { font-size: 13px; padding-block: 7px !important; }
.hm-app .mud-table-hover .mud-table-row:hover .mud-table-cell { background: #F0FAF9 !important; }
.hm-app .mud-simple-table table thead th { background: #EFF8F7; color: #134E4A; font-weight: 800; font-size: 12.5px; }
.hm-app .mud-table-pagination-toolbar { border-top: 1px solid #E5EEED; }

/* Buttons: rounded, no capitals, orange glow on the main action. */
.mud-button-root.mud-button { border-radius: 10px; text-transform: none; letter-spacing: 0; }
.hm-app .mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    box-shadow: 0 6px 16px rgba(15, 118, 110, .28);
}
.hm-app .mud-button-filled.mud-button-filled-primary:hover { box-shadow: 0 8px 22px rgba(15, 118, 110, .38); }
.hm-app .mud-button-filled.mud-button-filled-primary.mud-button-disabled,
.hm-app .mud-button-filled-primary:disabled { background: #E2E8EA; box-shadow: none; }
.mud-button-root.mud-button-size-large { padding: 8px 20px; font-size: .9rem; }

/* Chips. */
.mud-chip { font-weight: 700; }
.mud-chip.mud-chip-size-small { font-size: 11.5px; height: 24px; }

/* Dialogs. */
.mud-dialog { border-radius: 18px !important; }
.mud-dialog .mud-dialog-title { font-weight: 800; padding-bottom: 6px; }
.mud-dialog .mud-dialog-actions { padding: 10px 16px 14px; gap: 6px; }

/* ================= Small inputs (Nawadi size) ================= */
.mud-input-control .mud-input,
.mud-input-control .mud-input input,
.mud-input-control .mud-input-slot,
.mud-select .mud-select-input { font-size: .86rem; }
.mud-input-control .mud-input-label { font-size: .84rem; }
.mud-input-control .mud-input-helper-text { font-size: .72rem; }
.mud-input-outlined .mud-input-outlined-border { border-radius: 10px; }
.mud-list-item-dense .mud-list-item-text, .mud-popover .mud-list-item-text { font-size: .86rem; }

/* Snackbars, rounded like the rest. */
.mud-snackbar { border-radius: 14px !important; font-family: inherit; }

/* ================= KPI cards and dashboard ================= */
.hm-kpi {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #E3ECEB;
    box-shadow: 0 1px 2px rgba(15, 40, 40, .04), 0 10px 26px rgba(15, 40, 40, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hm-kpi::after {
    content: "";
    position: absolute;
    inset-inline-end: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--tint);
    opacity: .55;
    pointer-events: none;
}
.hm-kpi:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 40, 40, .05), 0 16px 32px rgba(15, 40, 40, .08); }
.hm-kpi .ic {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--acc);
    background: var(--tint);
}
.hm-kpi .tx { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.hm-kpi .lb { font-size: 12.5px; font-weight: 700; color: #64748B; }
.hm-kpi .vl { font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--acc); }
.hm-kpi .hn { font-size: 11.5px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(600px 260px at 85% -60px, rgba(94, 234, 212, .45), transparent 65%),
        linear-gradient(135deg, #042F2E 0%, #134E4A 45%, #0D9488 100%);
    box-shadow: 0 18px 40px rgba(15, 118, 110, .25);
}
.hm-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    inset-inline-start: -90px;
    bottom: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, .45), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.hm-hero > * { position: relative; z-index: 1; }
.hm-hero .hi { font-size: 13.5px; font-weight: 600; opacity: .85; }
.hm-hero h1 { margin: 2px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.hm-hero p { margin: 0; font-size: 13px; opacity: .8; }
.hm-hero .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(6px);
}

.hm-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 800; color: #1F2937; }
.hm-card-h .mud-icon-root { color: #0F766E; }
.hm-empty { padding: 18px 0; text-align: center; font-size: 13px; color: #94A3B8; }

.hm-quick {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 16px;
    border: 1px solid #E3ECEB;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 40, 40, .04), 0 10px 26px rgba(15, 40, 40, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-quick .ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    box-shadow: 0 6px 16px rgba(15, 118, 110, .3);
}
.hm-quick:hover { transform: translateY(-2px); border-color: rgba(15, 118, 110, .35); box-shadow: 0 14px 30px rgba(15, 118, 110, .14); }

/* The router focuses each page's h1 for screen readers; no visible ring needed. */
h1:focus, h1:focus-visible { outline: none; }

/* ================= Motion ================= */
@keyframes hm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-row { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes hm-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hm-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hm-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -14px, 0) scale(1.06); } }
@keyframes hm-sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes hm-progress { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(.85); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .35); } 50% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0); } }

/* Each page's blocks rise in, one after another. */
.hm-page > * { animation: hm-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.hm-page > *:nth-child(2) { animation-delay: .05s; }
.hm-page > *:nth-child(3) { animation-delay: .1s; }
.hm-page > *:nth-child(4) { animation-delay: .15s; }
.hm-page > *:nth-child(5) { animation-delay: .2s; }
.hm-page > *:nth-child(n+6) { animation-delay: .25s; }
.hm-page > .mud-stack > * { animation: hm-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.hm-page > .mud-stack > *:nth-child(2) { animation-delay: .06s; }
.hm-page > .mud-stack > *:nth-child(3) { animation-delay: .12s; }
.hm-page > .mud-stack > *:nth-child(n+4) { animation-delay: .18s; }

/* Cards in a grid follow each other in. */
.hm-page .mud-grid > .mud-grid-item { animation: hm-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.hm-page .mud-grid > .mud-grid-item:nth-child(2) { animation-delay: .05s; }
.hm-page .mud-grid > .mud-grid-item:nth-child(3) { animation-delay: .1s; }
.hm-page .mud-grid > .mud-grid-item:nth-child(4) { animation-delay: .15s; }
.hm-page .mud-grid > .mud-grid-item:nth-child(5) { animation-delay: .2s; }
.hm-page .mud-grid > .mud-grid-item:nth-child(n+6) { animation-delay: .25s; }

/* Table rows slide in, the first dozen staggered. */
.hm-app .mud-table-body .mud-table-row { animation: hm-row .35s ease-out backwards; }
.hm-app .mud-table-body .mud-table-row:nth-child(2) { animation-delay: .03s; }
.hm-app .mud-table-body .mud-table-row:nth-child(3) { animation-delay: .06s; }
.hm-app .mud-table-body .mud-table-row:nth-child(4) { animation-delay: .09s; }
.hm-app .mud-table-body .mud-table-row:nth-child(5) { animation-delay: .12s; }
.hm-app .mud-table-body .mud-table-row:nth-child(6) { animation-delay: .15s; }
.hm-app .mud-table-body .mud-table-row:nth-child(7) { animation-delay: .18s; }
.hm-app .mud-table-body .mud-table-row:nth-child(8) { animation-delay: .21s; }
.hm-app .mud-table-body .mud-table-row:nth-child(n+9) { animation-delay: .24s; }
.hm-app .mud-table-body .mud-table-row { transition: background .15s ease; }

/* Side menu: items lean in on hover, icons wake up. */
.hm-drawer .mud-nav-link { transition: background .18s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1), color .18s ease; }
.hm-drawer .mud-nav-link:hover { transform: translateX(-4px); color: #fff; }
.hm-drawer .mud-nav-link .mud-icon-root { transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), color .18s ease; }
.hm-drawer .mud-nav-link:hover .mud-icon-root { transform: scale(1.15); color: #5EEAD4; }
.hm-drawer .mud-nav-link.active .mud-icon-root { animation: hm-pop .3s ease backwards; }
.hm-nav-head { animation: hm-fade .5s ease backwards; }
.hm-nav-mark { animation: hm-pulse 2.8s ease-in-out 1s 2; }

/* Buttons: a soft press, and a light sheen across the main action on hover. */
.mud-button-root { transition: transform .12s ease, box-shadow .18s ease, background .18s ease; }
.mud-button-root:active:not(:disabled) { transform: scale(.97); }
.hm-app .mud-button-filled.mud-button-filled-primary { position: relative; overflow: hidden; }
.hm-app .mud-button-filled.mud-button-filled-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
}
.hm-app .mud-button-filled.mud-button-filled-primary:hover::after { animation: hm-sheen .7s ease; }

/* Inputs: a teal glow ring while typing. */
.mud-input-outlined .mud-input-outlined-border { transition: border-color .18s ease, box-shadow .18s ease; }
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border,
.mud-input-control:focus-within .mud-input-outlined .mud-input-outlined-border { box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); }

/* Dialogs pop up, menus drop down, snackbars slide in. */
.mud-dialog { animation: hm-pop .28s cubic-bezier(.16, 1, .3, 1) backwards; }
.mud-popover.mud-popover-open { animation: hm-drop .18s ease-out backwards; }
.mud-snackbar { animation: hm-pop .3s cubic-bezier(.16, 1, .3, 1) backwards; }

/* Cards and chips respond to the pointer. */
.hm-app .mud-paper.mud-elevation-1 { transition: box-shadow .2s ease, transform .2s ease; }
.hm-kpi .ic { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hm-kpi:hover .ic { transform: rotate(-8deg) scale(1.1); }
.hm-kpi::after { transition: transform .4s ease; }
.hm-kpi:hover::after { transform: scale(1.25); }
.hm-quick .ic { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hm-quick:hover .ic { transform: translateY(-3px) scale(1.08); }
.mud-chip { transition: transform .15s ease, box-shadow .15s ease; }
.mud-chip:hover { transform: translateY(-1px); }

/* The dashboard banner breathes slowly. */
.hm-hero::after { animation: hm-float 9s ease-in-out infinite; }
.hm-hero::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    inset-inline-end: 8%;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, .35), transparent 70%);
    filter: blur(24px);
    animation: hm-float 12s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Top bar gains depth once the page scrolls (body.hm-scrolled from js/admin.js). */
.hm-appbar.mud-appbar { transition: box-shadow .25s ease, background .25s ease; }
body.hm-scrolled .hm-appbar.mud-appbar { background: rgba(255, 255, 255, .94) !important; box-shadow: 0 8px 30px rgba(15, 23, 42, .10) !important; }

/* A thin teal line runs across the top on every page change. */
.hm-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1400;
    transform-origin: right;
    background: linear-gradient(90deg, #5EEAD4, #0F766E, #14B8A6);
    box-shadow: 0 0 10px rgba(20, 184, 166, .6);
    animation: hm-progress .7s ease-out both;
    pointer-events: none;
}

/* Skeletons shimmer in the brand tint. */
.mud-skeleton { background-color: rgba(15, 118, 110, .07); }

@media (prefers-reduced-motion: reduce) {
    .hm-page > *, .hm-page > .mud-stack > *, .hm-page .mud-grid > .mud-grid-item, .hm-app .mud-table-body .mud-table-row,
    .mud-dialog, .mud-popover.mud-popover-open, .mud-snackbar, .hm-hero::before, .hm-hero::after, .hm-progress,
    .hm-nav-head, .hm-nav-mark { animation: none !important; }
    .hm-drawer .mud-nav-link:hover { transform: none; }
}

/* ================= First-load screen ================= */
/* A deep teal night with drifting aurora and a fading grid; in the middle a glass card:
   the logo inside a spinning ring of light, status lines that take turns, and a bar
   that fills while the live connection comes up. */
#hm-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;              /* flex, not grid: the card is always the one centred item */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-family: var(--hm-font, 'Tajawal', 'Segoe UI', system-ui, sans-serif);
    background: linear-gradient(160deg, #031B1A 0%, #06302D 50%, #0B4F4A 100%);
    transition: opacity .55s ease, visibility .55s ease;
}
#hm-loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#hm-loader.gone .hm-ld-card { transform: scale(1.07); filter: blur(6px); }

.hm-ld-aurora { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hm-ld-aurora.a { width: 560px; height: 560px; top: -200px; right: -140px; background: radial-gradient(circle, rgba(45, 212, 191, .70), transparent 68%); animation: hm-ld-drift 11s ease-in-out infinite; }
.hm-ld-aurora.b { width: 520px; height: 520px; bottom: -220px; left: -140px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 68%); animation: hm-ld-drift 14s ease-in-out infinite reverse; }
.hm-ld-aurora.c { width: 380px; height: 380px; top: 42%; left: 52%; background: radial-gradient(circle, rgba(129, 140, 248, .30), transparent 68%); animation: hm-ld-drift 17s ease-in-out infinite; }
.hm-ld-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
}

.hm-ld-card {
    position: relative;
    z-index: 1;
    width: min(88vw, 320px);
    padding: 34px 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    animation: hm-ld-in .6s cubic-bezier(.16, 1, .3, 1) both;
    transition: transform .55s ease, filter .55s ease;
}
.hm-ld-core { position: relative; width: 116px; height: 116px; display: grid; place-items: center; margin-bottom: 18px; }
/* The ring: a comet of light chasing its tail. */
.hm-ld-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(94, 234, 212, 0) 0 40%, #5EEAD4 78%, #fff 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    animation: hm-ld-spin 1.15s linear infinite;
}
.hm-ld-orbit { position: absolute; inset: 13px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); animation: hm-ld-spin 7s linear infinite reverse; }
.hm-ld-orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 12px #5EEAD4; }
.hm-ld-tile { position: relative; display: grid; place-items: center; animation: hm-ld-bob 2.2s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(45, 212, 191, .45)); }
.hm-ld-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
    background: linear-gradient(100deg, #fff 20%, #5EEAD4 50%, #fff 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hm-ld-shine 2.4s linear infinite;
}
.hm-ld-steps { position: relative; width: 100%; height: 20px; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.hm-ld-steps span { position: absolute; inset: 0; opacity: 0; animation: hm-ld-step 6s ease-in-out infinite; }
.hm-ld-steps span:nth-child(2) { animation-delay: 2s; }
.hm-ld-steps span:nth-child(3) { animation-delay: 4s; }

/* The bar: a sliding light by default (reconnect card); in the loader it fills. */
.hm-ld-bar { width: 180px; height: 4px; margin-top: 10px; border-radius: 999px; background: rgba(15, 118, 110, .12); overflow: hidden; }
.hm-ld-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5EEAD4, #0F766E);
    animation: hm-ld-slide 1.2s ease-in-out infinite;
}
#hm-loader .hm-ld-bar { width: 100%; height: 5px; margin-top: 18px; background: rgba(255, 255, 255, .12); }
#hm-loader .hm-ld-bar span {
    width: 0;
    background: linear-gradient(270deg, #2DD4BF, #99F6E4, #fff);
    box-shadow: 0 0 12px rgba(94, 234, 212, .8);
    animation: hm-ld-fill 7s cubic-bezier(.1, .7, .2, 1) forwards;
}
#hm-loader.gone .hm-ld-bar span { animation: none; width: 100%; }

@keyframes hm-ld-spin { to { transform: rotate(360deg); } }
@keyframes hm-ld-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.04); } }
@keyframes hm-ld-slide { 0% { transform: translateX(170%); } 100% { transform: translateX(-270%); } }
@keyframes hm-ld-fill { from { width: 0; } to { width: 92%; } }
@keyframes hm-ld-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hm-ld-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes hm-ld-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, 40px, 0) scale(1.12); } }
@keyframes hm-ld-step {
    0% { opacity: 0; transform: translateY(6px); }
    6%, 28% { opacity: 1; transform: none; }
    34%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* ================= Reconnect screen ================= */
/* Same night sky as the loader, the page dimly visible behind it; a glass card whose ring spins while
   reconnecting and turns amber with a badge when it gave up. */
.hm-reconnect { display: none; }
.hm-reconnect.components-reconnect-show,
.hm-reconnect.components-reconnect-retrying,
.hm-reconnect.components-reconnect-paused,
.hm-reconnect.components-reconnect-failed,
.hm-reconnect.components-reconnect-resume-failed,
.hm-reconnect.components-reconnect-rejected {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    place-items: center;
    padding: 16px;
    overflow: hidden;
    color: #fff;
    font-family: var(--hm-font, 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif);
    background: linear-gradient(160deg, rgba(3, 27, 26, .90) 0%, rgba(6, 48, 45, .88) 55%, rgba(11, 79, 74, .86) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: hm-fade .3s ease backwards;
}
.hm-reconnect .hm-ld-aurora { opacity: .75; }
.hm-reconnect * { font-family: inherit; }

.hm-rc-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 380px);
    padding: 30px 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .18);
    animation: hm-ld-in .5s cubic-bezier(.16, 1, .3, 1) backwards;
}

.hm-rc-core { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 16px; }
.hm-rc-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(94, 234, 212, 0) 0 40%, #5EEAD4 78%, #fff 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
    animation: hm-ld-spin 1.15s linear infinite;
    transition: background .3s ease;
}
.hm-rc-tile { display: grid; place-items: center; filter: drop-shadow(0 10px 24px rgba(45, 212, 191, .45)); animation: hm-ld-bob 2.2s ease-in-out infinite; }
.hm-rc-badge {
    position: absolute;
    bottom: 4px;
    inset-inline-end: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: none;
    place-items: center;
    color: #fff;
    border: 3px solid #0A3B37;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    animation: hm-pop .35s cubic-bezier(.34, 1.56, .64, 1) backwards;
}
.hm-rc-badge svg { width: 16px; height: 16px; fill: currentColor; display: none; }

/* gave up / paused / session over: the ring stops and changes colour, a badge says why */
.components-reconnect-failed .hm-rc-ring { animation: hm-rc-breathe 2.4s ease-in-out infinite; background: conic-gradient(#FBBF24, #F59E0B, #FBBF24); }
.components-reconnect-paused .hm-rc-ring,
.components-reconnect-resume-failed .hm-rc-ring,
.components-reconnect-rejected .hm-rc-ring { animation: none; background: conic-gradient(#5EEAD4, #0F766E, #5EEAD4); }
.components-reconnect-failed .hm-rc-badge { display: grid; background: linear-gradient(135deg, #FBBF24, #D97706); }
.components-reconnect-paused .hm-rc-badge { display: grid; background: linear-gradient(135deg, #38BDF8, #0369A1); }
.components-reconnect-resume-failed .hm-rc-badge,
.components-reconnect-rejected .hm-rc-badge { display: grid; background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.components-reconnect-failed .hm-rc-badge .i-off,
.components-reconnect-paused .hm-rc-badge .i-pause,
.components-reconnect-resume-failed .hm-rc-badge .i-clock,
.components-reconnect-rejected .hm-rc-badge .i-clock { display: block; }
.components-reconnect-failed .hm-rc-tile,
.components-reconnect-paused .hm-rc-tile,
.components-reconnect-rejected .hm-rc-tile { animation: none; }

.hm-rc-msg { display: none; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.hm-rc-msg b { font-size: 19px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.hm-rc-msg > span { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.hm-rc-chip {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}
.hm-rc-chip i { font-style: normal; font-weight: 800; color: #5EEAD4; }
.hm-rc-chip.auto i { color: #FCD34D; }
.hm-reconnect .hm-ld-bar { width: 100%; height: 4px; margin-top: 14px; background: rgba(255, 255, 255, .12); }
.hm-reconnect .hm-ld-bar span { background: linear-gradient(90deg, #99F6E4, #2DD4BF); box-shadow: 0 0 12px rgba(94, 234, 212, .7); }

.hm-rc-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; width: 100%; }
.hm-rc-btn {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #04211F;
    cursor: pointer;
    background: linear-gradient(135deg, #99F6E4, #2DD4BF 55%, #14B8A6);
    box-shadow: 0 10px 26px rgba(45, 212, 191, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.hm-rc-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 32px rgba(45, 212, 191, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hm-rc-btn:active { transform: translateY(1px) scale(.98); }
.hm-rc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hm-rc-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.hm-rc-btn.ghost { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); box-shadow: none; }
.hm-rc-btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.hm-rc-btn .sp { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(4, 33, 31, .25); border-top-color: #04211F; animation: hm-ld-spin .8s linear infinite; }
.hm-rc-btn.busy { pointer-events: none; opacity: .85; }
.hm-rc-btn.busy .sp { display: inline-block; }
.hm-rc-btn.busy svg { display: none; }

.hm-rc-note:empty { display: none; }
.hm-rc-note { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #FCD34D; }
.hm-rc-note.shake { animation: hm-rc-shake .4s ease; }

.components-reconnect-show .hm-rc-msg.wait,
.components-reconnect-retrying .hm-rc-msg.wait { display: flex; }
.components-reconnect-failed .hm-rc-msg.retry,
.components-reconnect-paused .hm-rc-msg.resume,
.components-reconnect-resume-failed .hm-rc-msg.reload,
.components-reconnect-rejected .hm-rc-msg.reload { display: flex; }

/* MudBlazor styles "#components-reconnect-modal" and its buttons itself (light background, 40px margins,
   dark uppercase text). An id beats a class, so undo those here under the same id. */
#components-reconnect-modal.hm-reconnect { background-color: transparent !important; }
#components-reconnect-modal .hm-rc-btn {
    margin: 0 !important;
    padding: 10px 18px;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 14px;
    color: #04211F;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
#components-reconnect-modal .hm-rc-btn.ghost { color: #fff; }
#components-reconnect-modal .hm-rc-btn.ghost:hover { background-color: rgba(255, 255, 255, .14); }
/* only one message at a time (a manual retry briefly adds "retrying" next to "failed") */
.components-reconnect-failed .hm-rc-msg.wait { display: none; }
.components-reconnect-failed.components-reconnect-retrying .hm-rc-msg.retry { display: flex; }

@keyframes hm-rc-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hm-rc-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
    .hm-ld-halo, .hm-ld-orbit, .hm-ld-tile, .hm-ld-aurora, .hm-ld-name, .hm-ld-card, .hm-rc-tile, .hm-rc-ring, .hm-rc-card { animation: none !important; }
    .hm-ld-steps span { animation: none !important; }
    .hm-ld-steps span:first-child { opacity: 1; }
}

/* ================= Quick search (Ctrl+K) ================= */
.hm-search {
    align-items: center;
    gap: 8px;
    min-width: 230px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(15, 23, 42, .08);
    background: rgba(15, 23, 42, .04);
    color: #64748B;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.hm-search span { flex: 1; text-align: start; }
.hm-search:hover { border-color: rgba(15, 118, 110, .45); background: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .12); }
.hm-search kbd, .hm-cp kbd {
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    color: #475569;
    background: #fff;
    border: 1px solid #E2E8EA;
    box-shadow: 0 1px 0 #D3DCDE;
    direction: ltr;
}

.hm-cp-back {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 14px 14px;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: hm-fade .18s ease backwards;
}
.hm-cp {
    width: min(94vw, 560px);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .3);
    animation: hm-pop .25s cubic-bezier(.16, 1, .3, 1) backwards;
}
.hm-cp-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E2E8EA; color: #0F766E; }
.hm-cp-search input { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; color: #1F2937; }
.hm-cp-list { overflow-y: auto; padding: 6px 8px 10px; }
.hm-cp-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; color: #94A3B8; letter-spacing: .3px; }
.hm-cp-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    cursor: pointer;
    text-align: start;
}
.hm-cp-item .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #0F766E; background: #E6F6F4; flex: none; transition: transform .2s ease; }
.hm-cp-item .tt { flex: 1; }
.hm-cp-item .go { opacity: 0; color: #0F766E; transition: opacity .15s ease, transform .15s ease; }
.hm-cp-item.on { background: #F0FAF9; box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .18); }
.hm-cp-item.on .ic { transform: scale(1.08); color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.hm-cp-item.on .go { opacity: 1; transform: translateX(-3px); }
.hm-cp-empty { padding: 26px 10px; text-align: center; color: #94A3B8; font-size: 13px; }
.hm-cp-foot { display: flex; gap: 14px; justify-content: center; padding: 9px 12px; border-top: 1px solid #E2E8EA; background: #F8FBFB; font-size: 11.5px; color: #64748B; }
.hm-cp-foot kbd { margin-inline-end: 3px; }

/* ================= Modern background =================
   Soft colour fields (teal, sky, a hint of violet) on near-white, with a dot grid that
   fades out down the page. The grid is fixed, so content scrolls over it. */
.hm-main {
    position: relative;
    background:
        radial-gradient(900px 480px at 8% -160px, rgba(20, 184, 166, .17), transparent 62%),
        radial-gradient(720px 420px at 104% 160px, rgba(56, 189, 248, .13), transparent 62%),
        radial-gradient(820px 460px at 55% 118%, rgba(129, 140, 248, .10), transparent 68%),
        linear-gradient(180deg, #F8FBFB 0%, #F1F6F6 60%, #ECF3F3 100%);
}
.hm-main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 118, 110, .17) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
/* positioned without a z-index: above the background, yet no stacking layer that would trap a picker dialog under the top bar */
.hm-main > .hm-page { position: relative; }

/* ================= Modern details ================= */
/* Thin scrollbars and a teal text selection. */
* { scrollbar-width: thin; scrollbar-color: rgba(15, 118, 110, .35) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(15, 118, 110, .30); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 118, 110, .55); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(20, 184, 166, .28); }

/* Status chips: a soft tint with a coloured dot instead of a solid block. */
.mud-chip.mud-chip-filled { border-radius: 999px; }
.mud-chip.mud-chip-filled.mud-chip-color-success { background-color: #E3F6EA !important; color: #0B7A3B !important; }
.mud-chip.mud-chip-filled.mud-chip-color-error { background-color: #FDECEA !important; color: #B42318 !important; }
.mud-chip.mud-chip-filled.mud-chip-color-warning { background-color: #FFF3D6 !important; color: #946200 !important; }
.mud-chip.mud-chip-filled.mud-chip-color-info { background-color: #E8EFFF !important; color: #2B59C3 !important; }
.mud-chip.mud-chip-filled.mud-chip-color-primary { background-color: #E6F6F4 !important; color: #0F766E !important; }
.mud-chip.mud-chip-filled.mud-chip-color-secondary { background-color: #F1EBFF !important; color: #6D28D9 !important; }
.mud-chip.mud-chip-filled.mud-chip-color-tertiary { background-color: #E3F6EA !important; color: #0B7A3B !important; }
.mud-chip.mud-chip-filled.mud-chip-color-dark { background-color: #E9EEF2 !important; color: #334155 !important; }
.mud-chip.mud-chip-filled:not(.mud-chip-color-default):not(:has(.mud-chip-icon)) .mud-chip-content::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

/* The title card at the top of every page gets a teal edge and a larger title. */
.hm-page > .mud-paper.pa-4.mb-3:first-child { position: relative; background: linear-gradient(135deg, #fff 55%, #F0FAF9 100%); }
.hm-page > .mud-paper.pa-4.mb-3:first-child::before {
    content: "";
    position: absolute;
    inset-block: 14px;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2DD4BF, #0F766E);
}
.hm-page > .mud-paper.pa-4.mb-3:first-child .mud-typography-h6 { font-size: 1.2rem; letter-spacing: -.2px; }

/* Icon buttons and row menus. */
.hm-app .mud-table .mud-icon-button { border-radius: 10px; transition: background .15s ease, transform .15s ease; }
.hm-app .mud-table .mud-icon-button:hover { background: #E6F6F4; color: #0F766E; transform: scale(1.06); }
.mud-popover .mud-list { padding: 6px; }
.mud-popover .mud-list-item { border-radius: 9px; }
.mud-popover.mud-paper { border-radius: 14px !important; border: 1px solid #E3ECEB; box-shadow: 0 18px 44px rgba(15, 23, 42, .14) !important; }

/* Side menu foot: the quick-search hint. */
.hm-nav-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 12px 16px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #8FB5B0;
    background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .12);
}
.hm-nav-foot .k { display: inline-flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.35; }
/* the key label stays on one line however long the text beside it is (English, German …) */
.hm-nav-foot kbd, .hm-search kbd, .hm-cp kbd { white-space: nowrap; flex: none; }
.hm-nav-foot kbd { font-family: inherit; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: #CFE3E0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); direction: ltr; }

/* Dashboard: room states as one segmented bar, bookings as thin rows. */
.hm-seg { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: #EEF3F3; }
.hm-seg span { height: 100%; min-width: 4px; border-radius: 4px; transform-origin: right; animation: hm-grow .8s cubic-bezier(.16, 1, .3, 1) both; transition: filter .15s ease; }
.hm-seg span:hover { filter: brightness(1.12); }
.hm-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: #64748B; }
.hm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hm-legend i { width: 9px; height: 9px; border-radius: 3px; }
.hm-legend b { color: #1F2937; font-weight: 800; }
.hm-rows { display: grid; gap: 9px; }
.hm-rowbar { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; font-size: 12.5px; color: #64748B; }
.hm-rowbar .tr { height: 8px; border-radius: 999px; background: #EEF3F3; overflow: hidden; }
.hm-rowbar .tr span { display: block; height: 100%; border-radius: inherit; transform-origin: right; animation: hm-grow .8s cubic-bezier(.16, 1, .3, 1) both; }
.hm-rowbar b { color: #1F2937; font-weight: 800; text-align: end; }
@keyframes hm-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hm-seg span, .hm-rowbar .tr span { animation: none; } }

/* ================= Living background =================
   Four pastel clouds (mint, sky, lavender, lime) drift slowly behind the pages; the dot
   grid lies over them and a faint light follows the pointer. All of it is fixed and takes
   no clicks; the cards stay solid white on top. */
.hm-main { background: linear-gradient(180deg, #F9FCFC 0%, #F2F7F7 55%, #EDF4F4 100%); }
.hm-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hm-bg i { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.hm-bg i.a { width: 560px; height: 560px; top: -220px; left: 6%; background: radial-gradient(circle, rgba(45, 212, 191, .50), transparent 68%); animation: hm-bg-a 24s ease-in-out infinite alternate; }
.hm-bg i.b { width: 520px; height: 520px; top: 28%; left: -200px; background: radial-gradient(circle, rgba(56, 189, 248, .36), transparent 68%); animation: hm-bg-b 29s ease-in-out infinite alternate; }
.hm-bg i.c { width: 500px; height: 500px; bottom: -240px; left: 38%; background: radial-gradient(circle, rgba(167, 139, 250, .30), transparent 68%); animation: hm-bg-c 33s ease-in-out infinite alternate; }
.hm-bg i.d { width: 380px; height: 380px; top: 12%; left: 52%; background: radial-gradient(circle, rgba(190, 242, 100, .22), transparent 68%); animation: hm-bg-d 27s ease-in-out infinite alternate; }
@keyframes hm-bg-a { to { transform: translate3d(18vw, 10vh, 0) scale(1.15); } }
@keyframes hm-bg-b { to { transform: translate3d(14vw, -14vh, 0) scale(1.2); } }
@keyframes hm-bg-c { to { transform: translate3d(-16vw, -10vh, 0) scale(.92); } }
@keyframes hm-bg-d { to { transform: translate3d(-12vw, 16vh, 0) scale(1.25); } }
.hm-bg .spot {
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 20%), rgba(20, 184, 166, .11), transparent 62%);
}
.hm-main::before {
    background-image: radial-gradient(rgba(15, 118, 110, .20) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}
@media (prefers-reduced-motion: reduce) { .hm-bg i { animation: none !important; } }

/* Side menu: the chat link carries the unread count. */
.hm-nav-chat { display: inline-flex; align-items: center; gap: 8px; }
.hm-nav-chat b {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #042F2E;
    background: #5EEAD4;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .18);
    animation: hm-pulse 2.4s ease-in-out infinite;
}

/* Date and time pickers open as a calendar dialog (PickerVariant.Dialog on every picker). */
.mud-picker-paper.mud-dialog,
.mud-dialog .mud-picker-paper { border-radius: 20px !important; overflow: hidden; box-shadow: 0 30px 80px rgba(15, 23, 42, .28) !important; }
.mud-picker-paper .mud-picker-toolbar { background: linear-gradient(135deg, #14B8A6, #0F766E) !important; }
.mud-picker-paper .mud-picker-calendar-header-switch .mud-typography { font-weight: 800; }
.mud-picker-paper .mud-day.mud-selected { box-shadow: 0 6px 14px rgba(15, 118, 110, .35); }
.mud-picker-paper .mud-picker-actions .mud-button-root { border-radius: 10px; }

/* A held (filled) transform animation turns an element into a containing block for fixed children in
   Chrome, which pins the calendar dialog to its field. Entrance animations therefore never hold their
   end state (fill backwards), and nothing that can hold a picker carries transform, filter or backdrop-filter. */

/* ================= Roles: chips in the users list ================= */
.hm-roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hm-role-admin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 6px 14px rgba(15, 118, 110, .25); }
.hm-role-admin .mud-icon-root { width: 16px; height: 16px; }
.hm-role-admin small { font-size: 11px; font-weight: 600; opacity: .85; }
.hm-role-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px;
    background: #F1F7F7; border: 1px solid #DDEBEA; color: #1F2937; transition: border-color .15s ease, background .15s ease; }
.hm-role-chip:hover { background: #E6F6F4; border-color: #99DCD3; }
.hm-role-chip .mud-icon-root { width: 15px; height: 15px; color: #0F766E; }
.hm-role-chip b { font-weight: 800; }
.hm-role-chip i { font-style: normal; color: #64748B; }
.hm-role-chip i::before { content: ":"; margin-inline-end: 4px; }
.hm-role-chip.custom { background: #FFF7E6; border-color: #F5DFAE; }
.hm-role-chip.custom .mud-icon-root { color: #B45309; }
.hm-role-more { border: 1px dashed #99DCD3; background: #fff; color: #0F766E; border-radius: 999px; padding: 4px 10px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hm-role-more:hover { background: #E6F6F4; }
.hm-role-none { font-size: 12px; color: #94A3B8; }

/* ================= Roles page ================= */
.hm-card-h-hint { margin-inline-start: auto; font-size: 11.5px; font-weight: 600; color: #94A3B8; }
.hm-roles-admin { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; border-radius: 18px; color: #fff;
    background: radial-gradient(500px 200px at 90% -40px, rgba(94, 234, 212, .35), transparent 70%), linear-gradient(135deg, #0B4F4A, #0F766E 60%, #14B8A6);
    box-shadow: 0 16px 36px rgba(15, 118, 110, .25); }
.hm-roles-admin .ic { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.hm-roles-admin .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hm-roles-admin .tx b { font-size: 16px; font-weight: 800; }
.hm-roles-admin .tx small { font-size: 12.5px; opacity: .85; }
.hm-faces { display: flex; align-items: center; }
.hm-face { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
    border: 2px solid #fff; margin-inline-start: -8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.hm-face:first-child { margin-inline-start: 0; }
.hm-face.more { background: rgba(255, 255, 255, .25); }
.hm-roles-admin .hm-role-none { color: rgba(255, 255, 255, .8); }

.hm-matrix { display: grid; gap: 4px; overflow-x: auto; }
.hm-mx-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(4, minmax(84px, 1fr)); align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; }
.hm-mx-row:not(.head):hover { background: #F3F9F8; }
.hm-mx-row.head { font-size: 12px; font-weight: 800; color: #64748B; border-bottom: 1px solid #E3ECEB; border-radius: 0; padding-bottom: 10px; }
.hm-mx-row .sec { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #1F2937; }
.hm-mx-row.head .sec { font-size: 12px; color: #64748B; }
.hm-mx-row .si { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #0F766E; background: #E6F6F4; }
.hm-mx-row .si .mud-icon-root { width: 17px; height: 17px; }
.hm-mx-row .cell { display: flex; justify-content: center; align-items: center; gap: 4px; }
.hm-mx-row.head .cell .mud-icon-root { width: 15px; height: 15px; }
.hm-mx-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 56px; justify-content: center; padding: 4px 10px; border-radius: 999px;
    font-size: 12.5px; background: #E6F6F4; color: #0F766E; border: 1px solid #C8EDE7; }
.hm-mx-pill.zero { background: transparent; border-style: dashed; border-color: #E2E8EA; color: #CBD5E1; }
.hm-mx-pill.hi { background: #0F766E; color: #fff; border-color: #0F766E; }
.hm-mx-pill b { font-weight: 800; }
.hm-mx-pill .faces { display: inline-flex; }
.hm-mx-pill .faces i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 800;
    color: #fff; border: 1.5px solid #fff; margin-inline-start: -6px; }
.hm-mx-pill .faces i:first-child { margin-inline-start: 0; }

.hm-custom-add { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.hm-custom-add .mud-input-control { flex: 1; }
.hm-custom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hm-custom-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid #F0E3C4; background: linear-gradient(135deg, #FFFBF2, #fff); }
.hm-custom-card .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #B45309; background: #FFF3D6; }
.hm-custom-card .tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hm-custom-card .tx b { font-size: 14px; font-weight: 800; }
.hm-custom-card .tx small { font-size: 12px; color: #94A3B8; }

/* ================= User permissions dialog ================= */
.hm-perm-dialog.mud-dialog { border-radius: 22px !important; overflow: hidden; }
.hm-perm-content { padding: 0 !important; margin: 0 !important; }
.hm-perm-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: #fff;
    background: radial-gradient(400px 160px at 90% -40px, rgba(94, 234, 212, .35), transparent 70%), linear-gradient(135deg, #0B4F4A, #0F766E 60%, #14B8A6); }
.hm-perm-head .tx { flex: 1; display: flex; flex-direction: column; }
.hm-perm-head .tx b { font-size: 16px; font-weight: 800; }
.hm-perm-head .tx small { font-size: 12px; opacity: .8; text-align: start; }
.hm-perm-count { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.hm-perm-count b { font-size: 15px; font-weight: 800; }
.hm-perm-x { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.hm-perm-x:hover { background: rgba(255, 255, 255, .26); }

.hm-perm-admin { width: calc(100% - 40px); margin: 16px 20px 6px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer;
    font-family: inherit; text-align: start; border: 1.5px solid #E2E8EA; background: #fff; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.hm-perm-admin:hover { border-color: #99DCD3; }
.hm-perm-admin.on { border-color: #0F766E; background: #F0FAF9; box-shadow: 0 8px 22px rgba(15, 118, 110, .14); }
.hm-perm-admin .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #0F766E; background: #E6F6F4; }
.hm-perm-admin.on .ic { color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.hm-perm-admin .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hm-perm-admin .tx b { font-size: 15px; font-weight: 800; color: #1F2937; }
.hm-perm-admin .tx small { font-size: 12.5px; color: #64748B; }

.hm-switch { position: relative; width: 44px; height: 24px; flex: none; border-radius: 999px; background: #D3DCDE; transition: background .2s ease; cursor: pointer; display: inline-block; }
.hm-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: inset-inline-start .2s cubic-bezier(.34, 1.56, .64, 1); }
.hm-switch.on { background: #0F766E; }
.hm-switch.on i { inset-inline-start: 23px; }
.hm-switch.part { background: #7FCFC4; }
.hm-switch.part i { inset-inline-start: 13px; }
.hm-switch.sm { width: 36px; height: 20px; }
.hm-switch.sm i { width: 14px; height: 14px; }
.hm-switch.sm.on i { inset-inline-start: 19px; }
.hm-switch.sm.part i { inset-inline-start: 11px; }

.hm-perm-body { padding: 4px 20px 6px; transition: opacity .2s ease; }
.hm-perm-body.dim { opacity: .45; pointer-events: none; }
.hm-perm-presets, .hm-perm-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.hm-perm-presets .lb, .hm-perm-custom .lb { font-size: 12.5px; font-weight: 700; color: #64748B; }
.hm-preset { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #DDEBEA; background: #fff;
    font-family: inherit; font-size: 12.5px; font-weight: 700; color: #1F2937; cursor: pointer; transition: all .15s ease; }
.hm-preset .mud-icon-root { width: 16px; height: 16px; color: #0F766E; }
.hm-preset:hover { border-color: #0F766E; background: #F0FAF9; }
.hm-preset.on { color: #fff; border-color: #0F766E; background: #0F766E; }
.hm-preset.on .mud-icon-root { color: #fff; }
.hm-preset.clear { color: #B42318; border-color: #F5D0CC; }
.hm-preset.clear .mud-icon-root { color: #B42318; }

.hm-perm-grid { border: 1px solid #E3ECEB; border-radius: 16px; overflow: hidden; max-height: 46vh; overflow-y: auto; }
.hm-perm-row { display: grid; grid-template-columns: minmax(160px, 1.5fr) repeat(4, 64px) 60px; align-items: center; gap: 4px; padding: 7px 12px; border-bottom: 1px solid #EEF3F3; }
.hm-perm-row:last-child { border-bottom: 0; }
.hm-perm-row.head { position: sticky; top: 0; z-index: 1; background: #F3F9F8; font-size: 11.5px; font-weight: 800; color: #64748B; }
.hm-perm-row.has { background: #FAFDFD; }
.hm-perm-row .sec { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #1F2937; }
.hm-perm-row.head .sec { font-size: 11.5px; color: #64748B; }
.hm-perm-row .si { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #0F766E; background: #E6F6F4; }
.hm-perm-row .si .mud-icon-root { width: 16px; height: 16px; }
.hm-perm-row .act, .hm-perm-row .all { display: flex; justify-content: center; align-items: center; gap: 3px; }
.hm-perm-row.head .act .mud-icon-root { width: 14px; height: 14px; }
.hm-tick { width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid #D3DCDE; background: #fff; display: grid; place-items: center; cursor: pointer; color: transparent; padding: 0;
    transition: all .15s cubic-bezier(.34, 1.56, .64, 1); }
.hm-tick .mud-icon-root { width: 17px; height: 17px; }
.hm-tick:hover:not(:disabled) { border-color: #0F766E; }
.hm-tick.on { color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); border-color: #0F766E; transform: scale(1.05); box-shadow: 0 4px 10px rgba(15, 118, 110, .3); }
.hm-tick:disabled { opacity: .3; cursor: default; }

.hm-perm-actions { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid #EEF3F3; margin-top: 10px; }
.hm-perm-actions .hint { flex: 1; font-size: 12.5px; color: #64748B; }
@media (max-width: 640px) {
    .hm-perm-row { grid-template-columns: minmax(120px, 1fr) repeat(4, 40px) 44px; padding: 7px 8px; }
    .hm-perm-row .si { display: none; }
}

/* ================= Rooms page: 2D floor plans ================= */
.hm-rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; padding: 16px 20px; border-radius: 20px;
    background: #fff; border: 1px solid #E3ECEB; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.hm-rp-head .tx { flex: 1 1 260px; min-width: 0; }
.hm-rp-head h1 { margin: 0; font-size: 20px; font-weight: 800; color: #0F172A; }
.hm-rp-head .tx span { font-size: 12.5px; color: #64748B; }
.hm-rp-head .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hm-vtabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: #EEF4F4; border: 1px solid #E0EBEA; }
.hm-vtabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 14px; border-radius: 10px;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #475569; cursor: pointer; transition: all .2s ease; }
.hm-vtabs button .mud-icon-root { width: 17px; height: 17px; }
.hm-vtabs button.on { background: #fff; color: #0F766E; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }

.hm-zoom { display: inline-flex; align-items: center; height: 36px; border-radius: 12px; border: 1px solid #DDE7E6; background: #fff; overflow: hidden; }
.hm-zoom button { width: 34px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: #0F766E; }
.hm-zoom button:hover:not(:disabled) { background: #F0FAF9; }
.hm-zoom button:disabled { color: #CBD5E1; cursor: default; }
.hm-zoom .mud-icon-root { width: 18px; height: 18px; }
.hm-zoom span { min-width: 44px; text-align: center; font-size: 12px; font-weight: 800; color: #334155; }

.hm-design-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 800; color: #4338CA; background: #EEF0FF; border: 1px solid #D9DDFE; transition: all .2s ease; }
.hm-design-btn .mud-icon-root { width: 18px; height: 18px; }
.hm-design-btn:hover { border-color: #4338CA; }
.hm-design-btn.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #6366F1, #4338CA); box-shadow: 0 8px 20px -6px rgba(67, 56, 202, .6); }
.hm-design-tip { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 13px; color: #3730A3;
    background: linear-gradient(135deg, #EEF0FF, #F7F7FF); border: 1px solid #DCDFFE; animation: hm-fade .3s ease; }
.hm-design-tip .mud-icon-root { color: #4338CA; flex: none; }

.hm-rp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 12px; }
.hm-rp-search { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 200px; height: 40px; padding: 0 12px; border-radius: 12px;
    background: #fff; border: 1px solid #DDE7E6; transition: border-color .2s ease, box-shadow .2s ease; }
.hm-rp-search:focus-within { border-color: #0F766E; box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.hm-rp-search .mud-icon-root { width: 19px; height: 19px; color: #94A3B8; }
.hm-rp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13.5px; color: #0F172A; }
.hm-rp-search button { border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }

.hm-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid #E2E8EA; background: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #334155; transition: all .18s ease; }
.hm-legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--t); }
.hm-legend button b { min-width: 22px; padding: 1px 6px; border-radius: 999px; font-size: 11.5px; background: var(--t); color: var(--c); }
.hm-legend button:hover { border-color: var(--c); }
.hm-legend button.on { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 8px 18px -6px var(--c); }
.hm-legend button.on i { background: #fff; box-shadow: none; }
.hm-legend button.on b { background: rgba(255, 255, 255, .22); color: #fff; }

.hm-bld { display: flex; flex-direction: column; gap: 16px; }
.hm-bld-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: #64748B;
    border-radius: 24px; border: 2px dashed #D5E3E1; background: #fff; }
.hm-bld-empty .mud-icon-root { width: 48px; height: 48px; color: #99DCD3; }
.hm-bld-empty b { font-size: 16px; color: #0F172A; }

/* one floor: header strip + its plan */
.hm-pf { border-radius: 24px; background: #fff; border: 1px solid #E3ECEB; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease; animation: hm-fl-in .45s cubic-bezier(.16, 1, .3, 1) backwards; }
.hm-pf:nth-child(2) { animation-delay: .05s; } .hm-pf:nth-child(3) { animation-delay: .1s; } .hm-pf:nth-child(n+4) { animation-delay: .15s; }
.hm-pf.over { border-color: #14B8A6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .16), 0 18px 40px -12px rgba(15, 118, 110, .35); }
@keyframes hm-fl-in { from { opacity: 0; transform: translateY(14px); } }

.hm-pf-head { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; color: #fff; overflow: hidden;
    background: radial-gradient(420px 140px at 100% 0, rgba(94, 234, 212, .32), transparent 70%), linear-gradient(120deg, #0B4F4A, #0F766E 60%, #14B8A6); }
.hm-pf-head .badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 19px; font-weight: 800;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.hm-pf-head .tx { display: flex; flex-direction: column; min-width: 140px; }
.hm-pf-head .tx b { font-size: 15px; font-weight: 800; }
.hm-pf-head .tx small { font-size: 12px; opacity: .82; }
.hm-pf-head .bar { flex: 1 1 160px; max-width: 360px; display: flex; gap: 2px; height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .16); }
.hm-pf-head .bar span { min-width: 4px; }
.hm-pf-head .acts { display: flex; gap: 6px; margin-inline-start: auto; }
.hm-pf-head .acts button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: #fff;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); transition: background .15s ease, transform .15s ease; }
.hm-pf-head .acts button:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.hm-pf-head .acts button.del:hover { background: rgba(225, 29, 72, .55); }
.hm-pf-head .acts .mud-icon-root { width: 18px; height: 18px; }

.hm-pf-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; background: #F7F7FF; border-bottom: 1px solid #E7E8FB; }
.hm-pf-palette .lb { font-size: 12px; font-weight: 800; color: #4338CA; margin-inline-end: 4px; }
.hm-pf-palette button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; cursor: pointer; font-family: inherit;
    font-size: 12px; font-weight: 700; color: var(--c); background: #fff; border: 1px solid color-mix(in srgb, var(--c) 25%, #E5E7EB); transition: all .15s ease; }
.hm-pf-palette button .mud-icon-root { width: 15px; height: 15px; }
.hm-pf-palette button:hover { background: var(--t); border-color: var(--c); transform: translateY(-1px); }

.hm-pf-scroll { overflow-x: auto; padding: 16px; background: #F8FBFB; }

/* the plan: a grid of cells, drawn like a blueprint */
.hm-plan { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
    aspect-ratio: var(--cols) / var(--rows); gap: 0; margin-inline: auto; max-width: none; border-radius: 18px;
    background-color: #fff;
    background-image:
        radial-gradient(circle, rgba(15, 118, 110, .22) 1.2px, transparent 1.6px),
        linear-gradient(rgba(15, 118, 110, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .05) 1px, transparent 1px);
    background-size: calc(100% / var(--cols)) calc(100% / var(--rows));
    background-position: calc(-50% / var(--cols)) calc(-50% / var(--rows)), 0 0, 0 0;
    box-shadow: inset 0 0 0 2px #DCEBE8, 0 2px 0 #E8F1EF; transition: width .25s ease; }
.hm-plan.design { box-shadow: inset 0 0 0 2px #C7CBFB, 0 0 0 4px rgba(99, 102, 241, .08);
    background-image:
        radial-gradient(circle, rgba(67, 56, 202, .35) 1.3px, transparent 1.7px),
        linear-gradient(rgba(67, 56, 202, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 56, 202, .08) 1px, transparent 1px); }
.hm-plan-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; font-size: 13px; color: #7C9290; pointer-events: none; }

/* every item on the plan */
.hm-pi { position: relative; margin: 4px; min-width: 0; min-height: 0; container-type: size; touch-action: manipulation; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; transition: opacity .2s ease, filter .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.hm-plan[data-can-move="1"] .hm-rm { cursor: grab; }
.hm-plan.design[data-can-move="1"] .hm-feat { cursor: grab; }
.hm-pi.hm-pi-src { opacity: .22; filter: saturate(.3); transform: scale(.96); box-shadow: none !important; outline: 2px dashed color-mix(in srgb, var(--c) 60%, transparent); outline-offset: -2px; }
.hm-pi.hm-pi-sizing { outline: 2px solid #6366F1; outline-offset: 2px; }
.hm-pi.landed { animation: hm-pi-land .55s cubic-bezier(.34, 1.56, .64, 1); }
.hm-pi.landed::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid var(--c); pointer-events: none;
    animation: hm-pi-ring .7s ease-out forwards; }
@keyframes hm-pi-land { 0% { transform: scale(.9); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes hm-pi-ring { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.12); } }

/* resize handle (design mode): bottom corner on the reading end */
.hm-pi-resize { position: absolute; bottom: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 6px; cursor: nesw-resize; z-index: 2;
    background: linear-gradient(135deg, transparent 45%, #6366F1 45% 55%, transparent 55%), linear-gradient(135deg, transparent 65%, #6366F1 65% 75%, transparent 75%), #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .2); opacity: 0; transition: opacity .15s ease; }
[dir="ltr"] .hm-pi-resize { cursor: nwse-resize; }
.hm-pi:hover .hm-pi-resize, .hm-pi.hm-pi-sizing .hm-pi-resize { opacity: 1; }

/* where the dragged item will land */
.hm-plan-snap { display: none; margin: 4px; border-radius: 14px; pointer-events: none; z-index: 3; position: relative;
    border: 2px dashed #14B8A6; background: linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(20, 184, 166, .06));
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12), inset 0 0 22px rgba(20, 184, 166, .18); transition: grid-column .08s, grid-row .08s; }
.hm-plan-snap.on { display: block; animation: hm-snap-breathe 1.1s ease-in-out infinite; }
.hm-plan-snap.bad { border-color: #E11D48; background: repeating-linear-gradient(135deg, rgba(225, 29, 72, .14) 0 8px, rgba(225, 29, 72, .05) 8px 16px);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .12); }
@keyframes hm-snap-breathe { 50% { box-shadow: 0 0 0 7px rgba(20, 184, 166, .08), inset 0 0 26px rgba(20, 184, 166, .26); } }

/* the floating copy that follows the pointer */
.hm-pi-ghost { position: fixed !important; margin: 0 !important; z-index: 4000; pointer-events: none; transform-origin: 50% 30%;
    overflow: visible !important; transition: box-shadow .2s ease, opacity .2s ease; will-change: transform; }
.hm-pi-ghost.bad { --c: #E11D48; opacity: .92; }
.hm-pi-ghost.bad.up { box-shadow: 0 30px 60px -14px rgba(15, 23, 42, .45), 0 0 0 2px #E11D48, 0 0 34px -4px rgba(225, 29, 72, .7) !important; }
.hm-pi-ghost.bad .hm-pi-chip { animation: hm-chip-shake .35s ease; }
@keyframes hm-chip-shake { 25% { margin-left: -5px; } 75% { margin-left: 5px; } }
.hm-pi-ghost.up { box-shadow: 0 30px 60px -14px rgba(15, 23, 42, .45), 0 0 0 2px var(--c), 0 0 34px -6px var(--c) !important; }
.hm-pi-ghost.landing { transition: transform .19s cubic-bezier(.2, .9, .3, 1.15), width .19s ease, height .19s ease, box-shadow .19s ease, opacity .25s ease; box-shadow: none !important; }
.hm-pi-ghost.back { opacity: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.hm-pi-ghost .hm-pi-resize, .hm-pi-ghost .tools { display: none !important; }
.hm-pi-chip { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800; color: #fff; background: #0F172A; box-shadow: 0 10px 24px -6px rgba(15, 23, 42, .5); }
.hm-pi-chip[data-kind="go"] { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.hm-pi-chip[data-kind="bad"] { background: linear-gradient(135deg, #F43F5E, #BE123C); }
.hm-pi-chip:empty { display: none; }
body.hm-plan-dragging, body.hm-plan-dragging * { cursor: grabbing !important; user-select: none !important; }
body.hm-plan-dragging .hm-pi:not(.hm-pi-src):hover { transform: none; }

/* a room */
.hm-rm { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 8px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, var(--t) 0%, #fff 70%); border: 1px solid color-mix(in srgb, var(--c) 24%, #E5ECEB);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05); }
.hm-rm::before { content: ""; position: absolute; top: 0; inset-inline: 12px; height: 4px; border-radius: 0 0 6px 6px; background: var(--c); }
.hm-rm:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--c) 60%, transparent), 0 4px 10px rgba(15, 23, 42, .06); z-index: 1; }
.hm-rm.dim { opacity: .25; filter: grayscale(.7); }
.hm-rm.off { background-image: repeating-linear-gradient(135deg, rgba(100, 116, 139, .08) 0 8px, transparent 8px 16px); }
.hm-rm .top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.hm-rm .no { font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: #0F172A; line-height: 1.1; }
.hm-rm .st { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--c); box-shadow: 0 4px 10px -3px var(--c); }
.hm-rm .st .mud-icon-root { width: 14px; height: 14px; }
.hm-rm .type { font-size: 10.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rm .who { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; }
.hm-rm .who > .mud-icon-root { width: 15px; height: 15px; flex: none; color: var(--c); }
.hm-rm .who .av { width: 21px; height: 21px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--c); }
.hm-rm .who .nm { min-width: 0; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: #1F2937; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-rm .who .nm em { font-style: normal; font-weight: 600; font-size: 10px; color: var(--c); }
.hm-rm .who .nm.ok { color: var(--c); }
.hm-rm .flags { display: flex; gap: 3px; margin-top: auto; min-height: 17px; flex-wrap: wrap; overflow: hidden; }
.hm-rm .f { display: inline-flex; align-items: center; gap: 2px; height: 17px; padding: 0 5px; border-radius: 6px; font-size: 9.5px; font-weight: 800; }
.hm-rm .f .mud-icon-root { width: 11px; height: 11px; }
.hm-rm .f.next { color: #7C3AED; background: #F1EBFF; }
.hm-rm .f.task { color: #0284C7; background: #E3F3FD; }
.hm-rm .f.note { color: #B45309; background: #FFF3D6; }
.hm-rm .f.due { color: #E11D48; background: #FFE9EE; }
/* small rooms show less */
@container (max-height: 84px) { .hm-rm .flags { display: none; } }
@container (max-height: 60px) { .hm-rm .who, .hm-rm .type { display: none; } .hm-rm { justify-content: center; } }
@container (max-width: 64px) { .hm-rm .who .nm em, .hm-rm .type { display: none; } .hm-rm .no { font-size: 16px; } }
@container (max-width: 48px) { .hm-rm .st { display: none; } .hm-rm .who { display: none; } }

/* corridor, lift, stairs, restaurant … */
.hm-feat { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 14px; overflow: hidden;
    color: var(--c); background: var(--t); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); font-size: 12px; font-weight: 800; }
.hm-feat .mud-icon-root { width: 20px; height: 20px; flex: none; }
.hm-feat > span:not(.hm-pi-resize) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-feat.k-corridor { border-radius: 8px; color: #94A3B8; font-size: 11px; letter-spacing: .4px; border: 0;
    background: repeating-linear-gradient(90deg, #CBD5E1 0 16px, transparent 16px 30px) center / 100% 2px no-repeat, #F1F5F8; }
.hm-feat.k-corridor .mud-icon-root { display: none; }
.hm-feat.k-corridor > span { padding: 0 10px; background: #F1F5F8; }
.hm-feat.k-garden { background-image: radial-gradient(circle at 20% 30%, rgba(21, 128, 61, .14) 0 10px, transparent 11px), radial-gradient(circle at 75% 70%, rgba(21, 128, 61, .12) 0 14px, transparent 15px); }
.hm-feat.k-pool { background-image: repeating-linear-gradient(170deg, rgba(2, 132, 199, .10) 0 6px, transparent 6px 14px); }
.hm-feat .tools { position: absolute; top: 3px; inset-inline-start: 3px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s ease; z-index: 2; }
.hm-feat:hover .tools { opacity: 1; }
.hm-feat .tools button { width: 20px; height: 20px; border-radius: 6px; border: 0; display: grid; place-items: center; cursor: pointer; color: #334155;
    background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.hm-feat .tools button:hover { color: #E11D48; }
.hm-feat .tools .mud-icon-root { width: 13px; height: 13px; }
@container (max-height: 40px) { .hm-feat .mud-icon-root { width: 15px; height: 15px; } }
@container (max-width: 60px) { .hm-feat:not(.pass) > span:not(.hm-pi-resize) { display: none; } }

.hm-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c); background: var(--t); }
.hm-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.hm-muted { color: #94A3B8; font-size: 12px; }
.hm-rp-table { border-radius: 18px !important; overflow: hidden; }

@media (max-width: 700px) {
    .hm-pf-head .bar { order: 5; flex-basis: 100%; max-width: none; }
    .hm-pf-scroll { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hm-pf, .hm-pi.landed, .hm-plan-snap.on { animation: none !important; } }

/* ================= Room card (click a room) ================= */
.hm-rc2-dialog.mud-dialog { border-radius: 24px !important; overflow: hidden; }
.hm-rc2-content { padding: 0 !important; margin: 0 !important; }
.hm-rc2-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 20px 18px; color: #fff; overflow: hidden;
    background: radial-gradient(300px 140px at 100% 0, rgba(255, 255, 255, .28), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #0F172A), var(--c)); }
.hm-rc2-head .no { min-width: 64px; height: 64px; padding: 0 10px; display: grid; place-items: center; border-radius: 18px; font-size: 26px; font-weight: 800;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.hm-rc2-head .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-rc2-head .tx b { font-size: 17px; font-weight: 800; }
.hm-rc2-head .tx small { font-size: 12px; opacity: .88; }
.hm-rc2-head .pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .32); }
.hm-rc2-head .pill .mud-icon-root { width: 16px; height: 16px; }
.hm-rc2-head .x { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center;
    color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer; }
.hm-rc2-head .x .mud-icon-root { width: 17px; height: 17px; }
.hm-rc2-body { padding: 16px 20px 4px; }
.hm-rc2-lb { font-size: 12px; font-weight: 800; color: #64748B; margin-bottom: 8px; }
.hm-rc2-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.hm-rc2-states button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--c); background: var(--t); border: 1.5px solid transparent; transition: all .15s ease; }
.hm-rc2-states button .mud-icon-root { width: 16px; height: 16px; }
.hm-rc2-states button:hover:not(:disabled) { border-color: var(--c); }
.hm-rc2-states button.on { color: #fff; background: var(--c); box-shadow: 0 8px 18px -6px var(--c); }
.hm-rc2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hm-rc2-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid #E5ECEB; background: #FAFCFC; }
.hm-rc2-card .h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: #64748B; }
.hm-rc2-card .h .mud-icon-root { width: 16px; height: 16px; }
.hm-rc2-card b { font-size: 14.5px; font-weight: 800; color: #0F172A; line-height: 1.5; }
.hm-rc2-card small { font-size: 12px; color: #64748B; }
.hm-rc2-card .dates { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; }
.hm-rc2-card .dates i { flex: 0 0 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .3; }
.hm-rc2-card .dates em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #EEF4F4; color: #475569; margin-inline-start: auto; }
.hm-rc2-card .due { align-self: flex-start; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; color: #E11D48; background: #FFE9EE; }
.hm-rc2-card .go { align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; cursor: pointer; padding: 2px 0;
    font-family: inherit; font-size: 12.5px; font-weight: 800; color: #0F766E; }
.hm-rc2-card .go .mud-icon-root { width: 16px; height: 16px; }
.hm-rc2-card.stay { border-color: #FBCFD9; background: linear-gradient(135deg, #FFF5F7, #fff); }
.hm-rc2-card.stay .h { color: #E11D48; }
.hm-rc2-card.next { border-color: #DDD0FB; background: linear-gradient(135deg, #F7F3FF, #fff); }
.hm-rc2-card.next .h { color: #7C3AED; }
.hm-rc2-card.task { border-color: #BFE3F7; background: linear-gradient(135deg, #F0F9FE, #fff); }
.hm-rc2-card.task .h { color: #0284C7; }
.hm-rc2-card.note { border-color: #F5DFAE; background: linear-gradient(135deg, #FFFBF0, #fff); }
.hm-rc2-card.note .h { color: #B45309; }
.hm-rc2-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 16px;
    border: 1px dashed #D5E3E1; color: #94A3B8; font-size: 13px; }
.hm-rc2-actions { display: flex; align-items: center; gap: 8px; padding: 14px 20px 18px; }

/* ================= Floor dialog ================= */
.hm-fd-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.hm-fd-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; font-weight: 800; color: #fff;
    background: linear-gradient(150deg, #0B4F4A, #0F766E 70%, #14B8A6); box-shadow: 0 10px 22px -8px rgba(15, 118, 110, .7); }
.hm-fd-head .tx { display: flex; flex-direction: column; }
.hm-fd-head .tx b { font-size: 17px; font-weight: 800; color: #0F172A; }
.hm-fd-head .tx small { font-size: 12.5px; color: #64748B; }
.hm-fd-hint { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: #0F766E; background: #E6F6F4; }


/* ================= Floor plan: passages (المعابر), drawing, shapes ================= */
/* a passage: a walking strip with a dashed centre line, across or down */
.hm-feat.pass { border-radius: 8px; border: 0; font-size: 11px; letter-spacing: .3px; color: var(--c); gap: 5px;
    background: linear-gradient(90deg, transparent 0 0) , var(--t); }
.hm-feat.pass::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent) 0 14px, transparent 14px 26px) center / 100% 2px no-repeat; }
.hm-feat.pass.v::before { background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, transparent) 0 14px, transparent 14px 26px) center / 2px 100% no-repeat; }
.hm-feat.pass > .mud-icon-root, .hm-feat.pass > span:not(.hm-pi-resize) { position: relative; z-index: 1; background: var(--t); padding: 0 4px; border-radius: 6px; }
.hm-feat.pass > .mud-icon-root { width: 16px; height: 16px; padding: 2px; }
.hm-feat.pass.v { flex-direction: column; }
.hm-feat.pass.v > span:not(.hm-pi-resize) { writing-mode: vertical-rl; padding: 6px 0; }
.hm-feat.k-corridor > .mud-icon-root { display: inline-block; }
/* each passage kind has its own floor */
.hm-feat.k-emergencyroute { background: repeating-linear-gradient(45deg, rgba(220, 38, 38, .10) 0 8px, rgba(220, 38, 38, .03) 8px 16px), var(--t); box-shadow: inset 0 0 0 1.5px rgba(220, 38, 38, .35); }
.hm-feat.k-servicecorridor { background: repeating-linear-gradient(90deg, rgba(71, 85, 105, .07) 0 1px, transparent 1px 10px), var(--t); }
.hm-feat.k-bridge { background: repeating-linear-gradient(90deg, rgba(139, 94, 52, .16) 0 4px, transparent 4px 11px), var(--t); box-shadow: inset 0 2px 0 rgba(139, 94, 52, .4), inset 0 -2px 0 rgba(139, 94, 52, .4); }
.hm-feat.k-bridge.v { background: repeating-linear-gradient(180deg, rgba(139, 94, 52, .16) 0 4px, transparent 4px 11px), var(--t); box-shadow: inset 2px 0 0 rgba(139, 94, 52, .4), inset -2px 0 0 rgba(139, 94, 52, .4); }
.hm-feat.k-ramp { background: repeating-linear-gradient(-45deg, rgba(37, 99, 235, .12) 0 6px, transparent 6px 12px), var(--t); }
.hm-feat.k-lobby { border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, .10), transparent 70%), repeating-conic-gradient(rgba(147, 51, 234, .05) 0 25%, transparent 0 50%) 0 0 / 22px 22px, var(--t); }
.hm-feat.k-lobby::before { display: none; }
.hm-feat.k-walkway { background: radial-gradient(circle, rgba(22, 163, 74, .22) 1.5px, transparent 2px) 0 0 / 12px 12px, var(--t); }
.hm-feat.k-escalator { background: repeating-linear-gradient(90deg, rgba(14, 116, 144, .18) 0 3px, transparent 3px 8px), var(--t); }
.hm-feat.k-escalator.v { background: repeating-linear-gradient(180deg, rgba(14, 116, 144, .18) 0 3px, transparent 3px 8px), var(--t); }
@container (max-width: 34px) { .hm-feat.pass > span:not(.hm-pi-resize) { display: none; } }
@container (max-height: 34px) { .hm-feat.pass:not(.v) > .mud-icon-root { display: none; } }

/* palette: pick a brush, then draw */
.hm-pf-palette { flex-direction: column; align-items: stretch; gap: 8px; }
.hm-pf-palette .grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hm-pf-palette .grp .lb { display: inline-flex; align-items: center; gap: 4px; min-width: 76px; }
.hm-pf-palette .grp .lb .mud-icon-root { width: 15px; height: 15px; }
.hm-pf-palette button.on { color: #fff; background: var(--c); border-color: var(--c); box-shadow: 0 8px 18px -8px var(--c); }
.hm-pf-palette .brush { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; color: #3730A3;
    background: #fff; border: 1px dashed #C7CBFB; }
.hm-pf-palette .brush .dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--c); background: var(--t); }
.hm-pf-palette .brush .dot .mud-icon-root { width: 16px; height: 16px; }
.hm-pf-palette .brush button { margin-inline-start: auto; border: 0; background: transparent; color: #4338CA; font-weight: 800; text-decoration: underline; padding: 2px 4px; }
.hm-pf-palette .brush button:hover { transform: none; background: transparent; }

.hm-plan.design { cursor: crosshair; }
.hm-plan.drawing { cursor: crosshair !important; }
.hm-plan.drawing .hm-pi { pointer-events: none; }
.hm-plan-snap[data-size]::after { content: attr(data-size); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 2px 8px;
    border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: #0F766E; white-space: nowrap; direction: ltr; }
.hm-plan-snap.bad[data-size]::after { background: #E11D48; }
.hm-zoom span { cursor: pointer; }

/* the floor shape picker */
.hm-shape-head { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 14px; }
.hm-shape-head > .mud-icon-root { color: #4338CA; margin-top: 2px; }
.hm-shape-head b { display: block; font-size: 16px; font-weight: 800; color: #0F172A; }
.hm-shape-head small { font-size: 12.5px; color: #64748B; }
.hm-shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hm-shape { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; border-radius: 16px; cursor: pointer; font-family: inherit;
    background: #fff; border: 1.5px solid #E2E8EA; transition: all .18s ease; }
.hm-shape:hover { border-color: #99DCD3; transform: translateY(-2px); }
.hm-shape.on { border-color: #0F766E; background: #F0FAF9; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.hm-shape b { font-size: 13.5px; font-weight: 800; color: #0F172A; }
.hm-shape small { font-size: 11.5px; color: #64748B; text-align: center; }
.hm-shape .mini { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 4px; border-radius: 10px; overflow: hidden;
    background: #F8FBFB; box-shadow: inset 0 0 0 1px #E3ECEB; }
.hm-shape .mini i { position: absolute; border-radius: 3px; }
.hm-shape .mini i.c { background: repeating-linear-gradient(90deg, #CBD5E1 0 5px, #EEF2F5 5px 9px); border-radius: 2px; }
.hm-shape .mini i.r { background: repeating-linear-gradient(90deg, #5EEAD4 0 22%, #fff 22% 25%); opacity: .9; }
.hm-shape .mini i.k { background: #0F766E; }
.hm-shape.on .mini i.r { background: repeating-linear-gradient(90deg, #14B8A6 0 22%, #fff 22% 25%); }
/* the main corridor now uses the passage look above (its old line only ran across) */
.hm-feat.k-corridor { background: var(--t); color: #64748B; }
.hm-feat.k-corridor > span:not(.hm-pi-resize) { background: var(--t); }

/* corridor width: the picker's choice and the -/+ on each passage */
.hm-shape-width { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 10px; border-radius: 14px; background: #F6F9F9; }
.hm-shape-width > span { font-size: 12.5px; font-weight: 800; color: #334155; margin-inline-end: 4px; }
.hm-shape-width button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; cursor: pointer; font-family: inherit;
    font-size: 12px; font-weight: 700; color: #334155; background: #fff; border: 1px solid #E2E8EA; transition: all .15s ease; }
.hm-shape-width button i { display: inline-block; width: 18px; border-radius: 2px; background: repeating-linear-gradient(90deg, #94A3B8 0 4px, #CBD5E1 4px 7px); }
.hm-shape-width button.on { color: #fff; background: #0F766E; border-color: #0F766E; }
.hm-shape-width button.on i { background: repeating-linear-gradient(90deg, #fff 0 4px, rgba(255, 255, 255, .5) 4px 7px); }
.hm-feat .tools .wd { min-width: 18px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; font-weight: 800; color: #0F172A;
    background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.hm-feat .tools button:disabled { opacity: .4; cursor: default; }
.hm-feat.pass .tools { z-index: 3; }

/* ================= Floor designer (rooms/designer) ================= */
.dz { --sel: #2563EB; display: flex; flex-direction: column; height: calc(100vh - 104px); min-height: 560px; border-radius: 18px; overflow: hidden;
    background: #0E1D1C; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .45); color: #0F172A; }

/* top bar */
.dz-top { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px; color: #E6F2F0; flex: none;
    background: linear-gradient(90deg, #0B2B29, #0F3A37); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dz-back { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 10px; color: #CFE8E4; text-decoration: none;
    font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .06); }
.dz-back:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dz-back .mud-icon-root { width: 18px; height: 18px; }
.dz-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.dz-title .mud-icon-root { color: #5EEAD4; }
.dz-floors { flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.dz-floors button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 6px; border-radius: 10px; cursor: pointer; flex: none;
    font-family: inherit; font-size: 12.5px; font-weight: 700; color: #CFE3E0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.dz-floors button i { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-weight: 800; background: rgba(255, 255, 255, .1); }
.dz-floors button small { font-size: 11px; opacity: .65; }
.dz-floors button:hover { background: rgba(255, 255, 255, .1); }
.dz-floors button.on { color: #fff; background: #0F766E; border-color: #14B8A6; box-shadow: 0 6px 16px -6px rgba(20, 184, 166, .8); }
.dz-floors button.on i { background: rgba(255, 255, 255, .22); }
.dz-floors button.add { padding: 0 8px; }
.dz-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.dz-acts button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 0; cursor: pointer; color: #CFE3E0; background: transparent; }
.dz-acts button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: #fff; }
.dz-acts button:disabled { opacity: .3; cursor: default; }
.dz-acts button.on { background: #0F766E; color: #fff; }
.dz-acts .mud-icon-root { width: 20px; height: 20px; }
.dz-acts .zoom { min-width: 46px; text-align: center; font-size: 12px; font-weight: 800; color: #E6F2F0; }
.dz-acts .sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .12); }

/* body: toolbar | stage | properties */
.dz-body { flex: 1; min-height: 0; display: flex; }

.dz-tools { width: 60px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; background: #0E1D1C;
    border-inline-end: 1px solid rgba(255, 255, 255, .06); z-index: 5; }
.dz-tool { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 0; cursor: pointer;
    color: #BFD7D3; background: transparent; transition: background .15s ease, color .15s ease, transform .15s ease; touch-action: none; }
.dz-tool .mud-icon-root { width: 22px; height: 22px; }
.dz-tool:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dz-tool.on { color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 8px 18px -8px rgba(20, 184, 166, .9); }
.dz-tool:active { transform: scale(.94); }
.dz-tool kbd { position: absolute; bottom: 2px; inset-inline-end: 3px; font: 800 8.5px/1 inherit; color: currentColor; opacity: .55; background: none; border: 0; padding: 0; }
.dz-tool[style] { color: color-mix(in srgb, var(--c) 55%, #fff); }
.dz-tool[style].on { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.dz-tool .more { position: absolute; bottom: 4px; inset-inline-start: 4px; width: 0; height: 0; border-style: solid; border-width: 0 0 6px 6px;
    border-color: transparent transparent currentColor transparent; opacity: .7; }
[dir="rtl"] .dz-tool .more, .dz[dir="rtl"] .dz-tool .more { border-width: 0 6px 6px 0; border-color: transparent currentColor currentColor transparent; border-left-color: transparent; border-top-color: transparent; }
.dz-tsep { width: 30px; height: 1px; margin: 6px 0; background: rgba(255, 255, 255, .1); }
.dz-group { position: relative; }
.dz-fly { position: absolute; top: 0; inset-inline-start: calc(100% + 10px); width: 236px; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px;
    border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -12px rgba(2, 20, 19, .55), 0 0 0 1px rgba(15, 23, 42, .06); animation: dz-fly .18s ease; z-index: 20; }
@keyframes dz-fly { from { opacity: 0; transform: translateX(8px); } }
.dz-fly .h { padding: 4px 6px 8px; font-size: 13px; font-weight: 800; color: #0F172A; }
.dz-fly .h small { display: block; font-size: 11px; font-weight: 600; color: #94A3B8; }
.dz-fly button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 10px; cursor: grab; text-align: start;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #1F2937; background: transparent; touch-action: none; }
.dz-fly button:hover { background: var(--t); }
.dz-fly button.on { background: var(--t); box-shadow: inset 0 0 0 1.5px var(--c); }
.dz-fly button .ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--c); background: var(--t); }
.dz-fly button .ic .mud-icon-root { width: 18px; height: 18px; }

/* stage and paper */
.dz-stage { position: relative; flex: 1; min-width: 0; overflow: auto; background-color: #D9E2E1;
    background-image: radial-gradient(circle, rgba(15, 23, 42, .09) 1px, transparent 1.5px); background-size: 16px 16px; }
.dz-paper { display: grid; place-items: center; min-width: 100%; min-height: 100%; width: max-content; padding: 48px; box-sizing: border-box; }
.dz-canvas { position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-template-rows: repeat(var(--rows), var(--cell));
    background-color: #fff;
    background-image: linear-gradient(rgba(15, 118, 110, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, .07) 1px, transparent 1px);
    background-size: var(--cell) var(--cell);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .1), 0 30px 60px -24px rgba(15, 23, 42, .35); border-radius: 4px; user-select: none; -webkit-user-select: none; }
.dz-loading, .dz-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #475569; }
.dz-empty .mud-icon-root { width: 52px; height: 52px; color: #94A3B8; }

/* cursors by tool */
.dz[data-tool="select"] .dz-item { cursor: move; }
.dz[data-tool="hand"] .dz-stage, .dz.dz-pan .dz-stage { cursor: grab; }
.dz[data-tool="hand"] .dz-stage:active, .dz.dz-pan .dz-stage:active { cursor: grabbing; }
.dz[data-tool="room"] .dz-canvas, .dz[data-tool^="f:"] .dz-canvas { cursor: crosshair; }
.dz.dz-busy, .dz.dz-busy * { user-select: none !important; }

/* items */
.dz-item { position: relative; margin: 2px; min-width: 0; min-height: 0; container-type: size; touch-action: none; transition: box-shadow .15s ease, outline-color .15s ease; }
.dz-room { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 10px; overflow: hidden; text-align: center;
    background: linear-gradient(180deg, var(--t), #fff 75%); border: 1px solid color-mix(in srgb, var(--c) 30%, #E2E8EA); }
.dz-room::before { content: ""; position: absolute; top: 0; inset-inline: 8px; height: 3px; border-radius: 0 0 4px 4px; background: var(--c); }
.dz-room b { font-size: 16px; font-weight: 800; color: #0F172A; line-height: 1.1; }
.dz-room small { max-width: 92%; font-size: 10px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-room .st { position: absolute; top: 5px; inset-inline-end: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--c); }
.dz-room .st .mud-icon-root { width: 12px; height: 12px; }
@container (max-height: 64px) { .dz-room small { display: none; } }
@container (max-width: 56px) { .dz-room .st { display: none; } .dz-room b { font-size: 13px; } }
.dz-item:hover:not(.sel) { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sel) 55%, transparent); }
.dz-item.sel { outline: 2px solid var(--sel); outline-offset: 1px; z-index: 4; overflow: visible; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .55); }
.dz-item.dragging { z-index: 10; opacity: .9; pointer-events: none; transition: none; box-shadow: 0 24px 40px -12px rgba(15, 23, 42, .5); }
.dz-item.pop { animation: dz-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes dz-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.03); } 100% { transform: none; } }

/* eight handles on the selected item */
.dz-h { position: absolute; width: 11px; height: 11px; border-radius: 3px; background: #fff; border: 2px solid var(--sel); z-index: 6; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.dz-h.n { top: -8px; left: 50%; margin-left: -5.5px; cursor: ns-resize; }
.dz-h.s { bottom: -8px; left: 50%; margin-left: -5.5px; cursor: ns-resize; }
.dz-h.e { right: -8px; top: 50%; margin-top: -5.5px; cursor: ew-resize; }
.dz-h.w { left: -8px; top: 50%; margin-top: -5.5px; cursor: ew-resize; }
.dz-h.ne { top: -8px; right: -8px; cursor: nesw-resize; }
.dz-h.sw { bottom: -8px; left: -8px; cursor: nesw-resize; }
.dz-h.nw { top: -8px; left: -8px; cursor: nwse-resize; }
.dz-h.se { bottom: -8px; right: -8px; cursor: nwse-resize; }
.dz-h:hover { background: var(--sel); }

/* where things will land */
.dz-snap { display: none; margin: 2px; border-radius: 10px; pointer-events: none; z-index: 8; position: relative;
    border: 2px dashed #14B8A6; background: rgba(20, 184, 166, .12); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.dz-snap.on { display: block; }
.dz-snap.bad { border-color: #E11D48; background: repeating-linear-gradient(135deg, rgba(225, 29, 72, .16) 0 7px, rgba(225, 29, 72, .05) 7px 14px); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.dz-snap[data-size]::after { content: attr(data-size); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 800; color: #fff; background: #0F766E; white-space: nowrap; direction: ltr; }
.dz-snap.bad[data-size]::after { background: #E11D48; }

/* the tool being dragged from the toolbar */
.dz-ghost { position: fixed; top: 0; left: 0; z-index: 5000; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
    border-radius: 12px; font-size: 12.5px; font-weight: 800; color: #fff; background: #0F172A; box-shadow: 0 16px 32px -10px rgba(15, 23, 42, .6); }
.dz-ghost svg { width: 18px; height: 18px; fill: currentColor; }
.dz-ghost.ok { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.dz-ghost.bad { background: linear-gradient(135deg, #F43F5E, #BE123C); }

/* properties */
.dz-props { width: 300px; flex: none; overflow-y: auto; background: #fff; border-inline-start: 1px solid #E3ECEB; }
.dz-ph { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, #0F766E) 80%, #0F172A), var(--c, #14B8A6)); }
.dz-ph.floor { --c: #0F766E; }
.dz-ph .big { min-width: 48px; height: 48px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px; font-size: 20px; font-weight: 800;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }
.dz-ph .big.ic .mud-icon-root { width: 24px; height: 24px; }
.dz-ph b { display: block; font-size: 15px; font-weight: 800; }
.dz-ph small { font-size: 12px; opacity: .88; }
.dz-pbody { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.dz-lb { margin-top: 4px; font-size: 12px; font-weight: 800; color: #64748B; }
.dz-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.dz-states button { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 11px; font-weight: 700; color: var(--c); background: var(--t); border: 1.5px solid transparent; }
.dz-states button .mud-icon-root { width: 16px; height: 16px; }
.dz-states button.on { color: #fff; background: var(--c); }
.dz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dz-num { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: #F4F8F8; border: 1px solid #E3ECEB; }
.dz-num span { flex: 1; padding-inline-start: 4px; font-size: 11.5px; font-weight: 700; color: #64748B; }
.dz-num b { min-width: 22px; text-align: center; font-size: 13px; font-weight: 800; }
.dz-num button { width: 24px; height: 24px; border: 0; border-radius: 7px; cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1; color: #0F766E; background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.dz-num button:hover { background: #E6F6F4; }
.dz-tip { display: flex; gap: 8px; padding: 10px; border-radius: 12px; font-size: 12px; line-height: 1.7; color: #0F766E; background: #F0FAF9; }
.dz-tip .mud-icon-root { width: 18px; height: 18px; flex: none; }
.dz-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dz-list button { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; cursor: pointer; text-align: start; font-family: inherit;
    background: #fff; border: 1px solid #E3ECEB; }
.dz-list button:hover { border-color: var(--c); background: var(--t); }
.dz-list button i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.dz-list button b { font-size: 13px; font-weight: 800; }
.dz-list button small { min-width: 0; font-size: 10.5px; color: #94A3B8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dz-muted { grid-column: 1 / -1; font-size: 12px; color: #94A3B8; }

/* status bar and shortcuts */
.dz-status { display: flex; align-items: center; gap: 18px; height: 30px; padding: 0 14px; flex: none; font-size: 12px; color: #9FB5B2; background: #0B1716;
    border-top: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden; }
.dz-status span { display: inline-flex; align-items: center; gap: 6px; }
.dz-status .mud-icon-root { width: 15px; height: 15px; color: #5EEAD4; }
.dz-status .dz-cursor { margin-inline-start: auto; direction: rtl; color: #CFE3E0; }
.dz-help { position: sticky; bottom: 16px; float: left; margin: -16px 0 16px 16px; display: grid; gap: 6px; width: 300px; padding: 14px; border-radius: 16px; font-size: 12.5px;
    color: #E6F2F0; background: rgba(11, 26, 25, .94); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); z-index: 30; }
.dz-help b { font-size: 13.5px; }
.dz-help kbd { display: inline-block; min-width: 18px; padding: 1px 5px; margin: 0 2px; border-radius: 5px; font: 700 11px/1.4 inherit; text-align: center; color: #0B1716;
    background: #CFE8E4; }

@media (max-width: 900px) {
    .dz { height: calc(100vh - 90px); border-radius: 12px; }
    .dz-props { position: absolute; inset-inline-end: 8px; bottom: 40px; width: min(300px, calc(100% - 80px)); max-height: 46%; border-radius: 16px;
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .4); border: 0; z-index: 25; }
    .dz-body { position: relative; }
    .dz-title { display: none; }
}
/* rooms page: links into the floor designer */
a.hm-design-btn { text-decoration: none; }
.hm-pf-head .acts a.dsg { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 10px; text-decoration: none;
    font-size: 12.5px; font-weight: 800; color: #0B2B29; background: #CCFBF1; border: 1px solid rgba(255, 255, 255, .4); transition: transform .15s ease, background .15s ease; }
.hm-pf-head .acts a.dsg:hover { background: #fff; transform: translateY(-1px); }
.hm-pf-head .acts a.dsg .mud-icon-root { width: 17px; height: 17px; }
/* delete-floor window */
.hm-df { display: flex; align-items: flex-start; gap: 12px; margin-top: 6px; }
.hm-df .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #E11D48; background: #FFE9EE; }
.hm-df b { display: block; font-size: 16px; font-weight: 800; color: #0F172A; }
.hm-df small { font-size: 12.5px; line-height: 1.7; color: #64748B; }
.hm-df-rooms { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12px; color: #475569; background: #F4F8F8; direction: ltr; text-align: right; }
.hm-df-warn { margin-top: 10px; padding: 10px; border-radius: 10px; font-size: 12.5px; color: #B45309; background: #FFF7E6; }

/* designer resize grips: whole edges + corners (override the corridor label styles, which also target children) */
.dz-item > i.dz-edge, .dz-item > i.dz-h { position: absolute !important; display: block !important; padding: 0 !important; margin: 0 !important;
    writing-mode: horizontal-tb !important; font-style: normal; z-index: 7; }
.dz-item > i.dz-edge { background: transparent; }
.dz-item > i.dz-edge::after { content: ""; position: absolute; background: var(--sel); opacity: 0; border-radius: 3px; transition: opacity .12s ease; }
.dz-item > i.dz-edge:hover::after { opacity: .9; }
.dz-item > i.dz-edge.n, .dz-item > i.dz-edge.s { left: 8px; right: 8px; height: 14px; cursor: ns-resize; }
.dz-item > i.dz-edge.n { top: -8px; } .dz-item > i.dz-edge.s { bottom: -8px; }
.dz-item > i.dz-edge.n::after, .dz-item > i.dz-edge.s::after { left: 0; right: 0; top: 5px; height: 4px; }
.dz-item > i.dz-edge.e, .dz-item > i.dz-edge.w { top: 8px; bottom: 8px; width: 14px; cursor: ew-resize; }
.dz-item > i.dz-edge.e { right: -8px; } .dz-item > i.dz-edge.w { left: -8px; }
.dz-item > i.dz-edge.e::after, .dz-item > i.dz-edge.w::after { top: 0; bottom: 0; left: 5px; width: 4px; }
.dz-item > i.dz-h { width: 14px; height: 14px; border-radius: 4px; background: #fff; border: 2.5px solid var(--sel); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.dz-item > i.dz-h::before { content: ""; position: absolute; inset: -9px; }   /* a bigger target than it looks */
.dz-item > i.dz-h:hover { background: var(--sel); transform: scale(1.15); }
.dz-item > i.dz-h.ne { top: -9px; right: -9px; left: auto; bottom: auto; cursor: nesw-resize; }
.dz-item > i.dz-h.sw { bottom: -9px; left: -9px; top: auto; right: auto; cursor: nesw-resize; }
.dz-item > i.dz-h.nw { top: -9px; left: -9px; right: auto; bottom: auto; cursor: nwse-resize; }
.dz-item > i.dz-h.se { bottom: -9px; right: -9px; top: auto; left: auto; cursor: nwse-resize; }
/* thin items (a 1-cell corridor): edges reach further out so they can still be grabbed */
@container (max-height: 40px) { .dz-item > i.dz-edge.e, .dz-item > i.dz-edge.w { top: -4px; bottom: -4px; } }
@container (max-width: 40px) { .dz-item > i.dz-edge.n, .dz-item > i.dz-edge.s { left: -4px; right: -4px; } }
.dz-item.sel { overflow: visible !important; }
.dz-busy .dz-item > i.dz-edge::after { opacity: 0 !important; }

/* ================= Floor templates gallery ================= */
.hm-tg-dialog.mud-dialog { border-radius: 24px !important; overflow: hidden; }
.hm-tg-content { padding: 0 !important; margin: 0 !important; }
.hm-tg-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff;
    background: radial-gradient(420px 160px at 100% 0, rgba(94, 234, 212, .32), transparent 70%), linear-gradient(135deg, #0B2B29, #0F766E 65%, #14B8A6); }
.hm-tg-head .ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.hm-tg-head .tx { flex: 1; min-width: 0; }
.hm-tg-head b { display: block; font-size: 17px; font-weight: 800; }
.hm-tg-head small { font-size: 12.5px; opacity: .85; }
.hm-tg-head .x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); }
.hm-tg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-bottom: 1px solid #E3ECEB; background: #F8FBFB; }
.hm-tg-bar .cats, .hm-tg-bar .width { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hm-tg-bar button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-family: inherit;
    font-size: 12.5px; font-weight: 700; color: #334155; background: #fff; border: 1px solid #DDE7E6; }
.hm-tg-bar button b { min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; background: #EEF4F4; color: #0F766E; }
.hm-tg-bar button.on { color: #fff; background: #0F766E; border-color: #0F766E; }
.hm-tg-bar button.on b { background: rgba(255, 255, 255, .22); color: #fff; }
.hm-tg-bar .width span { font-size: 12px; font-weight: 800; color: #64748B; }
.hm-tg-bar .width button { width: 32px; padding: 0; justify-content: center; }
.hm-tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 16px 20px 20px; max-height: 62vh; overflow-y: auto; }
.hm-tg-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; cursor: pointer; text-align: start;
    font-family: inherit; background: #fff; border: 1.5px solid #E3ECEB; transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.hm-tg-card:hover { border-color: #99DCD3; transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(15, 118, 110, .5); }
.hm-tg-card.on { border-color: #0F766E; box-shadow: 0 0 0 4px rgba(20, 184, 166, .16), 0 14px 30px -16px rgba(15, 118, 110, .5); }
.hm-tg-card.skel { height: 260px; background: linear-gradient(90deg, #F1F5F5 25%, #E8EFEE 50%, #F1F5F5 75%) 0 0 / 200% 100%; animation: hm-tg-skel 1.2s linear infinite; cursor: default; }
@keyframes hm-tg-skel { to { background-position: -200% 0; } }
.hm-tg-card .map { position: relative; display: block; width: 100%; max-height: 170px; margin: 0 auto; border-radius: 10px; overflow: hidden;
    background-color: #F8FBFB; background-image: linear-gradient(rgba(15, 118, 110, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, .05) 1px, transparent 1px);
    background-size: 8px 8px; box-shadow: inset 0 0 0 1px #E3ECEB; }
.hm-tg-card .map i { position: absolute; box-sizing: border-box; border-radius: 2px; }
.hm-tg-card .map i.pass { background: color-mix(in srgb, var(--c) 30%, #fff); }
.hm-tg-card .map i.fac { background: var(--t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.hm-tg-card .map i.room { background: linear-gradient(180deg, #5EEAD4, #2DD4BF); border: 1px solid #fff; border-radius: 3px; }
.hm-tg-card.on .map i.room { background: linear-gradient(180deg, #14B8A6, #0F766E); }
.hm-tg-card .tx { display: flex; flex-direction: column; gap: 3px; }
.hm-tg-card .tx b { font-size: 14px; font-weight: 800; color: #0F172A; }
.hm-tg-card .tx small { font-size: 11.5px; line-height: 1.6; color: #64748B; }
.hm-tg-card .meta { display: flex; gap: 6px; margin-top: 2px; }
.hm-tg-card .meta em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #475569; background: #F1F5F5; }
.hm-tg-card .meta em.ok { color: #0F766E; background: #E6F6F4; }
.hm-tg-card .meta em.warn { color: #B45309; background: #FFF3D6; }
.hm-tg-card .tick { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    color: #fff; background: #0F766E; box-shadow: 0 4px 10px rgba(15, 118, 110, .4); }
.hm-tg-card .tick .mud-icon-root { width: 16px; height: 16px; }
.hm-tg-note { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; padding-inline-start: 12px; font-size: 12px; color: #B45309; }
.hm-tg-note .mud-icon-root { width: 16px; height: 16px; }
/* the designer's "ready designs" button */
.dz-acts button.tpl { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-family: inherit; font-size: 12.5px; font-weight: 800;
    color: #0B2B29; background: #99F6E4; }
.dz-acts button.tpl:hover { background: #fff; color: #0B2B29; }
/* ================= Floor window: design picker + live preview ================= */
.hm-fd2-dialog.mud-dialog { border-radius: 24px !important; overflow: hidden; }
.hm-fd2-content { padding: 0 !important; margin: 0 !important; }
.hm-fd2-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #E3ECEB; }
.hm-fd2-head .tx { flex: 1; }
.hm-fd2-head .tx b { display: block; font-size: 17px; font-weight: 800; color: #0F172A; }
.hm-fd2-head .tx small { font-size: 12.5px; color: #64748B; }
.hm-fd2-head .x { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #475569; background: #F1F5F5; }
.hm-fd2-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; padding: 16px 20px 4px; }
.hm-fd2-body .form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hm-fd2-body .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.hm-fd2-body .lb { font-size: 12.5px; font-weight: 800; color: #334155; }
.hm-fd2-body .picks { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.hm-fd2-body .pick { flex: 0 0 104px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; cursor: pointer; text-align: center;
    font-family: inherit; background: #fff; border: 1.5px solid #E3ECEB; scroll-snap-align: start; transition: border-color .15s ease, box-shadow .2s ease; }
.hm-fd2-body .pick:hover { border-color: #99DCD3; }
.hm-fd2-body .pick.on { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(20, 184, 166, .16); }
.hm-fd2-body .pick b { font-size: 11.5px; font-weight: 800; color: #0F172A; line-height: 1.3; }
.hm-fd2-body .pick .blank { height: 64px; display: grid; place-items: center; border-radius: 8px; color: #94A3B8; background: #F8FBFB; border: 1.5px dashed #CFE0DE; }
.hm-fd2-body .width { display: flex; align-items: center; gap: 6px; padding-top: 6px; }
.hm-fd2-body .width span { font-size: 12px; font-weight: 800; color: #64748B; margin-inline-end: 4px; }
.hm-fd2-body .width button { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 800; color: #334155; background: #fff; border: 1px solid #DDE7E6; }
.hm-fd2-body .width button.on { color: #fff; background: #0F766E; border-color: #0F766E; }
.hm-fd2-body .view { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 18px; background: #F4F8F8; }
.hm-fd2-body .view .warn { padding: 8px 10px; border-radius: 10px; font-size: 12px; color: #B42318; background: #FEECEC; }
@media (max-width: 760px) { .hm-fd2-body { grid-template-columns: 1fr; } }

/* the live plan drawing */
.hm-pp { display: flex; flex-direction: column; gap: 8px; }
.hm-pp .board { position: relative; width: 100%; max-height: 300px; margin: 0 auto; border-radius: 8px; overflow: hidden; background-color: #fff;
    background-image: linear-gradient(rgba(15, 118, 110, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, .08) 1px, transparent 1px);
    background-size: calc(100% / var(--gc)) calc(100% / var(--gr)); box-shadow: inset 0 0 0 1.5px #CFE0DE; transition: aspect-ratio .2s ease; }
.hm-pp.sm .board { height: 64px; width: auto; max-width: 100%; background-image: none; background-color: #F8FBFB; }
.hm-pp .board i { position: absolute; box-sizing: border-box; border-radius: 2px; transition: all .2s ease; }
.hm-pp .board i.pass { background: color-mix(in srgb, var(--c) 30%, #fff); }
.hm-pp .board i.fac { background: var(--t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.hm-pp .board i.spot { border: 1.5px dashed #5EEAD4; background: rgba(94, 234, 212, .12); border-radius: 3px; }
.hm-pp.sm .board i.spot { border-width: 1px; background: #5EEAD4; border-color: #fff; }
.hm-pp .board i.room { background: linear-gradient(180deg, #5EEAD4, #2DD4BF); border: 1px solid #fff; border-radius: 3px; }
.hm-pp .board i.out { background: repeating-linear-gradient(135deg, rgba(225, 29, 72, .45) 0 4px, rgba(225, 29, 72, .2) 4px 8px) !important; box-shadow: inset 0 0 0 1.5px #E11D48; }
.hm-pp .cap { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; color: #475569; }
.hm-pp .cap span { display: inline-flex; align-items: center; gap: 5px; }
.hm-pp .cap .mud-icon-root { width: 15px; height: 15px; }
.hm-pp .cap i { width: 10px; height: 10px; border-radius: 3px; }
.hm-pp .cap .spots i { border: 1.5px dashed #2DD4BF; }
.hm-pp .cap .rooms i { background: #2DD4BF; }
.hm-pp .cap .bad { color: #B42318; }

/* floor window: the building picker (lift buttons, top floor first) */
.hm-bldg { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #F4F8F8, #EAF2F1); border: 1px solid #DDE9E7; }
.hm-bldg .more { align-self: center; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 10px; border: 1px dashed #A7C8C3; border-radius: 999px;
    cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 700; color: #0F766E; background: #fff; }
.hm-bldg .more:hover { background: #E6F6F4; }
.hm-bldg .more .mud-icon-root { width: 16px; height: 16px; }
.hm-bldg .levels { display: flex; flex-direction: column; gap: 4px; max-height: 236px; overflow-y: auto; padding: 2px; }
.hm-bldg .lvl { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: 12px; cursor: pointer; text-align: start;
    font-family: inherit; background: #fff; border: 1.5px solid #E3ECEB; transition: all .15s ease; }
.hm-bldg .lvl:hover:not(:disabled) { border-color: #14B8A6; }
.hm-bldg .lvl .badge { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: 800;
    color: #0F766E; background: #E6F6F4; border: 1.5px solid #B8E5DF; }
.hm-bldg .lvl.ground .badge { color: #7C3AED; background: #F1EBFF; border-color: #DDD0FB; }
.hm-bldg .lvl.base .badge { color: #57534E; background: #F1EFEC; border-color: #E2DDD6; }
.hm-bldg .lvl .nm { flex: 1; font-size: 13px; font-weight: 700; color: #1F2937; }
.hm-bldg .lvl em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #64748B; background: #F1F5F5; }
.hm-bldg .lvl em .mud-icon-root { width: 13px; height: 13px; }
.hm-bldg .lvl em.me { color: #0369A1; background: #E0F2FE; }
.hm-bldg .lvl.taken { cursor: not-allowed; opacity: .55; background: repeating-linear-gradient(135deg, #F8FAFA 0 6px, #F1F5F5 6px 12px); }
.hm-bldg .lvl.on { border-color: #0F766E; background: #F0FAF9; box-shadow: 0 6px 16px -8px rgba(15, 118, 110, .6); }
.hm-bldg .lvl.on .badge { color: #fff; background: #0F766E; border-color: #0F766E; }
.hm-bldg .lvl.on em.sel { color: #fff; background: #0F766E; }
.hm-fd2-body.simple { grid-template-columns: 1fr; }


/* ============ the rooms board (/rooms) — OrderOrange's tables board, in teal ============
   Every floor is a free panel on a big board: move it by its title bar, stretch it by either
   bottom corner. Rooms are cards inside it; tap one for its actions. */
.hm-sal-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-sal-stats span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fff; border: 1px solid #E2E8F0; }
.hm-sal-stats .ok { color: #15803D; }
.hm-sal-stats .hot { color: #B91C1C; }
.hm-sal-stats .res { color: #1D4ED8; }
.hm-sal-stats .cln { color: #B45309; }

.sal-board-scroll {
    overflow: auto;
    border-radius: 22px;
    height: calc(100vh - 190px);
    min-height: 420px;
    background: #E6F0EF;
    box-shadow: inset 0 2px 12px rgba(15, 23, 42, .06);
    -webkit-overflow-scrolling: touch;
}
.sal-board {
    position: relative;
    width: max(1700px, 100%);
    height: max(1000px, 100%);
    background:
        radial-gradient(rgba(15, 118, 110, .14) 1.2px, transparent 1.4px) 0 0 / 26px 26px,
        linear-gradient(160deg, #F7FBFB, #E6F0EF);
}
.sal-board .sal {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    min-height: 140px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #DCE9E7;
    border-radius: 20px;
    padding: 12px 14px 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 14px 34px rgba(15, 23, 42, .07);
}
.sal-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.sal-head:active { cursor: grabbing; }
.sal-drag { display: grid; place-items: center; width: 26px; height: 32px; border-radius: 9px; color: #94A3B8; flex: none; }
.sal-drag:hover { background: #EEF6F5; color: #0F766E; }
.sal-ic {
    min-width: 34px; height: 34px; padding: 0 6px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 13px;
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    box-shadow: 0 6px 14px rgba(15, 118, 110, .3);
    flex: none;
}
.sal-name { font-size: 15.5px; color: #0F172A; }
.sal-meta { font-size: 12px; color: #64748B; font-weight: 700; }
.sal-rename {
    border: 1.5px solid #5EEAD4;
    border-radius: 10px;
    padding: 6px 12px;
    font: inherit; font-size: 14px;
    outline: none;
    min-width: 0; width: 190px;
    user-select: text;
}
.sal-rename:focus { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.sal-grid {
    flex: 1;
    overflow-y: auto;
    align-content: start;
    padding: 2px 2px 26px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 9px;
}
.sal-tbl {
    position: relative;
    border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff);
    background: linear-gradient(160deg, #fff, var(--t));
    border-radius: 14px;
    padding: 10px 8px 9px;
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    min-height: 92px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sal-tbl:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .12); }
.sal-tbl.sel { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(15, 118, 110, .22), 0 10px 22px rgba(15, 23, 42, .12); }
.sal-tbl.busy::after {
    content: '';
    position: absolute;
    top: 8px; inset-inline-end: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent);
    animation: hm-sal-pulse 1.6s ease-in-out infinite;
}
@keyframes hm-sal-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent); } }
.sal-tbl .tic { line-height: 1; color: var(--c); }
.sal-tbl .tnm { font-size: 16px; color: #0F172A; }
.sal-tbl .tst { font-size: 11px; color: #64748B; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sal-tbl .twho, .sal-tbl .tstate {
    font-size: 10.5px; color: var(--c); font-weight: 700;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sal-tbl .tdur { font-size: 10px; color: #64748B; }
.sal-add {
    border: 2px dashed #B7D6D2;
    background: #F5FAFA;
    color: #0F766E;
    border-radius: 14px;
    min-height: 92px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 700;
    transition: border-color .15s ease, background .15s ease;
}
.sal-add:hover { border-color: #14B8A6; background: #E6F6F4; }

.sal-c {
    position: absolute;
    bottom: 2px;
    width: 22px; height: 22px;
    z-index: 3;
    touch-action: none;
    border-radius: 7px;
    background: #fff;
    border: 1.5px solid #B7D6D2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.sal-c::after { content: ''; position: absolute; inset: 5px; border-radius: 3px; border-bottom: 2.5px solid #14B8A6; }
.sal-c.r { right: 2px; cursor: nwse-resize; }
.sal-c.r::after { border-right: 2.5px solid #14B8A6; }
.sal-c.l { left: 2px; cursor: nesw-resize; }
.sal-c.l::after { border-left: 2.5px solid #14B8A6; }
.sal-lift { opacity: .8; box-shadow: 0 22px 50px rgba(15, 23, 42, .28) !important; z-index: 5; }
.sal-bad { outline: 3px dashed rgba(220, 38, 38, .8); outline-offset: 3px; }

.sal-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: #64748B;
}
.sal-empty .mud-icon-root { width: 54px; height: 54px; color: #14B8A6; }

.hm-sal-actions {
    position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 1200;
    max-width: 1000px; margin: 0 auto !important;
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}
.hm-sal-sel {
    min-width: 46px; height: 46px; padding: 0 8px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px;
    color: var(--c); background: var(--t);
    border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff);
}

/* rooms picked up on the board: the card rides the finger, the floor under it lights up, and a teal bar
   shows where it will land */
.sal-board .sal-tbl[data-room] { touch-action: none; }
.sal-ghost {
    position: fixed !important;
    z-index: 9000;
    pointer-events: none;
    margin: 0;
    transform: rotate(-2deg) scale(1.04);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .28) !important;
    opacity: .95;
}
.sal-moving { opacity: .3; }
.sal-target { outline: 3px dashed #14B8A6; outline-offset: 3px; }
/* rooms sit anywhere inside their floor: the panel's area scrolls, the canvas grows with its rooms */
.sal-board .sal .sal-area { flex: 1; min-height: 0; overflow: auto; margin: 0 -4px; padding: 2px 4px 26px; }
.sal-canvas { position: relative; min-width: 100%; }
.sal-canvas > .sal-tbl, .sal-canvas > .sal-add { position: absolute; width: 120px; height: 100px; min-height: 0; margin: 0; }
.sal-canvas > .sal-tbl { justify-content: center; }
.sal-spot {
    position: absolute;
    border-radius: 14px;
    border: 2px dashed #0F766E;
    background: rgba(20, 184, 166, .12);
    pointer-events: none;
    transition: left .08s ease, top .08s ease;
}
.sal-ghost.sal-bad { outline-offset: 2px; }


/* one tab per floor; the open floor fills the page. Tabs also take a dropped room (moves it there). */
.hm-ftabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.hm-ftabs button {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    border: 1.5px solid #DCE9E7; background: #fff; color: #334155;
    padding: 6px 12px 6px 8px; border-radius: 14px;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hm-ftabs button:hover { border-color: #5EEAD4; background: #F5FBFA; }
.hm-ftabs button.on { background: linear-gradient(135deg, #14B8A6, #0F766E); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(15, 118, 110, .28); }
.hm-ftabs .ft-ic { min-width: 26px; height: 26px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #E6F6F4; color: #0F766E; }
.hm-ftabs button.on .ft-ic { background: rgba(255, 255, 255, .22); color: #fff; }
.hm-ftabs .ft-ct { font-size: 11.5px; font-weight: 700; opacity: .7; }
.hm-ftabs button.add { border-style: dashed; color: #0F766E; background: #F5FAFA; }
.hm-ftabs button.sal-target { outline: 3px dashed #14B8A6; outline-offset: 2px; background: #E6F6F4; transform: translateY(-2px); }

.hm-floor-page { height: calc(100vh - 250px); }
.hm-floor-page .sal-board { width: 100%; height: 100%; min-height: 100%; }
.sal-board .sal.full { position: absolute; inset: 10px; min-width: 0; min-height: 0; }
.sal-bar { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* small room cards */
.sal-canvas > .sal-tbl, .sal-canvas > .sal-add { width: 92px; height: 78px; border-radius: 12px; padding: 6px 4px; gap: 1px; }
.sal-canvas > .sal-tbl .tic .mud-icon-root { width: 13px !important; height: 13px !important; }
.sal-canvas > .sal-tbl .tnm { font-size: 14px; line-height: 1.15; }
.sal-canvas > .sal-tbl .tst { font-size: 9.5px; }
.sal-canvas > .sal-tbl .twho, .sal-canvas > .sal-tbl .tstate { font-size: 9.5px; }
.sal-canvas > .sal-tbl .tdur { display: none; }
.sal-canvas > .sal-tbl.busy::after { top: 6px; inset-inline-end: 6px; width: 7px; height: 7px; }
.sal-canvas > .sal-add { font-size: 11px; }
.sal-spot { border-radius: 12px; }


/* several rooms picked: a box drawn on the floor picks them, they travel as one ghost, the bar acts on all */
.sal-area { cursor: default; }   /* a crosshair vanished on the white floor */
.sal-area .sal-tbl, .sal-area .sal-add { cursor: pointer; }
.sal-marq { position: absolute; z-index: 4; border: 1.5px solid #14B8A6; background: rgba(20, 184, 166, .12); border-radius: 6px; pointer-events: none; }
.sal-tbl.sal-marked { box-shadow: 0 0 0 3px rgba(20, 184, 166, .45); }
.sal-ghost-group { position: fixed; z-index: 9000; pointer-events: none; }
.sal-ghost-group .sal-ghost { position: absolute !important; transform: none; }
.sal-ghost-group { transform: rotate(-2deg) scale(1.03); }
.sal-ghost-count {
    position: absolute; top: -12px; inset-inline-end: -12px; z-index: 2;
    min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
    display: grid; place-items: center;
    background: #0F766E; color: #fff; font-size: 13px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(15, 118, 110, .35);
}
.hm-sal-sel.many { color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); border-color: transparent; }
.hm-sal-picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hm-sal-picks span { padding: 1px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--c, #475569); background: var(--t, #F1F5F9); }
.hm-sal-picks span.more { color: #475569; background: #F1F5F9; }


/* the building parts toolbar (corridor, elevator, stairs …): tap a tool or drag it onto the floor */
.hm-ptools { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 8px; margin: -2px 0 10px;
    border-radius: 14px; background: #F5FAFA; border: 1px solid #E0EEEC; }
.hm-ptools .pt-lbl { font-size: 12px; font-weight: 800; color: #64748B; margin-inline-end: 4px; }
.hm-ptools .pt {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1.5px solid color-mix(in srgb, var(--c, #0F766E) 30%, #fff); background: #fff; color: var(--c, #0F766E);
    padding: 5px 10px; border-radius: 10px; font: inherit; font-size: 12.5px; font-weight: 700;
    cursor: grab; touch-action: none; user-select: none;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hm-ptools .pt:hover { background: var(--t, #E6F6F4); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 23, 42, .08); }
.hm-ptools .pt:active { cursor: grabbing; }
.hm-ptools .pt.more { --c: #475569; cursor: pointer; }

/* a part on the floor: coloured block with its icon and name; corridors are long thin strips */
.sal-canvas > .sal-part {
    position: absolute; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff);
    background: repeating-linear-gradient(135deg, var(--t), var(--t) 8px, color-mix(in srgb, var(--t) 70%, #fff) 8px, color-mix(in srgb, var(--t) 70%, #fff) 16px);
    color: var(--c); font-size: 11.5px; font-weight: 800; overflow: hidden;
    cursor: grab; touch-action: none; user-select: none;
    transition: box-shadow .15s ease;
}
.sal-canvas > .sal-part:hover { box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
.sal-canvas > .sal-part.sel { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(15, 118, 110, .25); }
.sal-canvas > .sal-part.pass { border-style: dashed; }
.sal-part .sp-ic { width: 18px !important; height: 18px !important; }
.sal-part .sp-nm { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sal-part.thin { flex-direction: row; gap: 6px; }
.sal-part.tall .sp-nm { writing-mode: vertical-rl; white-space: nowrap; }
.sal-part.sal-sizing { box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.sal-grip {
    position: absolute; left: 1px; bottom: 1px; width: 14px; height: 14px; z-index: 2;
    cursor: nesw-resize; touch-action: none; border-radius: 4px;
    border-left: 2.5px solid var(--c); border-bottom: 2.5px solid var(--c); opacity: .55;
}
.sal-part:hover .sal-grip, .sal-part.sel .sal-grip { opacity: 1; }
.sal-ghost-group .sal-part { position: absolute !important; display: flex; }
.sal-tool-ghost { position: fixed !important; z-index: 9000; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 10px; border: 1.5px dashed var(--c); background: var(--t); color: var(--c); font-size: 12px; font-weight: 800; opacity: .9; }
.sal-tool-ghost svg { width: 18px; height: 18px; fill: currentColor; }
.sal-tool-ghost.sal-bad { outline: 3px dashed rgba(220, 38, 38, .8); }

/* on the floor (the design) a room card is only its number: plain, no state colour, no guest */
.sal-canvas > .sal-tbl.plain { border: 1.5px solid #CBD5E1; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .05); }
.sal-canvas > .sal-tbl.plain:hover { border-color: #5EEAD4; }
.sal-canvas > .sal-tbl.plain.sel { border-color: #0F766E; background: #F0FBF9; box-shadow: 0 0 0 3px rgba(15, 118, 110, .22); }
.sal-canvas > .sal-tbl.plain .tnm { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: #0F172A; }


/* smaller room cards (just the number) and tiny parts such as a door: icon only */
.sal-canvas > .sal-tbl, .sal-canvas > .sal-add { width: 60px; height: 48px; padding: 2px; border-radius: 10px; }
.sal-canvas > .sal-tbl.plain .tnm { font-size: 15px; }
.sal-canvas > .sal-part.tiny { border-radius: 4px; padding: 0; }
.sal-canvas > .sal-part.tiny .sp-nm { display: none; }
.sal-canvas > .sal-part.tiny .sp-ic { width: 12px !important; height: 12px !important; }
.sal-canvas > .sal-part.tiny .sal-grip { width: 8px; height: 8px; border-width: 2px; }


/* a room drawn from above: walls, a gap in one wall for the door and the door's swing (door-b/l/t/r) */
.sal-canvas > .sal-tbl.roomplan { border: 3px solid #334155; border-radius: 2px; background: #fff; box-shadow: none; overflow: visible; }
.sal-canvas > .sal-tbl.roomplan:hover { border-color: #0F766E; }
.sal-canvas > .sal-tbl.roomplan.sel { border-color: #0F766E; background: #F0FBF9; box-shadow: 0 0 0 3px rgba(15, 118, 110, .2); }
.sal-tbl.roomplan::before, .sal-tbl.roomplan::after { content: ''; position: absolute; pointer-events: none; }
/* the gap in the wall */
.sal-tbl.roomplan::before { background: #fff; }
.sal-tbl.roomplan.door-b::before { bottom: -3px; left: 8px; width: 16px; height: 3px; }
.sal-tbl.roomplan.door-t::before { top: -3px; left: 8px; width: 16px; height: 3px; }
.sal-tbl.roomplan.door-l::before { left: -3px; top: 8px; width: 3px; height: 16px; }
.sal-tbl.roomplan.door-r::before { right: -3px; top: 8px; width: 3px; height: 16px; }
/* the door leaf (solid) and its swing (dashed quarter circle), opening into the room */
.sal-tbl.roomplan::after { width: 15px; height: 15px; border: 1px dashed #94A3B8; }
.sal-tbl.roomplan.door-b::after { bottom: 0; left: 8px; border-width: 1px 1px 0 0; border-left: 1.5px solid #334155; border-top-right-radius: 100%; }
.sal-tbl.roomplan.door-t::after { top: 0; left: 8px; border-width: 0 1px 1px 0; border-left: 1.5px solid #334155; border-bottom-right-radius: 100%; }
.sal-tbl.roomplan.door-l::after { left: 0; top: 8px; border-width: 0 1px 1px 0; border-top: 1.5px solid #334155; border-bottom-right-radius: 100%; }
.sal-tbl.roomplan.door-r::after { right: 0; top: 8px; border-width: 0 0 1px 1px; border-top: 1.5px solid #334155; border-bottom-left-radius: 100%; }
.sal-tbl.roomplan.sel::before { background: #F0FBF9; }


/* ===== room tile v2 — a hotel room seen from above (Majed: "room is very basic ui") =====
   soft tiled floor, slate walls, a bed against the wall opposite the door, the door gap + swing,
   and the number on a small label. Hover lifts it; picked = teal walls and glow. */
.sal-canvas > .sal-tbl.roomplan {
    width: 68px; height: 56px; padding: 0;
    border: 2.5px solid #334155; border-radius: 7px;
    background:
        linear-gradient(rgba(148, 163, 184, .10) 1px, transparent 1px) 0 0 / 9px 9px,
        linear-gradient(90deg, rgba(148, 163, 184, .10) 1px, transparent 1px) 0 0 / 9px 9px,
        linear-gradient(160deg, #FFFFFF, #F3F6FA);
    box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(15, 23, 42, .10), 0 1px 2px rgba(15, 23, 42, .08);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sal-canvas > .sal-tbl.roomplan:hover { transform: translateY(-2px); border-color: #0F766E;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .16), 0 2px 4px rgba(15, 23, 42, .08); }
.sal-canvas > .sal-tbl.roomplan.sel { border-color: #0F766E;
    background:
        linear-gradient(rgba(20, 184, 166, .10) 1px, transparent 1px) 0 0 / 9px 9px,
        linear-gradient(90deg, rgba(20, 184, 166, .10) 1px, transparent 1px) 0 0 / 9px 9px,
        linear-gradient(160deg, #F4FFFD, #E3F6F3);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .22), 0 8px 18px rgba(15, 118, 110, .18); }

/* door gap and swing, sized for the new tile (opening 14px, 9px from the corner) */
.sal-tbl.roomplan::before { background: #fff; }
.sal-tbl.roomplan.sel::before { background: #fff; }
.sal-tbl.roomplan.door-b::before { bottom: -2.5px; left: 9px; width: 14px; height: 2.5px; }
.sal-tbl.roomplan.door-t::before { top: -2.5px; left: 9px; width: 14px; height: 2.5px; }
.sal-tbl.roomplan.door-l::before { left: -2.5px; top: 9px; width: 2.5px; height: 14px; }
.sal-tbl.roomplan.door-r::before { right: -2.5px; top: 9px; width: 2.5px; height: 14px; }
.sal-tbl.roomplan::after { width: 13px; height: 13px; border-color: #94A3B8; }
.sal-tbl.roomplan.door-b::after { left: 9px; }
.sal-tbl.roomplan.door-t::after { left: 9px; }
.sal-tbl.roomplan.door-l::after { top: 9px; }
.sal-tbl.roomplan.door-r::after { top: 9px; }
.sal-tbl.roomplan.sel::after { border-color: #5EEAD4; }

/* the bed, against the wall opposite the door */
.sal-tbl.roomplan .rp-bed { position: absolute; width: 26px; height: 17px; display: block; pointer-events: none; }
.sal-tbl.roomplan .rp-bed svg { width: 100%; height: 100%; display: block; }
.sal-tbl.roomplan .rp-bed .fr { fill: #E2E8F0; stroke: #64748B; stroke-width: 1.2; }
.sal-tbl.roomplan .rp-bed .pl { fill: #fff; stroke: #94A3B8; stroke-width: .9; }
.sal-tbl.roomplan .rp-bed .sh { stroke: #94A3B8; stroke-width: 1; }
.sal-tbl.roomplan.sel .rp-bed .fr { fill: #CCF0EA; stroke: #0F766E; }
.sal-tbl.roomplan.door-b .rp-bed { top: 4px; right: 5px; }
.sal-tbl.roomplan.door-t .rp-bed { bottom: 4px; right: 5px; transform: rotate(180deg); }
.sal-tbl.roomplan.door-l .rp-bed { right: 1px; bottom: 6px; transform: rotate(90deg); }
.sal-tbl.roomplan.door-r .rp-bed { left: 1px; bottom: 6px; transform: rotate(-90deg); }

/* the number on a small label, in the free part of the floor */
.sal-canvas > .sal-tbl.roomplan .tnm {
    position: absolute; z-index: 1;
    padding: 1px 6px; border-radius: 6px;
    font-size: 12.5px; font-weight: 800; line-height: 1.35; letter-spacing: .2px;
    color: #0F172A; background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.sal-tbl.roomplan.sel .tnm { color: #fff; background: #0F766E; box-shadow: 0 2px 6px rgba(15, 118, 110, .35); }
.sal-tbl.roomplan.door-b .tnm { bottom: 5px; right: 6px; }
.sal-tbl.roomplan.door-t .tnm { top: 5px; right: 6px; }
.sal-tbl.roomplan.door-l .tnm { top: 5px; left: 5px; }
.sal-tbl.roomplan.door-r .tnm { top: 5px; right: 5px; }


/* ===== room tile v3 (Majed: "remove windows from room, add some background, make number better") =====
   no bed; the floor around the rooms gets a soft dotted background, each room a soft teal floor; the number
   sits big and centred. */
.sal-board .sal.full .sal-area { background: radial-gradient(rgba(15, 118, 110, .10) 1px, transparent 1.2px) 0 0 / 14px 14px, #F7FAFA; border-radius: 12px; }
.sal-canvas > .sal-tbl.roomplan {
    border-color: #2F4858;
    background: linear-gradient(150deg, #EFF8F6 0%, #DDEFEB 100%);
}
.sal-canvas > .sal-tbl.roomplan:hover { background: linear-gradient(150deg, #E6F6F2 0%, #CFE9E3 100%); }
.sal-canvas > .sal-tbl.roomplan.sel { border-color: #0F766E; background: linear-gradient(150deg, #14B8A6 0%, #0F766E 100%); }
.sal-tbl.roomplan::before, .sal-tbl.roomplan.sel::before { background: #F7FAFA; }
.sal-tbl.roomplan.sel::after { border-color: rgba(255, 255, 255, .7); }
.sal-canvas > .sal-tbl.roomplan .tnm {
    position: static; padding: 0; background: none; box-shadow: none;
    font-size: 18px; font-weight: 800; letter-spacing: .5px; line-height: 1;
    color: #134E4A; text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    font-variant-numeric: tabular-nums;
}
.sal-tbl.roomplan.sel .tnm { color: #fff; background: none; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sal-canvas > .sal-tbl.roomplan { display: flex; align-items: center; justify-content: center; }


/* right-click menu on the rooms floor */
.hm-ctx-veil { position: fixed; inset: 0; z-index: 1390; }
.hm-ctx {
    position: fixed; z-index: 1400; width: 250px; max-height: calc(100vh - 16px); overflow-y: auto;
    padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .98);
    border: 1px solid #E2E8F0; box-shadow: 0 18px 44px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .08);
    animation: hm-ctx-in .12s ease-out both; scrollbar-width: thin;
}
@keyframes hm-ctx-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.hm-ctx .ch { display: flex; align-items: center; gap: 7px; padding: 7px 10px 8px; margin-bottom: 4px;
    font-weight: 800; font-size: 13.5px; color: #0F172A; border-bottom: 1px solid #EEF2F6; }
.hm-ctx .ch small { margin-inline-start: auto; font-weight: 700; font-size: 11.5px; color: #64748B; }
.hm-ctx .cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--t); flex: none; }
.hm-ctx .ci { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer;
    padding: 7px 10px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: #1E293B; text-align: start; }
.hm-ctx .ci .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.hm-ctx .ci:hover { background: #F0FBF9; }
.hm-ctx .ci.danger, .hm-ctx .ci.danger .mud-icon-root { color: #DC2626; }
.hm-ctx .ci.danger:hover { background: #FEF2F2; }
.hm-ctx .cs { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 800; color: #64748B; }
.hm-ctx .cchips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 4px; }
.hm-ctx .cc { display: inline-flex; align-items: center; gap: 4px; border: 1px solid color-mix(in srgb, var(--c, #94A3B8) 30%, #fff);
    background: var(--t, #F8FAFC); color: var(--c, #334155); padding: 3px 9px; border-radius: 999px;
    font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.hm-ctx .cc .mud-icon-root { width: 14px; height: 14px; }
.hm-ctx .cc:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .10); }
.hm-ctx .cc.plain { --c: #0F766E; --t: #F0FBF9; }
.hm-ctx .csep { height: 1px; background: #EEF2F6; margin: 6px 4px; }

/* the floor fills its panel edge to edge — no dead white margin where a drag or a box select did nothing */
.sal-board .sal.full { padding: 0; overflow: hidden; }
.sal-board .sal.full .sal-bar { margin: 0; padding: 10px 14px 8px; }
.sal-board .sal.full .hm-ptools { margin: 0 12px 10px; }
.sal-board .sal.full .sal-area { margin: 0; padding: 8px 10px 30px; border-radius: 0; border-top: 1px solid #E6EEF0; }


/* parts stretch from every side and corner: invisible edge strips (resize cursor) and corner squares that
   show when the part is hovered or picked */
.sal-canvas > .sal-part { overflow: visible; }
.sal-part .sp-nm { overflow: hidden; }
.sal-part .sal-h { position: absolute; z-index: 3; touch-action: none; }
.sal-part .h-n { top: -5px; left: 6px; right: 6px; height: 10px; cursor: ns-resize; }
.sal-part .h-s { bottom: -5px; left: 6px; right: 6px; height: 10px; cursor: ns-resize; }
.sal-part .h-e { right: -5px; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.sal-part .h-w { left: -5px; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.sal-part .h-ne, .sal-part .h-nw, .sal-part .h-se, .sal-part .h-sw {
    width: 10px; height: 10px; z-index: 4; border-radius: 3px;
    background: #fff; border: 1.5px solid #0F766E; box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    opacity: 0; transition: opacity .12s ease;
}
.sal-part .h-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.sal-part .h-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.sal-part .h-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.sal-part .h-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.sal-part:hover .sal-h[class*="h-n"][class*="e"], .sal-part:hover .h-ne, .sal-part:hover .h-nw, .sal-part:hover .h-se, .sal-part:hover .h-sw,
.sal-part.sel .h-ne, .sal-part.sel .h-nw, .sal-part.sel .h-se, .sal-part.sel .h-sw, .sal-part.sal-sizing .sal-h { opacity: 1; }
/* edges show a thin teal line while hovered, so it is clear they can be pulled */
.sal-part .h-n:hover, .sal-part .h-s:hover { background: linear-gradient(transparent 4px, #14B8A6 4px, #14B8A6 6px, transparent 6px); }
.sal-part .h-e:hover, .sal-part .h-w:hover { background: linear-gradient(90deg, transparent 4px, #14B8A6 4px, #14B8A6 6px, transparent 6px); }
.sal-part.tiny .h-ne, .sal-part.tiny .h-nw, .sal-part.tiny .h-se, .sal-part.tiny .h-sw { width: 8px; height: 8px; }
.sal-ghost-group .sal-h { display: none; }


/* a room turned a quarter: tall instead of wide */
.sal-canvas > .sal-tbl.roomplan.tall { width: 56px; height: 68px; }


/* a small bed icon above the room number */
.sal-canvas > .sal-tbl.roomplan { flex-direction: column; gap: 1px; }
.sal-tbl.roomplan .rp-ic { width: 17px !important; height: 17px !important; color: #2F7A70; opacity: .85; }
.sal-tbl.roomplan.sel .rp-ic { color: #fff; opacity: .95; }
.sal-canvas > .sal-tbl.roomplan .tnm { font-size: 16px; }


/* icon chips in the right-click menu: a grid of icons, the room's current one marked */
.hm-ctx .cchips.icons { gap: 3px; }
.hm-ctx .cc.ico { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 9px; }
.hm-ctx .cc.ico .mud-icon-root { width: 17px; height: 17px; }
.hm-ctx .cc.ico.on { background: #0F766E; color: #fff; border-color: #0F766E; }


/* the rotate handle on a room: a small round button on its top corner, shown on hover or when picked */
.sal-tbl.roomplan .rp-rot {
    position: absolute; top: -10px; left: -10px; z-index: 5;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: #0F766E; border: 1.5px solid #0F766E;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .22);
    cursor: pointer; opacity: 0; transform: scale(.7);
    transition: opacity .12s ease, transform .12s ease, background .12s ease, color .12s ease;
}
.sal-tbl.roomplan .rp-rot .mud-icon-root { width: 15px; height: 15px; }
.sal-tbl.roomplan:hover .rp-rot, .sal-tbl.roomplan.sel .rp-rot { opacity: 1; transform: none; }
.sal-tbl.roomplan .rp-rot:hover { background: #0F766E; color: #fff; transform: rotate(45deg); }
.sal-ghost-group .rp-rot { display: none; }

/* the rotate handle sits INSIDE the room, small, in the bottom right corner: no door is ever there, and
   it no longer covers the wall, the door swing or the next room */
.sal-tbl.roomplan .rp-rot { top: auto; left: auto; bottom: 2px; right: 2px; width: 17px; height: 17px; border-width: 1px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2); }
.sal-tbl.roomplan .rp-rot .mud-icon-root { width: 12px; height: 12px; }
.sal-tbl.roomplan.sel .rp-rot { background: rgba(255, 255, 255, .95); }


/* the floating copy while dragging is styled like the floor (it carries .sal-canvas), but must not take its size */
.sal-ghost-group.sal-canvas { min-width: 0 !important; min-height: 0 !important; width: 0; height: 0; overflow: visible; }
.sal-ghost-group > .sal-tbl.roomplan { box-shadow: 0 16px 34px rgba(15, 23, 42, .28) !important; }


/* ready-made floor layouts: a gallery over the page */
.hm-tpl-veil { position: fixed; inset: 0; z-index: 1450; background: rgba(15, 23, 42, .35); backdrop-filter: blur(2px); }
.hm-tpl {
    position: fixed; z-index: 1460; inset: 6vh 50% auto auto; transform: translateX(50%);
    width: min(940px, calc(100vw - 32px)); max-height: 88vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); overflow: hidden;
    animation: hm-ctx-in .15s ease-out both;
}
.hm-tpl .tpl-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #EEF2F6; }
.hm-tpl .tpl-head > .mud-icon-root { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.hm-tpl .tpl-head div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hm-tpl .tpl-head b { font-size: 16px; color: #0F172A; }
.hm-tpl .tpl-head small { color: #64748B; font-size: 12.5px; }
.hm-tpl .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px 18px; overflow-y: auto; }
.hm-tpl .tpl-card {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: start;
    border: 1.5px solid #E2E8F0; background: #fff; border-radius: 16px; padding: 10px; cursor: pointer; font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hm-tpl .tpl-card:hover { border-color: #5EEAD4; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .10); }
.hm-tpl .tpl-card.on { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(15, 118, 110, .2); }
.hm-tpl .tpl-prev { display: block; height: 150px; border-radius: 12px; background: radial-gradient(rgba(15, 118, 110, .10) 1px, transparent 1.2px) 0 0 / 12px 12px, #F7FAFA; padding: 6px; }
.hm-tpl .tpl-prev svg { width: 100%; height: 100%; display: block; }
.hm-tpl .tpl-card b { font-size: 14px; color: #0F172A; margin-top: 4px; }
.hm-tpl .tpl-card small { font-size: 12px; color: #64748B; line-height: 1.5; }
.hm-tpl .tpl-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #EEF2F6; background: #FBFCFD; }
.hm-tpl .tpl-foot .warn { display: inline-flex; align-items: center; gap: 6px; color: #B45309; font-size: 12.5px; font-weight: 700; }
.hm-tpl .tpl-foot .warn .mud-icon-root { width: 18px; height: 18px; }


/* the room form: sections with a small teal heading, and a line that sums up who the room takes */
.hm-room-dlg .rd-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-weight: 800; font-size: 13.5px; color: #0F766E; }
.hm-room-dlg .rd-sec:first-child { margin-top: 2px; }
.hm-room-dlg .rd-sec::after { content: ''; flex: 1; height: 1px; background: #E6EEF0; }
.hm-room-dlg .rd-sec .mud-icon-root { width: 18px; height: 18px; }
.hm-room-dlg .rd-total { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border-radius: 10px;
    background: #F0FBF9; color: #134E4A; font-size: 13px; }
.hm-room-dlg .rd-total .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }


/* gallery v2: category chips, a title line with the category, and what each layout contains */
.hm-tpl { width: min(1120px, calc(100vw - 32px)); }
.hm-tpl .tpl-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.hm-tpl .tpl-cats button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #E2E8F0; background: #fff; color: #334155;
    padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hm-tpl .tpl-cats button small { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #F1F5F9; color: #64748B; font-size: 11px; }
.hm-tpl .tpl-cats button.on { background: #0F766E; border-color: #0F766E; color: #fff; }
.hm-tpl .tpl-cats button.on small { background: rgba(255, 255, 255, .25); color: #fff; }
.hm-tpl .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hm-tpl .tpl-prev { height: 140px; background: radial-gradient(rgba(15, 118, 110, .10) 1px, transparent 1.2px) 0 0 / 12px 12px, linear-gradient(160deg, #FBFEFE, #F1F7F6); }
.hm-tpl .tpl-title { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hm-tpl .tpl-title b { margin: 0; }
.hm-tpl .tpl-title em { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #0F766E; background: #E6F6F4; padding: 1px 8px; border-radius: 999px; }
.hm-tpl .tpl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hm-tpl .tpl-tags i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; font-weight: 800;
    padding: 2px 7px; border-radius: 999px; color: var(--c, #2F4858); background: var(--t, #EEF5F4); }
.hm-tpl .tpl-tags .mud-icon-root { width: 13px; height: 13px; }


/* the actions bar sits in the floor panel above the floor (pushes it down) instead of floating over the rooms */
.sal-board .sal.full .hm-sal-actions {
    position: static; inset: auto; max-width: none; margin: 0 12px 10px !important; z-index: auto;
    padding: 8px 12px !important; border-radius: 14px !important;
    background: #F7FBFA !important; backdrop-filter: none; box-shadow: none; border-color: #D5ECE8 !important;
    flex: none; animation: hm-ctx-in .12s ease-out both;
}

/* the dragged copy stays straight (a tilt looked crooked on long corridors): just lifted and see-through,
   so the dashed landing spot under it stays readable */
.sal-ghost-group, .sal-ghost-group.sal-canvas { transform: none !important; }
.sal-ghost-group .sal-ghost { transform: none !important; opacity: .88; }
.sal-ghost-group > .sal-part { box-shadow: 0 14px 30px rgba(15, 23, 42, .22) !important; }
.sal-tool-ghost { transform: none !important; }


/* filter bars: one date range field, the other filters and the button side by side — no stretched gaps */
.hm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hm-filters > .mud-input-control, .hm-filters > .mud-picker, .hm-filters > div.mud-select { flex: 0 0 auto !important; width: auto; margin: 0 !important; }
.hm-filters .hm-f-range { width: 270px; }
.hm-filters .hm-f-select { width: 180px; }
.mud-table-toolbar .hm-filters { width: 100%; }


/* ===== new booking (/reservations/new): steps, cards, a visual room picker and a summary in view ===== */
.nr-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 20px; margin-bottom: 14px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(94, 234, 212, .35), transparent 45%), linear-gradient(135deg, #0F766E, #134E4A 70%, #0B3B37);
    box-shadow: 0 16px 34px rgba(15, 118, 110, .25); }
.nr-hero-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.nr-hero-ic .mud-icon-root { width: 28px; height: 28px; color: #fff; }
.nr-hero-t { flex: 1 1 240px; }
.nr-hero-t h1 { margin: 0; font-size: 22px; font-weight: 800; }
.nr-hero-t p { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.nr-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
.nr-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .2); }
.nr-step.done { background: #fff; color: #0F766E; }
.nr-step.done i { background: #0F766E; color: #fff; }
.nr-step i .mud-icon-root { width: 14px; height: 14px; }

.nr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .nr-grid { grid-template-columns: 1fr; } }
.nr-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nr-card, .nr-sum-card { background: #fff; border: 1px solid #E5EEEE; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.nr-card > header, .nr-sum-card > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15.5px; color: #0F172A; }
.nr-n { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.nr-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0F766E; background: #E6F6F4; }
.nr-pill.soft { color: #475569; background: #F1F5F9; }
.nr-pill .mud-icon-root { width: 15px; height: 15px; }
.nr-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nr-row .nr-grow { flex: 1 1 280px; }
.nr-newguest { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: #F7FBFA; border: 1px dashed #CDE7E3; }
.nr-newguest .ltr-field input { direction: ltr; text-align: left; }
.nr-guest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F0FBF9; border: 1px solid #CDEDE8; }
.nr-guest > div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nr-guest b { font-size: 15px; color: #0F172A; }
.nr-guest small { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #475569; font-size: 12.5px; }
.nr-guest small span { display: inline-flex; align-items: center; gap: 4px; }
.nr-guest small .mud-icon-root { width: 14px; height: 14px; color: #0F766E; }
.nr-guest .ltr { direction: ltr; }
.nr-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); flex: none; }

.nr-stay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nr-stay > .nr-range { flex: 1 1 100%; min-width: 0; }   /* its own line; the counters go under it */
/* MudDateRangePicker puts its Class on the inner field too, which stacks vertically: keep that one natural */
.nr-range .mud-input-control, .nr-range .nr-range { flex: 0 0 auto !important; height: auto !important; }
.nr-count { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 12px; border: 1px solid #DDE7E7; background: #fff; }
.nr-count span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #334155; }
.nr-count span .mud-icon-root { width: 17px; height: 17px; color: #0F766E; }
.nr-count button { width: 28px; height: 28px; border-radius: 9px; border: 0; cursor: pointer; font-size: 17px; font-weight: 800; color: #0F766E; background: #E6F6F4; }
.nr-count button:hover { background: #CCEFEA; }
.nr-count b { min-width: 18px; text-align: center; font-size: 15px; }
.nr-label { margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; color: #64748B; }
.nr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-chips button { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid #E2E8F0; background: #fff; color: #334155; padding: 5px 11px; border-radius: 999px;
    font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s ease; }
.nr-chips button .mud-icon-root { width: 15px; height: 15px; }
.nr-chips button small { padding: 0 6px; border-radius: 999px; background: #F1F5F9; font-size: 11px; }
.nr-chips button:hover { border-color: #5EEAD4; }
.nr-chips button.on { background: #0F766E; border-color: #0F766E; color: #fff; }
.nr-chips button.on small { background: rgba(255, 255, 255, .25); }
.nr-chips.filters { margin-bottom: 12px; }
.nr-chips .sep { width: 1px; align-self: stretch; background: #E2E8F0; margin: 0 4px; }
.nr-empty { display: flex; align-items: center; gap: 10px; padding: 26px; border-radius: 14px; background: #F8FAFC; color: #64748B; font-size: 13.5px; justify-content: center; }
.nr-empty .mud-icon-root { width: 22px; height: 22px; color: #94A3B8; }

/* the floor plan view */
.nr-ftabs { padding-bottom: 8px; }
.nr-legend { display: flex; gap: 14px; font-size: 12px; color: #64748B; margin-bottom: 6px; }
.nr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nr-legend i { width: 12px; height: 12px; border-radius: 4px; border: 2px solid #0F766E; background: #E6F6F4; }
.nr-legend i.pick { background: #0F766E; }
.nr-legend i.busy { border-color: #CBD5E1; background: repeating-linear-gradient(135deg, #F1F5F9, #F1F5F9 3px, #E2E8F0 3px, #E2E8F0 6px); }
.nr-plan-scroll { overflow: auto; border-radius: 14px; padding: 12px; max-height: 460px;
    background: radial-gradient(rgba(15, 118, 110, .10) 1px, transparent 1.2px) 0 0 / 14px 14px, #F7FAFA; }
.nr-plan { position: relative; min-width: 100%; }
.nr-part { position: absolute; border-radius: 8px; display: grid; place-items: center; color: var(--c); opacity: .65;
    border: 1px dashed color-mix(in srgb, var(--c) 45%, #fff); background: var(--t); }
.nr-part .mud-icon-root { width: 15px; height: 15px; }
.nr-pr { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0;
    border-radius: 7px; border: 2.5px solid #0F766E; background: linear-gradient(150deg, #F2FBF9, #DDF2EE); color: #134E4A;
    font: inherit; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.nr-pr .ic { width: 15px !important; height: 15px !important; }
.nr-pr b { font-size: 13.5px; line-height: 1.1; }
.nr-pr small { font-size: 10px; font-weight: 700; color: #0F766E; }
.nr-pr.free:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15, 118, 110, .22); }
.nr-pr.pick { background: linear-gradient(150deg, #14B8A6, #0F766E); color: #fff; box-shadow: 0 0 0 3px rgba(15, 118, 110, .25); }
.nr-pr.pick small { color: #CCFBF1; }
.nr-pr.busy { cursor: not-allowed; border-color: #CBD5E1; color: #94A3B8;
    background: repeating-linear-gradient(135deg, #F8FAFC, #F8FAFC 5px, #EEF2F6 5px, #EEF2F6 10px); }
.nr-pr .ck { position: absolute; top: -8px; left: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0F766E; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.nr-pr .ck .mud-icon-root { width: 13px; height: 13px; }

/* the cards view */
.nr-floorhead { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-weight: 800; font-size: 13.5px; color: #0F172A; }
.nr-floorhead span { min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: #fff; background: #0F766E; }
.nr-floorhead small { color: #64748B; font-weight: 700; }
.nr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.nr-rc { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: start; padding: 12px; border-radius: 16px; cursor: pointer; font: inherit;
    border: 1.5px solid #E2E8F0; background: #fff; transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.nr-rc:hover { border-color: #5EEAD4; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .08); }
.nr-rc.pick { border-color: #0F766E; background: linear-gradient(160deg, #F0FBF9, #fff); box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
.nr-rc-top { display: flex; align-items: center; gap: 8px; }
.nr-rc-top > .mud-icon-root { width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: #0F766E; background: #E6F6F4; }
.nr-rc-top b { font-size: 19px; color: #0F172A; }
.nr-rc-ck { margin-inline-start: auto; }
.nr-rc-ck .mud-icon-root { width: 24px; height: 24px; color: #94A3B8; }
.nr-rc.pick .nr-rc-ck .mud-icon-root { color: #0F766E; }
.nr-rc-type { font-size: 13px; font-weight: 700; color: #334155; }
.nr-rc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nr-rc-tags i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: #475569; background: #F1F5F9; }
.nr-rc-tags i .mud-icon-root { width: 13px; height: 13px; }
.nr-rc-tags i.warn { color: #B45309; background: #FEF3C7; }
.nr-rc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding-top: 6px; border-top: 1px dashed #E2E8F0; }
.nr-rc-price b { font-size: 16px; color: #0F766E; }
.nr-rc-price small { font-size: 11.5px; color: #64748B; }
.nr-rc-price em { width: 100%; font-style: normal; font-size: 11.5px; color: #64748B; }

/* the summary */
.nr-sum { position: sticky; top: 84px; }
.nr-sum-card dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nr-sum-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.nr-sum-card dt { color: #64748B; }
.nr-sum-card dd { margin: 0; font-weight: 700; color: #0F172A; text-align: end; }
.nr-sum-rooms { margin: 12px 0; padding: 10px 0; border-top: 1px dashed #E2E8F0; border-bottom: 1px dashed #E2E8F0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.nr-sum-rooms .muted { margin: 0; color: #94A3B8; font-size: 13px; text-align: center; }
.nr-sum-room { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #F7FBFA; }
.nr-sum-room > .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.nr-sum-room > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nr-sum-room small { font-size: 11px; color: #64748B; }
.nr-sum-room > span { font-weight: 800; font-size: 13px; color: #0F172A; }
.nr-sum-room button { border: 0; background: none; cursor: pointer; color: #94A3B8; display: grid; place-items: center; }
.nr-sum-room button .mud-icon-root { width: 16px; height: 16px; }
.nr-sum-room button:hover { color: #DC2626; }
.nr-cap { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.nr-cap .mud-icon-root { width: 17px; height: 17px; }
.nr-cap.ok { color: #15803D; background: #DCFCE7; }
.nr-cap.low { color: #B45309; background: #FEF3C7; }
.nr-total { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 12px; }
.nr-total span { color: #64748B; font-weight: 700; }
.nr-total b { font-size: 24px; font-weight: 800; color: #0F766E; }
.nr-miss { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; color: #64748B; }
.nr-miss .mud-icon-root { width: 16px; height: 16px; color: #0EA5E9; }


/* booking v2: filter bar, faded rooms outside the filters, and the room details panel */
.nr-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.nr-search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1.5px solid #E2E8F0; background: #fff; min-width: 170px; }
.nr-search:focus-within { border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.nr-search .mud-icon-root { width: 18px; height: 18px; color: #94A3B8; }
.nr-search input { border: 0; outline: none; font: inherit; font-size: 13px; width: 120px; background: transparent; }
.nr-price { display: flex; flex-direction: column; min-width: 220px; flex: 1 1 220px; max-width: 320px; padding: 2px 12px 0; border-radius: 12px; border: 1.5px solid #E2E8F0; background: #fff; }
.nr-price span { font-size: 12px; color: #64748B; font-weight: 700; padding-top: 4px; }
.nr-price span b { color: #0F766E; }
.nr-price .mud-slider { margin: -4px 0 -2px; }
.nr-sort { width: 170px; flex: none; }
.nr-sort.mud-input-control { margin: 0 !important; }
.nr-clear { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #FEF2F2; color: #B91C1C; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.nr-clear .mud-icon-root { width: 16px; height: 16px; }
.nr-chips.filters + .nr-chips.filters { margin-top: -4px; }

.nr-rooms-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
@media (max-width: 1300px) { .nr-rooms-body { grid-template-columns: 1fr; } }
.nr-rooms-main { min-width: 0; }
.nr-legend i.dim { border-color: #99D5CC; background: #fff; opacity: .6; }
.nr-pr.dim { opacity: .38; border-style: dashed; }
.nr-pr.dim:hover { opacity: .75; }
.nr-pr.focus, .nr-rc.focus { outline: 2px solid #F59E0B; outline-offset: 2px; }
.nr-part small { position: absolute; bottom: 2px; font-size: 9.5px; font-weight: 700; white-space: nowrap; }

.nr-detail { position: sticky; top: 84px; padding: 14px; border-radius: 16px; border: 1px solid #DCEDEA; background: linear-gradient(180deg, #F7FCFB, #fff 40%); }
.nr-d-head { display: flex; align-items: center; gap: 10px; }
.nr-d-head > .mud-icon-root { width: 44px; height: 44px; padding: 9px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.nr-d-head div { display: flex; flex-direction: column; }
.nr-d-head b { font-size: 17px; color: #0F172A; }
.nr-d-head small { font-size: 12px; color: #64748B; }
.nr-d-state { display: flex; align-items: center; gap: 6px; margin: 10px 0; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.nr-d-state .mud-icon-root { width: 16px; height: 16px; }
.nr-d-state.free { color: #15803D; background: #DCFCE7; }
.nr-d-state.busy { color: #64748B; background: #F1F5F9; }
.nr-d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nr-d-grid div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; background: #F1F8F7; }
.nr-d-grid .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.nr-d-grid b { font-size: 15px; color: #0F172A; }
.nr-d-grid small { font-size: 10.5px; color: #64748B; text-align: center; }
.nr-d-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.nr-d-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #334155; background: #F1F5F9; }
.nr-d-tags .mud-icon-root { width: 14px; height: 14px; color: #0F766E; }
.nr-d-sub { margin: 12px 0 5px; font-size: 12px; font-weight: 800; color: #64748B; }
.nr-d-amen { display: flex; flex-wrap: wrap; gap: 5px; }
.nr-d-amen span { padding: 3px 9px; border-radius: 8px; font-size: 12px; color: #134E4A; background: #E6F6F4; }
.nr-d-notes { margin: 0; font-size: 12.5px; color: #475569; line-height: 1.6; }
.nr-d-price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 10px; }
.nr-d-price div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; border: 1px solid #E2E8F0; }
.nr-d-price small { font-size: 11px; color: #64748B; }
.nr-d-price b { font-size: 17px; color: #0F766E; }
.nr-d-hint { display: flex; align-items: center; gap: 8px; padding: 18px 6px; color: #64748B; font-size: 13px; }
.nr-d-hint .mud-icon-root { color: #94A3B8; }

/* the stay: the date field no wider than it needs */
.nr-stay > .nr-range { flex: 1 1 100%; max-width: 460px; }


/* booking v3: the room details open in a dialog on click; the plan and cards take the full width */
.nr-rooms-body { grid-template-columns: 1fr !important; }
.nr-pr.busy { cursor: pointer; }
.nr-rc { cursor: pointer; }
.nr-rc-ck { cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.nr-rc-ck:hover .mud-icon-root { color: #0F766E; transform: scale(1.1); }
.nr-dlg-veil { position: fixed; inset: 0; z-index: 1450; background: rgba(15, 23, 42, .4); backdrop-filter: blur(2px); animation: hm-ctx-in .12s ease-out both; }
.nr-dlg { position: fixed; z-index: 1460; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
    border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); animation: nr-dlg-in .18s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nr-dlg-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.nr-dlg .nr-detail { position: static; border: 0; border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #F2FBF9, #fff 35%); }
.nr-dlg-x { position: absolute; top: 12px; left: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer;
    display: grid; place-items: center; color: #475569; background: rgba(255, 255, 255, .85); }
.nr-dlg-x:hover { background: #FEE2E2; color: #B91C1C; }
.nr-dlg .nr-d-head b { font-size: 19px; }


/* booking v4: the filters live in a dialog; the card keeps search, the button and the active filters */
.nr-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #E2E8F0; background: #fff;
    font: inherit; font-size: 13px; font-weight: 800; color: #334155; cursor: pointer; }
.nr-fbtn .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.nr-fbtn small { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; color: #fff; background: #0F766E; }
.nr-fbtn:hover { border-color: #5EEAD4; }
.nr-fbtn.on { border-color: #0F766E; background: #F0FBF9; }
.nr-sortnote { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #64748B; }
.nr-sortnote .mud-icon-root { width: 16px; height: 16px; }
.nr-active { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0F766E; background: #E6F6F4; }
.nr-active button { width: 18px; height: 18px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(15, 118, 110, .12); color: #0F766E; }
.nr-active button .mud-icon-root { width: 12px; height: 12px; }
.nr-active button:hover { background: #FEE2E2; color: #B91C1C; }

.nr-fdlg { width: min(560px, calc(100vw - 32px)); padding: 18px; background: #fff; }
.nr-f-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nr-f-head > .mud-icon-root { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.nr-f-head div { display: flex; flex-direction: column; }
.nr-f-head b { font-size: 17px; color: #0F172A; }
.nr-f-head small { font-size: 12px; color: #64748B; }
.nr-f-sec { display: flex; align-items: center; gap: 6px; margin: 14px 0 7px; font-size: 12.5px; font-weight: 800; color: #475569; }
.nr-f-sec span { margin-inline-start: auto; font-weight: 700; color: #64748B; }
.nr-f-sec span b { color: #0F766E; }
.nr-fdlg .nr-price { max-width: none; padding: 4px 12px; }
.nr-price-ends { display: flex; justify-content: space-between; font-size: 11px; color: #94A3B8; margin-top: -4px; }
.nr-f-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #EEF2F6; }


/* the stay's date range: both date boxes share the field (the departure box spilled out over the counters) */
.nr-stay > .nr-range .mud-input-control { width: 100% !important; }
.nr-stay > .nr-range .mud-input { width: 100%; min-width: 0; }
.nr-stay > .nr-range .mud-input > input { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
.nr-stay > .nr-range { overflow: hidden; }


/* booking v5: the guest is chosen in a dialog */
.nr-gpick { display: flex; flex-wrap: wrap; gap: 10px; }
.nr-gpick-main { flex: 1 1 320px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: start; font: inherit;
    border: 1.5px dashed #9ED9CF; background: #F5FBFA; transition: border-color .15s ease, background .15s ease; }
.nr-gpick-main:hover { border-color: #0F766E; background: #EAF8F5; }
.nr-gpick-main > .mud-icon-root { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.nr-gpick-main span { display: flex; flex-direction: column; }
.nr-gpick-main b { font-size: 15px; color: #0F172A; }
.nr-gpick-main small { font-size: 12px; color: #64748B; }
.nr-gpick-new { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 800;
    border: 1.5px solid #0F766E; color: #0F766E; background: #fff; }
.nr-gpick-new:hover { background: #F0FBF9; }
.nr-gpick-new .mud-icon-root { width: 19px; height: 19px; }

.nr-gdlg { width: min(620px, calc(100vw - 32px)); padding: 18px; background: #fff; display: flex; flex-direction: column; }
.nr-gtabs { align-self: flex-start; margin: 12px 0 10px; }
.nr-gsearch { width: 100%; height: 44px; }
.nr-gsearch input { width: 100%; font-size: 14px; }
.nr-glist { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: min(52vh, 460px); overflow: auto; padding: 2px; }
.nr-grow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #EEF2F6; background: #fff; cursor: pointer; text-align: start; font: inherit;
    transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.nr-grow:hover { border-color: #5EEAD4; background: #F7FCFB; transform: translateX(-2px); }
.nr-grow.on { border-color: #0F766E; background: #F0FBF9; }
.nr-grow .nr-av { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.nr-grow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nr-grow-t b { font-size: 14.5px; color: #0F172A; }
.nr-grow-t small { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: #64748B; }
.nr-grow-t small span { display: inline-flex; align-items: center; gap: 3px; }
.nr-grow-t small .mud-icon-root { width: 13px; height: 13px; color: #0F766E; }
.nr-grow-t .ltr { direction: ltr; }
.nr-grow-go { width: 22px !important; height: 22px !important; color: #94A3B8; }
.nr-grow.on .nr-grow-go { color: #0F766E; }
.nr-gmore { margin: 6px 0 0; text-align: center; font-size: 12px; color: #94A3B8; }
.nr-gdlg .nr-newguest { margin-top: 0; }


/* booking v6: the guest field — a search-style box, a solid new-guest button, quick picks */
.nr-gfield { display: flex; gap: 8px; }
.nr-gsel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; cursor: text; font: inherit; text-align: start;
    border: 1.5px solid #E2E8F0; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.nr-gsel:hover { border-color: #5EEAD4; }
.nr-gsel:focus-visible { outline: none; border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.nr-gsel .mud-icon-root { width: 20px; height: 20px; color: #0F766E; }
.nr-gsel span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #94A3B8; }
.nr-gsel em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #64748B; background: #F1F5F9; padding: 2px 8px; border-radius: 999px; }
.nr-gadd { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 6px 14px rgba(15, 118, 110, .25); }
.nr-gadd:hover { filter: brightness(1.05); }
.nr-gadd .mud-icon-root { width: 19px; height: 19px; }
.nr-gquick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.nr-gquick > span { font-size: 12px; font-weight: 700; color: #94A3B8; margin-inline-end: 2px; }
.nr-gquick button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
    border: 1px solid #E2E8F0; background: #fff; color: #334155; }
.nr-gquick button:hover { border-color: #5EEAD4; background: #F5FBFA; }
.nr-gquick i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #14B8A6, #0F766E); }


/* ===== dashboard v2: today's figures, the rooms live, the bookings timeline, today's lists ===== */
.db { display: flex; flex-direction: column; gap: 16px; }
.db-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.db-hero-t { flex: 1 1 280px; }
.db-hero-a { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.db-hero .chip.live i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: db-pulse 1.8s ease-out infinite; }
@keyframes db-pulse { to { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.db-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 800; color: #0F766E; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.db-hbtn:hover { transform: translateY(-1px); }
.db-hbtn.ghost { width: 38px; padding: 0; justify-content: center; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: none; }
.db-hbtn .mud-icon-root { width: 19px; height: 19px; }
.db-hbtn .spin { animation: hm-ld-spin .8s linear infinite; }

.db-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.db-k { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #E8EFEF;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04); transition: transform .15s ease, box-shadow .15s ease; }
.db-k:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .08); }
.db-k .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--acc); background: var(--tint); flex: none; }
.db-k .ic .mud-icon-root { width: 24px; height: 24px; }
.db-k > div { display: flex; flex-direction: column; min-width: 0; }
.db-k .lb { font-size: 12.5px; font-weight: 700; color: #64748B; }
.db-k .vl { font-size: 24px; font-weight: 800; color: #0F172A; line-height: 1.2; }
.db-k .vl small { font-size: 12px; font-weight: 700; color: #94A3B8; }
.db-k .hn { font-size: 11.5px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-k .rg { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: conic-gradient(var(--acc) calc(var(--p) * 1%), #E6EEEE 0); position: relative; }
.db-k .rg::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.db-k .rg b { position: relative; font-size: 13px; font-weight: 800; color: var(--acc); }

.db-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .db-grid { grid-template-columns: 1fr; } }
.db-main, .db-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.db-card { background: #fff; border: 1px solid #E8EFEF; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); min-width: 0; }
.db-card > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15.5px; color: #0F172A; }
.db-card > header > .mud-icon-root { width: 32px; height: 32px; padding: 6px; border-radius: 10px; color: #0F766E; background: #E6F6F4; }
.db-sub { font-size: 12px; color: #94A3B8; }
.db-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0F766E; background: #E6F6F4; }
.db-link { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: #0F766E; text-decoration: none; }
.db-link .mud-icon-root { width: 16px; height: 16px; }

.db-states { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.db-states button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
    border: 1.5px solid #E2E8F0; background: #fff; color: #334155; transition: all .12s ease; }
.db-states button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #94A3B8); }
.db-states button small { padding: 0 6px; border-radius: 999px; background: #F1F5F9; font-size: 11px; }
.db-states button .mud-icon-root { width: 15px; height: 15px; }
.db-states button:hover { border-color: var(--c, #5EEAD4); }
.db-states button.on { background: var(--c, #0F766E); border-color: var(--c, #0F766E); color: #fff; }
.db-states button.on i { background: #fff; }
.db-states button.on small { background: rgba(255, 255, 255, .25); }
.db-states .sep { width: 1px; height: 22px; background: #E2E8F0; margin: 0 4px; }
.db-legend { margin-inline-start: auto; display: inline-flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: #64748B; }
.db-legend span { display: inline-flex; align-items: center; gap: 4px; }
.db-legend i { width: 14px; height: 8px; border-radius: 4px; }
.db-legend i.in, .db-tl .bar.in { background: linear-gradient(90deg, #14B8A6, #0F766E); }
.db-legend i.conf, .db-tl .bar.conf { background: linear-gradient(90deg, #A78BFA, #7C3AED); }
.db-legend i.pend, .db-tl .bar.pend { background: repeating-linear-gradient(135deg, #FBBF24, #FBBF24 6px, #F59E0B 6px, #F59E0B 12px); }
.db-legend i.out, .db-tl .bar.out { background: #CBD5E1; }

/* the rooms, live */
.db-floor + .db-floor { margin-top: 12px; }
.db-floor-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.db-floor-h span { min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #0F766E; }
.db-floor-h small { color: #94A3B8; font-weight: 700; }
.db-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.db-room { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 14px; cursor: pointer; text-align: start; font: inherit; min-height: 74px;
    border: 1.5px solid color-mix(in srgb, var(--c) 28%, #fff); background: linear-gradient(160deg, #fff 10%, var(--t)); color: #0F172A;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.db-room::before { content: ''; position: absolute; inset-block: 10px; inset-inline-start: 0; width: 3.5px; border-radius: 4px; background: var(--c); }
.db-room:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 22%, transparent); }
.db-room .top { display: flex; align-items: center; gap: 6px; }
.db-room .top .mud-icon-root { width: 17px; height: 17px; color: var(--c); }
.db-room .top b { font-size: 16px; font-weight: 800; }
.db-room .who { font-size: 11.5px; font-weight: 700; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-room .when { font-size: 10.5px; color: #64748B; min-height: 14px; }
.db-room .bd { position: absolute; top: 7px; inset-inline-end: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.db-room .bd .mud-icon-root { width: 12px; height: 12px; }
.db-room .bd.in { background: #12A150; }
.db-room .bd.out { background: #E08A0B; }
.db-room .bd.in + .bd.out { inset-inline-end: 30px; }
.db-room.ready .top .mud-icon-root { animation: db-twinkle 2.6s ease-in-out infinite; }
@keyframes db-twinkle { 50% { opacity: .45; transform: scale(.9); } }
.db-room.cleaning::after { content: ''; position: absolute; inset-inline: 10px; bottom: 5px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--c), transparent); background-size: 200% 100%; animation: db-sweep 1.6s linear infinite; }
@keyframes db-sweep { to { background-position: -200% 0; } }

/* the bookings timeline */
.db-tl { overflow: auto; max-height: 470px; border: 1px solid #EEF2F6; border-radius: 14px; }
.db-tl-in { min-width: calc(128px + var(--d) * 34px); }
.db-tl-row { display: grid; grid-template-columns: 128px repeat(var(--d), minmax(34px, 1fr)); grid-auto-rows: 36px; align-items: center; position: relative; border-top: 1px solid #F1F5F9; }
.db-tl-row.head { position: sticky; top: 0; z-index: 4; grid-auto-rows: 42px; background: #F8FAFC; border-top: 0; border-bottom: 1px solid #E2E8F0; }
.db-tl-row .lbl { position: sticky; inset-inline-start: 0; z-index: 3; grid-column: 1; grid-row: 1; height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 10px;
    background: #fff; border: 0; border-inline-end: 1px solid #E2E8F0; font: inherit; text-align: start; cursor: pointer; min-width: 0; }
.db-tl-row.head .lbl { background: #F8FAFC; font-size: 12px; font-weight: 800; color: #64748B; cursor: default; }
.db-tl-row .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.db-tl-row .lbl b { font-size: 13.5px; }
.db-tl-row .lbl small { font-size: 10.5px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tl-row button.lbl:hover { background: #F0FBF9; }
.db-tl .day { grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font-size: 12px; color: #475569; border-inline-start: 1px solid #EEF2F6; }
.db-tl .day small { font-size: 9.5px; color: #94A3B8; }
.db-tl .day.we, .db-tl .cell.we { background: #FAFAF5; }
.db-tl .day.today { background: #0F766E; color: #fff; }
.db-tl .day.today small { color: #CCFBF1; }
.db-tl .cell { grid-row: 1; height: 100%; border-inline-start: 1px solid #F1F5F9; }
.db-tl .cell.today { background: rgba(20, 184, 166, .10); }
.db-tl .bar { grid-row: 1; z-index: 2; height: 24px; margin: 0 2px; padding: 0 8px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; color: #fff;
    display: flex; align-items: center; min-width: 0; box-shadow: 0 2px 6px rgba(15, 23, 42, .15); transition: transform .12s ease, filter .12s ease; }
.db-tl .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tl .bar:hover { transform: translateY(-1px); filter: brightness(1.07); }
.db-tl .bar.pend { color: #713F12; }
.db-tl .bar.out { color: #475569; box-shadow: none; }
.db-tl .bar.cs { border-start-start-radius: 2px; border-end-start-radius: 2px; margin-inline-start: 0; }
.db-tl .bar.ce { border-start-end-radius: 2px; border-end-end-radius: 2px; margin-inline-end: 0; }

/* today's lists */
.db-list { display: flex; flex-direction: column; gap: 6px; }
.db-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid #EEF2F6; background: #fff; cursor: pointer; font: inherit; text-align: start; }
.db-li:hover { border-color: #5EEAD4; background: #F7FCFB; }
.db-li .rm { min-width: 42px; height: 34px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0F766E; background: #E6F6F4; flex: none; }
.db-li .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-li .tx b { font-size: 13px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-li .tx small { font-size: 11px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-li em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; flex: none; }
.db-li em.ok { color: #15803D; background: #DCFCE7; }
.db-li em.wait { color: #B45309; background: #FEF3C7; }
.db-li em.run { color: #1D4ED8; background: #DBEAFE; }

.db-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.db-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.db-room .when.late { color: #B91C1C; font-weight: 800; }
.db-tl .bar.late { background: linear-gradient(90deg, #F87171, #B91C1C); }


/* ===== dashboard motion: things rise in, numbers count up, the ring fills, rooms pop, bars grow ===== */
@property --db-n { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --db-p { syntax: '<number>'; initial-value: 0; inherits: false; }
@keyframes db-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes db-pop { from { opacity: 0; transform: scale(.82) translateY(6px); } 70% { transform: scale(1.04); } }
@keyframes db-count { from { --db-n: 0; } to { --db-n: var(--to); } }
@keyframes db-ring { from { --db-p: 0; } to { --db-p: var(--p); } }
@keyframes db-grow { from { clip-path: inset(0 0 0 100% round 12px); opacity: .4; } to { clip-path: inset(0 0 0 0 round 12px); opacity: 1; } }
@keyframes db-slide { from { opacity: 0; transform: translateX(-14px); } }
@keyframes db-shine { 0% { transform: translateX(120%) skewX(-18deg); } 60%, 100% { transform: translateX(-320%) skewX(-18deg); } }
@keyframes db-float { 50% { transform: translateY(-3px); } }
@keyframes db-badge { 0% { transform: scale(0); } 70% { transform: scale(1.25); } }
@keyframes db-today { 50% { background: rgba(20, 184, 166, .20); } }

/* numbers */
.db-cnt { counter-reset: n var(--db-n); animation: db-count 1.2s cubic-bezier(.16, 1, .3, 1) .15s both; }
.db-cnt::before { content: counter(n); }
.db-k .rg { background: conic-gradient(var(--acc) calc(var(--db-p) * 1%), #E6EEEE 0); animation: db-ring 1.3s cubic-bezier(.16, 1, .3, 1) .15s both; }

/* the page arrives in order: hero, figures, cards */
.db-hero { animation: db-rise .5s cubic-bezier(.16, 1, .3, 1) both; overflow: hidden; }
.db-hero::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 26%; pointer-events: none; z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); animation: db-shine 6s ease-in-out 1s infinite; }
.db-k { animation: db-rise .55s cubic-bezier(.16, 1, .3, 1) both; }
.db-k:nth-child(1) { animation-delay: .05s; } .db-k:nth-child(2) { animation-delay: .11s; } .db-k:nth-child(3) { animation-delay: .17s; }
.db-k:nth-child(4) { animation-delay: .23s; } .db-k:nth-child(5) { animation-delay: .29s; } .db-k:nth-child(6) { animation-delay: .35s; }
.db-k .ic .mud-icon-root { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.db-k:hover .ic .mud-icon-root { transform: scale(1.18) rotate(-8deg); }
.db-card { animation: db-rise .6s cubic-bezier(.16, 1, .3, 1) .3s both; }
.db-side .db-card:nth-child(2) { animation-delay: .38s; } .db-side .db-card:nth-child(3) { animation-delay: .46s; } .db-side .db-card:nth-child(4) { animation-delay: .54s; }
.db-main .db-card:nth-child(2) { animation-delay: .42s; }
.db-quick .hm-quick { animation: db-rise .5s cubic-bezier(.16, 1, .3, 1) .5s both; }

/* rooms pop in one after another; badges bounce; an occupied room breathes on hover */
.db-room { animation: db-pop .42s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(.35s + var(--i, 0) * 22ms); }
.db-room .bd { animation: db-badge .45s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.7s + var(--i, 0) * 22ms); }
.db-room:hover .top .mud-icon-root { animation: db-float .9s ease-in-out infinite; }
.db-states button { transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.db-states button:active { transform: scale(.95); }

/* the timeline: bars grow from their first night, today's column breathes */
.db-tl .bar { animation: db-grow .7s cubic-bezier(.16, 1, .3, 1) .5s both; }
.db-tl .cell.today { animation: db-today 3s ease-in-out infinite; }
.db-tl-row:hover .cell { background-color: rgba(15, 118, 110, .04); }

/* today's lists slide in */
.db-li { animation: db-slide .45s cubic-bezier(.16, 1, .3, 1) both; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.db-li:nth-child(1) { animation-delay: .5s; } .db-li:nth-child(2) { animation-delay: .56s; } .db-li:nth-child(3) { animation-delay: .62s; }
.db-li:nth-child(4) { animation-delay: .68s; } .db-li:nth-child(5) { animation-delay: .74s; } .db-li:nth-child(n+6) { animation-delay: .8s; }
.db-li:hover { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
    .db-hero, .db-hero::before, .db-k, .db-card, .db-room, .db-room .bd, .db-tl .bar, .db-tl .cell.today, .db-li, .db-quick .hm-quick, .db-k .rg, .db-cnt { animation: none !important; }
    .db-cnt { counter-reset: n var(--to); }
    .db-k .rg { --db-p: var(--p); }
}

/* booking plan tiles: no bed icon — the number is bigger, the price under it */
.nr-pr b { font-size: 15.5px; }
.nr-pr small { font-size: 10.5px; }


/* ===== reports: the index of reports, and one report (period, figures, chart, table) ===== */
.rp-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rp-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #E8EFEF; text-decoration: none; color: inherit;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; animation: db-rise .45s cubic-bezier(.16, 1, .3, 1) both; }
.rp-tile:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 12px 24px color-mix(in srgb, var(--acc) 16%, transparent); }
.rp-tile .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--acc); background: var(--tint); flex: none; }
.rp-tile .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-tile b { font-size: 14px; color: #0F172A; }
.rp-tile small { font-size: 11.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-tile .go { color: #CBD5E1; }
.rp-tile:hover .go { color: var(--acc); }

.rp { display: flex; flex-direction: column; gap: 14px; }
.rp-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid #E8EFEF;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04); border-inline-start: 5px solid var(--acc); animation: db-rise .45s cubic-bezier(.16, 1, .3, 1) both; }
.rp-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--acc); background: var(--tint); flex: none; }
.rp-ic .mud-icon-root { width: 28px; height: 28px; }
.rp-t { flex: 1 1 240px; min-width: 0; }
.rp-t small { font-size: 12px; color: #94A3B8; }
.rp-t small a { color: #0F766E; text-decoration: none; font-weight: 700; }
.rp-t h1 { margin: 0; font-size: 21px; font-weight: 800; color: #0F172A; }
.rp-t p { margin: 2px 0 0; font-size: 13px; color: #64748B; }
.rp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rp-actions > .rp-range { flex: 0 0 auto; width: 270px; margin: 0 !important; overflow: hidden; }
.rp-range .mud-input-control { width: 100% !important; }
.rp-range .mud-input > input { flex: 1 1 0 !important; min-width: 0 !important; }
.rp-csv { display: inline-flex; align-items: center; gap: 6px; height: 36.5px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 13.5px; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 6px 14px rgba(15, 118, 110, .22); }
.rp-csv .mud-icon-root { width: 19px; height: 19px; }
.rp-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-quick button { border: 1.5px solid #E2E8F0; background: #fff; color: #334155; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rp-quick button:hover { border-color: #5EEAD4; }
.rp-quick button.on { background: #0F766E; border-color: #0F766E; color: #fff; }

.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rp-k { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #E8EFEF; overflow: hidden;
    animation: db-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.rp-k::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--acc); opacity: .85; }
.rp-k:nth-child(2) { animation-delay: .06s; } .rp-k:nth-child(3) { animation-delay: .12s; } .rp-k:nth-child(4) { animation-delay: .18s; } .rp-k:nth-child(5) { animation-delay: .24s; }
.rp-k span { font-size: 12.5px; font-weight: 700; color: #64748B; }
.rp-k b { font-size: 21px; font-weight: 800; color: #0F172A; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.rp-k small { font-size: 11.5px; color: #94A3B8; }

.rp-card { background: #fff; border: 1px solid #E8EFEF; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); animation: db-rise .55s cubic-bezier(.16, 1, .3, 1) .15s both; min-width: 0; }
.rp-card > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15px; color: #0F172A; }
.rp-card > header > .mud-icon-root { width: 30px; height: 30px; padding: 5px; border-radius: 9px; color: var(--acc); background: var(--tint); }
.rp-count { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--acc); background: var(--tint); }
.rp-search { height: 36px; }

.rp-bars { display: flex; flex-direction: column; gap: 9px; }
.rp-bars .bar { display: grid; grid-template-columns: minmax(90px, 190px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.rp-bars .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; font-weight: 700; }
.rp-bars .tr { height: 12px; border-radius: 999px; background: #F1F5F9; overflow: hidden; }
.rp-bars .tr i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, #fff), var(--acc)); transform-origin: right; animation: rp-barw .8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rp-barw { from { transform: scaleX(0); } }
.rp-bars .bar b { direction: ltr; font-size: 12.5px; color: #0F172A; min-width: 64px; text-align: start; }
.rp-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18px, 1fr); gap: 4px; align-items: end; height: 220px; padding-top: 6px; overflow-x: auto; }
.rp-cols .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.rp-cols .col i { width: 100%; max-width: 26px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 45%, #fff));
    transform-origin: bottom; animation: rp-colh .7s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rp-colh { from { transform: scaleY(0); } }
.rp-cols .col:hover i { filter: brightness(1.1); }
.rp-cols .col small { font-size: 9.5px; color: #94A3B8; white-space: nowrap; writing-mode: vertical-rl; height: 34px; }

.rp-table { overflow: auto; max-height: 560px; border: 1px solid #EEF2F6; border-radius: 12px; }
.rp-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { position: sticky; top: 0; z-index: 1; background: #F8FAFC; color: #475569; font-weight: 800; font-size: 12.5px; padding: 9px 12px; text-align: start; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 1px solid #E2E8F0; }
.rp-table th:hover, .rp-table th.on { color: var(--acc); }
.rp-table th .mud-icon-root { width: 14px; height: 14px; vertical-align: -2px; }
.rp-table td { padding: 8px 12px; border-bottom: 1px solid #F1F5F9; color: #0F172A; white-space: nowrap; }
.rp-table tbody tr:hover td { background: #F7FCFB; }
.rp-table .num { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.rp-table .date { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.rp-table tfoot td { position: sticky; bottom: 0; background: #F0FBF9; font-weight: 800; border-top: 2px solid var(--acc); border-bottom: 0; }
.rp-more { text-align: center; padding-top: 8px; }

@media print {
    .hm-drawer, .mud-drawer, .hm-appbar, .mud-appbar, .hm-bg, .rp-actions, .rp-quick, .rp-search, .rp-more, #hm-loader, .mud-snackbar-provider { display: none !important; }
    .mud-main-content, .hm-main { padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .rp-table { max-height: none; overflow: visible; border: 0; }
    .rp-table th, .rp-table tfoot td { position: static; }
    .rp-head, .rp-card, .rp-k { box-shadow: none; animation: none; break-inside: avoid; }
    .rp-cols { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .rp-tile, .rp-head, .rp-k, .rp-card, .rp-bars .tr i, .rp-cols .col i { animation: none !important; } }

/* rooms page tiles: no bed icon (Majed: "remove this icon") — just the number, a little bigger */
.sal-canvas > .sal-tbl.roomplan .tnm { font-size: 18px; }

/* ═══ Discounts and offers (/discounts): hero, templates, year strip, rule cards, simulator, rule form ═══ */
.dc-page { display: flex; flex-direction: column; gap: 14px; }
.dc-page .grow { flex: 1; }
.dc-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding: 18px 20px; border-radius: 20px; color: #fff;
    background: radial-gradient(120% 160% at 100% 0%, #14B8A6 0%, #0F766E 45%, #115E59 100%); box-shadow: 0 14px 30px rgba(15, 118, 110, .22); position: relative; overflow: hidden; }
.dc-hero::after { content: ''; position: absolute; inset-inline-end: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.dc-hero .tx { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; min-width: 0; }
.dc-hero .mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.dc-hero .mark .mud-icon-root { width: 28px; height: 28px; }
.dc-hero h1 { margin: 0; font-size: 21px; font-weight: 800; }
.dc-hero p { margin: 3px 0 0; font-size: 13px; opacity: .88; max-width: 620px; line-height: 1.6; }
.dc-hero .kpis { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.dc-hero .k { min-width: 92px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .13); backdrop-filter: blur(4px); text-align: center; }
.dc-hero .k b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; }
.dc-hero .k span { font-size: 11.5px; opacity: .9; }
.dc-hero .k.live b::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-start: 6px; border-radius: 50%; background: #86EFAC; box-shadow: 0 0 0 0 rgba(134, 239, 172, .7); animation: dc-pulse 1.8s infinite; vertical-align: middle; }
.dc-hero .new { position: relative; z-index: 1; background: #fff !important; color: #0F766E !important; font-weight: 800; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
@keyframes dc-pulse { 70% { box-shadow: 0 0 0 9px rgba(134, 239, 172, 0); } 100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); } }

.dc-tpls { display: flex; flex-direction: column; gap: 8px; }
.dc-tpls .ttl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #475569; }
.dc-tpls .ttl .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.dc-tpls .row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.dc-tpl { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid #E5EEEE; cursor: pointer; font: inherit; text-align: start;
    transition: transform .18s, border-color .18s, box-shadow .18s; }
.dc-tpl:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 16%, transparent); }
.dc-tpl .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: var(--t); flex: none; }
.dc-tpl .ic .mud-icon-root { width: 20px; height: 20px; }
.dc-tpl .tx { display: flex; flex-direction: column; line-height: 1.35; }
.dc-tpl .tx b { font-size: 13.5px; color: #0F172A; white-space: nowrap; }
.dc-tpl .tx small { font-size: 11.5px; color: #64748B; white-space: nowrap; }
.dc-tpl .v, .dc-card .val { direction: ltr; font-weight: 800; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 3px 9px; font-size: 12.5px; }
.dc-tpl .v.up, .dc-card .val.up { color: #9D174D; background: #FCE7F3; }

.dc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.dc-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dc-box { background: #fff; border: 1px solid #E5EEEE; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); min-width: 0; }
.dc-box > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15.5px; color: #0F172A; }
.dc-box > header > .mud-icon-root { width: 32px; height: 32px; padding: 6px; border-radius: 10px; color: #0F766E; background: #E6F6F4; }
.dc-box > header small { color: #64748B; font-size: 12px; }
.dc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 16px; text-align: center; color: #64748B; font-size: 13.5px;
    background: #fff; border: 1px dashed #CFE1E1; border-radius: 18px; }
.dc-empty.sm { padding: 18px 12px; border: 0; background: transparent; }
.dc-empty > .mud-icon-root { width: 44px; height: 44px; color: #99C9C4; }
.dc-empty b { color: #0F172A; font-size: 15px; }

/* the year */
.dc-year .legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748B; margin-inline-start: 8px; }
.dc-year .legend i { width: 14px; height: 8px; border-radius: 4px; background: #15803D; display: inline-block; }
.dc-year .legend i.up { background: repeating-linear-gradient(135deg, #BE185D 0 4px, #DB2777 4px 8px); margin-inline-start: 8px; }
.dc-year .yr { display: flex; align-items: center; gap: 4px; background: #F1F7F7; border-radius: 10px; padding: 2px; }
.dc-year .yr b { min-width: 48px; text-align: center; font-size: 14px; }
.dc-year .yr button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: grid; place-items: center; color: #0F766E; }
.dc-year .yr button:hover { background: #fff; }
.dc-year .yr-scroll { overflow-x: auto; scrollbar-width: thin; }
.dc-year .yr-grid { min-width: 720px; display: flex; flex-direction: column; gap: 6px; }
.dc-year .yr-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
.dc-year .yr-row.off { opacity: .45; }
.dc-year .lb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-year .lb i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dc-year .months { display: flex; border-radius: 8px; overflow: hidden; background: #F4F8F8; }
.dc-year .months span { text-align: center; font-size: 11px; color: #64748B; padding: 4px 0; border-inline-start: 1px solid #fff; white-space: nowrap; overflow: hidden; }
.dc-year .months span.now { background: #0F766E; color: #fff; font-weight: 700; }
.dc-year .track { position: relative; height: 26px; border-radius: 8px; background: #F8FBFB; }
.dc-year .track .sep { position: absolute; top: 0; bottom: 0; width: 1px; background: #E9F0F0; }
.dc-year .track .today { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0F172A; border-radius: 2px; z-index: 2; opacity: .55; }
.dc-year .bar { position: absolute; top: 3px; height: 20px; min-width: 6px; border: 0; border-radius: 7px; background: var(--c); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0 4px;
    overflow: hidden; white-space: nowrap; z-index: 1; transition: transform .15s, box-shadow .15s; animation: dc-grow .7s cubic-bezier(.16, 1, .3, 1) both; transform-origin: right center; }
.dc-year .bar span { direction: rtl; unicode-bidi: plaintext; }
.dc-year .bar.up { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 78%, #fff) 6px 12px); }
.dc-year .bar.all { opacity: .28; top: 6px; height: 14px; font-size: 10px; color: #0F172A; background: color-mix(in srgb, var(--c) 55%, #fff); }
.dc-year .bar.all:hover { opacity: .6; }
.dc-year .bar:hover { transform: translateY(-1px); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); z-index: 3; }
@keyframes dc-grow { from { transform: scaleX(0); opacity: 0; } }

/* filter and cards */
.dc-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dc-filter > button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid #E2ECEC; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: #475569; cursor: pointer; transition: all .15s; }
.dc-filter > button .mud-icon-root { width: 15px; height: 15px; color: var(--c, #0F766E); }
.dc-filter > button i { font-style: normal; font-size: 11px; background: #F1F5F9; border-radius: 999px; padding: 0 6px; color: #475569; }
.dc-filter > button:hover { border-color: var(--c, #0F766E); }
.dc-filter > button.on { background: var(--c, #0F766E); border-color: var(--c, #0F766E); color: #fff; }
.dc-filter > button.on .mud-icon-root { color: #fff; }
.dc-filter > button.on i { background: rgba(255, 255, 255, .22); color: #fff; }
.dc-filter .dc-search { flex: 0 1 260px; margin: 0; }
.dc-filter .dc-search .mud-input-root { background: #fff; border-radius: 10px; }
.dc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.dc-card { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 8px; border-radius: 18px; background: #fff; border: 1px solid #E5EEEE; overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04); transition: transform .18s, box-shadow .18s, border-color .18s; animation: dc-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.dc-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.dc-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, #E5EEEE); box-shadow: 0 14px 28px color-mix(in srgb, var(--c) 13%, transparent); }
.dc-card.off { background: #FAFBFB; }
.dc-card.off .top, .dc-card.off .per, .dc-card.off .chips, .dc-card.off .code { opacity: .55; filter: grayscale(.6); }
.dc-card .top { display: flex; align-items: center; gap: 10px; }
.dc-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); flex: none; }
.dc-card .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.dc-card .nm b { font-size: 14.5px; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-card .nm small { font-size: 11.5px; color: #64748B; }
.dc-card .val { font-size: 16px; padding: 4px 11px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.dc-card .val small { font-size: 9.5px; font-weight: 600; direction: rtl; }
.dc-card .per { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: #334155; }
.dc-card .per > .mud-icon-root { width: 16px; height: 16px; color: #94A3B8; }
.dc-card .st { margin-inline-start: auto; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: #F1F5F9; color: #475569; white-space: nowrap; }
.dc-card .st.live { background: #DCFCE7; color: #15803D; }
.dc-card .st.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #16A34A; margin-inline-end: 5px; animation: dc-blink 1.4s infinite; }
.dc-card .st.soon { background: #E0F2FE; color: #0369A1; }
.dc-card .st.always { background: #E6F6F4; color: #0F766E; }
.dc-card .st.ended { background: #FEE2E2; color: #B91C1C; }
@keyframes dc-blink { 50% { opacity: .3; } }
@keyframes dc-rise { from { opacity: 0; transform: translateY(10px); } }
.dc-card .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-card .chips span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #475569; background: #F4F8F8; border-radius: 8px; padding: 3px 8px; }
.dc-card .chips .mud-icon-root { width: 13px; height: 13px; color: var(--c); }
.dc-card .code { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: repeating-linear-gradient(135deg, #F8FAFC 0 10px, #F1F5F9 10px 20px); border: 1px dashed #CBD5E1; }
.dc-card .code button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #0F172A; color: #fff; border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; }
.dc-card .code button b { font-family: Consolas, 'Courier New', monospace; letter-spacing: 1.5px; font-size: 13px; }
.dc-card .code button .mud-icon-root { width: 13px; height: 13px; opacity: .7; }
.dc-card .code .use { flex: 1; min-width: 0; font-size: 11.5px; color: #475569; display: flex; flex-direction: column; gap: 4px; }
.dc-card .code .use i { display: block; height: 5px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.dc-card .code .use em { display: block; height: 100%; background: #0F766E; border-radius: 3px; }
.dc-card .note { margin: 0; font-size: 12px; color: #64748B; line-height: 1.6; }
.dc-card .foot { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 4px; border-top: 1px solid #F0F5F5; }
.dc-card .foot .mud-switch { margin: 0; }
.dc-card .foot .mud-typography { font-size: 12.5px; font-weight: 700; color: #475569; }
.dc-card .foot .pr { font-size: 11px; color: #94A3B8; margin-inline-end: 4px; }

/* simulator */
.dc-sim { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 4px; }
.dc-sim > header small { flex-basis: 100%; margin-inline-start: 40px; margin-top: -8px; }
.dc-sim .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dc-sim .two > * { min-width: 0; margin: 0; }
.dc-code-in input { direction: ltr; text-align: left; font-family: Consolas, 'Courier New', monospace; letter-spacing: 1px; text-transform: uppercase; }
.dc-sim .promo { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.dc-sim .promo .mud-icon-root { width: 16px; height: 16px; flex: none; }
.dc-sim .promo.ok { background: #DCFCE7; color: #166534; }
.dc-sim .promo.bad { background: #FEE2E2; color: #991B1B; }
.dc-sim .sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: #F4F8F8; }
.dc-sim .sum.down { background: linear-gradient(135deg, #ECFDF5, #E6F6F4); }
.dc-sim .sum.up { background: linear-gradient(135deg, #FDF2F8, #FCE7F3); }
.dc-sim .sum > div { display: flex; flex-direction: column; line-height: 1.3; }
.dc-sim .sum small { font-size: 11.5px; color: #64748B; }
.dc-sim .sum s { font-size: 12.5px; color: #94A3B8; }
.dc-sim .sum b { font-size: 24px; font-weight: 800; color: #0F172A; }
.dc-sim .pill { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #15803D; color: #fff; white-space: nowrap; }
.dc-sim .sum.up .pill { background: #BE185D; }
.dc-sim .pill.flat { background: #E2E8F0; color: #475569; }
.dc-sim .applied { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dc-sim .applied > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #334155; }
.dc-sim .applied span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dc-sim .applied i { font-style: normal; direction: ltr; font-size: 11px; font-weight: 800; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 1px 7px; flex: none; }
.dc-sim .applied .up i { color: #9D174D; background: #FCE7F3; }
.dc-sim .applied b { color: #15803D; font-size: 12.5px; }
.dc-sim .applied .up b { color: #9D174D; }
.dc-sim .nights { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.dc-sim .nights > div { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 10px; background: #F8FBFB; border-inline-start: 3px solid #E2E8F0; }
.dc-sim .nights > div.down { border-inline-start-color: #16A34A; }
.dc-sim .nights > div.up { border-inline-start-color: #DB2777; }
.dc-sim .nights .d { display: flex; flex-direction: column; line-height: 1.3; }
.dc-sim .nights .d b { font-size: 12.5px; color: #0F172A; }
.dc-sim .nights .d small { font-size: 10.5px; color: #64748B; }
.dc-sim .nights .r { font-size: 11px; color: #64748B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-sim .nights .p { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.dc-sim .nights .p s { font-size: 10.5px; color: #94A3B8; }
.dc-sim .nights .p b { font-size: 13px; color: #0F172A; }

/* rule form */
.dc-dlg .rd-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-weight: 800; font-size: 13.5px; color: #0F766E; }
.dc-dlg .rd-sec::after { content: ''; flex: 1; height: 1px; background: #E6EEF0; }
.dc-dlg .rd-sec .mud-icon-root { width: 18px; height: 18px; }
.dc-kinds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dc-kinds button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid #E5EEEE; background: #fff; cursor: pointer; font: inherit; color: #475569; transition: all .15s; }
.dc-kinds button .mud-icon-root { width: 24px; height: 24px; color: var(--c); }
.dc-kinds button b { font-size: 11.5px; white-space: nowrap; }
.dc-kinds button:hover { border-color: var(--c); background: var(--t); }
.dc-kinds button.on { border-color: var(--c); background: var(--c); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 28%, transparent); }
.dc-kinds button.on .mud-icon-root { color: #fff; }
.dc-say { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ECFDF5; color: #166534; font-size: 13.5px; font-weight: 700; line-height: 1.7; }
.dc-say.up { background: #FDF2F8; color: #9D174D; }
.dc-say .mud-icon-root { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.dc-seg { display: flex; height: 40px; padding: 3px; border-radius: 10px; background: #F1F5F6; gap: 3px; }
.dc-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #64748B; white-space: nowrap; }
.dc-seg button .mud-icon-root { width: 16px; height: 16px; }
.dc-seg button.on { background: #fff; color: #15803D; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.dc-seg button.on.up { color: #BE185D; }
.dc-quick, .dc-days, .dc-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc-quick { height: 40px; }
.dc-quick button, .dc-days button, .dc-types button { padding: 6px 12px; border-radius: 999px; border: 1px solid #DCE8E8; background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #475569; transition: all .15s; }
.dc-quick button { direction: ltr; padding: 5px 9px; }
.dc-quick button:hover, .dc-days button:hover, .dc-types button:hover { border-color: #0F766E; color: #0F766E; }
.dc-quick button.on, .dc-days button.on, .dc-types button.on { background: #0F766E; border-color: #0F766E; color: #fff; }
.dc-types button small { opacity: .7; font-weight: 600; margin-inline-start: 4px; }
.dc-days .sp { flex: 1; }
.dc-days button.lk { border-style: dashed; font-weight: 600; font-size: 12px; }
.dc-hint { margin-top: 6px; font-size: 12px; color: #64748B; line-height: 1.6; }
.dc-used { font-size: 12.5px; color: #64748B; }
.dc-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px #DCE8E8; transition: transform .12s; }
.dc-colors button:hover { transform: scale(1.12); }
.dc-colors button.on { box-shadow: 0 0 0 2px var(--c); }
.dc-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; padding: 9px; border-radius: 12px; border: 1px dashed #BFD8D6; background: #F7FBFB; color: #0F766E; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; }
.dc-more:hover { background: #E6F6F4; }

@media (max-width: 1180px) { .dc-cols { grid-template-columns: minmax(0, 1fr); } .dc-sim { position: static; } }
@media (max-width: 700px) { .dc-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dc-hero .kpis { width: 100%; } .dc-hero .k { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .dc-card, .dc-year .bar, .dc-hero .k.live b::after, .dc-card .st.live::before { animation: none; } }

/* offers in the new booking page */
.nr-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.nr-promo .nr-promo-in { flex: 0 1 240px; margin: 0; }
.nr-promo .msg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 10px; padding: 6px 10px; }
.nr-promo .msg .mud-icon-root { width: 16px; height: 16px; flex: none; }
.nr-promo .msg.ok { background: #DCFCE7; color: #166534; }
.nr-promo .msg.bad { background: #FEE2E2; color: #991B1B; }
.nr-promo .msg.info { background: #E6F6F4; color: #0F766E; }
.nr-rc-price s, .nr-sum-room s, .nr-total s, .nr-d-price s { color: #94A3B8; font-weight: 500; font-size: .8em; margin-inline-end: 6px; }
.nr-deal { display: inline-block; direction: ltr; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 8px; background: #DCFCE7; color: #15803D; margin-inline-start: 4px; }
.nr-deal.up { background: #FCE7F3; color: #9D174D; }
.nr-pr small.deal { color: #15803D; font-weight: 800; }
.nr-offers { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 2px; padding: 9px 10px; border-radius: 12px; background: #F4FBF8; border: 1px dashed #BFE3D3; }
.nr-offers.in-dlg { margin-top: 8px; }
.nr-offers .h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #0F766E; }
.nr-offers .h .mud-icon-root { width: 15px; height: 15px; }
.nr-offers > div:not(.h) { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #334155; }
.nr-offers span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.nr-offers i { font-style: normal; direction: ltr; font-size: 11px; font-weight: 800; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 1px 7px; flex: none; }
.nr-offers .up i { color: #9D174D; background: #FCE7F3; }
.nr-offers b { color: #15803D; font-size: 12.5px; }
.nr-offers .up b { color: #9D174D; }

/* ═══ File manager (/files): side, toolbar, path, grid and list, details, preview, uploads, pickers ═══ */
.fm-page { display: flex; gap: 14px; align-items: stretch; height: calc(100vh - 110px); min-height: 480px; user-select: none; }
.fm-page .grow { flex: 1; }
.fm-side { flex: none; width: 216px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.fm-new-wrap { position: relative; }
.fm-new { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px 0 26px; border: 0; border-radius: 16px; background: #fff; color: #0F172A; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12), 0 8px 22px rgba(15, 118, 110, .14); transition: transform .15s, box-shadow .15s; }
.fm-new .mud-icon-root { width: 26px; height: 26px; color: #0F766E; }
.fm-new:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .14), 0 12px 28px rgba(15, 118, 110, .2); }
.fm-new-menu { position: absolute; top: 56px; inset-inline-start: 0; z-index: 1400; width: 210px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22); animation: hm-ctx-in .12s ease-out both; }
.fm-new-menu .ci { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: #1E293B; text-align: start; }
.fm-new-menu .ci .mud-icon-root { width: 20px; height: 20px; color: #0F766E; }
.fm-new-menu .ci:hover { background: #F0FBF9; }
.fm-nav { display: flex; flex-direction: column; gap: 2px; }
.fm-nav button { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: #334155; text-align: start; transition: background .12s; }
.fm-nav button .mud-icon-root { width: 20px; height: 20px; color: #64748B; }
.fm-nav button:hover { background: #EAF3F2; }
.fm-nav button.on { background: #CCF0EA; color: #0B5A53; font-weight: 800; }
.fm-nav button.on .mud-icon-root { color: #0F766E; }
.fm-nav button i { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 800; background: #E2E8F0; color: #475569; border-radius: 999px; padding: 1px 7px; }
.fm-usage { margin-top: auto; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #E5EEEE; display: flex; flex-direction: column; gap: 3px; }
.fm-usage .h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #475569; }
.fm-usage .h .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.fm-usage > b { font-size: 21px; font-weight: 800; color: #0F172A; line-height: 1.3; }
.fm-usage small { font-size: 11.5px; color: #64748B; }
.fm-usage small.tr { margin-top: 4px; }
.fm-usage .bar { display: flex; gap: 2px; height: 8px; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; background: #EEF3F3; }
.fm-usage .bar i { min-width: 3px; }
.fm-usage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.fm-usage li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #475569; }
.fm-usage li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fm-usage li em { margin-inline-start: auto; font-style: normal; color: #94A3B8; }

.fm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #E5EEEE; border-radius: 20px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); overflow: hidden; }
.fm-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px 8px; }
.fm-search { flex: 1 1 260px; max-width: 620px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: #EEF5F4; border: 1.5px solid transparent; transition: all .15s; }
.fm-search:focus-within { background: #fff; border-color: #0F766E; box-shadow: 0 4px 16px rgba(15, 118, 110, .14); }
.fm-search > .mud-icon-root { color: #64748B; }
.fm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #0F172A; user-select: text; }
.fm-search button, .fm-ib { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #64748B; }
.fm-search button:hover, .fm-ib:hover { background: #E2ECEB; }
.fm-ib.on { background: #CCF0EA; color: #0F766E; }
.fm-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.fm-sort, .fm-seg { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: #F1F6F6; }
.fm-sort button { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #64748B; }
.fm-sort button .mud-icon-root { width: 14px; height: 14px; }
.fm-sort button.on, .fm-seg button.on { background: #fff; color: #0F766E; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.fm-seg button { width: 34px; height: 30px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; display: grid; place-items: center; color: #64748B; }
.fm-seg button .mud-icon-root { width: 18px; height: 18px; }

.fm-bar { min-height: 46px; padding: 0 14px; display: flex; align-items: center; border-bottom: 1px solid #EEF3F3; }
.fm-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; width: 100%; }
.fm-crumbs > button:not(.empty), .fm-crumbs > .cur { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #64748B; cursor: pointer; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-crumbs > button:not(.empty):hover { background: #EEF5F4; color: #0F172A; }
.fm-crumbs .cur { color: #0F172A !important; font-weight: 800 !important; cursor: default; }
.fm-crumbs .mud-icon-root { width: 20px; height: 20px; color: #0F766E; flex: none; }
.fm-crumbs .sep { color: #CBD5E1 !important; width: 18px; height: 18px; }
.fm-crumbs .drop { background: #CCF0EA !important; outline: 2px dashed #0F766E; }
.fm-crumbs .empty { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #FECACA; border-radius: 999px; background: #FEF2F2; color: #B91C1C; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fm-crumbs .empty .mud-icon-root { color: #B91C1C; width: 16px; height: 16px; }
.fm-selbar { display: flex; align-items: center; gap: 4px; width: 100%; height: 38px; padding: 0 6px; border-radius: 999px; background: #E6F6F4; animation: fm-in .16s ease-out both; }
.fm-selbar b { font-size: 13.5px; color: #0B5A53; margin-inline-end: 6px; }
.fm-selbar button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #0B5A53; white-space: nowrap; }
.fm-selbar button .mud-icon-root { width: 17px; height: 17px; }
.fm-selbar button:hover { background: rgba(15, 118, 110, .14); }
.fm-selbar button.danger { color: #B91C1C; }
.fm-selbar button.danger:hover { background: #FEE2E2; }
.fm-selbar button.x { width: 30px; padding: 0; justify-content: center; }
@keyframes fm-in { from { opacity: 0; transform: translateY(-3px); } }

.fm-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 20px; outline: 0; scrollbar-width: thin; }
.fm-sec { font-size: 12.5px; font-weight: 800; color: #64748B; margin: 6px 2px 8px; }
.fm-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fm-folder { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; border-radius: 14px; background: #F4F8F8; border: 1.5px solid transparent; cursor: pointer; transition: background .12s, border-color .12s, transform .12s; min-width: 0; }
.fm-folder:hover { background: #E9F2F1; }
.fm-folder .fi { color: var(--c); width: 26px; height: 26px; flex: none; }
.fm-folder .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.fm-folder .tx b { font-size: 13.5px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-folder .tx small { font-size: 11px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-folder.sel, .fm-file.sel { background: #D9F3EE; border-color: #0F766E; }
.fm-folder.drop { background: #CCF0EA; border: 2px dashed #0F766E; transform: scale(1.02); }
.fm-folder.moving, .fm-file.moving { opacity: .45; }
.fm-page .star { color: #0D9488; width: 16px; height: 16px; flex: none; }
.fm-page .more { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #64748B; flex: none; opacity: 0; transition: opacity .12s, background .12s; }
.fm-page .more .mud-icon-root { width: 18px; height: 18px; }
.fm-folder:hover .more, .fm-file:hover .more, .fm-row:hover .more, .fm-folder.sel .more, .fm-file.sel .more, .fm-row.sel .more { opacity: 1; }
.fm-page .more:hover { background: rgba(15, 23, 42, .1); }

.fm-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fm-file { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 9px; border-radius: 16px; background: #F4F8F8; border: 1.5px solid transparent; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; min-width: 0; animation: fm-pop .28s cubic-bezier(.16, 1, .3, 1) both; }
.fm-file:hover { background: #E9F2F1; box-shadow: 0 6px 16px rgba(15, 23, 42, .07); }
.fm-file .pv { position: relative; aspect-ratio: 4 / 3; border-radius: 11px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.fm-file .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-file .pv .ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); }
.fm-file .pv .ico .mud-icon-root { width: 34px; height: 34px; }
.fm-file .pv em { position: absolute; bottom: 8px; inset-inline-start: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--c); border-radius: 5px; padding: 1px 6px; }
.fm-file .pv .star { position: absolute; top: 7px; inset-inline-start: 7px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.fm-file .pv .tick { position: absolute; top: 7px; inset-inline-end: 7px; width: 22px; height: 22px; border-radius: 50%; background: #0F766E; color: #fff; display: none; place-items: center; box-shadow: 0 0 0 2px #fff; }
.fm-file .pv .tick .mud-icon-root { width: 15px; height: 15px; }
.fm-file.sel .pv .tick { display: grid; }
.fm-file .nm { display: flex; align-items: center; gap: 6px; padding: 0 2px; min-width: 0; }
.fm-file .nm > .mud-icon-root { width: 18px; height: 18px; color: var(--c); flex: none; }
.fm-file .nm span { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: start; }
.fm-file .nm .more { margin: -4px -4px -4px 0; }
.fm-file .mt { padding: 0 4px; font-size: 11px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fm-pop { from { opacity: 0; transform: scale(.97); } }

.fm-list { display: flex; flex-direction: column; }
.fm-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px 100px 36px; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-bottom: 1px solid #F0F5F5; font-size: 12.5px; color: #475569; cursor: pointer; border-radius: 10px; }
.fm-row.head { min-height: 34px; font-size: 12px; font-weight: 800; color: #64748B; cursor: default; position: sticky; top: -12px; background: #fff; z-index: 2; border-radius: 0; }
.fm-row:not(.head):hover { background: #F4F8F8; }
.fm-row.sel { background: #D9F3EE !important; }
.fm-row.drop { background: #CCF0EA !important; outline: 2px dashed #0F766E; }
.fm-row .n { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-row .n > .mud-icon-root:first-child { color: var(--c); width: 22px; height: 22px; flex: none; }
.fm-row .n img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; }
.fm-row .n b { font-size: 13.5px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fm-row .n em { font-style: normal; font-size: 11px; color: #64748B; background: #EEF3F3; border-radius: 6px; padding: 1px 7px; flex: none; }
.fm-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fm-empty { height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #64748B; font-size: 13.5px; }
.fm-empty .art { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #E6F6F4, #CFEDE8); margin-bottom: 6px; animation: fm-float 4s ease-in-out infinite; }
.fm-empty .art .mud-icon-root { width: 54px; height: 54px; color: #0F766E; }
.fm-empty b { font-size: 17px; color: #0F172A; }
.fm-empty .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
@keyframes fm-float { 50% { transform: translateY(-6px); } }

/* dropping files from the computer: the input covers the folder */
.fm-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: -1; }
.fm-drop-hint { position: absolute; inset: 8px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2.5px dashed #0F766E; border-radius: 18px; background: rgba(230, 246, 244, .93); color: #0B5A53; pointer-events: none; z-index: 5; }
.fm-drop-hint span { width: 76px; height: 76px; border-radius: 50%; background: #0F766E; color: #fff; display: grid; place-items: center; animation: fm-float 1.4s ease-in-out infinite; }
.fm-drop-hint span .mud-icon-root { width: 40px; height: 40px; }
.fm-drop-hint b { font-size: 18px; }
.fm-drop-hint small { font-size: 13px; }
.fm-drag .fm-in { pointer-events: auto; z-index: 6; }
.fm-drag .fm-drop-hint { display: flex; }

.fm-info { flex: none; width: 280px; display: flex; flex-direction: column; background: #fff; border: 1px solid #E5EEEE; border-radius: 20px; overflow: hidden; animation: fm-in .18s ease-out both; }
.fm-info header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.fm-info header b { flex: 1; min-width: 0; font-size: 14px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: start; }
.fm-info header button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #64748B; }
.fm-info header button:hover { background: #EEF3F3; }
.fm-info .pv { margin: 0 14px; aspect-ratio: 4 / 3; border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, #fff); display: grid; place-items: center; overflow: hidden; }
.fm-info .pv img { width: 100%; height: 100%; object-fit: cover; }
.fm-info .pv .mud-icon-root { width: 64px; height: 64px; color: var(--c); }
.fm-info dl { margin: 12px 14px 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.fm-info dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.fm-info dt { color: #64748B; }
.fm-info dd { margin: 0; color: #0F172A; font-weight: 700; text-align: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fm-info .acts { display: flex; gap: 8px; padding: 14px; margin-top: auto; }
.fm-info .none { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #64748B; font-size: 13px; }
.fm-info .none .mud-icon-root { width: 44px; height: 44px; color: #B6D9D5; }

.fm-ctx .ch { unicode-bidi: plaintext; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fm-dots { display: flex; gap: 6px; padding: 2px 10px 8px; }
.fm-dots button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px #DCE8E8; }
.fm-dots button.on { box-shadow: 0 0 0 2px var(--c); }

/* preview */
.fm-view { position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; background: rgba(8, 20, 24, .9); backdrop-filter: blur(6px); animation: fm-fade .16s ease-out both; }
@keyframes fm-fade { from { opacity: 0; } }
.fm-view header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #fff; }
.fm-view header .tx { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.fm-view header b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fm-view header small { font-size: 11.5px; opacity: .7; }
.fm-view header .grow { flex: 1; }
.fm-view header button, .fm-view .nav { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .12s; }
.fm-view header button:hover, .fm-view .nav:hover { background: rgba(255, 255, 255, .22); }
.fm-view .stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 70px 26px; }
.fm-view .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.fm-view .nav.prev { inset-inline-start: 14px; }
.fm-view .nav.next { inset-inline-end: 14px; }
.fm-view .content { max-width: 100%; max-height: 100%; width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; animation: fm-pop .22s cubic-bezier(.16, 1, .3, 1) both; }
.fm-view .content img, .fm-view .content video { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); object-fit: contain; }
.fm-view .content iframe { width: min(1000px, 100%); height: calc(100vh - 110px); border: 0; border-radius: 10px; background: #fff; }
.fm-view .audio, .fm-view .nopv { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 44px; border-radius: 22px; background: #fff; color: #0F172A; }
.fm-view .audio .mud-icon-root, .fm-view .nopv > .mud-icon-root { width: 64px; height: 64px; color: #0F766E; }

/* uploads */
.fm-ups { position: fixed; bottom: 18px; inset-inline-end: 22px; z-index: 1450; width: 340px; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .28); animation: fm-in .2s ease-out both; }
.fm-ups header { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #0F172A; color: #fff; cursor: pointer; }
.fm-ups header b { font-size: 13.5px; }
.fm-ups header .grow { flex: 1; }
.fm-ups header button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.fm-ups header button:hover { background: rgba(255, 255, 255, .16); }
.fm-ups ul { list-style: none; margin: 0; padding: 4px 0; max-height: 250px; overflow-y: auto; scrollbar-width: thin; }
.fm-ups li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.fm-ups li > .mud-icon-root:first-child { width: 22px; height: 22px; flex: none; }
.fm-ups li .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fm-ups li .tx span { font-size: 12.5px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: start; }
.fm-ups li small { font-size: 11px; color: #64748B; }
.fm-ups li small.err { color: #B91C1C; }
.fm-ups li i { display: block; height: 4px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.fm-ups li em { display: block; height: 100%; background: #0F766E; border-radius: 3px; transition: width .2s; }
.fm-ups .ok { color: #15803D; } .fm-ups .bad { color: #B91C1C; } .fm-ups .wait { color: #94A3B8; }
.fm-ups .pct { font-size: 11.5px; font-weight: 800; color: #0F766E; direction: ltr; }

/* move dialog */
.fm-move .load { display: grid; place-items: center; padding: 30px; }
.fm-move .tree { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.fm-move .node { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; text-align: start; }
.fm-move .node:hover { background: #F0F7F6; }
.fm-move .node.on { background: #CCF0EA; }
.fm-move .node .tw { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; flex: none; color: #64748B; }
.fm-move .node .tw.has:hover { background: rgba(15, 23, 42, .1); }
.fm-move .node .tw .mud-icon-root { width: 18px; height: 18px; }
.fm-move .node .fi { color: var(--c, #0F766E); width: 22px; height: 22px; flex: none; }
.fm-move .node b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-move .node em { font-style: normal; font-size: 11px; color: #0F766E; background: #fff; border-radius: 999px; padding: 1px 8px; flex: none; }

/* picking pictures from the files (room photos) */
.fm-pick .bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.fm-pick .bar .crumb { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: #64748B; }
.fm-pick .bar .crumb:hover { background: #EEF5F4; }
.fm-pick .bar .crumb.cur { color: #0F172A; }
.fm-pick .bar .crumb .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.fm-pick .bar .sep { width: 16px; height: 16px; color: #CBD5E1; }
.fm-pick .bar .grow { flex: 1; }
.fm-pick .area { position: relative; min-height: 300px; max-height: 52vh; overflow-y: auto; scrollbar-width: thin; padding: 2px; }
.fm-pick .fm-folders { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.fm-pick .fm-files { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fm-pick .fm-file .pv { aspect-ratio: 1; }
.fm-pick .hint { font-size: 12px; color: #64748B; margin-top: 8px; }
.fm-pick .fm-in { display: none; }

/* a room's photos (room form, room card, booking page) */
.rph-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.rph-photo { position: relative; width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EEF3F3; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.rph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rph-photo.cover { outline: 2.5px solid #0F766E; outline-offset: 1px; }
.rph-photo .tag { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: 10.5px; font-weight: 800; color: #fff; background: #0F766E; border-radius: 999px; padding: 1px 8px; }
.rph-photo .ops { position: absolute; top: 5px; inset-inline-end: 5px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.rph-photo:hover .ops { opacity: 1; }
.rph-photo .ops button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .72); color: #fff; cursor: pointer; display: grid; place-items: center; }
.rph-photo .ops button:hover { background: #0F766E; }
.rph-photo .ops button.del:hover { background: #B91C1C; }
.rph-photo .ops .mud-icon-root { width: 15px; height: 15px; }
.rph-add { width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px dashed #BFD8D6; background: #F7FBFB; color: #0F766E; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 700; transition: background .12s; }
.rph-add:hover { background: #E6F6F4; }
.rph-add .mud-icon-root { width: 26px; height: 26px; }
.rph-gallery { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.rph-gallery a { flex: none; width: 150px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EEF3F3; display: block; }
.rph-gallery a:first-child { width: 220px; }
.rph-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rph-gallery a:hover img { transform: scale(1.05); }

@media (max-width: 1100px) { .fm-info { display: none; } }
@media (max-width: 820px) {
    .fm-page { flex-direction: column; height: auto; }
    .fm-side { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .fm-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
    .fm-usage { display: none; }
    .fm-main { min-height: 70vh; }
    .fm-row { grid-template-columns: minmax(0, 1fr) 90px 36px; }
    .fm-row > span:nth-child(2), .fm-row > span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fm-file, .fm-empty .art, .fm-drop-hint span, .fm-view, .fm-view .content { animation: none; } }

.nr-rc-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; background: #EEF3F3; }
.nr-d-photos { margin: 10px 0 2px; }
.hm-rc2-body > .rph-gallery { margin-bottom: 12px; }

/* ═══ Build error panel (while developing): replaces dotnet watch's red box ═══ */
#dotnet-compile-error { display: none !important; }
#hm-build-error { position: fixed; inset: 0; z-index: 1000001; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .5); backdrop-filter: blur(5px); animation: hbe-fade .18s ease-out both; font-family: inherit; }
#hm-build-error .hbe-panel { width: min(740px, 100%); max-height: min(82vh, 760px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .4), 0 2px 8px rgba(15, 23, 42, .12); animation: hbe-rise .28s cubic-bezier(.16, 1, .3, 1) both; }
#hm-build-error header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #FEF2F2, #FFF1F2); border-bottom: 1px solid #FECDD3; }
#hm-build-error .hbe-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #DC2626; flex: none; box-shadow: 0 8px 18px rgba(220, 38, 38, .3); }
#hm-build-error svg { width: 22px; height: 22px; fill: currentColor; display: block; }
#hm-build-error .hbe-mark svg { color: #fff; width: 24px; height: 24px; }
#hm-build-error .hbe-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
#hm-build-error .hbe-tx b { font-size: 16px; font-weight: 800; color: #7F1D1D; }
#hm-build-error .hbe-tx small { font-size: 12.5px; color: #9F1239; }
#hm-build-error .hbe-n { min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: #DC2626; color: #fff; font-size: 13px; font-weight: 800; }
#hm-build-error .hbe-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #9F1239; cursor: pointer; display: grid; place-items: center; flex: none; }
#hm-build-error .hbe-x:hover { background: rgba(220, 38, 38, .12); }
#hm-build-error .hbe-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; background: #FAFBFC; }
#hm-build-error article { position: relative; padding: 12px 14px 10px; border-radius: 14px; background: #fff; border: 1px solid #E5E7EB; border-inline-start: 4px solid #DC2626; display: flex; flex-direction: column; gap: 8px; }
#hm-build-error article.warn { border-inline-start-color: #7C3AED; }
#hm-build-error .hbe-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#hm-build-error .hbe-code { direction: ltr; font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace; font-size: 12px; font-weight: 700; color: #B91C1C; background: #FEE2E2; border-radius: 7px; padding: 2px 8px; }
#hm-build-error article.warn .hbe-code { color: #6D28D9; background: #EDE9FE; }
#hm-build-error .hbe-file { direction: ltr; font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace; font-size: 13.5px; color: #0F172A; }
#hm-build-error .hbe-pos { margin-inline-start: auto; font-size: 12px; font-weight: 700; color: #475569; background: #F1F5F9; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
#hm-build-error .hbe-msg { margin: 0; direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word; font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace; font-size: 13.5px; line-height: 1.6;
    color: #E2E8F0; background: #0F172A; border-radius: 10px; padding: 10px 12px; user-select: text; }
#hm-build-error .hbe-foot { display: flex; align-items: center; gap: 10px; }
#hm-build-error .hbe-foot code { flex: 1; min-width: 0; direction: ltr; text-align: left; font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace; font-size: 11.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: text; }
#hm-build-error .hbe-copy { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; color: #334155; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; flex: none; transition: all .12s; }
#hm-build-error .hbe-copy svg { width: 14px; height: 14px; }
#hm-build-error .hbe-copy:hover { border-color: #0F766E; color: #0F766E; background: #F0FBF9; }
#hm-build-error footer { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid #EEF2F6; font-size: 12px; color: #64748B; background: #fff; }
#hm-build-error footer span:first-child { flex: 1; }
@keyframes hbe-fade { from { opacity: 0; } }
@keyframes hbe-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { #hm-build-error, #hm-build-error .hbe-panel { animation: none; } }

/* rows that read from the start (the browser centres a flex button by default) */
.fm-nav button, .fm-new-menu .ci, .fm-move .node, .dc-tpl, .fm-crumbs > button { justify-content: flex-start; }

.rph-add span { line-height: 1.3; }
.rph-add small { font-size: 10.5px; font-weight: 600; color: #64748B; }
.rph-add.main { border-style: solid; border-color: #0F766E; background: #E6F6F4; }
.rph-add.main:hover { background: #CCF0EA; }
.rph-add:disabled { opacity: .6; cursor: default; }

/* ═══ Help assistant: the round button on every page and its chat panel ═══ */
.ha-fab { position: fixed; bottom: 20px; inset-inline-end: 22px; z-index: 1350; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14B8A6, #0F766E 55%, #115E59); box-shadow: 0 10px 26px rgba(15, 118, 110, .4), 0 2px 6px rgba(15, 23, 42, .16);
    transition: transform .18s, box-shadow .18s, width .2s; }
.ha-fab .mud-icon-root { width: 24px; height: 24px; }
.ha-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 118, 110, .46), 0 2px 6px rgba(15, 23, 42, .16); }
.ha-fab:not(.open)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); animation: ha-ring 2.6s ease-out infinite; pointer-events: none; }
.ha-fab.open { width: 52px; padding: 0; background: #0F172A; box-shadow: 0 8px 20px rgba(15, 23, 42, .3); }
@keyframes ha-ring { 70% { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }
.ha-panel { position: fixed; bottom: 84px; inset-inline-end: 22px; z-index: 1350; width: min(400px, calc(100vw - 28px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 24px; border: 1px solid #E2ECEC; box-shadow: 0 30px 80px rgba(15, 23, 42, .28), 0 4px 14px rgba(15, 23, 42, .1); animation: ha-up .26s cubic-bezier(.16, 1, .3, 1) both; transform-origin: bottom left; }
@keyframes ha-up { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.ha-panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 10px; color: #fff; background: radial-gradient(140% 180% at 100% 0%, #14B8A6 0%, #0F766E 50%, #115E59 100%); }
.ha-panel .ha-ava { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.ha-panel > header .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.ha-panel > header b { font-size: 15px; font-weight: 800; }
.ha-panel > header small { font-size: 11.5px; opacity: .88; }
.ha-panel > header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.ha-panel > header button:hover { background: rgba(255, 255, 255, .18); }
.ha-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#F7FBFB, #fff 40%); scrollbar-width: thin; }
.ha-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 4px; }
.ha-hello .orb { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2DD4BF, #0F766E); box-shadow: 0 14px 30px rgba(15, 118, 110, .32); animation: ha-float 4s ease-in-out infinite; }
.ha-hello .orb .mud-icon-root { width: 32px; height: 32px; }
.ha-hello b { font-size: 18px; font-weight: 800; color: #0F172A; margin-top: 6px; }
.ha-hello p { margin: 0; font-size: 13px; color: #64748B; line-height: 1.8; }
.ha-off { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: 12.5px; font-weight: 700; }
.ha-off .mud-icon-root { width: 16px; height: 16px; }
@keyframes ha-float { 50% { transform: translateY(-5px); } }
.ha-sug-t { font-size: 12px; font-weight: 800; color: #64748B; margin-top: 6px; }
.ha-sug { display: flex; flex-direction: column; gap: 6px; }
.ha-sug button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid #E2ECEC; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #1E293B; text-align: start; transition: all .15s; }
.ha-sug button .mud-icon-root { width: 20px; height: 20px; color: #0F766E; flex: none; }
.ha-sug button:hover:not(:disabled) { border-color: #0F766E; background: #F0FBF9; transform: translateX(-2px); }
.ha-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; animation: ha-in .24s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes ha-in { from { opacity: 0; transform: translateY(8px); } }
.ha-msg.me { justify-content: flex-start; }
.ha-msg.bot { flex-direction: row-reverse; justify-content: flex-start; }
.ha-msg .av { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2DD4BF, #0F766E); flex: none; }
.ha-msg .av .mud-icon-root { width: 16px; height: 16px; }
.ha-msg.err .av { background: #DC2626; }
.ha-msg .bub { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.75; word-break: break-word; unicode-bidi: plaintext; text-align: start; user-select: text; }
.ha-msg.me .bub { color: #fff; background: linear-gradient(135deg, #0F766E, #115E59); border-end-start-radius: 6px; white-space: pre-wrap; }
.ha-msg.bot .bub { color: #0F172A; background: #F1F6F6; border-end-end-radius: 6px; }
.ha-msg.err .bub { background: #FEF2F2; color: #991B1B; }
.ha-msg .bub p { margin: 0 0 6px; } .ha-msg .bub p:last-child { margin-bottom: 0; }
.ha-msg .bub ul, .ha-msg .bub ol { margin: 2px 0 6px; padding-inline-start: 20px; } .ha-msg .bub li { margin-bottom: 3px; }
.ha-msg .bub a { color: #0F766E; font-weight: 800; text-decoration: none; background: #D9F3EE; border-radius: 7px; padding: 1px 7px; white-space: nowrap; }
.ha-msg .bub a:hover { background: #0F766E; color: #fff; }
.ha-msg .bub code { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; background: #E2ECEC; border-radius: 5px; padding: 0 5px; direction: ltr; unicode-bidi: isolate; }
.ha-msg .bub.dots { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ha-msg .bub.dots i { width: 7px; height: 7px; border-radius: 50%; background: #0F766E; animation: ha-dot 1.2s infinite ease-in-out; }
.ha-msg .bub.dots i:nth-child(2) { animation-delay: .15s; } .ha-msg .bub.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ha-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.ha-panel > footer { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 5px 5px 5px 6px; border-radius: 999px; background: #F1F6F6; border: 1.5px solid transparent; transition: all .15s; }
.ha-panel > footer:focus-within { background: #fff; border-color: #0F766E; box-shadow: 0 4px 16px rgba(15, 118, 110, .14); }
.ha-panel > footer input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #0F172A; }
.ha-panel > footer .send { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: #0F766E; flex: none; transition: transform .12s, background .12s; }
.ha-panel > footer .send .mud-icon-root { width: 19px; height: 19px; transform: scaleX(-1); }
.ha-panel > footer .send:hover:not(:disabled) { transform: scale(1.06); }
.ha-panel > footer .send:disabled { background: #CBD5E1; cursor: default; }
.ha-note { padding: 7px 14px 10px; text-align: center; font-size: 10.5px; color: #94A3B8; }
.fm-ups { bottom: 84px; }
@media (max-width: 600px) { .ha-fab span { display: none; } .ha-fab { width: 52px; padding: 0; } .ha-panel { inset-inline-end: 14px; bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { .ha-fab::after, .ha-hello .orb, .ha-msg, .ha-panel, .ha-msg .bub.dots i { animation: none; } }
@media print { .ha-fab, .ha-panel { display: none !important; } }
.fm-new-menu .sep { height: 1px; margin: 5px 8px; background: #EEF2F6; }
.fm-new-menu { width: 236px; }

/* ═══ Mail page (/email), its reader and compose windows, mailbox settings: ported from the law system, in the hotel's colours ═══ */
:root { --ml-navy: #0B3B38; --ml-navy-2: #0F4A46; --ml-navy-deep: #082B29; --ml-gold: #2DD4BF; --ml-gold-dark: #0F766E; --ml-cream: #F7FBFB; --ml-text: #0F172A; --ml-muted: #475569; --ml-border: #E5EEEE; --ml-surface: #FFFFFF; }
.ml-hero {
    position: relative; overflow: hidden;
    border-radius: 20px; padding: 36px 40px; color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(201,169,97,0.18) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--ml-navy) 0%, var(--ml-navy-2) 55%, var(--ml-navy-deep) 100%);
    box-shadow: 0 18px 60px rgba(10,37,64,0.30);
}
.ml-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 40% 50%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 40% 50%, #000 0%, transparent 75%);
    pointer-events: none;
}
.ml-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; letter-spacing: 0; color: var(--ml-gold);
    font-weight: 700;
}
.ml-hero-eyebrow::after {
    content: ""; width: 28px; height: 1px; background: var(--ml-gold); display: inline-block;
}
.ml-hero-title { font-family: inherit; font-size: 1.7rem; font-weight: 800; margin: 10px 0 8px; }
.ml-hero-sub   { font-size: .88rem; opacity: .82; max-width: 640px; line-height: 1.7; font-weight: 300; }
.ml-hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px; padding: 6px 16px;
    font-size: .85rem; margin-top: 18px;
}
.mud-input-control.ml-ltr-field, .mud-input-control.ml-ltr-field .mud-input, .mud-input-control.ml-ltr-field input { direction: ltr; text-align: left; }
.mud-application-layout-rtl .mud-input-control.ml-ltr-field .mud-input-label-outlined { left: 0; right: auto; transform-origin: top left; transform: translate(14px, 20px) scale(1); }
.mud-application-layout-rtl .mud-input-control.ml-ltr-field .mud-input-label-outlined.mud-input-label-margin-dense { transform: translate(14px, 10px) scale(1); }
.mud-application-layout-rtl .mud-input-control.ml-ltr-field .mud-shrink ~ .mud-input-label-outlined,
.mud-application-layout-rtl .mud-input-control.ml-ltr-field:focus-within .mud-input-label-outlined { transform: translate(14px, -6px) scale(.75); }
.mud-application-layout-rtl .mud-input-control.ml-ltr-field .mud-input-outlined-border legend { margin-left: 8px; margin-right: auto; text-align: left; }
.ml-email-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ml-email-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ml-border); border-radius: 999px; padding: 6px 14px; cursor: pointer;
    font-family: inherit; font-weight: 700; font-size: .8rem; color: #475569; transition: all .15s ease; }
.ml-email-pill:hover { border-color: #0F766E; color: var(--ml-navy); }
.ml-email-pill.active { background: linear-gradient(135deg, #0A2540 0%, #0F2A45 100%); border-color: #0A2540; color: #fff; box-shadow: 0 6px 16px rgba(10,37,64,.25); }
.ml-email-pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px;
    background: #0F766E; color: #0A2540; font-size: .7rem; font-weight: 800; }
.ml-email-pill.bad .ml-email-pill-count { background: #DC2626; color: #fff; }
.ml-mail-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ml-mail-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid #BFDBFE; background: #EFF6FF; color: #1E3A8A; }
.ml-mail-banner > .mud-icon-root { font-size: 26px; flex: none; }
.ml-mail-banner > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.6; }
.ml-mail-banner.warn { border-color: #C7D2FE; background: #EEF2FF; color: #3730A3; }
.ml-mail-row { cursor: pointer; }
.ml-mail-who { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.ml-mail-who > div { display: flex; flex-direction: column; min-width: 0; }
.ml-mail-who b { font-family: inherit; font-weight: 600; color: var(--ml-navy); font-size: .86rem; }
.ml-mail-who small { font-size: .76rem; color: #64748B; }
.ml-mail-who.unread b, .ml-mail-subj.unread > span { font-weight: 800; }
.ml-mail-subj { display: flex; flex-direction: column; gap: 1px; max-width: 520px; }
.ml-mail-subj > span { font-weight: 500; color: var(--ml-text); }
.ml-mail-subj small { font-size: .76rem; color: #94A3B8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-mail-sending { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #E0F2FE; color: #075985; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.ml-mail-why { color: #9F1239; font-size: .74rem; max-width: 360px; white-space: normal; }
.ml-mail-loading { display: flex; align-items: center; justify-content: center; min-height: 180px; color: #64748B; }
.ml-mail-read h3 { margin: 0 0 12px; font-family: inherit; font-size: 1.1rem; font-weight: 800; color: var(--ml-navy); line-height: 1.5; }
.ml-mail-read-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ml-mail-read-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ml-mail-read-who strong { font-size: .92rem; color: var(--ml-text); }
.ml-mail-read-who small { font-size: .78rem; color: #64748B; overflow-wrap: anywhere; }
.ml-mail-read-who small > span:first-child { color: #94A3B8; }
.ml-mail-read-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ml-mail-read-when small { font-size: .76rem; color: #64748B; }
.ml-mail-failed { display: flex; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #FECACA; background: #FEF2F2; color: #991B1B; }
.ml-mail-failed > div { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; line-height: 1.6; }
.ml-mail-frame { display: block; width: 100%; height: min(56vh, 520px); border: 1px solid var(--ml-border); border-radius: 12px; background: #fff; }
.ml-mail-files { margin: 0 0 12px; }
.ml-mail-file-btn { border: 0; background: none; cursor: pointer; text-align: start; font: inherit; }
.ml-mail-compose { position: relative; }
.ml-mail-subject { display: flex; align-items: center; gap: 10px; }
.ml-mail-subject > .mud-input-control { flex: 1; }
.ml-mail-editor-box { margin-top: 12px; border: 1px solid var(--ml-border); border-radius: 12px; background: #fff; overflow: visible; }
.ml-mail-editor-box:focus-within { border-color: var(--ml-navy); }
.ml-mail-editor { display: flex; flex-direction: column; min-height: 250px; }
.ml-mail-editor .mtm-editor-host { flex: 1; display: flex; flex-direction: column; min-height: 210px; max-height: 44vh; overflow-y: auto; }
.ml-mail-editor .ql-container.ql-snow { border: 0; font-family: var(--mtm-font); font-size: 15px; }
.ml-mail-editor .mtm-plain-editor { min-height: 230px; }
.ml-mail-editor .mtm-fmt-dock { padding: 6px 8px 8px; border-top: 1px solid var(--mtm-line-soft); }
.ml-mail-tools { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.ml-mail-tools .mtm-tool { border: 0; background: none; cursor: pointer; border-radius: 8px; color: var(--mtm-text2); }
.ml-mail-tools .mtm-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ml-mail-tools-note { margin-inline-start: auto; font-size: .76rem; color: #94A3B8; }
.ml-mail-delivery { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--ml-border); border-radius: 12px; background: #FAFAF7; }
.ml-macc { display: flex; flex-direction: column; }
.ml-macc-loading { display: flex; justify-content: center; padding: 24px; }
.ml-macc-note { margin: 0 0 10px; font-size: .86rem; color: #64748B; line-height: 1.7; }
.ml-macc-empty { display: flex; align-items: center; gap: 8px; padding: 14px; border: 1px dashed var(--ml-border); border-radius: 12px; color: #94A3B8; font-size: .86rem; }
.ml-macc-list { display: flex; flex-direction: column; gap: 8px; }
.ml-macc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ml-border); border-radius: 12px; background: #fff; }
.ml-macc-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E3ECF5; color: var(--ml-navy); font-weight: 800; font-family: inherit; }
.ml-macc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.ml-macc-text strong { font-size: .9rem; overflow-wrap: anywhere; }
.ml-macc > .mud-button-root { align-self: flex-start; }
.ml-macc-text small { font-size: .76rem; color: #64748B; }
.ml-macc-text small.is-error { color: #B91C1C; }
.ml-macc-tag { align-self: flex-start; padding: 0 8px; border-radius: 999px; background: #E0E7FF; color: #3730A3; font-size: .68rem; font-weight: 800; }
.ml-macc-form { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.ml-macc-form h4 { margin: 0 0 2px; font-family: inherit; font-size: 1rem; font-weight: 800; color: var(--ml-navy); }
.ml-macc-server { display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px; gap: 10px; }
.ml-macc-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 4px; padding: 2px 4px; border: 0; background: none; color: #1D4ED8; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ml-macc-link:hover { text-decoration: underline; }
.ml-macc-hint { padding: 9px 12px; border-radius: 10px; background: #EFF6FF; color: #1E3A8A; font-size: .82rem; line-height: 1.7; }
.ml-macc-hint.warn { background: #EEF2FF; color: #3730A3; }
.ml-macc-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
@media (max-width: 600px) {
    .ml-macc-server { grid-template-columns: 96px minmax(0, 1fr); }
    .ml-macc-server > :first-child { grid-column: 1 / -1; }
    .ml-mail-read-head { flex-wrap: wrap; }
    .ml-mail-tools-note { display: none; }
    .ml-mail-subj { max-width: none; }
}
@media (max-width: 959.98px) {
    .mud-sm-table:has(.ml-mail-who) .mud-table-body .mud-table-row { display: block; padding: 8px 4px; border-bottom: 1px solid var(--ml-border); }
    .mud-sm-table:has(.ml-mail-who) .mud-table-body .mud-table-cell { display: block; padding: 2px 10px; border: 0; text-align: start !important; }
    .mud-sm-table:has(.ml-mail-who) .mud-table-body .mud-table-cell::before { display: none; }
    .mud-sm-table:has(.ml-mail-who) .mud-table-body .mud-table-cell:last-child { position: absolute; inset-inline-end: 6px; margin-top: -34px; }
    .mud-sm-table:has(.ml-mail-who) .mud-table-body .mud-table-row { position: relative; }
}

/* ═══ Notifications: the bell in the top bar, its panel, pop-up toasts, the urgent strip, and the manager page ═══ */
.nb-bell { position: relative; width: 40px; height: 40px; margin-inline: 4px 6px; border: 0; border-radius: 12px; background: rgba(15, 118, 110, .08); color: #0F766E; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .15s, transform .15s; }
.nb-bell:hover, .nb-bell.on { background: rgba(15, 118, 110, .16); }
.nb-bell .mud-icon-root { width: 22px; height: 22px; }
.nb-bell b { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; animation: nb-pop .3s cubic-bezier(.16, 1, .3, 1) both; }
.nb-bell i { position: absolute; top: 5px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: #DC2626; box-shadow: 0 0 0 2px #fff; }
.nb-bell.hot .mud-icon-root { animation: nb-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes nb-pop { from { transform: scale(0); } }
@keyframes nb-ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 95% { transform: rotate(8deg); } 98% { transform: rotate(-4deg); } }
.nb-veil { position: fixed; inset: 0; z-index: 1340; }
.nb-panel { position: fixed; top: 60px; inset-inline-end: 14px; z-index: 1345; width: min(410px, calc(100vw - 20px)); max-height: min(680px, calc(100vh - 76px)); display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid #E2ECEC; border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 23, 42, .26), 0 4px 14px rgba(15, 23, 42, .1); animation: nb-drop .22s cubic-bezier(.16, 1, .3, 1) both; transform-origin: top left; color: #0F172A; }
@keyframes nb-drop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.nb-panel > header { display: flex; align-items: center; gap: 4px; padding: 14px 12px 12px 14px; border-bottom: 1px solid #EEF3F3; }
.nb-panel > header .tx { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.nb-panel > header b { font-size: 16px; font-weight: 800; }
.nb-panel > header small { font-size: 11.5px; color: #64748B; }
.nb-panel > header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #475569; }
.nb-panel > header button:hover:not(:disabled) { background: #EEF5F4; color: #0F766E; }
.nb-panel > header button:disabled { opacity: .35; cursor: default; }
.nb-panel > header .mud-icon-root { width: 20px; height: 20px; }
.nb-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 6px; scrollbar-width: thin; }
.nb-sec { display: flex; align-items: center; gap: 6px; padding: 2px 6px 8px; font-size: 12px; font-weight: 800; color: #475569; }
.nb-sec .mud-icon-root { width: 16px; height: 16px; color: #B91C1C; }
.nb-sec i, .nb-tabs i, .nm-tabs i { font-style: normal; font-size: 10.5px; font-weight: 800; background: #FEE2E2; color: #B91C1C; border-radius: 999px; padding: 0 7px; }
.nb-alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.nb-alert { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 9px 10px; border: 0; border-radius: 14px; background: var(--t); cursor: pointer; font: inherit; text-align: start; border-inline-start: 4px solid var(--c); transition: transform .12s; }
.nb-alert:hover { transform: translateX(-2px); }
.nb-alert .ic, .nb-item .ic, .nb-toast .ic, .nm-item .ic, .nm-rule .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); flex: none; }
.nb-alert .ic { background: #fff; }
.nb-alert .ic .mud-icon-root, .nb-item .ic .mud-icon-root, .nb-toast .ic .mud-icon-root, .nm-item .ic .mud-icon-root, .nm-rule .ic .mud-icon-root { width: 20px; height: 20px; }
.nb-alert .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.nb-alert .tx b { font-size: 13px; color: var(--c); }
.nb-alert .tx small { font-size: 11.5px; color: #334155; }
.nb-alert em { font-style: normal; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; font-weight: 800; }
.nb-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 8px; border-radius: 12px; background: #F1F6F6; }
.nb-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #64748B; }
.nb-tabs button.on { background: #fff; color: #0F766E; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.nb-day, .nm-day { padding: 8px 8px 4px; font-size: 11.5px; font-weight: 800; color: #94A3B8; }
.nb-item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 14px; cursor: pointer; transition: background .12s; animation: nb-in .25s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes nb-in { from { opacity: 0; transform: translateY(6px); } }
.nb-item:hover { background: #F4F8F8; }
.nb-item.new { background: #F0FBF9; }
.nb-item.new::after { content: ''; position: absolute; top: 14px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: #0F766E; }
.nb-item.crit.new { background: #FEF2F2; }
.nb-item .tx, .nb-toast .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.5; }
.nb-item .tx b, .nb-toast .tx b { font-size: 13px; font-weight: 700; color: #0F172A; }
.nb-item.new .tx b { font-weight: 800; }
.nb-item .tx span, .nb-toast .tx span { font-size: 12px; color: #475569; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nb-item .tx small { font-size: 11px; color: #94A3B8; }
.nb-item .x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #94A3B8; opacity: 0; flex: none; }
.nb-item .x .mud-icon-root { width: 15px; height: 15px; }
.nb-item:hover .x { opacity: 1; } .nb-item:hover.new::after { display: none; }
.nb-item .x:hover { background: #E2ECEC; color: #B91C1C; }
.nb-empty, .nm-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; text-align: center; color: #64748B; font-size: 12.5px; line-height: 1.7; }
.nb-empty .art, .nm-empty .art { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #E6F6F4; color: #0F766E; margin-bottom: 4px; }
.nm-empty .art.ok { background: #DCFCE7; color: #15803D; }
.nb-empty .art .mud-icon-root, .nm-empty .art .mud-icon-root { width: 34px; height: 34px; }
.nb-empty b, .nm-empty b { font-size: 14.5px; color: #0F172A; }
.nb-panel > footer { border-top: 1px solid #EEF3F3; padding: 6px; }
.nb-panel > footer button { width: 100%; height: 36px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; color: #0F766E; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.nb-panel > footer button:hover { background: #F0FBF9; }
.nb-panel > footer .mud-icon-root { width: 18px; height: 18px; }

.nb-toasts { position: fixed; top: 66px; inset-inline-end: 14px; z-index: 1600; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.nb-toast { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border: 1px solid #E2ECEC; border-inline-start: 4px solid var(--c);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22); cursor: pointer; overflow: hidden; pointer-events: auto; animation: nb-slide .32s cubic-bezier(.16, 1, .3, 1) both; color: #0F172A; }
.nb-toast.crit { border-color: #FECACA; background: #FFF5F5; }
.nb-toast button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: #94A3B8; flex: none; }
.nb-toast button:hover { background: #EEF3F3; }
.nb-toast button .mud-icon-root { width: 14px; height: 14px; }
.nb-toast > i { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--c); opacity: .5; animation: nb-drain 7s linear both; transform-origin: right center; }
.nb-toast.static { cursor: default; animation: none; box-shadow: 0 8px 22px rgba(15, 23, 42, .12); }
@keyframes nb-slide { from { opacity: 0; transform: translateX(-24px); } }
@keyframes nb-drain { to { transform: scaleX(0); } }

.nb-strip { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 1250; display: flex; align-items: center; gap: 10px; max-width: min(760px, calc(100vw - 24px)); padding: 7px 8px 7px 14px; border-radius: 999px;
    background: #B91C1C; color: #fff; font-size: 12.5px; box-shadow: 0 12px 30px rgba(185, 28, 28, .34); animation: nb-drop .3s cubic-bezier(.16, 1, .3, 1) both; white-space: nowrap; }
.nb-strip > .mud-icon-root { width: 18px; height: 18px; flex: none; }
.nb-strip b { font-weight: 800; }
.nb-strip span { opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.nb-strip .go { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: #B91C1C; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; flex: none; }
.nb-strip .x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.nb-strip .x .mud-icon-root { width: 15px; height: 15px; }

.nm-page { display: flex; flex-direction: column; gap: 14px; }
.nm-page .grow { flex: 1; }
.nm-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding: 18px 20px; border-radius: 20px; color: #fff; background: radial-gradient(120% 160% at 100% 0%, #14B8A6 0%, #0F766E 45%, #115E59 100%); box-shadow: 0 14px 30px rgba(15, 118, 110, .22); }
.nm-hero .mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.nm-hero .mark .mud-icon-root { width: 28px; height: 28px; }
.nm-hero .tx { flex: 1 1 300px; min-width: 0; }
.nm-hero h1 { margin: 0; font-size: 21px; font-weight: 800; }
.nm-hero p { margin: 3px 0 0; font-size: 13px; opacity: .88; line-height: 1.6; }
.nm-hero .kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.nm-hero .k { min-width: 92px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .13); text-align: center; }
.nm-hero .k b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; }
.nm-hero .k span { font-size: 11.5px; opacity: .9; }
.nm-hero .k.hot { background: #B91C1C; }
.nm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nm-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid #E2ECEC; border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #475569; transition: all .15s; }
.nm-tabs button .mud-icon-root { width: 18px; height: 18px; color: #0F766E; }
.nm-tabs button:hover { border-color: #0F766E; }
.nm-tabs button.on { background: #0F766E; border-color: #0F766E; color: #fff; box-shadow: 0 8px 18px rgba(15, 118, 110, .24); }
.nm-tabs button.on .mud-icon-root { color: #fff; }
.nm-box { background: #fff; border: 1px solid #E5EEEE; border-radius: 18px; padding: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); min-width: 0; }
.nm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.nm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.nm-chips button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid #E2ECEC; border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #475569; }
.nm-chips button .mud-icon-root { width: 15px; height: 15px; }
.nm-chips button.on { background: #0F766E; border-color: #0F766E; color: #fff; }
.nm-chips button.tog { border-style: dashed; }
.nm-search { flex: 0 1 240px; margin: 0; }
.nm-list { display: flex; flex-direction: column; }
.nm-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 8px; border-radius: 14px; border-bottom: 1px solid #F1F5F5; transition: background .12s; }
.nm-item:hover { background: #F7FBFB; }
.nm-item.new { background: #F0FBF9; }
.nm-item.new .tx b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0F766E; margin-inline-end: 7px; }
.nm-item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.55; cursor: pointer; }
.nm-item .tx b { font-size: 14px; color: #0F172A; }
.nm-item .tx span { font-size: 12.5px; color: #475569; }
.nm-item .tx small { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: #94A3B8; margin-top: 2px; }
.nm-item .tx em { font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.nm-item .ops { display: flex; gap: 2px; opacity: .25; transition: opacity .12s; }
.nm-item:hover .ops { opacity: 1; }
.nm-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nm-alert { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #E5EEEE; border-top: 4px solid var(--c); box-shadow: 0 4px 14px rgba(15, 23, 42, .04); animation: nb-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.nm-alert .top { display: flex; align-items: center; gap: 10px; }
.nm-alert .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: var(--t); }
.nm-alert .lv { font-size: 11px; font-weight: 800; color: var(--c); background: var(--t); border-radius: 999px; padding: 2px 10px; }
.nm-alert .n { margin-inline-start: auto; font-size: 30px; font-weight: 800; color: var(--c); line-height: 1; }
.nm-alert h3 { margin: 6px 0 0; font-size: 15px; font-weight: 800; color: #0F172A; }
.nm-alert p { margin: 0 0 6px; font-size: 12.5px; color: #475569; line-height: 1.7; flex: 1; }
.nm-hint { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #F1F6F6; color: #475569; font-size: 12px; line-height: 1.7; }
.nm-hint .mud-icon-root { width: 16px; height: 16px; color: #0F766E; flex: none; margin-top: 2px; }
.nm-rules-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.nm-rules-head > div { display: flex; flex-direction: column; line-height: 1.6; }
.nm-rules-head b { font-size: 15px; color: #0F172A; }
.nm-rules-head small { font-size: 12px; color: #64748B; }
.nm-grp { margin: 12px 2px 8px; font-size: 12.5px; font-weight: 800; color: #0F766E; }
.nm-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.nm-rule { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #F7FBFB; border: 1px solid #E8F0F0; cursor: pointer; transition: opacity .15s; }
.nm-rule b { flex: 1; font-size: 13px; color: #0F172A; }
.nm-rule.off { opacity: .6; } .nm-rule.off .ic { filter: grayscale(1); }
.nm-rule .mud-switch { margin: 0; }
.nm-save { display: flex; justify-content: flex-end; margin-top: 14px; }
.nm-ann { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nm-lv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nm-lv button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1.5px solid #E2ECEC; border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #475569; }
.nm-lv button .mud-icon-root { width: 16px; height: 16px; color: var(--c); }
.nm-lv button.on { border-color: var(--c); background: var(--t); color: var(--c); }
.nm-prev .nb-toast { margin-top: 4px; }
.ha-fab { z-index: 1330; }
@media (max-width: 900px) { .nm-ann { grid-template-columns: minmax(0, 1fr); } .nb-strip span { display: none; } }
@media (prefers-reduced-motion: reduce) { .nb-bell.hot .mud-icon-root, .nb-item, .nb-toast, .nb-toast > i, .nb-panel, .nb-strip, .nm-alert { animation: none; } }
@media print { .nb-bell, .nb-panel, .nb-toasts, .nb-strip { display: none !important; } }

/* ═══ Languages: the picker, and what differs when the page reads left to right ═══ */
.lp { position: relative; flex: none; }
.lp.floating { position: fixed; top: 14px; inset-inline-end: 16px; z-index: 1300; }
.lp-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(15, 118, 110, .08); color: #0F766E; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap; transition: background .15s; }
.lp-btn:hover { background: rgba(15, 118, 110, .16); }
.lp-btn .mud-icon-root { width: 20px; height: 20px; }
.lp.floating .lp-btn { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(15, 23, 42, .16); }
/* the language dialog: every language as a card in its own name */
.lg-dlg .mud-dialog-title { padding: 18px 22px 6px; }
.lg-dlg .mud-dialog-content { padding: 10px 22px 22px !important; }
.lg-h { display: flex; align-items: center; gap: 12px; }
.lg-h .ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0F766E, #14B8A6); box-shadow: 0 8px 18px rgba(15, 118, 110, .28); }
.lg-h b { display: block; font-size: 17px; font-weight: 800; color: #0F172A; line-height: 1.3; }
.lg-h small { display: block; font-size: 12.5px; color: #64748B; font-weight: 500; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.lg-card { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 62px; padding: 10px 12px; border: 1.5px solid #E2ECEC; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; text-align: start; color: #0F172A;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.lg-card:hover:not(:disabled) { border-color: #5EEAD4; background: #F0FBF9; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 118, 110, .12); }
.lg-card:disabled { cursor: progress; opacity: .7; }
.lg-card.on { border-color: #0F766E; background: #E6F7F4; opacity: 1; }
.lg-card .cd { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #ECF5F4; color: #0F766E; font-size: 12px; font-weight: 800; letter-spacing: .5px; font-family: system-ui, sans-serif; }
.lg-card.on .cd { background: #0F766E; color: #fff; }
.lg-card .tx { min-width: 0; flex: 1; }
.lg-card .tx b { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-card .tx small { display: block; font-size: 11.5px; color: #94A3B8; }
.lg-card[dir="rtl"] .tx small { text-align: right; }
.lg-card .ok { flex: none; width: 20px; height: 20px; color: #0F766E; }
@media (max-width: 480px) { .lg-grid { grid-template-columns: 1fr 1fr; } .lg-card .cd { display: none; } }
@media (max-width: 700px) { .lp-btn span { display: none; } .lp-btn { padding: 0 10px; } }
/* arrows drawn for a right-to-left page point the other way in a left-to-right one */
html[dir="ltr"] svg.hm-dir { transform: scaleX(-1); }
html[dir="ltr"] .ha-panel > footer .send .mud-icon-root { transform: none; }
html[dir="ltr"] .hm-df-rooms, html[dir="ltr"] .rp-table .date { text-align: left; }
html[dir="ltr"] .rp-table .num { text-align: right; }
html[dir="ltr"] .nr-dlg-x { left: auto; right: 12px; }
html[dir="ltr"] .nr-pr .ck { left: auto; right: -8px; }
html[dir="ltr"] .nb-toast { animation-name: nb-slide-ltr; }
@keyframes nb-slide-ltr { from { opacity: 0; transform: translateX(24px); } }
html[dir="ltr"] .nb-toast > i { transform-origin: left center; }
html[dir="ltr"] .dc-year .bar { transform-origin: left center; }
@media print { .lp { display: none !important; } }

/* a section title on the System settings page */
.hm-set-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hm-set-h > .mud-icon-root { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: #0F766E; background: #E6F7F4; }
.hm-set-h b { display: block; font-size: 15px; font-weight: 800; color: #0F172A; }
.hm-set-h small { display: block; font-size: 12.5px; color: #64748B; }
