/* SHABAB DIYAFA PRO 1.0.0 — navy + gold, glass cards, Arabic first (Tajawal) + English (Montserrat). Strict CSP: no inline styles anywhere. */
@font-face { font-family: Tajawal; src: url(/fonts/tajawal-arabic-400-normal.woff2) format("woff2"); font-weight: 400; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/fonts/tajawal-arabic-700-normal.woff2) format("woff2"); font-weight: 700 900; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --navy: #0b1f4f; --navy2: #0a2e5c; --deep: #061331; --gold: #c9a24a; --gold2: #e9c46a; --gold3: #f6e3a8;
  --bg: #eef2f8; --bg2: #e6ecf6; --card: rgba(255, 255, 255, 0.82); --solid: #fff; --line: rgba(11, 31, 79, 0.09); --text: #17223b; --muted: #5d6b82; --soft: #f3f6fb;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --info: #2563eb;
  --s-vacant: #16a34a; --s-res: #0d9488; --s-occ: #2563eb; --s-dep: #7c3aed; --s-dirty: #ca8a04; --s-inspect: #ea580c; --s-ooo: #92400e; --s-oos: #475569;
  --r: 18px; --r2: 12px; --sh: 0 10px 30px rgba(11, 31, 79, 0.08), 0 2px 6px rgba(11, 31, 79, 0.05); --sh2: 0 18px 48px rgba(11, 31, 79, 0.18);
  --f: Tajawal, Montserrat, "Segoe UI", system-ui, sans-serif; --fe: Montserrat, Tajawal, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] { --bg: #070d1d; --bg2: #0b1428; --card: rgba(18, 28, 52, 0.78); --solid: #121c34; --line: rgba(233, 196, 106, 0.12); --text: #e8edf7; --muted: #9aa8c2; --soft: #16223e; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; } html { background: var(--bg2); }
body { font-family: var(--f); color: var(--text); background: radial-gradient(1200px 600px at 100% -10%, rgba(201, 162, 74, 0.13), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, 0.08), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2)); min-height: 100vh; font-size: 15px; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: var(--fe); font-size: 14.5px; }
a { color: inherit; } button, input, select, textarea { font: inherit; color: inherit; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }
.num, .mono { font-family: var(--fe); font-variant-numeric: tabular-nums; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); font-family: var(--fe); letter-spacing: 2px; }
/* ------------------------------------------------------------------ shell */
.app { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 55%, var(--navy2) 100%); color: #fff; padding: 16px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(233, 196, 106, 0.3) transparent; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(233, 196, 106, 0.28); margin-bottom: 10px; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.brand .n { font-weight: 900; font-size: 17px; line-height: 1.15; } .brand .e { font-family: var(--fe); font-size: 9.5px; letter-spacing: 1.6px; color: var(--gold2); font-weight: 700; margin-top: 2px; }
.side .sec { font-size: 11px; color: #8ea3c4; margin: 14px 10px 6px; letter-spacing: 0.6px; font-weight: 700; text-transform: uppercase; }
.side a[data-p] { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 12px; color: #d8e1ef; text-decoration: none; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; transition: background 0.18s, transform 0.18s; }
.side a[data-p]:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(-2px); }
html[dir="ltr"] .side a[data-p]:hover { transform: translateX(2px); }
.side a[data-p].on { background: linear-gradient(90deg, rgba(233, 196, 106, 0.22), rgba(233, 196, 106, 0.06)); color: #fff; font-weight: 700; box-shadow: inset -3px 0 0 var(--gold2), 0 0 22px rgba(233, 196, 106, 0.18); }
html[dir="ltr"] .side a[data-p].on { box-shadow: inset 3px 0 0 var(--gold2), 0 0 22px rgba(233, 196, 106, 0.18); }
.tile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: #fff; flex: 0 0 auto; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.t-front { background: linear-gradient(135deg, #f0cf78, #b8892f); color: #2b1d00; } .t-ops { background: linear-gradient(135deg, #2dd4bf, #0f766e); } .t-acc { background: linear-gradient(135deg, #4ade80, #15803d); } .t-adm { background: linear-gradient(135deg, #6c8fd8, #1e3a8a); }
.side a .cnt { margin-inline-start: auto; background: var(--gold2); color: var(--deep); border-radius: 99px; font-size: 11px; font-weight: 900; padding: 1px 7px; font-family: var(--fe); }
.side .foot { margin-top: 16px; padding: 12px 10px 0; border-top: 1px solid rgba(233, 196, 106, 0.18); font-size: 11.5px; color: #8ea3c4; line-height: 1.6; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: rgba(238, 242, 248, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .top { background: rgba(7, 13, 29, 0.7); }
.co { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px 6px 8px; min-width: 0; max-width: 300px; box-shadow: var(--sh); }
.co img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; background: #fff; }
.co .a { font-weight: 900; font-size: 15px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-theme="dark"] .co .a { color: var(--gold2); }
.co .b { font-family: var(--fe); font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch { flex: 1; position: relative; min-width: 120px; }
.srch input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 42px 12px 14px; font-size: 14.5px; box-shadow: var(--sh); outline: none; transition: box-shadow 0.2s, border-color 0.2s; }
html[dir="ltr"] .srch input { padding: 12px 14px 12px 42px; }
.srch input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.18); }
.srch > .ico { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); }
.srch .res { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh2); max-height: 62vh; overflow: auto; padding: 6px; z-index: 40; }
.srch .res a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.srch .res a:hover, .srch .res a.sel { background: var(--soft); }
.srch .res a .k { font-size: 10.5px; color: var(--muted); margin-inline-start: auto; font-family: var(--fe); text-transform: uppercase; letter-spacing: 0.5px; }
.srch .res .none { padding: 14px; color: var(--muted); }
.tb { display: flex; gap: 8px; align-items: center; }
.ibtn { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--navy); box-shadow: var(--sh); transition: transform 0.15s; font-size: 16px; }
[data-theme="dark"] .ibtn { color: var(--gold2); }
.ibtn:hover { transform: translateY(-1px); } .ibtn:active { transform: scale(0.95); }
#pg { padding: 18px 22px 110px; max-width: 1680px; width: 100%; animation: fadeUp 0.28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#pg > h2, .ph h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -0.2px; } [data-theme="dark"] #pg > h2, [data-theme="dark"] .ph h2 { color: #fff; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ph .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.datechip { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font-weight: 700; color: var(--navy); box-shadow: var(--sh); font-size: 14px; } [data-theme="dark"] .datechip { color: var(--gold2); }
/* ------------------------------------------------------------------ buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; padding: 11px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; color: #fff; background: linear-gradient(135deg, #1e3a8a, var(--navy)); box-shadow: 0 6px 16px rgba(11, 31, 79, 0.25); transition: transform 0.12s, box-shadow 0.2s, filter 0.2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); } .btn:active { transform: scale(0.97); } .btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn.gold { background: linear-gradient(135deg, #e3bd62, #b8892f); color: #241800; box-shadow: 0 6px 16px rgba(201, 162, 74, 0.38); }
.btn.green { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3); } .btn.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .btn.red { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25); }
.btn.purple { background: linear-gradient(135deg, #a78bfa, #6d28d9); } .btn.teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); } .btn.wa { background: linear-gradient(135deg, #34d399, #128c4b); }
.btn.ghost { background: var(--card); color: var(--navy); border: 1px solid var(--line); box-shadow: none; } [data-theme="dark"] .btn.ghost { color: var(--text); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; } .btn.lg { padding: 16px 22px; font-size: 17px; border-radius: 16px; } .btn.xl { padding: 20px 24px; font-size: 19px; border-radius: 18px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > label, label.f { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.field input, .field select, .field textarea, .inp { width: 100%; border: 1.5px solid var(--line); background: var(--solid); border-radius: 12px; padding: 11px 12px; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; min-height: 46px; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.16); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; } .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); margin-bottom: 8px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-inline-end: 46px; }
.pw-eye { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover { background: var(--soft); color: var(--navy); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 3px; flex-wrap: wrap; box-shadow: var(--sh); }
.seg > button, .seg > a { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.seg > .on { background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff; box-shadow: 0 4px 12px rgba(11, 31, 79, 0.25); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip.ok { background: #dcfce7; color: #166534; } .chip.warn { background: #fef3c7; color: #92400e; } .chip.bad { background: #fee2e2; color: #991b1b; } .chip.info { background: #dbeafe; color: #1e40af; } .chip.gold { background: #fdf3d7; color: #7a5a12; } .chip.teal { background: #ccfbf1; color: #115e59; } .chip.purple { background: #ede9fe; color: #5b21b6; }
/* ------------------------------------------------------------------ cards, stats, tables */
.card { background: var(--card); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin-bottom: 14px; }
[data-theme="dark"] .card { border-color: var(--line); }
.card > h3:first-child { margin: 0 0 12px; font-size: 16px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 8px; } [data-theme="dark"] .card > h3:first-child { color: var(--gold2); }
.cards { display: grid; gap: 14px; } .c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.st { position: relative; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh); overflow: hidden; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; text-align: start; }
[data-theme="dark"] .st { border-color: var(--line); }
.st:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.st::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--c, #cbd5e1); }
.st .v { font-size: 28px; font-weight: 900; font-family: var(--fe); line-height: 1.1; } .st .l { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.st .l .ico { color: var(--c); }
.st.on { outline: 3px solid var(--c); outline-offset: -1px; }
.st.p { background: linear-gradient(135deg, var(--deep), var(--navy)); --c: var(--gold2); border-color: transparent; } .st.p .v { color: var(--gold2); } .st.p .l { color: #d8e1ef; }
.c-vacant { --c: var(--s-vacant); } .c-res { --c: var(--s-res); } .c-occ { --c: var(--s-occ); } .c-dep { --c: var(--s-dep); } .c-dirty { --c: var(--s-dirty); } .c-inspect { --c: var(--s-inspect); } .c-ooo { --c: var(--s-ooo); } .c-oos { --c: var(--s-oos); }
.kpi { display: flex; flex-direction: column; gap: 4px; } .kpi .v { font-size: 26px; font-weight: 900; font-family: var(--fe); color: var(--navy); } [data-theme="dark"] .kpi .v { color: #fff; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; } .kpi svg.spark { width: 100%; height: 38px; margin-top: 4px; }
.tw { overflow-x: auto; border-radius: 14px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: start; font-size: 12px; font-weight: 800; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft); position: sticky; top: 0; }
table.t th:first-child { border-start-start-radius: 12px; } table.t th:last-child { border-start-end-radius: 12px; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr { transition: background 0.15s; } table.t tbody tr:hover { background: rgba(201, 162, 74, 0.07); } table.t tr.click { cursor: pointer; }
table.t td.r, table.t th.r { text-align: end; font-family: var(--fe); font-variant-numeric: tabular-nums; }
table.t tfoot td { font-weight: 900; border-top: 2px solid var(--gold); background: var(--soft); }
.empty { text-align: center; padding: 34px 14px; color: var(--muted); }
.empty .big { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; font-size: 32px; color: var(--gold); background: radial-gradient(circle at 30% 30%, rgba(233, 196, 106, 0.35), rgba(233, 196, 106, 0.08)); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.3); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--soft), rgba(201, 162, 74, 0.12), var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite linear; margin: 10px 0; }
.skel.b { height: 90px; border-radius: 16px; } @keyframes sk { to { background-position: -200% 0; } }
.msg { padding: 11px 14px; border-radius: 12px; margin: 8px 0; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.msg.err { background: #fee2e2; color: #991b1b; } .msg.warn { background: #fef3c7; color: #92400e; } .msg.ok { background: #dcfce7; color: #166534; } .msg.info { background: #e0ecff; color: #1e3a8a; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .b { font-weight: 800; } .gold-t { color: var(--gold); } .red-t { color: var(--bad); } .green-t { color: var(--ok); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .sp { justify-content: space-between; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.once { font-family: var(--fe); font-size: 22px; font-weight: 900; letter-spacing: 1px; background: #fff7dd; color: #6b4e00; border: 2px dashed var(--gold); border-radius: 12px; padding: 10px 14px; user-select: all; }
/* ------------------------------------------------------------------ flat board */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 14px; min-height: 42px; box-shadow: var(--sh); outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.legend button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px 6px 7px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text); transition: transform 0.15s; }
.legend button:hover { transform: translateY(-1px); } .legend button.on { outline: 2px solid var(--c); }
.legend i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 11px; background: var(--c); font-style: normal; }
.legend b { font-family: var(--fe); font-weight: 900; color: var(--c); }
.fl { display: flex; gap: 12px; margin-bottom: 12px; background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 20px; padding: 12px; box-shadow: var(--sh); position: relative; }
[data-theme="dark"] .fl { border-color: var(--line); }
.fh { width: 108px; flex: 0 0 auto; display: flex; align-items: center; gap: 9px; border-inline-end: 2px dashed var(--line); padding-inline-end: 10px; }
.fn { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--deep), var(--navy)); color: var(--gold2); font-family: var(--fe); font-weight: 900; font-size: 21px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(11, 31, 79, 0.3); }
.far { font-weight: 900; font-size: 14px; color: var(--navy); } [data-theme="dark"] .far { color: #fff; } .fen { font-size: 11px; color: var(--muted); }
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.u { border-radius: 14px; padding: 8px 9px 7px; color: #fff; min-height: 96px; position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); cursor: pointer; text-align: start; border: 0; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; animation: pop 0.3s ease both; overflow: hidden; }
.u::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 45%); pointer-events: none; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.u:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); } .u:active { transform: scale(0.97); }
.u .t1 { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.u b { font-family: var(--fe); font-size: 16px; font-weight: 900; letter-spacing: 0.3px; } .u .ty { font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, 0.24); border-radius: 7px; padding: 2px 6px; font-family: var(--fe); }
.u .si { position: absolute; inset-inline-end: 8px; bottom: 8px; font-size: 22px; opacity: 0.32; }
.u .g { font-size: 12.5px; font-weight: 800; margin-top: 5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u .m { font-size: 10.5px; opacity: 0.92; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u .badges { display: flex; gap: 3px; margin-top: auto; padding-top: 3px; flex-wrap: wrap; } .u .badges span { font-size: 9.5px; background: rgba(0, 0, 0, 0.18); border-radius: 6px; padding: 1px 5px; font-weight: 800; font-family: var(--fe); }
.u.vacant { background: linear-gradient(135deg, #22c55e, #15803d); } .u.res { background: linear-gradient(135deg, #2dd4bf, #0f766e); } .u.occ { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .u.dep { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.u.dirty { background: linear-gradient(135deg, #fde047, #ca8a04); color: #3f3200; } .u.inspect { background: linear-gradient(135deg, #fdba74, #ea580c); } .u.ooo { background: linear-gradient(135deg, #b45309, #78350f); } .u.oos { background: linear-gradient(135deg, #94a3b8, #475569); }
.u.conflict { outline: 3px solid #ef4444; animation: pulse 1.2s infinite; } @keyframes pulse { 50% { outline-color: rgba(239, 68, 68, 0.25); } }
.bigacts { display: grid; gap: 10px; } .bigacts .btn { justify-content: flex-start; font-size: 18px; padding: 18px 20px; border-radius: 16px; } .bigacts .btn .ico { font-size: 22px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 10px 0; }
/* ------------------------------------------------------------------ calendar / room block grid */
.cal { overflow: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); max-height: calc(100vh - 230px); user-select: none; }
.cal table { border-collapse: separate; border-spacing: 0; }
.cal th, .cal td { min-width: 40px; width: 40px; height: 34px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 0; text-align: center; font-size: 11px; position: relative; }
.cal thead th { position: sticky; top: 0; background: var(--solid); z-index: 3; height: 46px; font-family: var(--fe); font-weight: 800; color: var(--muted); }
.cal thead th .d { display: block; font-size: 14px; color: var(--text); } .cal thead th.we { background: #fff7e6; } [data-theme="dark"] .cal thead th.we { background: #2a2312; }
.cal thead th.today { background: var(--gold2); color: var(--deep); } .cal thead th.today .d { color: var(--deep); }
.cal th.fx, .cal td.fx { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--solid); min-width: 92px; width: 92px; text-align: start; padding: 0 10px; font-family: var(--fe); font-weight: 800; font-size: 13px; }
.cal thead th.fx { z-index: 4; } .cal tr.flh td { background: linear-gradient(90deg, var(--navy), var(--navy2)); color: var(--gold2); font-weight: 800; height: 26px; font-size: 12px; text-align: start; padding: 0 10px; }
.cal td.we { background: rgba(201, 162, 74, 0.06); } .cal td.ks { background: rgba(13, 148, 136, 0.06); } .cal td.cell { cursor: cell; } .cal td.sel { background: rgba(201, 162, 74, 0.45) !important; }
.cal .bar { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 2px; z-index: 1; border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.bar.reserved, .bar.request { background: linear-gradient(135deg, #2dd4bf, #0f766e); } .bar.in { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .bar.out { background: linear-gradient(135deg, #94a3b8, #64748b); opacity: 0.8; } .bar.block { background: repeating-linear-gradient(135deg, #64748b, #64748b 6px, #475569 6px, #475569 12px); }
.bar.ooo { background: repeating-linear-gradient(135deg, #b45309, #b45309 6px, #78350f 6px, #78350f 12px); } .bar.channel { background: linear-gradient(135deg, #1e40af, #1e3a8a); } .bar.airbnb { background: linear-gradient(135deg, #fb7185, #e11d48); } .bar.conflict { outline: 2px solid #ef4444; }
/* ------------------------------------------------------------------ dialogs (in-page, class "modal" so the HR hint engine sees them) */
.dlg-back { position: fixed; inset: 0; background: rgba(6, 19, 49, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; display: grid; place-items: center; padding: 16px; animation: fade 0.18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--solid); border-radius: 22px; box-shadow: var(--sh2); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); border: 1px solid var(--line); }
.modal.wide { width: min(880px, 100%); } .modal.xwide { width: min(1100px, 100%); }
@keyframes up { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal .mh h3 { margin: 0; font-size: 18px; font-weight: 900; flex: 1; color: var(--navy); } [data-theme="dark"] .modal .mh h3 { color: var(--gold2); }
.modal .mb { padding: 16px 18px; overflow: auto; } .modal .mf { padding: 12px 18px 16px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.steps { display: flex; gap: 6px; margin-bottom: 14px; } .steps div { flex: 1; height: 6px; border-radius: 6px; background: var(--soft); } .steps div.on { background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.pricebox { background: linear-gradient(135deg, var(--deep), var(--navy)); color: #fff; border-radius: 18px; padding: 14px 16px; }
.pricebox .ln { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; color: #d8e1ef; } .pricebox .ln b { font-family: var(--fe); color: #fff; }
.pricebox .tot { display: flex; justify-content: space-between; font-size: 20px; font-weight: 900; border-top: 1px dashed rgba(233, 196, 106, 0.5); margin-top: 6px; padding-top: 8px; color: var(--gold2); } .pricebox .tot b { font-family: var(--fe); }
.toasts { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
html[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--sh2); font-weight: 700; animation: up 0.25s; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(233, 196, 106, 0.35); max-width: 92vw; }
.toast.err { background: #7f1d1d; } .toast.ok .ico { color: #4ade80; }
/* ------------------------------------------------------------------ NEXA */
.nexa-p { position: fixed; bottom: 18px; inset-inline-end: 18px; width: min(430px, calc(100vw - 24px)); height: min(640px, calc(100vh - 90px)); background: var(--solid); border-radius: 24px; box-shadow: var(--sh2); z-index: 900; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: up 0.25s; }
.nexa-p .nh { background: linear-gradient(135deg, var(--deep), var(--navy)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.nexa-p .nh .orb { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 0deg, var(--gold2), #60a5fa, var(--gold), var(--gold2)); display: grid; place-items: center; color: var(--deep); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nexa-p .nb { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.bub { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; background: var(--solid); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); white-space: pre-wrap; }
.bub.me { align-self: flex-end; background: linear-gradient(135deg, #e3bd62, #b8892f); color: #241800; border-end-end-radius: 4px; } .bub.ai { align-self: flex-start; border-end-start-radius: 4px; }
.bub table { margin-top: 8px; font-size: 12.5px; } .bub .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nexa-p .nf { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); } .nexa-p .nf input { flex: 1; }
.ncard { border: 2px solid var(--gold); border-radius: 16px; padding: 12px; margin-top: 8px; background: #fffbef; color: #2b2208; }
/* ------------------------------------------------------------------ login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: radial-gradient(900px 600px at 80% 0%, rgba(233, 196, 106, 0.25), transparent 60%), linear-gradient(160deg, var(--deep), var(--navy) 60%, #13306b); color: #fff; }
.login .art { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.login .art::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(233, 196, 106, 0.18); box-shadow: 0 0 0 60px rgba(233, 196, 106, 0.04), 0 0 0 130px rgba(233, 196, 106, 0.03); }
.login .art .logocard { position: relative; background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(246,240,224,0.9)); border: 1px solid rgba(233,196,106,0.7); border-radius: 34px; padding: 22px 34px 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.4), inset 0 1px 0 #fff; }
.login .art img.full { display: block; width: min(300px, 60vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); position: relative; }
.login .art .tag { margin-top: 18px; font-size: 19px; font-weight: 700; color: var(--gold3); position: relative; } .login .art .tag2 { font-family: var(--fe); font-size: 13px; letter-spacing: 1px; color: #a9b8d6; margin-top: 6px; position: relative; }
.login .side2 { display: grid; place-items: center; padding: 30px; }
.lbox { width: min(420px, 100%); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(233, 196, 106, 0.35); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-radius: 26px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.lbox .lg { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; } .lbox .lg img { width: 58px; height: 58px; border-radius: 14px; background: #fff; object-fit: contain; }
.lbox h1 { margin: 0; font-size: 22px; font-weight: 900; } .lbox .s { color: #c2cee6; font-size: 13px; margin-top: 2px; }
.lbox .field > label { color: #d8e1ef; } .lbox .field input { background: rgba(255, 255, 255, 0.95); color: #17223b; border-color: transparent; }
.lbox .btn { width: 100%; padding: 15px; font-size: 17px; margin-top: 6px; }
.lbox .lang { background: transparent; border: 1px solid rgba(233, 196, 106, 0.5); color: var(--gold2); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-weight: 700; margin-inline-start: auto; }
.lbox .foot { margin-top: 16px; font-size: 12px; color: #a9b8d6; text-align: center; line-height: 1.7; }
.lbox .msg.err { background: rgba(254, 226, 226, 0.95); }
/* ------------------------------------------------------------------ phone */
.tabbar { display: none; }
.mback { display: none; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; transform: translateX(100%); transition: transform 0.25s; box-shadow: var(--sh2); }
  html[dir="ltr"] .side { transform: translateX(-100%); }
  .side.open { transform: none !important; } .mback.open { display: block; position: fixed; inset: 0; background: rgba(6, 19, 49, 0.45); z-index: 19; }
  .top { padding: 10px 12px; gap: 8px; flex-wrap: wrap; } .co { max-width: none; flex: 1; } .co .b { display: none; } .srch { order: 9; flex-basis: 100%; } .top .hidem { display: none; }
  #pg { padding: 14px 12px 100px; } #pg > h2, .ph h2 { font-size: 20px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .st { padding: 8px 7px; border-radius: 13px; } .st .v { font-size: 19px; } .st .l { font-size: 10.5px; line-height: 1.25; } .st .l .ico { display: none; } .ph .datechip { font-size: 12px; padding: 6px 10px; }
  .c2, .c3, .c4, .grid3, .grid4 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr 1fr; }
  .fl { flex-direction: column; padding: 10px; gap: 8px; } .fh { width: auto; border: 0; padding: 0; } .ucards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .u { min-height: 86px; padding: 7px; } .u b { font-size: 14px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  [data-theme="dark"] .tabbar { background: rgba(7, 13, 29, 0.88); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; border-radius: 12px; }
  .tabbar a .ico { font-size: 20px; } .tabbar a.on { color: var(--navy); } [data-theme="dark"] .tabbar a.on { color: var(--gold2); }
  .tabbar a.new .ico { width: 46px; height: 46px; padding: 12px; margin-top: -22px; border-radius: 16px; background: linear-gradient(135deg, #e3bd62, #b8892f); color: #241800; box-shadow: 0 8px 18px rgba(201, 162, 74, 0.45); }
  .nexa-p { inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; inset-inline-end: 0; }
  .login { grid-template-columns: 1fr; } .login .art { padding: 34px 20px 4px; } .login .art::before { width: 380px; height: 380px; } .login .art img.full { width: 170px; } .login .art .logocard { padding: 12px 18px 10px; border-radius: 24px; } .login .art .tag { font-size: 16px; }
  .modal { border-radius: 22px 22px 0 0; align-self: end; max-height: 92vh; } .dlg-back { padding: 0; place-items: end center; }
  table.t.mcard thead, table.t.mcard .mhead { display: none; } table.t.mcard, table.t.mcard tbody, table.t.mcard tr, table.t.mcard td { display: block; width: 100%; }
  table.t.mcard tr { background: var(--solid); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 6px 10px; box-shadow: var(--sh); }
  table.t.mcard td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; text-align: end; } table.t.mcard td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 12px; text-align: start; }
  table.t.mcard tfoot td { background: transparent; }
}
/* ------------------------------------------------------------------ hints ⓘ (same look as HR PRO) */
.sbh-i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-inline-start: 5px; border-radius: 50%; border: 1px solid currentColor; font: italic 700 10px/1 Georgia, "Times New Roman", serif; opacity: 0.5; cursor: help; vertical-align: middle; flex: 0 0 auto; position: relative; text-transform: none; letter-spacing: 0; }
.sbh-i::before { content: "i"; } .sbh-i::after { content: ""; position: absolute; inset: -7px; } .sbh-i:hover, .sbh-i:focus { opacity: 1; } .sbh-off .sbh-i { display: none !important; }
.btn.sbh-has, .seg > .sbh-has { position: relative; }
.btn > .sbh-i { position: absolute; top: -5px; inset-inline-end: -5px; margin: 0; width: 15px; height: 15px; font-size: 9.5px; background: var(--solid); color: var(--muted); opacity: 0.9; z-index: 2; }
.side a > .sbh-i { margin-inline-start: auto; opacity: 0.35; color: #fff; } .side a > .sbh-i + .cnt, .side a > .cnt + .sbh-i { margin-inline-start: 6px; }
th > .sbh-i { width: 12px; height: 12px; font-size: 8.5px; margin-inline-start: 3px; }
.sbh-pop { position: absolute; z-index: 2147483000; background: #0b1630; color: #fff; border-radius: 12px; padding: 10px 13px 9px; font: 500 13.5px/1.5 var(--f); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); pointer-events: auto; text-align: start; white-space: normal; border: 1px solid rgba(233, 196, 106, 0.35); }
.sbh-pop .sbh-more { display: inline-block; margin-top: 5px; color: #ffd76a; font-weight: 700; text-decoration: none; } .sbh-pop .sbh-more:hover { text-decoration: underline; }
.sbh-pop .sbh-ex { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 215, 106, 0.14); color: #ffe9a8; font-size: 12.5px; line-height: 1.45; }
.sbh-pop .sbh-rest { margin-top: 6px; font-size: 12.5px; opacity: 0.9; line-height: 1.45; } .sbh-pop .sbh-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; } .sbh-pop .sbh-more2 { font-weight: 700; color: #9cc2ff; text-decoration: none; } .sbh-pop .sbh-links .sbh-more { margin-top: 0; }
.sbh-pop.sbh-inline { position: static; display: block; margin: 2px 0 6px; max-width: 100% !important; box-shadow: none; font-size: 12.5px; padding: 7px 10px; }
/* ------------------------------------------------------------------ charts */
.chart { width: 100%; height: auto; display: block; } .chart text { font-family: var(--fe); font-size: 10px; fill: var(--muted); }
.donut-leg { display: grid; gap: 6px; font-size: 13px; } .donut-leg span { display: flex; align-items: center; gap: 8px; } .donut-leg i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw0 { background: #c9a24a; fill: #c9a24a; } .sw1 { background: #2563eb; fill: #2563eb; } .sw2 { background: #16a34a; fill: #16a34a; } .sw3 { background: #e11d48; fill: #e11d48; } .sw4 { background: #0d9488; fill: #0d9488; } .sw5 { background: #7c3aed; fill: #7c3aed; } .sw6 { background: #ea580c; fill: #ea580c; } .sw7 { background: #64748b; fill: #64748b; }
/* ------------------------------------------------------------------ printable documents (A4 / A5) */
.docwrap { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.doc { background: #fff; color: #17223b; width: 210mm; min-height: 297mm; padding: 14mm 14mm 12mm; box-shadow: var(--sh2); border-radius: 6px; font-size: 12.5px; position: relative; font-family: var(--f); }
.doc.a5 { width: 148mm; min-height: 210mm; padding: 8mm 8mm 7mm; font-size: 10px; }
.doc .dh { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 3px solid var(--gold); padding-bottom: 10px; }
.doc .dh img { height: 64px; max-width: 150px; object-fit: contain; } .doc.a5 .dh img { height: 40px; }
.doc .dh .cn { font-weight: 900; font-size: 18px; color: var(--navy); } .doc.a5 .dh .cn { font-size: 13px; } .doc .dh .cl { font-size: 11px; color: #5d6b82; line-height: 1.5; } .doc.a5 .dh .cl { font-size: 8px; }
.doc .dt { text-align: center; margin: 12px 0 10px; } .doc .dt h1 { margin: 0; font-size: 20px; color: var(--navy); letter-spacing: 0.5px; } .doc.a5 .dt h1 { font-size: 14px; } .doc .dt .ar { font-size: 17px; font-weight: 900; color: var(--gold); } .doc.a5 .dt .ar { font-size: 12px; }
.doc .info { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; background: #f6f8fc; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; } .doc.a5 .info { padding: 6px 8px; gap: 2px 10px; }
.doc .info div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted #d6dce8; padding: 2px 0; } .doc .info span { color: #5d6b82; } .doc .info b { font-family: var(--fe); text-align: end; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; } .doc th { background: var(--navy); color: #fff; padding: 6px 8px; font-size: 11px; text-align: start; } .doc.a5 th { padding: 3px 5px; font-size: 8.5px; }
.doc td { padding: 6px 8px; border-bottom: 1px solid #e5e9f2; } .doc.a5 td { padding: 3px 5px; } .doc td.r, .doc th.r { text-align: end; font-family: var(--fe); }
.doc .tots { margin-inline-start: auto; width: 62%; } .doc.a5 .tots { width: 72%; } .doc .tots div { display: flex; justify-content: space-between; padding: 4px 8px; border-bottom: 1px solid #eef1f7; } .doc .tots b { font-family: var(--fe); }
.doc .tots .grand { background: linear-gradient(135deg, var(--deep), var(--navy)); color: var(--gold2); font-size: 15px; font-weight: 900; border-radius: 8px; border: 0; margin-top: 4px; } .doc.a5 .tots .grand { font-size: 11px; }
.doc .qr { display: flex; gap: 12px; align-items: center; margin-top: 10px; } .doc .qr img { width: 110px; height: 110px; } .doc.a5 .qr img { width: 82px; height: 82px; }
.doc .terms { font-size: 10.5px; color: #5d6b82; margin-top: 10px; line-height: 1.6; border-top: 1px dashed #d6dce8; padding-top: 8px; } .doc.a5 .terms { font-size: 8px; }
.doc .df { position: absolute; bottom: 9mm; inset-inline: 14mm; text-align: center; font-size: 10px; color: #8a95a5; border-top: 1px solid #eef1f7; padding-top: 6px; } .doc.a5 .df { bottom: 6mm; inset-inline: 8mm; font-size: 7.5px; }
.doc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .doc .sig { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; } .doc .sig div { border-top: 1px solid #9aa5b8; padding-top: 4px; text-align: center; color: #5d6b82; font-size: 10.5px; }
.doc .stamp { display: inline-block; border: 2px solid var(--gold); color: #7a5a12; border-radius: 8px; padding: 3px 10px; font-weight: 900; transform: rotate(-4deg); }
@media print {
  body { background: #fff !important; } .side, .top, .tabbar, .noprint, .nexa-p, .toasts, .mback, .sbh-i, .sbh-pop { display: none !important; }
  .app { display: block; } #pg { padding: 0 !important; animation: none; max-width: none; } .doc { box-shadow: none; border-radius: 0; margin: 0; width: auto; min-height: 0; padding: 0; } .docwrap { display: block; }
  .doc { zoom: 1 !important; } .doc .df { position: static; margin-top: 14px; } .card { box-shadow: none; border: 1px solid #ddd; backdrop-filter: none; }
}

/* practice banner, guided tour, how-to, misc */
.practice { display: flex; align-items: center; gap: 12px; justify-content: center; background: repeating-linear-gradient(135deg, #fde047, #fde047 14px, #facc15 14px, #facc15 28px); color: #3f3200; padding: 9px 14px; font-size: 15px; position: sticky; top: 0; z-index: 16; box-shadow: 0 4px 12px rgba(202, 138, 4, 0.35); }
.practice .ico { font-size: 20px; }
.tour-back { position: fixed; inset: 0; background: rgba(6, 19, 49, 0.55); z-index: 3000; }
.tour-hl { position: relative; z-index: 3001 !important; box-shadow: 0 0 0 4px var(--gold2), 0 0 0 9999px rgba(6, 19, 49, 0.001) !important; border-radius: 14px; background-color: var(--solid); }
.side .tour-hl, .top .tour-hl { background-color: inherit; }
.tour-bub { position: fixed; z-index: 3002; width: min(330px, calc(100vw - 24px)); background: var(--solid); border-radius: 20px; padding: 16px 18px; box-shadow: var(--sh2); border: 2px solid var(--gold); animation: up 0.25s; top: 30%; left: 20px; }
.tour-bub h3 { margin: 4px 0 6px; color: var(--navy); font-size: 18px; } .tour-bub p { margin: 0 0 12px; line-height: 1.6; }
.howl { margin-top: 6px; } .howg .card { margin-bottom: 8px; } .howi { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
.docbar { justify-content: center; margin-bottom: 12px; } .printhead { display: none; } @media print { .printhead { display: block; margin-bottom: 8px; } }
.idimg { border-radius: 12px; margin-top: 8px; box-shadow: var(--sh); } .logoprev { border-radius: 16px; background: #fff; padding: 8px; box-shadow: var(--sh); }
.about.hl { outline: 3px solid var(--gold); } .aboutlogo { border-radius: 18px; background: #fff; padding: 8px; }
.donutw svg { width: 170px; }
.ph .acts .inp { width: auto; min-width: 150px; }
.cal .bar { text-overflow: ellipsis; }
.setrow .inp { width: 96px; min-height: 40px; display: inline-block; } .setrow .check { margin: 0; }
/* 1.0.2 view */ .vw { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #1d6fa5; } .vw svg { width: 13px; height: 13px; } .vw-pool { color: #0f9d8a; } .vw-seapool { color: #1d6fa5; } .vw-normal { color: var(--muted); } .u .vw { color: #fff; background: rgba(255, 255, 255, 0.24); border-radius: 7px; padding: 1px 4px; } #vbar { margin-top: 10px; align-items: flex-end; } #vbar .field { margin: 0; }

/* 1.0.2 UI fix: styled file button (no browser English "Choose File / No file chosen") */
.filebtn { position: relative; overflow: hidden; cursor: pointer; } .filebtn .fileinp { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
/* 1.0.2 UI fix: calendar legend chips wrap on a phone (a long chip pushed the page 5 px sideways in Arabic) */
.legend { max-width: 100%; } .legend .chip { white-space: normal; max-width: 100%; }
/* 1.0.2 UI fix: hint "i" on the last header button stayed outside the page (page scrolled sideways) */
.ph .acts { padding-inline-end: 6px; padding-top: 4px; }
/* 1.0.2 UI fix: flat tile status text (e.g. "خارج الخدمة (صيانة)") shows on up to 2 lines instead of being cut */
.u .g { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; overflow-wrap: anywhere; }
.u .m { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
/* 1.0.2 UI fix: report buttons wrap inside their card (a long name pushed its hint "i" past the right edge - English desktop scrolled to 1450 px) */
.replist .card > .btn { max-width: 100%; white-space: normal; text-align: start; justify-content: flex-start; }
/* 1.0.2 UI fix: no inline style (CSP style-src self blocked it - console error on New booking) */
input.upper { text-transform: uppercase; }
