/* ===========================================================
   Falcon HIS — web clone theme (matches the Delphi desktop UI)
   =========================================================== */
:root{
  --orange:#ee7d22; --orange-d:#d2670f; --orange-l:#fbe7d4;
  --red:#c0392b;    --red-d:#a5281b;
  --navy:#3b4b5c;   --navy-d:#2f3c4a;
  --line:#c9d2da;   --ink:#243140;   --muted:#7a8794;
  --field:#ffffff;  --field-ro:#eef1f4;
  --blue:#2e6da4; --teal:#159a9a; --green:#4a9d5b; --gold:#e0a200; --crimson:#c0392b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif; font-size:12.5px;
  background:#dfe4ea;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body[dir=rtl]{direction:rtl}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
img{image-rendering:-webkit-optimize-contrast}
input,select,textarea{font-family:inherit}
input:focus,select:focus,textarea:focus{outline:2px solid #ef7d22aa;outline-offset:-1px}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:#eceff2}
::-webkit-scrollbar-thumb{background:#b6c0c9;border-radius:5px;border:2px solid #eceff2}
::-webkit-scrollbar-thumb:hover{background:#93a1ad}

/* ---------- generic window / dialog ---------- */
.win{background:#fff;border:1px solid #26314e;box-shadow:0 8px 26px rgba(15,25,40,.32);border-radius:2px;overflow:hidden}
.win-title{
  display:flex;align-items:center;gap:8px;
  background:linear-gradient(var(--red),var(--red-d));color:#fff;
  font-weight:700;font-size:14px;padding:7px 10px;position:relative;
}
.win-title .t{flex:1;text-align:center}
.win-x{
  width:26px;height:24px;display:flex;align-items:center;justify-content:center;
  background:#e74c3c;border:1px solid #fff5;color:#fff;border-radius:3px;font-weight:700;
}
.win-x:hover{background:#ff5b4a}
.win-band{height:5px;background:linear-gradient(90deg,var(--orange),var(--orange-d))}
.win-body{padding:18px 20px}

/* ---------- toolbar action buttons (save/new/delete/close) ---------- */
.toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:8px 10px;background:#f3f5f7;border-bottom:1px solid var(--line)}
.tbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid #0002;border-radius:4px;
  padding:6px 12px;font-weight:700;color:#fff;font-size:12.5px}
.tbtn .ic{font-size:15px;line-height:1}
.tbtn.save{background:linear-gradient(var(--orange),var(--orange-d))}
.tbtn.new{background:linear-gradient(#57b85f,#3f9b48)}
.tbtn.del{background:linear-gradient(#e25b4d,#c0392b)}
.tbtn.close,.tbtn.ghost{background:linear-gradient(#8a98a6,#6c7a89)}
.tbtn:hover{filter:brightness(1.06)}

/* ===========================================================
   LOGIN
   =========================================================== */
.login-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:#eef1f4 url('beads.svg') right top/360px no-repeat;}
.login{width:560px;max-width:94vw}
.login .win-body{display:flex;flex-direction:row-reverse;gap:18px;align-items:center;padding:22px 24px}
.login-doc{width:150px;flex:none;text-align:center}
.login-doc svg{width:140px;height:160px}
.login-doc img{width:152px;height:auto}
.login-fields{flex:1}
.frow{display:flex;align-items:center;gap:10px;margin:9px 0}
.frow label{width:120px;text-align:start;color:#445;font-weight:700}
.frow input{flex:1;height:30px;border:1px solid var(--line);border-radius:3px;padding:0 8px;background:var(--field);font-family:inherit;font-size:13px}
.frow input[readonly]{background:var(--field-ro);color:#566}
.login-footer{display:flex;gap:10px;background:var(--navy);padding:9px 12px}
.login-footer .tbtn{border-color:#0003}
.err{background:#fdecea;color:#b71c1c;border:1px solid #f5c6c0;padding:7px 10px;border-radius:3px;margin:0 0 10px}

/* ===========================================================
   SHELL (top bar + status bar for all screens)
   =========================================================== */
.app{min-height:100vh;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:7px;color:#fff;
  background:linear-gradient(var(--red),var(--red-d));
  padding:4px 8px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.topbar .win-x,.topbar .win-min{width:28px;height:24px;display:inline-flex;align-items:center;
  justify-content:center;background:#ffffff2b;border:1px solid #ffffff55;border-radius:3px;color:#fff;font-weight:700}
.topbar .win-x:hover{background:#ff5b4a}
.topbar .title{flex:1;text-align:center;font-weight:700;font-size:15px;letter-spacing:.3px}
.topbar .topnav{display:flex;gap:6px}
.topbar .topnav a{width:32px;height:27px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:4px;background:#ffffff1f;font-weight:700;font-size:14px}
.topbar .topnav a:hover{background:#ffffff40}
.topbar .topnav img{width:18px;height:18px;filter:brightness(0) invert(1);opacity:.95}
.workspace{flex:1;padding:16px;overflow:auto}
.statusbar{display:flex;align-items:stretch;
  background:#efe7c9;border-top:1px solid #cbb98a;color:#5a4a20;font-size:11.5px;font-weight:700}
.statusbar .seg{display:flex;align-items:center;padding:5px 12px;border-inline-start:1px solid #cbb98a;white-space:nowrap}
.statusbar .seg:first-child{border:none}
.statusbar .welcome{flex:1;color:#7a5a12;overflow:hidden;text-overflow:ellipsis}
.statusbar .dt{background:#f6d64a;color:#5a4a20}
.statusbar b{color:#3a2f10}

/* ===========================================================
   MAIN MENU
   =========================================================== */
.menu{flex:1;display:flex;min-height:0}
.menu-main{flex:1;position:relative;overflow:hidden;
  background:#fff url('img/bg.png') center/cover no-repeat}
.menu-main::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.30)}
.menu-pane{position:relative;z-index:2;padding:22px 26px}
.sections{display:flex;flex-wrap:wrap;gap:14px 40px;align-items:flex-start}
.section{min-width:0}
.section.narrow{width:300px}
.sec-title{font-size:15px;font-weight:800;color:#555;margin:0 0 12px;text-align:start}
.menu-tiles{display:flex;flex-wrap:wrap;align-content:flex-start;gap:14px}
.section.narrow .menu-tiles{width:300px}
.tile{width:132px;height:116px;border-radius:2px;color:#fff;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;text-align:center;
  background:#2a9fd6;box-shadow:0 2px 5px rgba(0,0,0,.16);position:relative;font-weight:700;padding:10px}
.tile:hover{filter:brightness(1.07);transform:translateY(-1px)}
.tile.wide{width:280px}
.tile .ic{font-size:34px;line-height:1}
.tile .ic img{width:40px;height:40px;filter:brightness(0) invert(1);opacity:.96}
.cat .ic img{width:22px;height:22px;filter:brightness(0) invert(1)}
.tile .nm{font-size:12.5px}
.tile.soon{opacity:.62}
.tile .badge{position:absolute;top:6px;inset-inline-end:6px;background:#0005;font-size:10px;padding:1px 5px;border-radius:8px}
.menu-logo{position:absolute;z-index:3;bottom:16px;inset-inline-start:26px;text-align:center;opacity:.96}
.menu-logo .fs{display:inline-block;font-weight:900;font-size:46px;line-height:.85;font-style:italic;
  color:#caa02f;text-shadow:1.5px 1.5px 0 #fff,2px 2px 3px rgba(0,0,0,.15);letter-spacing:-2px}
.menu-logo small{display:block;font-size:11px;color:#b8901f;margin-top:1px;font-weight:800}
.menu-logo small.ar{color:#9a7a15;font-size:10px}

.menu-side{width:214px;flex:none;background:#eef1f4;border-inline-start:1px solid var(--line);
  display:flex;flex-direction:column;padding:8px;gap:6px}
.cat{display:flex;align-items:center;gap:9px;color:#fff;font-weight:800;font-size:13.5px;
  padding:12px 12px;border:none;width:100%;text-align:start;
  box-shadow:0 1px 3px rgba(0,0,0,.18)}
.cat .ic{width:24px;text-align:center;font-size:16px;order:2;margin-inline-start:auto}
.cat .lbl{order:1}
.cat:hover{filter:brightness(1.08)}
.cat.active{box-shadow:inset 0 0 0 2px #fff,0 1px 3px rgba(0,0,0,.25)}

/* ===========================================================
   FORMS / TABLES (screens)
   =========================================================== */
.tabs{display:flex;gap:2px;border-bottom:2px solid var(--orange);margin-bottom:0}
.tab{padding:7px 16px;background:#e7ebef;border:1px solid var(--line);border-bottom:none;
  border-radius:5px 5px 0 0;font-weight:700;color:#556}
.tab.active{background:var(--orange);color:#fff}
.panel{border:1px solid var(--line);border-top:none;background:#fff;padding:16px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 22px}
.field{display:flex;align-items:center;gap:8px}
.field label{width:130px;text-align:start;color:#556;font-weight:700;font-size:12.5px}
.field input,.field select,.field textarea{flex:1;height:30px;border:1px solid var(--line);
  border-radius:3px;padding:0 8px;background:var(--field);font-family:inherit;font-size:13px}
.field textarea{height:auto;padding:6px 8px}

table.data{width:100%;border-collapse:collapse;background:#fff}
table.data th{background:linear-gradient(var(--navy),var(--navy-d));color:#fff;font-weight:600;
  padding:6px 9px;text-align:start;font-size:12px;white-space:nowrap;letter-spacing:.2px;
  border-inline-end:1px solid #ffffff18}
table.data td{padding:5px 9px;border-bottom:1px solid #e9edf1;border-inline-end:1px solid #f2f5f7;font-size:12px}
table.data tr:nth-child(even) td{background:#f8fafb}
table.data tr:hover td{background:var(--orange-l)}
.searchbar{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.searchbar input{height:32px;border:1px solid var(--line);border-radius:4px;padding:0 10px;min-width:240px}
.pill{display:inline-block;background:var(--navy);color:#fff;border-radius:10px;padding:1px 9px;font-size:11px;font-weight:700}

/* ===========================================================
   DEFINITIONS list screen (horizontal dialog — matches Falcon 1:1)
   =========================================================== */
.def-win{max-width:660px;margin:0 auto}
.def-win.wide{max-width:1080px}
.def-fields2{display:grid;grid-template-columns:1fr 1fr;gap:0 26px}
.def-checks{display:flex;flex-wrap:wrap;gap:6px 20px;margin:8px 2px 2px;padding-top:8px;border-top:1px dashed var(--line)}
.def-check{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#456;font-size:12.5px}
.def-row select,.def-row textarea{flex:1;border:1px solid var(--line);border-radius:3px;padding:4px 8px;font-family:inherit;font-size:13px;background:#fff}
.def-row select{height:30px}

/* ===========================================================
   PATIENTS screen (المرضى)
   =========================================================== */
.pt-win{max-width:1000px;margin:0 auto}
.pt-strip{display:flex;align-items:center;gap:10px;background:linear-gradient(var(--navy),var(--navy-d));
  color:#dfe7ee;padding:5px 12px;font-size:12.5px}
.pt-strip label{font-weight:700}
.pt-strip b{color:#fff}
.pt-strip .sp{flex:1}
.pt-strip input{height:26px;border:1px solid #0004;border-radius:3px;padding:0 8px;font-family:inherit}
.pt-code{width:110px;background:#fff}
.pt-file{width:130px;background:#cfd6dd;color:#334;text-align:center}
.pt-mag{width:30px;height:26px;border:none;border-radius:50%;background:#e8892c;color:#fff;cursor:pointer;font-size:13px}
.pt-mag:hover{filter:brightness(1.15)}
.pt-nav{display:flex;gap:4px}
.pt-nav a{width:30px;height:24px;display:inline-flex;align-items:center;justify-content:center;
  background:#ffffff22;border-radius:3px;color:#9fd0ff;font-weight:800}
.pt-nav a:hover{background:#ffffff38}
.field select{flex:1;height:30px;border:1px solid var(--line);border-radius:3px;padding:0 8px;font-family:inherit;font-size:13px;background:#fff}
.mini-add{width:24px;height:24px;flex:none;display:inline-flex;align-items:center;justify-content:center;
  background:#4a9d5b;color:#fff;border-radius:50%;font-size:11px}
.pt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.pt-bottom{display:flex;gap:8px;align-items:center;background:linear-gradient(var(--navy),var(--navy-d));padding:7px 12px}
.pt-bottom button,.pt-bottom a{display:inline-flex;align-items:center;gap:6px;background:#ffffff1e;border:1px solid #ffffff2e;
  color:#e8eef4;border-radius:4px;padding:5px 12px;font-weight:700;font-size:12.5px;cursor:pointer;font-family:inherit}
.pt-bottom button:hover,.pt-bottom a:hover{background:#ffffff33}
.pt-bottom .pt-stop{color:#ffb3ab}
.pt-bottom .pt-arch{color:#ffe08a}

/* ===========================================================
   CALENDARS (تتبع حركة المرضى / جدول المواعيد) — full screen
   =========================================================== */
.cal-page{display:flex;flex-direction:column;height:100vh;background:#e8e8e8}
.cal-page .win-title{flex:none}
.cal{flex:1;display:flex;min-height:0;background:#fff}
.cal-side{width:220px;flex:none;color:#fff;display:flex;flex-direction:column;overflow-y:auto}
.cal-side.teal{background:#189287}
.cal-side.teal .cal-month{background:#2aa89c}
.cal-side.teal .lbl{background:#0d6e66}
.cal-side.navy{background:#2e3a55}
.cal-side.navy .cal-month{background:#3d4d74}
.cal-side.navy .lbl{background:#1e2740}
.cal-month{padding:4px 5px 6px;font-size:10.5px}
.cal-month table{width:100%;border-collapse:collapse;text-align:center}
.cal-month th{padding:1px;font-size:9px;font-weight:400;opacity:.9}
.cal-month td{padding:1px 0;font-size:10px;color:#dff}
.cal-month td.oth{opacity:.45}
.cal-month td a{display:block;border-radius:2px;color:#fff;padding:1px 2px}
.cal-month td a:hover{background:#ffffff33}
.cal-month td a.sel{background:#f2df66;color:#4a3d10;font-weight:800}
.cal-month td a.tod{outline:1px solid #fff}
.cal-month .hd{display:flex;align-items:center;justify-content:space-between;font-weight:800;font-size:11px;margin-bottom:2px}
.cal-month .hd a{color:#fff;padding:0 2px;font-size:9px}
.cal-side .lbl{padding:5px 9px;font-weight:800;font-size:12px}
.cal-side select{margin:6px;height:24px;border:1px solid #0003;border-radius:2px;font-family:inherit;font-size:11.5px;background:#fff}
.cal-acts{display:flex;flex-direction:column;gap:14px;padding:16px 10px}
.cal-act{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#fff;font-weight:700;font-size:12px;
  background:none;border:none;cursor:pointer;padding:2px 4px;text-align:end;font-family:inherit;text-decoration:none}
.cal-act .ci{font-size:17px}
.cal-act:hover{background:#ffffff22;border-radius:3px}
.cal-main{flex:1;overflow:auto;position:relative;background:#fff}
.cal-grid{display:grid;min-width:520px}
.cal-doc-hd{position:sticky;top:0;background:#f2f2ee;border-bottom:1px solid #cfcfc8;
  text-align:center;font-weight:700;font-size:13.5px;padding:11px 4px;z-index:3;border-inline-start:1px solid #ddd}
.cal-time{border-bottom:1px solid #e6e6e6;height:28px;box-sizing:border-box;
  font-size:10.5px;color:#555;text-align:end;padding:3px 5px 0 2px;background:#f7f7f4;position:sticky;inset-inline-start:0;z-index:2}
.cal-time b{font-size:15px;font-weight:800;color:#222}
.cal-time.hour{border-top:1px solid #c99}
.cal-cell{border-inline-start:1px solid #eee;border-bottom:1px solid #efefef;height:28px;box-sizing:border-box;position:relative}
.cal-cell.hour{border-top:1px solid #c99}
.cal-cell:hover{background:#f4f8fb}
.cal-appt{position:absolute;background:#111;color:#fff;font-size:12.5px;line-height:19px;font-weight:600;
  border-radius:1px;padding:1px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;z-index:2;
  border:1px solid #ffffff2b;box-sizing:border-box}
.cal-appt:hover{filter:brightness(1.5);z-index:5}

/* booking dialog */
.modal-bg{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:50}
.modal{width:420px;max-width:94vw;max-height:92vh;overflow:auto}

/* floating window over the main menu (desktop-style) */
.dlg-host{position:fixed;inset:34px 0 26px 0;display:flex;align-items:flex-start;justify-content:center;
  z-index:40;pointer-events:none;overflow:auto;padding:22px 10px}
.dlg-host .win{pointer-events:auto;box-shadow:0 18px 60px rgba(0,0,0,.45);border:2px solid #2f3c5a;flex:none}
.dlg-host .modal-bg{pointer-events:auto}
.def-head{padding:12px 16px 10px;border-bottom:1px solid var(--line);background:#fafbfc}
.def-row{display:flex;align-items:center;gap:10px;margin:7px 0}
.def-row>label{width:56px;font-weight:700;color:#456;flex:none;text-align:start}
.def-row input{flex:1;height:30px;border:1px solid var(--line);border-radius:3px;padding:0 8px;font-family:inherit;font-size:13px}
.def-row input.code{max-width:120px;flex:none;text-align:center;background:var(--field-ro)}
.def-nav{display:flex;gap:5px;margin-inline-start:auto}
.def-nav a{width:34px;height:28px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(#eaf2fb,#cfe0f2);border:1px solid #a9c5e2;border-radius:4px;color:#2e6da4;font-weight:800}
.def-toolbar{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.dbtn{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border:1px solid #c3cdd5;border-radius:3px;
  background:linear-gradient(#fff,#f2f5f7);font-weight:600;color:#2c3844;font-size:12px;
  box-shadow:0 1px 1px rgba(0,0,0,.05)}
.dbtn:hover{background:#eef3f6;border-color:#a9b7c2}
.dbtn:active{box-shadow:inset 0 1px 2px rgba(0,0,0,.12)}
.dbtn .ic{width:24px;height:24px;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:12px;flex:none}
.dbtn.save .ic{background:#2e6da4}.dbtn.del .ic{background:#e67e22}
.dbtn.new .ic{background:#4a9d5b}.dbtn.close .ic{background:#e74c3c}
.def-grid{max-height:430px;overflow:auto}
.def-grid table.data th{position:sticky;top:0}
.def-grid .dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#2e6da4;margin-inline-end:6px;vertical-align:middle}
.def-grid tr.sel td{background:var(--orange-l) !important}
.def-foot{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);background:#f7f9fb;padding:7px 12px}
.def-imp{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#2e6da4}
.def-foot .prog{flex:1;height:15px;background:#e6ebef;border:1px solid var(--line);border-radius:8px;position:relative;overflow:hidden}
.def-foot .prog i{position:absolute;inset:0 auto 0 0;width:0;background:var(--green)}

/* ===== stacked popup windows (openWin iframes over the menu) ===== */
.pop-ov{position:fixed;inset:0;z-index:800;background:rgba(0,0,0,.18)}
.pop-ov iframe{width:100%;height:100%;border:0;background:transparent;display:block}

/* ===========================================================
   REDESIGN v1 — dashboard + login only (white & blue, City Eye)
   Accent = the logo's iris blue; changeable via --accent later.
   Dialogs/screens below keep the 1:1 desktop look for now.
   =========================================================== */
:root{
  --accent:#1a81c4; --accent-d:#0d507a; --accent-l:#e9f3fa; --accent-ll:#f5f9fd;
  --edge:#e3eaf1;
}

/* ---- top ribbon: white, logo, branch chip ---- */
.topbar{background:#fff;color:var(--ink);border-bottom:1px solid var(--edge);
  box-shadow:0 1px 10px rgba(13,80,122,.07);padding:7px 14px;gap:10px}
.topbar .tb-logo{height:26px;width:auto;display:block;flex:none}
.tb-brand{display:inline-flex;align-items:center;gap:9px;flex:none}
.tb-brand img{height:28px;width:28px;object-fit:contain}
.tb-brand .tx{display:flex;flex-direction:column;line-height:1.12}
.tb-brand .tx b{font-size:13px;color:#1b2b3a;letter-spacing:.1px}
.tb-brand .tx small{font-size:8.5px;color:#8299ab;font-weight:800;letter-spacing:.14em}
.tb-branch{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:#fff;flex:none;
  font-weight:800;font-size:11.5px;padding:4px 14px;border-radius:999px;letter-spacing:.2px;white-space:nowrap}
.topbar .title{color:#22384a;font-weight:800;font-size:14px;letter-spacing:.2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.statusbar .welcome{min-width:0}
.topbar .topnav a{width:34px;height:30px;border-radius:9px;background:transparent}
.topbar .topnav a:hover{background:var(--accent-l)}
.topbar .topnav img{filter:brightness(0);opacity:.62}
.topbar .topnav a:hover img{opacity:.95}
.topbar .win-min{background:transparent;border:1px solid var(--edge);color:#8ea0af;border-radius:9px}
.topbar .win-min:hover{background:var(--accent-l);color:var(--accent-d)}
.topbar .win-x{background:transparent;border:1px solid var(--edge);color:#c0392b;border-radius:9px}
.topbar .win-x:hover{background:#c0392b;color:#fff}

/* ---- dropdown menus: clean white cards ---- */
.tb-menu{top:46px;background:#fff;border:1px solid var(--edge);border-radius:14px;
  box-shadow:0 18px 44px rgba(13,80,122,.16);padding:6px;min-width:230px}
.tb-menu .hd{background:transparent;color:var(--accent-d);font-size:11.5px;font-weight:800;
  padding:8px 12px 6px;border-bottom:1px solid var(--accent-ll);border-radius:0;letter-spacing:.3px}
.tb-menu a{color:#2c3e50;font-weight:600;border-bottom:none;border-radius:9px;padding:8px 12px;
  justify-content:flex-start}
.tb-menu a:hover{background:var(--accent-l);color:var(--accent-d)}
.tb-menu a .st{display:none}
.tb-menu a.logout{color:#c0392b;margin-top:4px;border-top:1px solid var(--accent-ll);border-radius:0 0 9px 9px}
.tb-menu a.logout:hover{background:#fdeeec;color:#a5281b}

/* ---- status bar: quiet white strip ---- */
.statusbar{background:#fff;border-top:1px solid var(--edge);color:#66798a;font-weight:600}
.statusbar .seg{border-inline-start:1px solid var(--accent-ll)}
.statusbar .dt{background:var(--accent-l);color:var(--accent-d)}
.statusbar .welcome{color:#93a5b3}
.statusbar b{color:var(--accent-d)}

/* ---- dashboard: soft blue-white canvas, rounded tiles ---- */
.menu-main{background:linear-gradient(165deg,#fbfdff 0%,#eef5fb 55%,#e6f0f8 100%)}
.menu-main::after{display:none}
.menu-side{background:#fff;border-inline-start:1px solid var(--edge);padding:10px 8px;gap:7px}
.cat{border-radius:11px;box-shadow:0 1px 4px rgba(16,40,60,.10)}
.cat.active{box-shadow:inset 0 0 0 2px #fff,0 3px 10px rgba(13,80,122,.28)}
.sec-title{color:var(--accent-d);font-weight:800}
.tile{border-radius:14px;box-shadow:0 2px 10px rgba(16,40,60,.12);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease}
.tile:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(16,40,60,.20);filter:brightness(1.05)}
.tile .badge{border-radius:999px}

/* ===========================================================
   LOGIN v2 — clean card, segmented branch buttons
   =========================================================== */
.lg2-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;
  background:linear-gradient(160deg,#f7fbfe 0%,#e8f2fa 45%,#d8e9f6 100%)}
.lg2-card{width:420px;max-width:96vw;background:#fff;border:1px solid var(--edge);border-radius:20px;
  box-shadow:0 24px 60px rgba(13,80,122,.16);padding:34px 34px 28px}
.lg2-logo{display:block;width:78%;max-width:300px;margin:2px auto 6px}
.lg2-sub{text-align:center;color:#8299ab;font-size:12.5px;font-weight:700;margin:0 0 20px}
.lg2-seg{display:flex;gap:8px;margin:0 0 18px}
.lg2-seg button{flex:1;height:38px;border:1.5px solid #d9e5ee;background:#fbfdff;border-radius:11px;
  font-weight:800;font-size:13px;color:#5a7183;transition:all .12s ease}
.lg2-seg button:hover{border-color:var(--accent);color:var(--accent-d)}
.lg2-seg button.on{background:var(--accent);border-color:var(--accent);color:#fff;
  box-shadow:0 4px 12px rgba(26,129,196,.35)}
.lg2-field{margin:0 0 13px}
.lg2-field label{display:block;font-weight:700;color:#54687a;font-size:12px;margin:0 2px 5px}
.lg2-field input{width:100%;height:40px;border:1.5px solid #d9e5ee;border-radius:11px;padding:0 13px;
  font-size:13.5px;background:#fbfdff;transition:border-color .12s ease}
.lg2-card input:focus{outline:none;border-color:var(--accent);background:#fff;
  box-shadow:0 0 0 3px rgba(26,129,196,.15)}
.lg2-who{min-height:17px;text-align:center;color:var(--accent-d);font-size:12px;font-weight:700;margin:-4px 0 12px}
.lg2-btn{width:100%;height:42px;border:none;border-radius:11px;color:#fff;font-weight:800;font-size:14px;
  background:linear-gradient(180deg,var(--accent),#1470ad);box-shadow:0 6px 16px rgba(26,129,196,.35);
  transition:filter .12s ease, transform .12s ease}
.lg2-btn:hover{filter:brightness(1.08)}
.lg2-btn:active{transform:translateY(1px)}
.lg2-err{background:#fdeeec;color:#b71c1c;border:1px solid #f5c6c0;padding:8px 12px;border-radius:10px;
  margin:0 0 14px;font-size:12.5px;font-weight:700;text-align:center}

/* ===========================================================
   REDESIGN v2 — GLOBAL re-skin: every window, dialog and screen
   inherits the white+blue identity. --red/--orange were only ever
   used for CHROME (title bars, save buttons, tabs, hover rows) —
   real danger-red (delete buttons, errors, ✕) is hardcoded and stays red.
   =========================================================== */
:root{
  --red:var(--accent); --red-d:var(--accent-d);
  --orange:var(--accent); --orange-d:var(--accent-d); --orange-l:var(--accent-l);
}

/* windows & dialogs: soft rounded cards */
.win{border-radius:14px;border-color:#c9d9e6;box-shadow:0 16px 44px rgba(13,80,122,.20)}
.win-title{font-size:13.5px}
.win-band{height:4px}
.win-x{border-radius:8px}

/* buttons */
.tbtn{border-radius:9px;border-color:#00000014}
.dbtn{border-radius:9px}
.mini-add{border-radius:8px}

/* fields */
input,select,textarea{border-radius:7px}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(26,129,196,.45);outline-offset:-1px}

/* toolbars / tabs / grids pick up the quiet blue */
.toolbar{background:#f6f9fc;border-color:var(--edge)}
.tabs{border-bottom-color:var(--accent)}
.tab{border-radius:8px 8px 0 0}
.def-grid th{background:var(--accent-l);color:var(--accent-d)}
table.data thead th{background:var(--accent-l);color:var(--accent-d)}

/* scrollbars in the family */
::-webkit-scrollbar-thumb{background:#b3c9da}
::-webkit-scrollbar-thumb:hover{background:#8fb2cc}
