/**
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 */
/* AIOBSuite - application styles (web app and Windows app share this file) */
:root {
  --acc: #e30613; --acc-d: #b00510; --acc-l: #fdecec; --bg: #f6f6f7; --card: #fff; --line: #e4e5e8; --txt: #1f1f23; --mut: #6b6d74;
  --red: #e0202c; --blue: #1f4fd8; --danger: #c62828; --ok: #1b8a4b; --warn: #b7791f; --rad: 8px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.45 "Segoe UI", Tahoma, Arial, sans-serif; color: var(--txt); background: var(--bg); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; }
h2 { font-size: 19px; } h3 { font-size: 15px; margin-top: 1.3em; }
a { color: var(--acc); }
.muted { color: var(--mut); } .small { font-size: 12.5px; } .mono { font-family: Consolas, monospace; font-size: 12px; word-spacing: 4px; }
.grow { flex: 1 1 auto; }
.boot { padding: 60px; text-align: center; color: var(--mut); }

/* ---- controls */
.btn { font: inherit; padding: 7px 14px; border: 1px solid var(--line); background: #fff; color: var(--txt); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #b9bbc2; background: #fafafb; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.primary:hover { background: var(--acc-d); }
.btn.danger { color: var(--danger); border-color: #e3b6b6; } .btn.danger:hover { background: #fdf0f0; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; } .btn.block { display: block; width: 100%; } .btn.icon { padding: 4px 9px; font-weight: bold; }
.btn:disabled { opacity: .55; cursor: default; }
.inp { font: inherit; width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--txt); min-width: 0; }
.inp:focus, .vals input:focus { outline: 2px solid rgba(227, 6, 19, .3); border-color: var(--acc); }
.inp.sm { padding: 4px 7px; font-size: 12.5px; } .inp.color { padding: 1px 2px; height: 28px; }
textarea.inp { resize: vertical; }
.fld { display: block; margin: 0 0 10px; } .fld > span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 3px; color: #3a3b40; }
.fld small { display: block; margin-top: 3px; }
.fld.inline { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.fld.inline > span { margin: 0; text-align: right; }
.fld.half { margin-bottom: 6px; }
.check { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; margin: 2px 10px 6px 0; } .check.sm { font-size: 12.5px; margin: 0 6px; }
.with-btn { display: flex; gap: 4px; } .with-btn .inp { flex: 1; } .with-btn .btn { flex: 0 0 auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { font: inherit; border: 0; background: none; padding: 6px 12px; cursor: pointer; border-right: 1px solid var(--line); color: var(--txt); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--acc); color: #fff; }
.seg button.red.on { background: var(--red); } .seg button.blue.on { background: var(--blue); }
.tog { font: inherit; border: 1px solid var(--line); background: #fff; padding: 6px 11px; border-radius: 6px; cursor: pointer; margin-right: 4px; }
.tog.on { background: #1f1f23; border-color: #111; color: #fff; }
.panel-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 14px 0 6px; }
.panel-title:first-child { margin-top: 0; }
.panel-sub { font-weight: 600; margin: 10px 0 6px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 8px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: end; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.empty-note { padding: 18px; text-align: center; color: var(--mut); } .empty-note.big { padding: 70px 20px; font-size: 16px; line-height: 2.4; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th { position: sticky; top: 0; background: #1f1f23; color: #fff; text-align: left; padding: 7px 10px; font-weight: 600; cursor: default; white-space: nowrap; z-index: 1; }
.cl-list table.grid th { cursor: pointer; }
table.grid td { padding: 6px 10px; border-bottom: 1px solid #ecedef; }
table.grid tbody tr:hover { background: #f6f6f7; }
table.grid tbody tr.on { background: #1f1f23; color: #fff; }
table.grid td.actions { text-align: right; white-space: nowrap; } table.grid td.actions .btn { margin-left: 4px; }
table.grid td.r { color: var(--red); font-weight: 600; } table.grid td.l { color: var(--blue); font-weight: 600; }
table.grid td.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
table.kv { border-collapse: collapse; margin: 6px 0 12px; } table.kv th { text-align: left; padding: 5px 18px 5px 0; color: var(--mut); font-weight: 600; vertical-align: top; } table.kv td { padding: 5px 0; }

/* ---- toast + modal */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: #1f1f23; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); max-width: 440px; transition: opacity .3s; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--danger); } .toast.out { opacity: 0; }
.modal-back { position: fixed; inset: 0; background: rgba(17, 17, 17, .55); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 12px; width: 460px; max-width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal.wide { width: 980px; }
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0; flex: 1; font-size: 16px; }
.modal-body { padding: 16px 18px; } .modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
button.x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mut); padding: 0 4px; } button.x:hover { color: var(--txt); }

/* ---- icons (drawn with masks so they take the text colour) */
.ic { display: inline-block; width: 18px; height: 18px; background: currentColor; vertical-align: -4px; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.ic-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.ic-new { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7 1.5 0 2.900.400 4 1.100M18 13v8M14 17h8'/%3E%3C/svg%3E"); }
.ic-save { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.200' stroke-linejoin='round'%3E%3Cpath d='M4 4h13l3 3v13H4z'/%3E%3Cpath d='M8 4v6h8V4M8 20v-6h8v6'/%3E%3C/svg%3E"); }
.ic-del { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
.ic-journal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6zM9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.ic-aud { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M6 8l4 2 4 5 5 2'/%3E%3C/svg%3E"); }
.ic-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 17V11a6 6 0 0 1 12 0v6l2 2H4zM10 21h4'/%3E%3C/svg%3E"); }

.ic-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E"); }
.ic-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7s7 3 7 7M16 4.500a4 4 0 0 1 0 7M18 14.500c2.500.800 4 3 4 6.500'/%3E%3C/svg%3E"); }
.ic-print { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3h10v5M7 17H4v-7h16v7h-3M7 14h10v7H7z'/%3E%3C/svg%3E"); }
.ic-invoice { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2zM9 7h6M9 11h6M9 15h4'/%3E%3C/svg%3E"); }
.ic-store { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.500-5h15L21 9M3 9v11h18V9M3 9c0 1.700 1.300 3 3 3s3-1.300 3-3c0 1.700 1.300 3 3 3s3-1.300 3-3c0 1.700 1.300 3 3 3s3-1.300 3-3M9 20v-5h6v5'/%3E%3C/svg%3E"); }
.ic-accounts { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2M20 20v-3'/%3E%3C/svg%3E"); }
.ic-settings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.900 4.900l2.100 2.100M17 17l2.100 2.100M4.900 19.100L7 17M17 7l2.100-2.100'/%3E%3C/svg%3E"); }
.ic-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }
.ic-ear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9a5 5 0 0 1 10 0c0 3-3 4-3 7a3 3 0 0 1-6 0M10 9a2 2 0 0 1 4 0c0 1.500-1.500 2-1.500 3.500'/%3E%3C/svg%3E"); }
.ic-office { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4h10v17M14 9h6v12M2 21h20M7 8h4M7 12h4M7 16h4'/%3E%3C/svg%3E"); }
.ic-box { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }

/* ---- shell: black side menu + white top bar */
.shell { display: flex; height: 100vh; }
.side { flex: 0 0 250px; width: 250px; background: #111; color: #fff; display: flex; flex-direction: column; min-height: 0; transition: flex-basis .15s, width .15s; }
.side-brand { border: 0; background: none; cursor: pointer; padding: 16px 18px 12px; display: block; text-align: left; flex: 0 0 auto; }
.side-brand .logo-full { display: block; width: 100%; max-width: 190px; height: auto; } .side-brand .logo-mark { display: none; width: 36px; height: 36px; }
.nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 10px; scrollbar-width: thin; scrollbar-color: #3a3b40 transparent; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7b7d85; padding: 16px 10px 6px; white-space: nowrap; }
.nav button { font: inherit; font-weight: 600; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; color: #c9cbd1; padding: 9px 10px; margin-bottom: 2px; border-radius: 8px; cursor: pointer; white-space: nowrap; position: relative; }
.nav button .ic { flex: 0 0 18px; } .nav button span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav button.on { color: #fff; background: var(--acc); box-shadow: 0 4px 14px rgba(227, 6, 19, .35); }
.nav button.soon { color: #8e9097; font-weight: 500; } .nav button.soon:hover { color: #d3d4d9; }
.nav button em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ff8b8b; border: 1px solid rgba(227, 6, 19, .6); border-radius: 10px; padding: 1px 6px; }
.shell.mini .side { flex-basis: 64px; width: 64px; }
.shell.mini .side-brand { padding: 14px 0 10px; text-align: center; } .shell.mini .side-brand .logo-full { display: none; } .shell.mini .side-brand .logo-mark { display: inline-block; }
.shell.mini .nav { padding: 4px 8px 10px; } .shell.mini .nav button { justify-content: center; padding: 11px 0; } .shell.mini .nav button span, .shell.mini .nav button em { display: none; }
.shell.mini .nav-group { font-size: 0; padding: 0; height: 1px; background: #2a2b30; margin: 10px 6px; }
.main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
header.top { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--txt); border-bottom: 1px solid var(--line); padding: 0 14px 0 8px; min-height: 52px; flex: 0 0 auto; }
#screen-title { font-size: 16.5px; font-weight: 700; white-space: nowrap; }
.chip { font: inherit; font-size: 12.5px; font-weight: 600; background: var(--acc-l); color: var(--acc-d); border: 0; border-radius: 20px; padding: 5px 12px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font: inherit; font-size: 12.5px; border: 0; border-radius: 20px; padding: 5px 12px 5px 24px; cursor: pointer; color: #fff; background: #1b8a4b; position: relative; white-space: nowrap; }
.pill::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #b9f6ca; }
.pill.busy { background: #3a3b40; } .pill.busy::before { background: #fff; animation: blink 1s infinite; }
.pill.off, .pill.local { background: #6b6d74; } .pill.off::before, .pill.local::before { background: #e4e5e8; }
.pill.err { background: var(--danger); } .pill.err::before { background: #ffd6d6; }
@keyframes blink { 50% { opacity: .25; } }
.icon-btn { position: relative; background: none; border: 0; color: var(--txt); cursor: pointer; padding: 7px 9px; border-radius: 8px; } .icon-btn:hover { background: #f1f1f3; }
.badge { position: absolute; top: 0; right: 0; background: var(--acc); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 9px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; }
.user { font: inherit; font-size: 12.5px; background: none; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 6px 11px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user:hover { background: #f1f1f3; }
#notices { flex: 0 0 auto; } .notice { display: flex; align-items: center; gap: 10px; background: #fff7d6; border-bottom: 1px solid #ecd98a; padding: 7px 14px; font-size: 13.5px; } .notice .nt { flex: 1; }
main#screen { flex: 1 1 auto; overflow: auto; min-height: 0; }

/* ---- Powered by faruk.bd */
.powered { display: flex; align-items: center; gap: 12px; }
.powered a { text-decoration: none; color: inherit; }
.pw-logo { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .pw-logo span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.pw-logo img { display: block; height: 26px; width: auto; max-width: 100%; }
.pw-qr { flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 3px; border: 1px solid var(--line); line-height: 0; } .pw-qr img { display: block; width: 46px; height: 46px; }
.powered.dark .pw-logo span { color: #8e9097; } .powered.dark .pw-qr { border-color: #fff; }
.pw-logo:hover img { opacity: .85; } .pw-qr:hover { box-shadow: 0 0 0 2px var(--acc); }
.side-foot { flex: 0 0 auto; padding: 12px 14px 14px; border-top: 1px solid #2a2b30; justify-content: space-between; }
.shell.mini .side-foot { padding: 10px 0 12px; justify-content: center; } .shell.mini .side-foot .pw-logo { display: none; } .shell.mini .side-foot .pw-qr img { width: 40px; height: 40px; }

/* ---- welcome */
.welcome { min-height: 100vh; display: flex; background: var(--bg); }
.w-left { flex: 1 1 52%; background: #111 radial-gradient(900px 500px at -10% 110%, rgba(227, 6, 19, .42), transparent 60%); color: #fff; padding: 44px 52px 30px; display: flex; flex-direction: column; min-width: 0; }
.w-brand .logo-full { display: block; width: 300px; max-width: 100%; height: auto; }
.w-left h2 { font-size: 27px; line-height: 1.25; font-weight: 700; margin: 38px 0 10px; max-width: 560px; letter-spacing: -.01em; }
.w-sub { color: #c9cbd1; font-size: 15px; margin: 0 0 26px; }
.slides { flex: 1 1 auto; max-width: 560px; min-height: 150px; position: relative; }
.slide { display: block; text-decoration: none; color: #fff; } .slide.pic img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; border: 1px solid #2a2b30; }
.slide.pic b { display: block; margin-top: 10px; font-size: 14.5px; }
.slide.txt { border-left: 4px solid var(--acc); padding: 6px 0 6px 18px; } .slide.txt b { display: block; font-size: 19px; margin-bottom: 6px; } .slide.txt span { color: #c9cbd1; font-size: 14.5px; line-height: 1.55; }
.slide-dots { display: flex; gap: 7px; margin-top: 16px; } .slide-dots button { width: 22px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: #3a3b40; cursor: pointer; } .slide-dots button.on { background: var(--acc); }
.w-left .powered { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2a2b30; max-width: 560px; }
.w-left .powered .pw-logo img { height: 30px; } .w-left .powered .pw-qr img { width: 54px; height: 54px; }
.w-right { flex: 1 1 48%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 24px; min-width: 0; }
.welcome .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; width: 440px; max-width: 100%; box-shadow: 0 18px 50px rgba(17, 17, 17, .1); }
.w-card-logo { margin-bottom: 20px; } .w-card-logo .logo-full { display: block; width: 230px; max-width: 100%; height: auto; }
.auth-tabs { display: flex; margin-bottom: 14px; } .auth-tabs button { flex: 1; }
.auth-msg { color: var(--danger); min-height: 20px; font-size: 13px; margin-bottom: 6px; }
.or { text-align: center; margin: 16px 0 12px; position: relative; color: var(--mut); } .or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); } .or span { position: relative; background: #fff; padding: 0 10px; }
.login-ad { width: 440px; max-width: 100%; }
.welcome > .card { margin: auto; }

/* ---- business type tiles */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-tile { font: inherit; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; align-items: center; color: var(--txt); }
.type-tile .ic { color: var(--mut); } .type-tile b { font-size: 13.5px; } .type-tile span { grid-column: 1 / -1; font-size: 11.5px; color: var(--mut); line-height: 1.35; }
.type-tile:hover { border-color: #b9bbc2; } .type-tile.on { border-color: var(--acc); background: var(--acc-l); } .type-tile.on .ic { color: var(--acc); }
.modal.mid { width: 620px; }

/* ---- home */
.home { padding: 22px 26px 30px; max-width: 1240px; }
.home-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #111 radial-gradient(700px 260px at 100% 120%, rgba(227, 6, 19, .5), transparent 65%); color: #fff; border-radius: 14px; padding: 24px 28px; }
.home-hero > div:first-child { flex: 1 1 260px; min-width: 0; } .home-hero h1 { font-size: 24px; margin: 0 0 4px; overflow-wrap: anywhere; } .home-hero p { margin: 0; color: #c9cbd1; }
.home-actions { display: flex; gap: 8px; flex-wrap: wrap; } .home-hero .btn:not(.primary) { background: transparent; color: #fff; border-color: #55575d; } .home-hero .btn:not(.primary):hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 4px; }
.stat { font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer; color: var(--txt); border-left: 4px solid var(--acc); }
.stat:hover { box-shadow: 0 6px 18px rgba(17, 17, 17, .08); } .stat b { display: block; font-size: 26px; line-height: 1.1; } .stat span { color: var(--mut); font-size: 12.5px; }
.home-title { margin: 24px 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } .mod-col { display: grid; gap: 14px; min-width: 0; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.mod-card.off { opacity: .62; }
.mod-head { display: flex; align-items: center; gap: 10px; } .mod-head .ic { width: 22px; height: 22px; color: var(--acc); flex: 0 0 auto; } .mod-head h3 { margin: 0; flex: 1; font-size: 16px; }
.mod-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; padding: 2px 9px; background: #eeeef0; color: #55575d; white-space: nowrap; }
.mod-card.ready:not(.off) .mod-badge { background: #e3f6ea; color: #1b8a4b; } .mod-card.soon:not(.off) .mod-badge { background: var(--acc-l); color: var(--acc-d); }
.mod-card p { color: var(--mut); margin: 8px 0 0; } .mod-note { font-size: 12.5px; }
.test-list { margin-top: 14px; border-top: 1px solid var(--line); }
.test-item { font: inherit; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 2px; color: var(--mut); }
.test-item span { flex: 1; } .test-item em { font-style: normal; font-size: 11.5px; }
button.test-item { cursor: pointer; color: var(--txt); font-weight: 600; } button.test-item em { background: var(--acc); color: #fff; border-radius: 6px; padding: 3px 12px; font-weight: 600; } button.test-item:hover em { background: var(--acc-d); }
.mod-switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .mod-switch > div { flex: 1; } .mod-switch p { margin: 2px 0 0; }
.about-brand { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; } .about-brand .logo-full { width: 260px; max-width: 100%; height: auto; display: block; }

/* ---- toolbar */
.toolbar { display: flex; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 12px; flex-wrap: wrap; }
.tb { font: inherit; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: #2a2b30; }
.tb:hover { background: var(--acc-l); border-color: #f6c9cc; } .tb.accent { background: var(--acc); color: #fff; } .tb.accent:hover { background: var(--acc-d); }
.tb.attn { background: #fff3cd; border-color: #e9c96b; }
.sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 6px; }
.who b { font-size: 16px; }

/* ---- clients */
.clients { display: flex; flex-direction: column; height: 100%; }
.cl-top { display: flex; gap: 14px; padding: 12px; flex: 0 0 auto; }
.cl-form { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 14px 16px 8px; }
.cl-info { font-size: 12.5px; color: var(--mut); margin: 8px 0 0 104px; }
.cl-side { flex: 0 0 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 12px; }
.module { font: inherit; display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--txt); }
.module:hover { background: var(--acc-l); }
.cl-listbar { display: flex; align-items: center; gap: 14px; padding: 0 12px 8px; } .cl-listbar .inp { max-width: 380px; }
.cl-list { flex: 1 1 auto; overflow: auto; margin: 0 12px 12px; border: 1px solid var(--line); border-radius: var(--rad); background: #fff; min-height: 150px; }
.cl-list tbody tr { cursor: pointer; }

/* ---- journal */
.journal-grid { margin: 0; } .journal { background: #fff; min-height: 100%; }

/* ---- test screen */
.test { display: flex; min-height: 100%; }
.test-side { flex: 0 0 216px; background: #fff; color: var(--txt); padding: 12px; border-right: 1px solid var(--line); }
.test-side .panel-title { color: var(--mut); }
.who-card { background: #111; color: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; } .who-card .muted { color: #c9cbd1; } .who-card b { font-size: 15px; }
.ses { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 5px; font-size: 12.5px; } .ses a { color: var(--txt); text-decoration: none; } .ses a:hover { text-decoration: underline; }
.ses.on { background: var(--acc); } .ses.on a { color: #fff; font-weight: 600; } .ses .dot { width: 8px; height: 8px; border-radius: 50%; background: #c3c5cb; margin: 0 2px; } .ses.on .dot { background: #fff; }
.test-side .btn.block { margin-top: 8px; } .keys { font-size: 12px; line-height: 1.8; }
.test-main { flex: 1; min-width: 0; padding: 10px 12px; }
.test-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 8px 12px; margin-bottom: 10px; }
.ctl { display: flex; align-items: center; gap: 6px; } .ctl .lbl { font-size: 11.5px; font-weight: 700; color: var(--mut); text-transform: uppercase; }
.readout { background: #111; color: #fff; border-radius: 8px; padding: 4px 8px; gap: 8px; } .readout.red .big b { color: #ff8b8b; } .readout.blue .big b { color: #9dbdff; }
.readout .big { display: flex; flex-direction: column; align-items: center; min-width: 86px; line-height: 1.15; } .readout .big b { font-size: 17px; } .readout .big span { font-size: 12.5px; color: #d3d4d9; }
.arrow { background: #3a3b40; color: #fff; border: 0; border-radius: 4px; cursor: pointer; padding: 5px 8px; font-size: 11px; } .arrow:hover { background: var(--acc); }
.updown { display: flex; flex-direction: column; gap: 2px; } .updown .arrow { padding: 1px 8px; }
.graphs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.graph { background: #fff; border: 2px solid var(--line); border-radius: var(--rad); padding: 4px; cursor: crosshair; user-select: none; overflow: hidden; }
.graph svg { display: block; width: 100%; height: auto; }
.graph.gr-R.active { border-color: var(--red); } .graph.gr-L.active { border-color: var(--blue); }
.test-lower { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: start; }
.values, .test-notes > div { background: #fff; border: 1px solid var(--line); border-radius: var(--rad); padding: 8px 10px; } .test-notes > div { margin-bottom: 10px; } .test-notes .speech:empty { display: none; }
table.vals { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.vals th, table.vals td { border: 1px solid #e4e5e8; padding: 0; text-align: center; }
table.vals thead th { background: #f3f3f5; padding: 4px 2px; font-weight: 600; } table.vals tbody th { text-align: left; padding: 3px 7px; white-space: nowrap; font-weight: 600; }
table.vals tr.r th, .speech-tbl th.r { color: var(--red); } table.vals tr.l th, .speech-tbl th.l { color: var(--blue); }
table.vals input { width: 100%; min-width: 34px; border: 0; background: none; font: inherit; text-align: center; padding: 4px 1px; } table.vals input.bad { background: #fde2e2; }
table.vals td.pta { font-weight: 700; min-width: 34px; background: #fafafb; }
.vals-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; } .vals-foot .muted { flex: 1; }
.comments textarea { margin-top: 2px; }

/* ---- designer */
.designer { display: flex; height: 100%; }
.ds-left { flex: 0 0 214px; background: #fff; border-right: 1px solid var(--line); padding: 12px; overflow: auto; }
.ds-right { flex: 0 0 270px; background: #fff; border-left: 1px solid var(--line); padding: 12px; overflow: auto; }
.ds-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 6px 10px; } .ds-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .ds-tools select.inp { width: auto; }
.ds-canvas { flex: 1; overflow: auto; background: #8a8c93; padding: 20px; }
.ds-pagewrap { margin: 0 auto; box-shadow: 0 4px 24px rgba(0, 0, 0, .35); background: #fff; position: relative; }
.tpl-item { font: inherit; display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 1px solid transparent; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.tpl-item:hover { background: #f6f6f7; } .tpl-item.on { background: var(--acc-l); border-color: #f3b4b8; font-weight: 600; } .tpl-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 10.5px; background: var(--acc); color: #fff; border-radius: 10px; padding: 1px 7px; font-weight: 600; }
.pal-item { font: inherit; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; } .pal-item:hover { background: var(--acc-l); }
.pal-item::before { content: "+"; display: inline-block; width: 18px; color: var(--acc); font-weight: 700; }

/* ---- the printed page (same rules on screen, in the preview and on paper) */
.print-page { position: relative; background: #fff; color: #000; overflow: hidden; font-family: Tahoma, Arial, sans-serif; font-size: 12px; line-height: 1.25; }
.print-fit { position: absolute; left: 0; top: 0; transform-origin: top left; }
.pe { position: absolute; overflow: hidden; box-sizing: border-box; }
.pe-text { width: 100%; line-height: 1.22; overflow: hidden; }
.pe-img { width: 100%; height: 100%; display: block; }
.pe-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: #777; border: 1px dashed #aaa; background: #fafafa; }
.pe-client { display: flex; width: 100%; height: 100%; padding: 2px 6px; }
.pe-client table { flex: 1; border-collapse: collapse; height: 100%; }
.pe-client th { text-align: right; padding: 0 10px 0 0; width: 104px; white-space: nowrap; font-weight: bold; }
.pe-client td { text-align: left; color: #555; padding: 0; }
.pe-report { padding: 3px 7px; height: 100%; } .pe-report-title { margin-bottom: .9em; } .pe-report-body { white-space: pre-wrap; }
.pe-speech { border-collapse: collapse; width: 100%; height: 100%; } .pe-speech th, .pe-speech td { border: 1px solid #555; padding: 1px 6px; text-align: center; } .pe-speech td:first-child, .pe-speech th:first-child { text-align: left; }
.pe-grades { border-collapse: collapse; } .pe-grades td { padding: 0 14px 0 0; }
.pe svg { display: block; }
.print-page.design .pe { cursor: move; outline: 1px dashed rgba(227, 6, 19, .3); }
.print-page.design .pe:hover { outline: 1px solid var(--acc); }
.print-page.design .pe.sel { outline: 2px solid #e30613; overflow: visible; z-index: 5; }
.hd { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #e30613; z-index: 6; }
.hd-nw { left: -5px; top: -5px; cursor: nwse-resize; } .hd-n { left: 50%; margin-left: -4px; top: -5px; cursor: ns-resize; } .hd-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.hd-e { right: -5px; top: 50%; margin-top: -4px; cursor: ew-resize; } .hd-se { right: -5px; bottom: -5px; cursor: nwse-resize; } .hd-s { left: 50%; margin-left: -4px; bottom: -5px; cursor: ns-resize; }
.hd-sw { left: -5px; bottom: -5px; cursor: nesw-resize; } .hd-w { left: -5px; top: 50%; margin-top: -4px; cursor: ew-resize; }

/* ---- print preview */
.preview-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .preview-bar select { width: 240px; }
.preview-holder { background: #8a8c93; padding: 12px; border-radius: 8px; overflow: auto; max-height: 72vh; }
.preview-page { margin: 0 auto; background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .35); overflow: hidden; }

/* ---- settings */
.settings { display: flex; min-height: 100%; }
.st-nav { flex: 0 0 200px; background: #fff; border-right: 1px solid var(--line); padding: 12px 8px; }
.st-nav button { font: inherit; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 6px; cursor: pointer; margin-bottom: 2px; }
.st-nav button:hover { background: #f6f6f7; } .st-nav button.on { background: var(--acc); color: #fff; font-weight: 600; }
.st-body { flex: 1; padding: 20px 26px; max-width: 980px; }
.logo-box { width: 280px; height: 96px; border: 1px dashed #c3c5cb; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; margin-bottom: 6px; } .logo-box img { max-width: 100%; max-height: 100%; }
.check-row { display: flex; flex-wrap: wrap; }
.feat-list { display: flex; flex-wrap: wrap; gap: 6px; } .feat { font-size: 12.5px; padding: 3px 10px; border-radius: 12px; background: #eeeef0; color: #7b7d85; } .feat.on { background: var(--acc-l); color: var(--acc-d); }

/* ---- messages + ads */
.feed-panel .seg { margin-bottom: 12px; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .feed-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.feed-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; } .feed-body { white-space: pre-wrap; margin: 4px 0 8px; word-break: break-word; }
.ad-slot { display: none; } .ad-slot.filled { display: block; margin-top: 14px; }
.ad-slot.wide.filled { margin: 0 12px 12px; } .ad-tag { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #8e9097; margin-bottom: 3px; }
.ad { display: block; text-decoration: none; color: var(--txt); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .ad:hover { border-color: var(--acc); }
.ad img { display: block; width: 100%; height: auto; } .ad b, .ad span { display: block; padding: 6px 10px 0; } .ad .ad-btn { color: var(--acc); font-weight: 600; padding-bottom: 8px; }
.ad-slot.wide .ad { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 0; } .ad-slot.wide .ad img { width: auto; max-height: 70px; } .ad-slot.wide .ad b { padding: 0; flex: 1; } .ad-slot.wide .ad .ad-btn { padding: 0; }
.login-ad .ad-tag { color: #8e9097; }

/* ---- printing: only the report page goes to paper */
#print-root { display: none; }
@page { size: A4; margin: 0; }
@media print {
  html, body { height: auto !important; min-height: 0 !important; background: #fff; margin: 0; padding: 0; overflow: hidden; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; height: 1118px; overflow: hidden; }
  #print-root .print-page { page-break-after: avoid; page-break-inside: avoid; box-shadow: none; height: 1118px !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1100px) {
  .cl-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-side { flex-basis: 190px; }
  .test-lower { grid-template-columns: 1fr; } .user { display: none; }
}
@media (max-width: 760px) {
  header.top { flex-wrap: wrap; padding: 6px 10px; }
  .cl-top, .test, .designer, .settings { flex-direction: column; } .cl-form { grid-template-columns: 1fr; } .cl-side, .test-side, .st-nav, .ds-left, .ds-right { flex: 0 0 auto; }
  .graphs { grid-template-columns: 1fr; } .shell { height: auto; min-height: 100vh; } .clients, .designer { height: auto; }
}

/* ---- AIOBSuite shell on small windows */
@media (max-width: 1100px) {
  .w-left { padding: 32px 30px 24px; } .w-left h2 { font-size: 22px; margin-top: 26px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .welcome { flex-direction: column; } .w-left { flex: 0 0 auto; } .slides { min-height: 0; } .w-right { padding: 20px 14px; }
  .shell { height: auto; min-height: 100vh; } .main-col { height: auto; min-height: 100vh; } .side { position: sticky; top: 0; align-self: flex-start; height: 100vh; }
  .shell:not(.mini) .side { position: fixed; z-index: 150; left: 0; top: 0; bottom: 0; box-shadow: 0 0 0 100vmax rgba(17, 17, 17, .5); }
  .shell:not(.mini) .main-col { margin-left: 64px; }
  .home { padding: 14px; } .type-grid { grid-template-columns: 1fr; } #screen-title { display: none; }
}
@media print { .side, header.top { display: none !important; } }
