:root {
  color-scheme: light;
  --form-gutter: 20px; /* side padding of forms; their messages above the form use the same edge */
  --ink: #16283d;
  --muted: #718096;
  --blue: #0757a5;
  --blue-dark: #073b72;
  --blue-solid: #0757a5;
  --warn-bg: #fff1dd;
  --warn-border: #f0a24a;
  --warn-text: #a84d00;
  --dot-unread: #d12f2f;
  --ok-bg: #e7f6ee;
  --ok-border: #a9d9bf;
  --ok-text: #17673f;
  --closed-bg: #eceff3;
  --closed-border: #cfd6df;
  --closed-text: #4d5d70;
  --blue-pale: #eaf3fc;
  --line: #e4eaf1;
  --surface: #fff;
  --canvas: #f4f7fb;
  --green: #2c9b70;
  --shadow-color: rgb(29 54 84 / 6%);
  --shadow: 0 10px 30px var(--shadow-color);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
/* Colour theme. Every themed colour is a custom property: the light value on :root, the dark value on
   html[data-theme="dark"]. Plain custom properties work in every browser that runs the application. */
:root {
  --t001: white;
  --t002: #99b6d6;
  --t003: rgb(255 255 255 / 94%);
  --t004: #8592a2;
  --t005: #fff;
  --t006: #526a82;
  --t007: #fff;
  --t008: #dc4650;
  --t009: rgb(15 35 55 / 12%);
  --t010: #dcecff;
  --t011: #33465c;
  --t012: #52677d;
  --t013: #40566e;
  --t014: #dce8f4;
  --t015: #172b41;
  --t016: #65768a;
  --t017: #66788d;
  --t018: #bfd5ec;
  --t019: rgb(29 54 84 / 10%);
  --t020: #8ca1b8;
  --t021: #d9e9f8;
  --t022: #496780;
  --t023: #f2f8fe;
  --t024: #4b91cb;
  --t025: #b7dfc7;
  --t026: #23734b;
  --t027: #f0fbf4;
  --t028: #e7c1c1;
  --t029: #a23b3b;
  --t030: #fff4f4;
  --t031: #53677d;
  --t032: #dce4ed;
  --t033: #f8fafc;
  --t034: rgb(29 54 84 / 20%);
  --t035: #7a899a;
  --t036: #283c52;
  --t037: #405873;
  --t038: #edf4fb;
  --t039: #28649f;
  --t040: #064a8b;
  --t041: #cfdae6;
  --t042: rgb(255 255 255 / 66%);
  --t043: #7890a9;
  --t044: #eaf1f8;
  --t045: #3a4f66;
  --t046: #1764a6;
  --t047: #eaf3fc;
  --t048: #8c641e;
  --t049: #fbf3df;
  --t050: #dfe7ef;
  --t051: #60748a;
  --t052: #a8c7e5;
  --t053: #435a72;
  --t054: #8b6262;
  --t055: #a34f4f;
  --t056: #7d2929;
  --t057: #edf1f5;
  --t058: #e8edf3;
  --t059: #fcfdfe;
  --t060: #445a70;
  --t061: #e5ebf2;
  --t062: #50667c;
  --t063: #9a5e5e;
  --t064: #f0cece;
  --t065: #925c5c;
  --t066: #fff8f8;
  --t067: #344c65;
  --t068: #8996a5;
  --t069: #24723a;
  --t070: #c33c3c;
  --t071: #cbd8e6;
  --t072: #f8fbff;
  --t073: #718198;
  --t074: #45617d;
  --t075: #78889a;
  --t076: #f6faff;
  --t077: #d6e0ea;
  --t078: #63768b;
  --t079: #b8c7d6;
  --t080: #586d84;
  --t081: #dce6f0;
  --t082: #eef4fa;
  --t083: #e7eef6;
  --t084: #536b82;
  --t085: #f6f9fc;
  --t086: #344d67;
  /* Morning-to-afternoon line of the weekday table: half-way from --t086 to the background (#9aa6b3). */
  --request-period-line: color-mix(in srgb, var(--t086) 50%, var(--t005));
  --t087: #8299b0;
  --t088: #315f88;
  --t089: #edf2f7;
  --t090: rgb(30 52 75 / 10%);
  --t091: #edf6ff;
  --t092: #65788e;
  --t093: #fbfcfd;
  --t094: #365d81;
  --t095: #24723a;
  --t096: #176c78;
  --t097: #d12c36;
  --t098: #a96100;
  --t099: #1765b1;
  --t100: #c85b0c;
  --t101: #a83232;
  --t102: #ad2675;
  --t103: #633c9d;
  --t104: #b7cde2;
  --t105: #e8f2fc;
  --t106: #f6f8fb;
  --t107: #536579;
  --t108: #b7dfc1;
  --t109: #eef8f0;
  --t110: #287242;
  --t111: #d5efdc;
  --t112: #ead9aa;
  --t113: #fff9e9;
  --t114: #836422;
  --t115: #f0c6c6;
  --t116: #fff7f7;
  --t117: #774343;
  --t118: #f5f9fd;
  --t119: #3e5b79;
  --t120: #73869b;
  --t121: #738398;
  --t122: #aeb9c6;
  --t123: #687c91;
  --t124: #f0f3f6;
  --t125: #8492a2;
  --t126: #4c86bb;
  --t127: #ebf4fc;
  --t128: #40566d;
  --t129: #f1dfb6;
  --t130: #795a1d;
  --t131: #52677d;
  --t132: #fbfdff;
  --t133: #718398;
  --t134: #3b536b;
  --t135: #41566c;
  --t136: #58728d;
  --t137: #f7f8fa;
  --t138: #334a61;
  --t139: #f7faff;
  --t140: #74859a;
  --t141: #ccd5df;
  --t142: #8493a4;
  --t143: #e4eaf1;
  --t144: #aebdcb;
  --t145: #f4f7fa;
  --t146: #725300;
  --t147: #b4232c;
  --t148: #856404;
  --t149: #a34c00;
  --t150: #dce5ef;
  --t151: #586e84;
  --t152: #176c78;
  --t153: #d12c36;
  --t154: #a96100;
  --t155: #1765b1;
  --t156: #c85b0c;
  --t157: #a83232;
  --t158: #ad2675;
  --t159: #633c9d;
  --t160: #9aa8b6;
  --t161: #f7f9fb;
  --t162: #405a75;
  --t163: #f7f9fc;
  --t164: #586c80;
  --t165: #c5d6e7;
  --t166: #e5f1fc;
  --t167: #5b7088;
  --t168: #f0d3d3;
  --t169: #8e3e3e;
  --t170: #d9e8f6;
  --t171: #426b8f;
  --t172: #f5faff;
  --t173: #000;
  --t174: rgb(100 116 139 / 0.05);
  --t175: #f1f8f3;
  --t176: #c9e8d7;
  --t177: #27764d;
  --t178: #f2fbf6;
  --t179: #a34f4f; /* red button (danger action) under white text; the same reds as --t055/--t056 */
  --t180: #7d2929;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4ebf3;
  --muted: #9fb0c3;
  --blue: #6db3f2;
  --blue-dark: #a9d2f8;
  --blue-solid: #1b6fc2;
  --warn-bg: #3a2410;
  --warn-border: #b8741f;
  --warn-text: #ffbe73;
  --dot-unread: #ff7b7b;
  --ok-bg: #12301f;
  --ok-border: #2d6c49;
  --ok-text: #7fdba6;
  --closed-bg: #1c2633;
  --closed-border: #354558;
  --closed-text: #aebccd;
  --blue-pale: #17314b;
  --line: #27374c;
  --surface: #162231;
  --canvas: #0e1621;
  --green: #46c595;
  --shadow-color: rgb(0 0 0 / 45%);
  --t001: #131d28;
  --t002: #7f9dbd;
  --t003: rgb(19 29 40 / 0.94);
  --t004: #949da8;
  --t005: #131d28;
  --t006: #a0aebb;
  --t007: #1c252e;
  --t008: #c0313b;
  --t009: rgb(0 0 0 / 0.36);
  --t010: #132943;
  --t011: #bac6d3;
  --t012: #8796a6;
  --t013: #aebbc9;
  --t014: #23374c;
  --t015: #cddae7;
  --t016: #99a3ae;
  --t017: #97a2ae;
  --t018: #2c4661;
  --t019: rgb(0 0 0 / 0.3);
  --t020: #8d9daf;
  --t021: #1c3851;
  --t022: #a2b3c1;
  --t023: #122333;
  --t024: #2c72b3;
  --t025: #39644a;
  --t026: #acdcc4;
  --t027: #193122;
  --t028: #5d3131;
  --t029: #c88d8d;
  --t030: #340f0f;
  --t031: #a3aebb;
  --t032: #2d3947;
  --t033: #1a2129;
  --t034: rgb(0 0 0 / 0.6);
  --t035: #949da8;
  --t036: #c1cddb;
  --t037: #abb9c8;
  --t038: #192633;
  --t039: #90b3d5;
  --t040: #2480d8;
  --t041: #344251;
  --t042: rgb(19 29 40 / 0.66);
  --t043: #8e9eae;
  --t044: #1d2934;
  --t045: #b3c0cd;
  --t046: #8cb9df;
  --t047: #172737;
  --t048: #dbb676;
  --t049: #3e3419;
  --t050: #2b3845;
  --t051: #9aa5b2;
  --t052: #335371;
  --t053: #abb8c6;
  --t054: #b09999;
  --t055: #bb8b8b;
  --t056: #d7a6a6;
  --t057: #27303a;
  --t058: #28323e;
  --t059: #161f27;
  --t060: #acb9c6;
  --t061: #283441;
  --t062: #a4b0bd;
  --t063: #b28f8f;
  --t064: #562727;
  --t065: #b49595;
  --t066: #320e0e;
  --t067: #b4c3d1;
  --t068: #949da8;
  --t069: #addbba;
  --t070: #c57878;
  --t071: #334354;
  --t072: #0e1e32;
  --t073: #939caa;
  --t074: #a4b4c4;
  --t075: #949da9;
  --t076: #0f1f33;
  --t077: #303e4c;
  --t078: #99a4b0;
  --t079: #425261;
  --t080: #9eaab7;
  --t081: #293949;
  --t082: #1b2632;
  --t083: #202a35;
  --t084: #8c9cab;
  --t085: #19222c;
  --t086: #b3c2d1;
  /* Dark theme: the line is brighter than --t086, half-way to white (#d9e0e8). */
  --request-period-line: color-mix(in srgb, var(--t086) 50%, #fff);
  --t087: #647789;
  --t088: #9eb9d1;
  --t089: #1f2830;
  --t090: rgb(0 0 0 / 0.3);
  --t091: #102539;
  --t092: #97a2ae;
  --t093: #1a2026;
  --t094: #a2b9ce;
  --t095: #b8e0c3;
  --t096: #b2dfe6;
  --t097: #eaaeb2;
  --t098: #fad39e;
  --t099: #afcce9;
  --t100: #f4c6a4;
  --t101: #e1b7b7;
  --t102: #e9afd1;
  --t103: #c8bbdd;
  --t104: #364e64;
  --t105: #172839;
  --t106: #1b212a;
  --t107: #a5b0bb;
  --t108: #396444;
  --t109: #1e3022;
  --t110: #add8bc;
  --t111: #28412f;
  --t112: #715f2e;
  --t113: #3b3011;
  --t114: #d6b97a;
  --t115: #5d2727;
  --t116: #320f0f;
  --t117: #c6a8a8;
  --t118: #16222f;
  --t119: #a7b8c9;
  --t120: #929daa;
  --t121: #939da9;
  --t122: #4a545f;
  --t123: #95a0ac;
  --t124: #20272e;
  --t125: #949da8;
  --t126: #7da0bf;
  --t127: #172736;
  --t128: #aebbc9;
  --t129: #6a5526;
  --t130: #dfcda9;
  --t131: #a3afbc;
  --t132: #0e1f30;
  --t133: #939daa;
  --t134: #b0becc;
  --t135: #afbbc8;
  --t136: #98a7b7;
  --t137: #1d2128;
  --t138: #b7c5d2;
  --t139: #0f1c32;
  --t140: #939daa;
  --t141: #353e49;
  --t142: #939da9;
  --t143: #2a3441;
  --t144: #46535f;
  --t145: #1c242b;
  --t146: #f3e1ae;
  --t147: #ebadb1;
  --t148: #f0dda8;
  --t149: #fac99e;
  --t150: #2a3948;
  --t151: #9eabb7;
  --t152: #aadce3;
  --t153: #db757c;
  --t154: #f6b45a;
  --t155: #85b2de;
  --t156: #ed9d63;
  --t157: #cd8989;
  --t158: #da76b1;
  --t159: #a690c8;
  --t160: #929eaa;
  --t161: #1c2228;
  --t162: #a9b8c8;
  --t163: #19202a;
  --t164: #a1acb8;
  --t165: #32465a;
  --t166: #172a3b;
  --t167: #9ba7b5;
  --t168: #512828;
  --t169: #c89999;
  --t170: #203950;
  --t171: #98b0c5;
  --t172: #0f2134;
  --t173: #fafafa;
  --t174: rgb(124 135 151 / 0.05);
  --t175: #1f2d23;
  --t176: #315742;
  --t177: #aad9c0;
  --t178: #1a2f23;
  --t179: #b54848; /* red button (danger action) under white text */
  --t180: #a83c3c;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #77baff; outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; width: 258px; flex-direction: column;
  padding: 23px 17px 18px; color: #eaf3ff; background: linear-gradient(165deg, #073b72 0%, #062f5d 55%, #05284f 100%);
  overflow-y: auto; overscroll-behavior: contain; /* short windows scroll the panel instead of overlapping the bottom items */
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 9px 21px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.brand__logo { width: 39px; height: 39px; object-fit: contain; border-radius: 50%; background: var(--t001); }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.sidebar__caption { padding: 27px 11px 11px; color: var(--t002); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 45px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #d3e2f3; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: rgb(255 255 255 / 9%); color: #fff; }
.nav-link[aria-current="page"] { color: #fff; background: #145b9f; box-shadow: inset 3px 0 #8dc7ff; }
.nav-link__icon { display: grid; width: 22px; height: 22px; place-items: center; color: #9fc8ef; }
.nav-link__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sidebar__bottom { display: grid; gap: 14px; margin-top: auto; padding-top: 14px; }
.sidebar__status { display: flex; align-items: center; gap: 9px; padding: 14px 11px 0; border-top: 1px solid rgb(255 255 255 / 14%); color: #a9c0da; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6bd6a3; box-shadow: 0 0 0 4px rgb(107 214 163 / 13%); }

.main-column { min-height: 100vh; margin-left: 258px; display: flex; flex-direction: column; }
html.sidebar-animate .main-column { transition: margin-left .2s ease; } /* only while the user toggles the panel */
.sidebar { transition: transform .2s ease, visibility 0s linear 0s; }
@media (min-width: 921px) {
  /* Manual collapse on a wide screen; the saved choice is applied by theme.js before the first paint. */
  html.sidebar-collapsed .sidebar { visibility: hidden; transform: translateX(-102%); transition: transform .2s ease, visibility 0s linear .2s; }
  html.sidebar-collapsed .main-column { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html.sidebar-animate .main-column, .sidebar { transition: none; } }
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 20px; min-height: 76px; padding: 9px 38px; container-type: inline-size; border-bottom: 1px solid var(--line); background: var(--t003); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--t004); font-size: 13px; white-space: nowrap; }
.breadcrumb__slash { color: #bac4d0; }
.breadcrumb strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.topbar__actions { display: flex; grid-column: 3 / span 2; align-items: center; justify-self: end; gap: 18px; }
.topbar__tools { display: flex; align-items: center; gap: 10px; }
/* Until app.js fills the corner (setStaticText), the empty language button and the placeholder circle stay invisible; the space is kept. */
html:not([data-header-ready]) .topbar__tools, html:not([data-header-ready]) .topbar .profile { visibility: hidden; }
.topbar > .breadcrumb { grid-column: 2; min-width: 0; }
.company-control { display: grid; gap: 4px; }
.company-control[hidden] { display: none; }
.company-control > span { color: var(--muted); font-size: 11px; }
.company-control select { max-width: 180px; padding: 3px 22px 3px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.role-control { display: grid; gap: 4px; }
.role-control[hidden] { display: none; }
.role-control label { color: var(--muted); font-size: 11px; }
.role-control select { max-width: 190px; padding: 3px 22px 3px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.language-toggle { display: inline-flex; min-width: 61px; height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); background: var(--t005); cursor: pointer; font-size: 11px; font-weight: 700; }
.language-toggle:hover { border-color: #9ebcda; background: var(--blue-pale); }
.notifications-button { position: relative; display: grid; width: 38px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--t006); background: var(--t005); cursor: pointer; }
.notifications-button:hover, .notifications-button.is-active { border-color: #9ebcda; color: var(--blue); background: var(--blue-pale); }
.notifications-button[hidden] { display: none; }
.notifications-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.notifications-button__badge { position: absolute; top: -6px; right: -6px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid var(--t007); border-radius: 10px; color: #fff; background: var(--t008); font-size: 9px; font-weight: 700; line-height: 1; }
.language-flag { display: block; width: 19px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px var(--t009); }
.language-flag svg { display: block; width: 100%; height: 100%; }
.profile { display: flex; align-items: center; gap: 9px; padding-left: 17px; border-left: 1px solid var(--line); }
.profile__avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--blue-dark); background: var(--t010); font-size: 12px; font-weight: 700; }
/* The circle opens the personal account once signed in (app.js syncProfileAvatar); a picture fills it. */
button.profile__avatar { flex: 0 0 auto; padding: 0; border: 0; overflow: hidden; font-family: inherit; cursor: pointer; }
.profile__avatar img, .personal-account__avatar img, .company-banner__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile__name { max-width: 130px; overflow: hidden; color: var(--t011); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { display: grid; width: 34px; height: 34px; flex: 0 0 auto; align-content: center; justify-items: center; gap: 4px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--t005); cursor: pointer; }
.menu-toggle span { width: 14px; height: 1.5px; background: var(--t012); }
.theme-switch { display: inline-flex; height: 36px; align-items: center; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--t005); }
.theme-switch__button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: var(--t006); background: transparent; cursor: pointer; }
.theme-switch__button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-switch__button:hover { color: var(--blue); background: var(--blue-pale); }
.theme-switch__button[aria-pressed="true"] { color: var(--blue); background: var(--blue-pale); box-shadow: inset 0 0 0 1px #9ebcda; }

.content { width: 100%; max-width: none; min-width: 0; flex: 1; margin: 0 auto; padding: 40px 38px 56px; }
.app-loading { display: grid; min-height: min(62vh, 680px); place-items: center; }
.app-loading__card { display: flex; min-width: 250px; align-items: center; gap: 14px; padding: 19px 23px; border: 1px solid var(--line); border-radius: 12px; color: var(--t013); background: var(--t005); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.app-loading__spinner { width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid var(--t014); border-top-color: var(--blue); border-right-color: #72a9dc; border-radius: 50%; animation: app-loading-spin .85s linear infinite; }
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-loading__spinner { animation-duration: 2.5s; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 0; color: var(--t015); font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.page-description { max-width: 690px; margin: 10px 0 0; color: var(--t016); font-size: 14px; line-height: 1.65; }
.section-label { margin: 0 0 14px; color: var(--t017); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.overview-card { position: relative; display: flex; min-height: 184px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.overview-card:hover { transform: translateY(-2px); border-color: var(--t018); box-shadow: 0 15px 35px var(--t019); }
.overview-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-card__icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-pale); }
.overview-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.overview-card__arrow { color: var(--t020); font-size: 18px; }
.overview-card__title { margin: 18px 0 6px; font-size: 16px; font-weight: 600; }
.overview-card__text { margin: 0; color: var(--t016); font-size: 13px; line-height: 1.55; }
.section-panel { padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--t005); box-shadow: var(--shadow); }
.section-panel__icon { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-pale); }
.section-panel__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.section-panel__title { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.section-panel__text { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 14px 16px; border: 1px solid var(--t021); border-radius: 9px; color: var(--t022); background: var(--t023); font-size: 13px; line-height: 1.6; }
.notice__mark { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--t024); font-size: 11px; font-weight: 700; }
.requests-page-content { display: contents; }
.request-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; margin: 23px 0 18px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--t005); box-shadow: var(--shadow); }
.weekend-letter-status { display: grid; min-height: 42px; align-content: center; gap: 3px; padding: 6px 12px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.weekend-letter-status strong { font-size: 13px; }
.weekend-letter-status > span { font-size: 11px; font-weight: 400; }
.weekend-letter-status--open { border-color: var(--t025); color: var(--t026); background: var(--t027); }
.weekend-letter-status--closed { border-color: var(--t028); color: var(--t029); background: var(--t030); }
.request-filter { display: grid; min-width: 190px; gap: 7px; color: var(--t031); font-size: 12px; font-weight: 600; }
.request-filter input, .request-filter select { min-height: 42px; padding: 0 11px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font-size: 14px; }
.request-filter select:disabled { opacity: 1; }
.russian-date-field { position: relative; display: block; width: 100%; min-width: 0; }
.russian-date-field > [data-russian-date-display] { width: 100%; min-width: 0; padding-right: 44px; }
.russian-date-field__calendar { position: absolute; top: 50%; right: 3px; display: grid; width: 34px; height: 34px; transform: translateY(-50%); place-items: center; border: 0; border-radius: 6px; color: var(--t006); background: transparent; cursor: pointer; }
.russian-date-field__calendar:hover { color: var(--blue-dark); background: var(--blue-pale); }
.russian-date-field__calendar:disabled { cursor: not-allowed; opacity: .5; }
.russian-date-field__calendar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.russian-date-calendar { position: fixed; z-index: 10000; width: min(330px, calc(100vw - 24px)); padding: 12px; border: 1px solid var(--t032); border-radius: 10px; background: var(--t005); box-shadow: 0 14px 36px var(--t034); }
.russian-date-calendar[hidden] { display: none; }
.russian-date-calendar__header { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 6px; margin-bottom: 10px; }
.russian-date-calendar__selectors { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 6px; }
.russian-date-calendar__selectors label { display: grid; min-width: 0; gap: 2px; color: var(--t035); font-size: 9px; font-weight: 600; }
.russian-date-calendar__selectors select { width: 100%; min-width: 0; height: 30px; padding: 0 5px; border: 1px solid var(--t032); border-radius: 6px; color: var(--t036); background: var(--t033); font: inherit; font-size: 12px; }
.russian-date-calendar__header button, .russian-date-calendar__day { display: grid; min-width: 0; min-height: 34px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: var(--t037); background: transparent; cursor: pointer; }
.russian-date-calendar__header button { font-size: 24px; line-height: 1; }
.russian-date-calendar__header button:hover:not(:disabled), .russian-date-calendar__day:hover:not(:disabled) { background: var(--t038); }
.russian-date-calendar__header button:disabled, .russian-date-calendar__day:disabled { color: #bdc7d2; cursor: not-allowed; }
.russian-date-calendar__weekdays, .russian-date-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.russian-date-calendar__weekdays[hidden], .russian-date-calendar__days[hidden] { display: none; }
.russian-date-calendar__weekdays { margin-bottom: 4px; color: var(--t035); font-size: 11px; font-weight: 600; text-align: center; }
.russian-date-calendar__weekdays span { padding: 5px 0; }
.russian-date-calendar__day { aspect-ratio: 1; font-size: 13px; }
.russian-date-calendar__day.is-today { box-shadow: inset 0 0 0 1px #98bde0; }
.russian-date-calendar__day.is-selected { color: #fff; background: #3475b7; }
.russian-date-calendar__day.is-selected:hover { background: #28649f; }
.russian-date-calendar__footer { display: flex; justify-content: flex-end; margin-top: 8px; }
.russian-date-calendar__footer button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--t039); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.russian-date-calendar__footer button:hover:not(:disabled) { background: var(--t038); }
.russian-date-calendar__footer button:disabled { color: #bdc7d2; cursor: not-allowed; }
.primary-button { min-height: 42px; margin-left: auto; padding: 0 17px; border: 0; border-radius: 7px; color: #fff; background: var(--blue-solid); cursor: pointer; font-size: 13px; font-weight: 600; transition: background .15s ease, transform .15s ease; }
.primary-button:hover:not(:disabled) { background: var(--t040); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.danger-button { background: var(--t179); }
.danger-button:hover:not(:disabled) { background: var(--t180); }
.request-empty { display: grid; min-height: 190px; align-content: center; justify-items: center; padding: 28px 18px; border: 1px dashed var(--t041); border-radius: 12px; background: var(--t042); text-align: center; }
.request-empty__symbol { display: grid; width: 36px; height: 36px; margin-bottom: 12px; place-items: center; border-radius: 50%; color: var(--t043); background: var(--t044); font-size: 23px; font-weight: 300; }
.request-empty h2 { margin: 0; color: var(--t045); font-size: 16px; font-weight: 600; }
.request-empty p { max-width: 440px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.request-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.request-rule { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--t005); }
.request-rule__tag { display: inline-flex; padding: 5px 8px; border-radius: 5px; color: var(--t046); background: var(--t047); font-size: 12px; font-weight: 600; }
.request-rule__tag--weekend { color: var(--t048); background: var(--t049); }
.request-rule p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.request-notice { margin-top: 14px; }
.module-card, .chat-panel { min-width: 0; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--t005); box-shadow: var(--shadow); }
.module-card + .module-card { margin-top: 14px; }
.directory-editor { display: grid; gap: 14px; margin-top: 14px; }
.company-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 17px; }
.directory-company-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 8px; margin-left: auto; }
.directory-company-actions .primary-button, .directory-company-actions .secondary-button { min-height: 38px; margin: 0; }
.company-choice { min-height: 36px; padding: 0 12px; border: 1px solid var(--t050); border-radius: 7px; color: var(--t051); background: var(--t005); cursor: pointer; font-size: 12px; }
.company-choice:hover, .company-choice.is-selected { border-color: var(--t052); color: var(--blue-dark); background: var(--blue-pale); }
.equipment-company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; padding: 0 20px 18px; }
.equipment-company-card { display: grid; min-width: 0; min-height: 68px; align-content: center; gap: 5px; padding: 11px 13px; border: 1px solid var(--t050); border-radius: 9px; color: var(--t053); background: var(--t005); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.equipment-company-card:hover, .equipment-company-card.is-selected { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.equipment-company-card.is-selected { box-shadow: inset 3px 0 0 var(--blue); }
.equipment-company-card__name { overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.4; }
.equipment-company-card__hint { color: var(--muted); font-size: 11px; }
.department-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.department-choice { min-height: 34px; }
.text-action { padding: 6px 0; border: 0; color: var(--t054); background: transparent; cursor: pointer; font-size: 12px; }
.text-action + .text-action { margin-left: 14px; }
.text-action--danger { color: var(--t055); }
.text-action--danger:hover { color: var(--t056); text-decoration: underline; }
.account-actions { display: inline-flex; align-items: center; justify-content: center; gap: 16px; white-space: nowrap; }
.account-actions > .text-action + .text-action, .schedule-staff-actions > .text-action + .text-action, .directory-group__actions > .text-action + .text-action, .record-chip__actions > .text-action + .text-action, .letter-version__actions > .text-action + .text-action { margin-left: 0; }
.account-password-hint { margin: 0; color: var(--muted); font-size: 12px; }
.local-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px var(--form-gutter); border-top: 1px solid var(--t057); }
.local-form--stack { align-items: stretch; flex-direction: column; }
.local-form__title { margin: 0 0 2px; color: var(--t036); font-size: 15px; font-weight: 600; }
.local-form .request-filter { flex: 1; min-width: 150px; }
.weekend-manual-duty-form { align-items: center; border-top: 0; }
.weekend-manual-duty-form__field { flex: 1; min-width: 190px; }
.weekend-manual-duty-form__field .request-filter { min-width: 0; }
.weekend-manual-duty-form__help { margin: 7px 0 0; color: var(--t016); font-size: 12px; line-height: 1.5; }
.local-form input { min-height: 42px; padding: 0 11px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t005); font-size: 14px; }
.local-form .primary-button { margin: 0; }
.directory-groups { display: grid; gap: 13px; }
.directory-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--t005); box-shadow: var(--shadow); }
.directory-group__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--t057); }
.directory-group__heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.directory-group__heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.directory-group__actions, .record-chip__actions { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 14px; white-space: nowrap; }
.directory-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.directory-item { padding: 13px; border: 1px solid var(--t058); border-radius: 9px; background: var(--t059); }
.directory-item__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.directory-item h3 { margin: 0 0 9px; color: var(--t060); font-size: 13px; font-weight: 600; }
.directory-item__buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.directory-copy-list { min-width: 0; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line, #d7e0ea); border-radius: 9px; }
.directory-copy-list legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.directory-copy-list ul { display: grid; gap: 4px; max-height: min(40vh, 320px); margin: 6px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.directory-copy-list label { display: flex; align-items: flex-start; gap: 8px; padding: 4px 2px; font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.directory-copy-list input[type="checkbox"] { flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; } /* beats the generic ".local-form input" size */
.directory-copy-all { border-bottom: 1px solid var(--line, #d7e0ea); font-weight: 600; }
.directory-copy-result { padding: 18px 20px 4px; }
.directory-copy-result .schedule-modal-actions { padding-inline: 0; }
.directory-copy-result p { margin: 0 0 6px; }
.directory-copy-details { margin: 6px 0; font-size: 13px; }
.directory-copy-details ul { margin: 6px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
.directory-item__heading h3 { margin: 0; }
.directory-item .local-form { padding: 10px 0 0; border-top: 0; }
.directory-item .local-form input { min-width: 100%; }
.record-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.directory-item > .record-chip-list { flex-direction: column; }
.directory-item > .record-chip-list > .record-chip { width: 100%; justify-content: space-between; }
.record-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--t061); border-radius: 6px; color: var(--t062); background: var(--t005); font-size: 12px; overflow-wrap: anywhere; }
.record-chip button { border: 0; color: var(--t063); background: none; cursor: pointer; font-size: 12px; }
.directory-records--instruments {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.directory-records--instruments::-webkit-scrollbar { display: none; }
.instrument-row-list { width: 100%; min-width: 0; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.instrument-row { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(145px, 1.2fr) minmax(100px, .8fr) minmax(120px, 1fr) minmax(145px, 1.1fr) minmax(115px, .9fr) minmax(145px, 1.1fr) minmax(125px, .9fr) minmax(120px, .9fr) auto minmax(105px, .8fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--t061); border-radius: 7px; color: var(--t062); background: var(--t005); font-size: 12px; }
.instrument-row--expired { border-color: var(--t064); color: var(--t065); background: var(--t066); }
.instrument-row > * { min-width: 0; overflow-wrap: anywhere; }
.instrument-row__name { color: var(--t067); }
.instrument-row__certificate { color: var(--blue); text-decoration: underline; }
.instrument-row__missing { color: var(--t068); }
.instrument-row__actions { display: flex; align-items: center; gap: 12px; overflow: visible; }
.instrument-row__actions .text-action { white-space: nowrap; }
.instrument-row__countdown { color: var(--t069); font-size: 11px; text-align: right; }
.instrument-row__countdown.is-expired { color: var(--t070); }
@media (max-width: 1750px) {
  .instrument-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px 12px; }
  .instrument-row__actions { flex-wrap: wrap; }
  .instrument-row__countdown { text-align: left; }
}
.record-chip__file { display: inline-block; max-width: 100%; margin-top: 5px; color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.record-chip__file[aria-disabled="true"] { color: var(--t068); text-decoration: none; cursor: wait; }
.certificate-upload { padding: 12px; border: 1px dashed var(--t071); border-radius: 8px; background: var(--t072); }
.certificate-upload small, .certificate-upload output { display: block; margin-top: 6px; color: var(--t073); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.certificate-upload output { color: var(--t074); }
.local-empty { padding: 16px; color: var(--t075); font-size: 12px; line-height: 1.55; text-align: center; }
.directory-records { padding: 0 20px 18px; }
.module-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 20px; }
.module-card__heading h2 { margin: 0; color: var(--t036); font-size: 16px; font-weight: 600; }
.module-card__heading p { margin: 6px 0 0; color: var(--t016); font-size: 13px; line-height: 1.6; }
.secondary-button { min-height: 40px; padding: 0 14px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t074); background: var(--t005); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.secondary-button:hover:not(:disabled) { border-color: var(--t052); background: var(--t076); }
.secondary-button:disabled { cursor: not-allowed; opacity: .55; }
/* A link styled as a button ("Download PDF"): unlike a <button>, a link does not centre its text by itself. */
a.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.table-scroll { width: 100%; overflow-x: auto; border-top: 1px solid var(--t057); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 15px; border-bottom: 1px solid var(--t077); color: var(--t078); background: var(--t033); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 5px 15px; border-top: 1px solid var(--t079); color: var(--t080); font-size: 13px; }
.data-table tbody > tr.request-table__row--baek > td { background-color: rgb(46 160 67 / 10%); }
.data-table tbody > tr.request-table__row--cancelled > td { color: var(--muted); }
/* relative: the hidden tip text (absolute) stays inside the scrolling table, or the phone page scrolls sideways. */
.request-cancel-mark { position: relative; display: flex; min-width: 96px; max-width: 160px; margin-inline: auto; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; }
.request-cancel-mark input { width: 18px; height: 18px; margin: 0; }
.request-cancel-mark__line { display: inline-flex; align-items: center; gap: 2px; }
.request-cancel-mark__reason { font-weight: 600; }
/* A 16px circle inside a 24px button: big enough to tap. flex: none: a wrapped label must not squeeze the circle into an oval. */
.request-cancel-mark__info { position: relative; display: inline-flex; flex: none; width: 24px; min-width: 24px; height: 24px; min-height: 24px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; color: var(--t078); background: transparent; cursor: help; font: italic 700 11px/1 Georgia, "Times New Roman", serif; }
/* Absolute, not a grid cell: the "i" text node cannot share a grid cell with ::before and dropped to a second row. */
.request-cancel-mark__info::before { position: absolute; inset: 4px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
.request-cancel-mark__info:hover, .request-cancel-mark__info[aria-expanded="true"] { color: var(--t086); }
.request-cancel-mark__info:focus-visible { outline: 2px solid #8eb6dc; outline-offset: 0; border-radius: 50%; }
.cancel-mark-tooltip { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 7px 10px; border: 1px solid var(--t079); border-radius: 7px; color: var(--t080); background: var(--t033); box-shadow: var(--shadow); font-size: 12px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; }
.cancel-mark-modal { width: min(520px, 100%); }
.cancel-mark-options { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.cancel-mark-option { display: grid; gap: 6px; }
.cancel-mark-option--other { padding-top: 12px; border-top: 1px solid var(--t057); }
.cancel-mark-option__note { width: 100%; padding: 8px 11px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font: inherit; font-size: 14px; }
.cancel-mark-option__note:disabled { opacity: .55; }
.data-table .table-empty { height: 110px; color: var(--t068); text-align: center; }
.request-table { min-width: 1220px; text-align: center; }
.request-table th, .request-table td { text-align: center; vertical-align: middle; }
.request-table tbody > tr:not(.request-table__group) > td { padding-block: 3px; line-height: 1.25; }
.request-table > tbody > tr:not(.request-table__group) > td { border-top: 0; border-bottom: 1px solid var(--t079); }
.request-table > tbody > tr.request-table__group--division > th { border-bottom: 1px solid var(--t079); }
/* Sorting headings: the button takes the look of the heading and its click area is the whole cell; the arrow sits in the
   bottom padding, so the fixed column widths and the heading height stay. */
/* padding-box: a positioned cell of a collapsed table must not paint its background over the 2px line (Firefox). */
.request-table > thead { background: var(--t033); }
.request-table > thead > tr > th { position: relative; background-clip: padding-box; }
.request-sort { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: inherit; cursor: pointer; }
.request-sort::after { position: absolute; inset: 0; content: ""; }
.request-sort:hover { text-decoration: underline; text-underline-offset: 3px; }
.request-sort:focus-visible { outline: none; }
.request-sort:focus-visible::after { outline: 2px solid #8eb6dc; outline-offset: -2px; }
th[aria-sort] > .request-sort::before { position: absolute; bottom: 3px; left: 50%; border: 4px solid transparent; content: ""; transform: translateX(-50%); pointer-events: none; }
th[aria-sort="ascending"] > .request-sort::before { border-top-width: 0; border-bottom: 6px solid currentColor; }
th[aria-sort="descending"] > .request-sort::before { border-bottom-width: 0; border-top: 6px solid currentColor; }
.request-table__group th { padding: 12px 15px; border-top: 1px solid var(--t081); border-bottom: 1px solid var(--t081); background: var(--t082); white-space: normal; }
.request-table__division, .request-table__company { display: block; }
.request-table__group--company th { background: var(--t083); }
/* Horizontal dividers of the weekday table: under the header and between subcontractors 2px,
   morning to afternoon inside a division also 2px in its own colour (--request-period-line: lighter in the light theme, brighter in the dark one). 2px always wins over the 1px row line above it. */
.request-table > thead > tr > th { border-bottom: 2px solid var(--t086); }
.request-table > tbody + tbody > tr.request-table__group--company > th { border-top: 2px solid var(--t086); }
.request-table > tbody > tr[data-period-start] > td { border-top: 2px solid var(--request-period-line); }
.request-table__group--division th { padding-block: 8px; border-top: 0; background: var(--t085); }
.request-table__division { color: var(--t086); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.request-table__company { color: var(--t086); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.request-table__single { display: block; white-space: nowrap; }
.request-table__construction { min-width: 180px; max-width: 400px; margin-inline: auto; overflow-wrap: anywhere; white-space: pre-wrap; text-align: center; }
.request-table__lines { display: flex; min-width: 130px; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.request-table--general .request-table__lines--receiver { transform: translateX(6px); }
.request-table__lines > span { white-space: nowrap; }
.request-table__lines select { max-width: 240px; }
.request-table__lines select[data-request-responsible] { width: 100%; min-height: 22px; padding: 1px 26px; border: 1px solid var(--t079); border-radius: 5px; color: var(--t080); background-color: var(--t033); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23586d84' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px 8px; appearance: none; -webkit-appearance: none; font-size: 12px; line-height: 1.2; text-align: center; text-align-last: center; cursor: pointer; }
.request-table__lines select[data-request-responsible] option { text-align: center; }
.request-table__lines select[data-request-responsible]:hover { border-color: var(--t087); background-color: var(--t005); }
.request-table__lines select[data-request-responsible]:focus-visible { outline: 2px solid #8eb6dc; outline-offset: 1px; }
.request-table__actions { display: flex; min-width: 92px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.request-table__actions > span { min-height: 18px; }
.request-table__actions .text-action { margin: 0; padding: 2px 4px; }
/* Fixed journal columns (owner task 2026-11-08): exactly this wide, padding included, whatever the text; th and td carry
   the class. The other columns still size to their content. */
.request-col--start { width: 64px; min-width: 64px; max-width: 64px; }
.request-col--duration { width: 112px; min-width: 112px; max-width: 112px; }
.request-col--object { width: 88px; min-width: 88px; max-width: 88px; }
.request-col--project { width: 104px; min-width: 104px; max-width: 104px; }
.request-col--time { width: 92px; min-width: 92px; max-width: 92px; }
/* Stronger than .data-table th/td and .weekend-request-table td; the other columns keep their padding. */
.data-table :is(th, td):is(.request-col--start, .request-col--duration, .request-col--time, .request-col--object, .request-col--project) { padding-inline: 5px; }
/* A long object name wraps inside the column instead of widening it. */
.request-col--object .request-table__single { white-space: normal; overflow-wrap: anywhere; }
.request-field-error { color: var(--t169); font-size: 12px; font-weight: 500; line-height: 1.4; }
.request-field-error[hidden] { display: none; }
.schedule-staff-table { width: 100%; text-align: center; }
.schedule-staff-table th, .schedule-staff-table td { text-align: center; vertical-align: middle; }
.schedule-staff-table td { padding-block: 2px; }
.schedule-staff-table .schedule-staff-spacer td { height: 28px; padding: 0; }
.schedule-annual-table .schedule-annual-spacer td { height: 28px; padding: 0; }
.schedule-staff-employee-edit { padding: 0; border: 0; color: var(--t088); background: transparent; font: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.schedule-staff-employee-edit:hover { text-decoration-style: solid; }
.schedule-staff-employee-edit:focus-visible { outline: 2px solid #8eb6dc; outline-offset: 2px; }
.schedule-staff-table .text-action { padding-block: 4px; }
.schedule-staff-table td > * { margin-inline: auto; }
.schedule-staff-actions { display: flex; align-items: center; justify-content: center; gap: 14px; white-space: nowrap; }
.module-notice { margin-top: 14px; }
.view-pills { display: flex; width: max-content; max-width: 100%; gap: 3px; margin: 0 0 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--t089); }
.view-pill { min-height: 36px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--t016); background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.view-pill.is-active { color: var(--blue-dark); background: var(--t005); box-shadow: 0 1px 3px var(--t090); }
.view-pill:disabled { opacity: 1; }
.company-banner { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border: 1px solid var(--t014); border-radius: 12px; background: linear-gradient(110deg, var(--t091), var(--t005) 72%); }
.company-banner__icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--blue); background: var(--t005); }
.company-banner__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.company-banner__icon.has-picture { overflow: hidden; border-radius: 50%; }
.company-banner__copy, .company-banner > div { min-width: 0; flex: 1; }
.company-banner p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.company-banner h2 { margin: 0; color: var(--t067); font-size: 15px; font-weight: 600; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 20px 17px; }
.filter-row .request-filter { min-width: 140px; }
.schedule-month-stepper { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.filter-row .schedule-month-stepper .request-filter { flex: 1 1 auto; width: auto; min-width: 150px; }
.schedule-month-step { display: grid; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--t032); border-radius: 7px; color: var(--t037); background: var(--t033); font-size: 24px; line-height: 1; cursor: pointer; }
.schedule-month-step:hover:not(:disabled) { background: var(--t038); }
.schedule-month-step:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.schedule-month-step:disabled { color: #bdc7d2; cursor: not-allowed; }
.filter-row--audit { padding-top: 0; align-items: flex-end; }
/* Task 18: "Apply" is as tall as the fields beside it and sits on their bottom line. */
.filter-row--audit .request-filter { flex: 1 1 140px; }
.filter-row--audit select { height: 42px; } /* Safari ignores min-height on a native list */
.filter-row--audit .secondary-button { flex: 0 0 auto; min-height: 42px; }
.schedule-codes { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px 17px; border-top: 1px solid var(--t057); }
.schedule-code { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px; border: 1px solid var(--t061); border-radius: 6px; color: var(--t092); background: var(--t093); font-size: 11px; }
.schedule-code strong { color: var(--t094); font-size: 12px; }
.schedule-code[data-code-tone="hours-8"] { border-color: rgba(76, 175, 80, .38); color: var(--t095); background: rgba(76, 175, 80, .25); }
.schedule-code[data-code-tone="hours-7"] { border-color: rgba(38, 166, 154, .38); color: var(--t096); background: rgba(38, 166, 154, .25); }
.schedule-code[data-code-tone="day-off"] { border-color: rgba(244, 67, 54, .38); color: var(--t097); background: rgba(244, 67, 54, .25); }
.schedule-code[data-code-tone="holiday"] { border-color: rgba(255, 193, 7, .45); color: var(--t098); background: rgba(255, 193, 7, .25); }
.schedule-code[data-code-tone="leave"] { border-color: rgba(33, 150, 243, .4); color: var(--t099); background: rgba(33, 150, 243, .25); }
.schedule-code[data-code-tone="rvd"] { border-color: rgba(255, 152, 0, .4); color: var(--t100); background: rgba(255, 152, 0, .25); }
.schedule-code[data-code-tone="unpaid"] { border-color: rgba(239, 83, 80, .4); color: var(--t101); background: rgba(239, 83, 80, .25); }
.schedule-code[data-code-tone="sick"] { border-color: rgba(233, 30, 99, .4); color: var(--t102); background: rgba(233, 30, 99, .25); }
.schedule-code[data-code-tone="business-trip"] { border-color: rgba(126, 87, 194, .4); color: var(--t103); background: rgba(126, 87, 194, .25); }
.schedule-code[data-code-tone] strong { color: inherit; }
.table-tools { display: flex; justify-content: flex-end; padding: 0 20px 14px; }
.table-tools input { width: min(100%, 250px); min-height: 38px; padding: 0 10px; border: 1px solid var(--t032); border-radius: 7px; background: var(--t033); font-size: 13px; }
.upload-panel { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px dashed var(--t104); border-radius: 12px; background: var(--t072); }
.upload-panel__icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: var(--t105); }
.upload-panel__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.upload-panel__copy { flex: 1; }
.upload-panel__copy h2 { margin: 0; font-size: 15px; font-weight: 600; }
.upload-panel__copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.letter-upload .upload-panel__copy { display: grid; gap: 10px; }
.letter-upload .request-filter { max-width: 520px; }
.letter-upload__month-controls { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(150px, .8fr) minmax(0, 2.2fr); align-items: end; gap: 10px; }
.letter-upload__year, .letter-upload__month-count, .letter-upload__month { min-width: 0; }
.letter-upload__year select { width: 100%; }
.letter-upload__month-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.letter-upload__month select, .letter-upload__month-count select { width: 100%; }
.letter-upload .letter-upload__month-count select, .letter-upload .letter-upload__month select { width: 66.6667%; }
.letter-upload__file-row { display: grid; grid-template-columns: minmax(0, 520px) auto; align-items: end; justify-content: start; gap: 10px; }
.letter-upload__file-row .request-filter { width: 100%; max-width: 520px; }
.letter-upload__file-row .secondary-button { align-self: end; margin: 0; }
.letter-upload__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.letter-upload__spinner { display: none; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.letter-upload__submit[aria-busy="true"] .letter-upload__spinner { display: inline-block; animation: letter-upload-spin .8s linear infinite; }
@keyframes letter-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .letter-upload__submit[aria-busy="true"] .letter-upload__spinner { animation: none; border-top-color: transparent; }
}
.letter-company { overflow: hidden; }
.letter-version { padding: 16px 20px; border-top: 1px solid var(--t057); }
.letter-version__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.letter-version__head strong { overflow-wrap: anywhere; }
.letter-version__head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.letter-version__details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.letter-version__months { margin: 0; color: var(--muted); font-size: 13px; }
.letter-review-toggle, .letter-review-status { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 10px; border: 1px solid var(--t032); border-radius: 999px; background: var(--t106); color: var(--t107); font: inherit; font-size: 12px; line-height: 1.3; }
.letter-review-toggle { cursor: pointer; }
.letter-review-toggle:disabled { cursor: wait; opacity: .7; }
.letter-review-toggle span, .letter-review-status span { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; font-weight: 700; }
.letter-review-toggle--active, .letter-review-status--active { border-color: var(--t108); background: var(--t109); color: var(--t110); }
.letter-review-toggle--active span, .letter-review-status--active span { background: var(--t111); }
.letter-review-status--pending { border-color: var(--t112); background: var(--t113); color: var(--t114); }
.letter-version__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.letter-version__actions .text-action { padding: 5px 0; white-space: nowrap; }
.letter-version__delete-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--t115); border-radius: 7px; background: var(--t116); color: var(--t117); font-size: 12px; }
.letter-version__delete-confirm span { flex: 1 1 260px; }
.letter-confirm-form { padding: 16px 0 0; border-top: 0; }
.letter-confirm-form textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t005); font: inherit; resize: vertical; }
.letter-company .directory-records { padding: 16px 20px 20px; border-top: 1px solid var(--t057); }
.letter-company .directory-records h3 { margin: 0 0 12px; color: var(--t036); font-size: 14px; }
.letter-date-list { flex-direction: column; align-items: stretch; }
.letter-date-list .record-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) {
  .letter-upload__month-controls { grid-template-columns: minmax(0, 1fr); }
  .letter-upload__month-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letter-version { padding-inline: 15px; }
  .letter-version__head { align-items: flex-start; flex-direction: column; }
  .letter-version__actions { gap: 14px; }
  .letter-confirm-form { padding-inline: 0; }
  .letter-company .directory-records { padding-inline: 15px; }
  .letter-date-list .record-chip { align-items: flex-start; flex-direction: column; }
}
.report-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.report-info__item { padding: 16px 18px; border: 1px solid var(--t014); border-radius: 9px; color: var(--t006); background: var(--t118); font-size: 13px; line-height: 1.6; }
.report-info__item strong { color: var(--t119); font-weight: 600; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-card { display: flex; min-height: 240px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--t005); box-shadow: var(--shadow); }
.report-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-pale); }
.report-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.report-card__type { margin-top: 14px; color: var(--t120); font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.report-card h2 { margin: 7px 0 0; font-size: 16px; font-weight: 600; }
.report-card > p { margin: 7px 0 16px; color: var(--t016); font-size: 13px; line-height: 1.6; }
.report-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--t057); }
.report-card__footer > span, .muted-note { color: var(--t121); font-size: 12px; }
.muted-note { margin: 13px 0 0; }
.system-status { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 17px 19px; border: 1px solid var(--t014); border-radius: 11px; background: var(--t005); }
.system-status__dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--t122); box-shadow: 0 0 0 5px #f0f3f6; }
.system-status:not(.system-status--down) .system-status__dot { background: #20a36b; box-shadow: 0 0 0 5px #e7f6ef; }
.system-status--down .system-status__dot { background: #d94747; box-shadow: 0 0 0 5px #fdecec; }
.system-status > div { display: grid; flex: 1; gap: 4px; }
.system-status > div span { color: var(--muted); font-size: 12px; }
.system-status > div strong { color: var(--t067); font-size: 14px; font-weight: 600; }
.system-status__tag { padding: 7px 9px; border-radius: 5px; color: var(--t123); background: var(--t124); font-size: 11px; }
.chat-panel { display: flex; min-height: 450px; flex-direction: column; margin-top: 0; }
.chat-empty { display: grid; flex: 1; align-content: center; justify-items: center; gap: 8px; padding: 30px 20px; color: var(--t125); text-align: center; }
.chat-empty__icon { display: grid; width: 46px; height: 46px; margin-bottom: 4px; place-items: center; border-radius: 50%; color: var(--t126); background: var(--t127); }
.chat-empty__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chat-empty strong { color: var(--t128); font-size: 15px; font-weight: 600; }
.chat-empty > span:last-child { font-size: 12px; }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border-top: 1px solid var(--t057); }
.chat-composer__field { display: grid; min-width: 0; flex: 1; gap: 6px; }
.chat-composer textarea { min-height: 44px; max-height: 120px; min-width: 0; resize: vertical; padding: 11px; border: 1px solid var(--t032); border-radius: 8px; background: var(--t033); font: inherit; font-size: 14px; }
.chat-character-count { justify-self: end; color: var(--muted); font-size: 11px; }
.chat-composer .primary-button { align-self: flex-start; margin: 0; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 8; background: rgb(10 25 42 / 42%); }

@media (max-width: 1050px) {
  .sidebar { width: 230px; }
  .main-column { margin-left: 230px; }
  .topbar { padding-inline: 25px; }
  .content { padding-inline: 25px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  html, body { width: 100%; min-width: 0; }
  .sidebar { width: min(285px, 84vw); visibility: hidden; transform: translateX(-102%); transition: transform .2s ease, visibility 0s linear .2s; }
  .sidebar.is-open { visibility: visible; transform: translateX(0); transition: transform .2s ease, visibility 0s linear 0s; }
  .main-column { width: 100%; min-width: 0; margin-left: 0; }
  .topbar { width: 100%; min-width: 0; column-gap: 13px; row-gap: 6px; padding: 9px 16px; }
  .breadcrumb { min-width: 0; gap: 6px; overflow: hidden; font-size: 10px; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb__slash { display: none; }
  .breadcrumb strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
  .topbar__actions { min-width: 0; gap: 10px; }
  .company-control > span { display: none; }
  .company-control select { width: 115px; max-width: 115px; font-size: 12px; }
  .role-control label { display: none; }
  .role-control select { width: 104px; max-width: 104px; padding: 3px 0; font-size: 12px; }
  .profile { padding-left: 8px; }
  .profile__avatar { width: 31px; height: 31px; }
  .content { width: 100%; min-width: 0; padding: 28px 16px 38px; }
  .page-heading { display: block; min-width: 0; margin-bottom: 21px; }
  .page-heading > div { min-width: 0; max-width: 100%; }
  .page-title { max-width: 100%; min-width: 0; font-size: clamp(25px, 7vw, 32px); overflow-wrap: anywhere; }
  .page-description { width: auto; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .request-toolbar { align-items: stretch; }
  .request-filter { min-width: 100%; }
  .letter-upload__month-controls .request-filter { min-width: 0; width: auto; }
  .letter-upload__file-row .request-filter { min-width: 0; }
  .primary-button { margin-left: 0; }
  .request-rules { grid-template-columns: 1fr; }
  .module-card__heading { align-items: flex-start; padding: 16px; }
  .module-card__heading > div { min-width: 0; max-width: 100%; }
  .module-card__heading p { overflow-wrap: anywhere; }
  .module-card__heading .secondary-button { white-space: normal; }
  .schedule-staff-controls { width: 100%; flex-wrap: wrap; }
  .schedule-staff-controls .request-filter { flex: 1 1 170px; min-width: 170px; }
  .company-banner { flex-wrap: wrap; }
  .directory-items { grid-template-columns: 1fr; }
  .company-banner > .secondary-button { margin-left: auto; }
  .company-banner > div { flex-basis: calc(100% - 60px); }
  .report-info, .report-grid { grid-template-columns: 1fr; }
  .report-info__item, .report-card { min-width: 0; overflow-wrap: anywhere; }
  .report-card__footer { flex-wrap: wrap; }
  .report-card { min-height: 210px; }
  .upload-panel { flex-wrap: wrap; }
  .upload-panel__copy { min-width: 0; flex-basis: calc(100% - 58px); }
  .upload-panel > .secondary-button { width: 100%; }
  .filter-row { padding-inline: 16px; }
  .filter-row .request-filter { min-width: 0; width: 100%; }
  .schedule-month-stepper { width: 100%; }
  .request-toolbar .request-filter { min-width: 0; }
  .request-filter input, .request-filter select { width: 100%; min-width: 0; }
  .request-rule, .notice, .upload-panel, .system-status { min-width: 0; overflow-wrap: anywhere; }
  .system-status__tag { max-width: 45%; text-align: center; overflow-wrap: anywhere; }
  .table-tools { padding-inline: 16px; }
  .chat-panel { min-height: 400px; }
      .chat-composer { flex-direction: column; align-items: stretch; }
  .chat-composer .primary-button { width: 100%; }
  .overview-card { min-height: 136px; padding: 16px; }
  .overview-card__title { margin-top: 12px; }
}
@media (max-width: 390px) {
  .company-control select { width: 94px; max-width: 94px; font-size: 11px; }
  .role-control select { width: 99px; max-width: 99px; font-size: 12px; }
  .language-toggle { min-width: 54px; }
  .breadcrumb { font-size: 9px; }
  .page-title { font-size: 27px; }
  .page-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.request-create { border-top: 1px solid var(--t057); }
.request-create .request-filter { min-width: 0; }
.request-create .request-filter select, .request-create .request-filter input { min-height: 38px; padding: 0 10px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t005); font-size: 12px; }
.request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: end; }
.request-fields[hidden] { display: none; }
.request-booking-open { margin: 0; }
/* The controls wrap among themselves; the counter stays beside them, at the right edge and in the middle of the panel. */
.request-toolbar__controls { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: end; gap: 13px; min-width: min(100%, 320px); }
.request-count { margin: 0 0 0 auto; align-self: center; font-size: 13px; white-space: nowrap; }
.request-booking-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.request-booking-heading h2 { margin: 0; color: var(--ink); font-size: 18px; }
.request-booking-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.request-department-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.request-department-picker legend { margin-bottom: 9px; color: var(--t031); font-size: 12px; font-weight: 600; }
.request-department-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.request-department-pill { position: relative; cursor: pointer; }
.request-department-pill input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.request-department-pill span { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 13px; border: 1px solid var(--t050); border-radius: 999px; color: var(--t031); background: var(--t005); font-size: 12px; font-weight: 600; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.request-department-pill:hover span, .request-department-pill input:checked + span { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.request-department-pill input:focus-visible + span { outline: 3px solid rgb(38 116 184 / 22%); outline-offset: 2px; }
.request-booking-loading { margin: 0; color: var(--muted); font-size: 12px; }
.request-booking-notice { margin: 0; padding: 10px 12px; border: 1px solid var(--t129); border-radius: 7px; color: var(--t130); background: var(--t113); font-size: 12px; }
.request-booking-notice--closed { border-color: var(--t028); color: var(--t029); background: var(--t030); }
.request-booking-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.request-booking-submit-row .primary-button { margin: 0; }
.request-booking-unavailable { margin-top: 14px; }
.request-check { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: var(--t131); font-size: 11px; }
.request-check input { width: 16px; height: 16px; accent-color: var(--blue); }
.request-fields > .primary-button { justify-self: start; margin: 0; }
@media (max-width: 720px) { .request-fields { grid-template-columns: 1fr; } }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; }
.chat-message { align-self: flex-start; width: min(100%, 700px); padding: 11px 13px; border: 1px solid var(--t061); border-radius: 9px; background: var(--t132); }
.chat-message__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--t133); font-size: 12px; }
.chat-message__meta strong { color: var(--t134); font-size: 13px; }
.chat-message p { margin: 7px 0 0; color: var(--t135); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.chat-message__actions button { padding: 3px 0; border: 0; color: var(--t136); background: transparent; cursor: pointer; font-size: 12px; }
.chat-message--deleted { background: var(--t137); }
.chat-message--deleted p { color: var(--t068); font-style: italic; }
.nav-link__badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; margin-left: auto; padding: 0 6px; border-radius: 999px; color: #fff; background: #e75b66; font-size: 10px; font-weight: 700; }
.chat-new-message-notice { display: block; margin: 0 0 14px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--accent, #7775ff) 35%, transparent); border-radius: 9px; color: var(--ink, #e7edf5); background: var(--surface, #202d3b); font-size: 13px; text-decoration: none; }
.chat-new-message-notice:hover { border-color: var(--accent, #7775ff); }
.chat-message__actions button:hover { color: var(--accent, #7775ff); }
.site-notifications li { align-items: flex-start; }
.site-notifications li > a { min-width: 0; color: var(--accent, #8185ff); overflow-wrap: anywhere; }
.site-notifications li > small { flex: 0 0 auto; color: var(--muted, #94a4b8); }
.notification-list { overflow: hidden; }
.notification-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 20px; border-top: 1px solid var(--t057); color: var(--t138); text-decoration: none; }
.notification-item:hover { background: var(--t139); }
.notification-item--read { color: var(--t140); background: var(--t093); }
.notification-item__marker { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px; border-radius: 50%; background: #4385bc; }
.notification-item--read .notification-item__marker { background: var(--t141); }
.notification-item__body { display: grid; min-width: 0; gap: 5px; }
.notification-item__body strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.notification-item__body time { color: var(--t142); font-size: 11px; }
.record-chip--expired { border-color: var(--t064); color: var(--t065); background: var(--t066); }
.record-chip > span { line-height: 1.65; }
.schedule-table th, .schedule-table td { min-width: 42px; padding: 5px 6px; text-align: center; }
.schedule-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; background: var(--t033); text-align: left; }
.schedule-cell { width: 40px; min-height: 30px; padding: 3px; border: 1px solid var(--t143); border-radius: 5px; color: var(--t053); background: var(--t005); font-size: 10px; }
.schedule-table-scroll { width: auto; max-height: min(68vh, 700px); margin-inline: 18px; scrollbar-color: var(--t144) var(--t145); scrollbar-width: thin; }
.schedule-module > .table-scroll:not(.schedule-table-scroll) { width: auto; margin-inline: 18px; }
.schedule-table { min-width: max-content; }
.schedule-table th:first-child { min-width: 180px; }
.schedule-table td { min-width: 44px; }
.schedule-table th:not(:first-child), .schedule-table td { border-right: 1px solid var(--t057); }
.schedule-table .table-empty { min-width: 0; }
.schedule-table--monthly { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; } /* collapsed borders leave a 1px seam at pinned cells */
.schedule-table--monthly thead tr:first-child > th:first-child, .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:first-child { position: sticky; left: 0; z-index: 1; width: 30px; min-width: 30px; background: var(--t033); }
.schedule-table--monthly .schedule-summary-row > th:first-child { position: sticky; left: 0; z-index: 1; min-width: 0; background: var(--t033); }
/* Only the days scroll: №, ФИО, Должность, Таб. номер and График stay pinned; a narrower table pins fewer (container queries below) */
.schedule-table-scroll:has(> .schedule-table--monthly) { container-type: inline-size; }
.schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(-n+5), .schedule-table--monthly .schedule-summary-row > td:nth-child(2) { position: sticky; z-index: 1; background: var(--t033); }
.schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(2) { left: 30px; }
.schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(3), .schedule-table--monthly .schedule-summary-row > td:nth-child(2) { left: 165px; }
.schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(4) { left: 295px; }
.schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(5) { left: 373px; }
/* Keep 5 days visible next to the pinned zone and the 98px «Кол-во рабочих дней» column: 497 + 130 + 98 = 725px */
@container (max-width: 724px) {
  .schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(n+3):nth-child(-n+5), .schedule-table--monthly .schedule-summary-row > td:nth-child(2) { position: static; }
  .schedule-table--monthly .schedule-summary-row > th:first-child { white-space: normal; }
}
/* № and ФИО only: 165 + 130 + 98 = 393px; below that only № stays and the label scrolls instead of covering the numbers */
@container (max-width: 392px) {
  .schedule-table--monthly :is(thead tr:first-child > th, tbody tr:not(.schedule-summary-row) > td):nth-child(2), .schedule-table--monthly .schedule-summary-row > th:first-child { position: static; }
}
.schedule-table--monthly thead tr:first-child > th:nth-child(2), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(2) { width: 135px; min-width: 135px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(3), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(3) { width: 130px; min-width: 130px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(4), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(4) { width: 78px; min-width: 78px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(5), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(5) { width: 124px; min-width: 124px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(n+6):not(:last-child), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(n+6):not(:last-child), .schedule-table--monthly thead .schedule-weekday-row > th { width: 26px; min-width: 26px; padding-inline: 1px; }
.schedule-table--monthly thead tr:first-child > th:last-child, .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:last-child { width: 98px; min-width: 98px; }
.schedule-table--monthly thead th { white-space: nowrap; }
.schedule-table--monthly thead tr:first-child > th:last-child { white-space: normal; line-height: 1.25; }
.schedule-table--monthly thead tr:first-child > th:nth-child(2), .schedule-table--monthly thead tr:first-child > th:nth-child(3), .schedule-table--monthly thead tr:first-child > th:nth-child(4), .schedule-table--monthly thead tr:first-child > th:nth-child(5) { text-align: center; }
.schedule-table--monthly thead tr > th:first-child { text-align: center; }
.schedule-table--monthly .schedule-weekday-row > th:first-child { position: static; } /* the generic first-cell pin would carry day 1's weekday over №/ФИО */
.schedule-table--monthly thead th.schedule-charter-day { color: var(--t146); background-color: rgba(255, 193, 7, .5); }
.schedule-table--monthly .schedule-row-number, .schedule-table--monthly .schedule-employee-number { white-space: nowrap; }
.schedule-employee-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.schedule-template-select { display: block; width: 100%; min-width: 0; min-height: 30px; padding: 0 6px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font-size: 11px; }
.schedule-table--monthly .schedule-summary-row th, .schedule-table--monthly .schedule-summary-row td { font-weight: 700; background: var(--t033); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--zero { color: var(--t147); background: rgba(244, 67, 54, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--low { color: var(--t148); background: rgba(255, 193, 7, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--medium { color: var(--t149); background: rgba(255, 152, 0, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--high { color: var(--t095); background: rgba(76, 175, 80, .25); }
.schedule-table--monthly .schedule-summary-row th { text-align: left; white-space: nowrap; }
.schedule-table-scroll .data-table thead { position: sticky; top: 0; z-index: 2; }
/* macOS overlay scrollbars take no space: keep a strip under the monthly table for the horizontal bar */
.schedule-table-scroll:has(> .schedule-table--monthly) { padding-bottom: 16px; padding-right: 14px; } /* task 20: and one for the vertical bar over the last column */
/* Task 20: the annual table is 12 rows, so no height cap and no vertical bar over day 31; wide tables keep a strip for the horizontal bar. */
.schedule-table-scroll:has(> .schedule-annual-table) { max-height: none; }
.schedule-module > .table-scroll:not(.schedule-table-scroll), .equipment-table-scroll { padding-bottom: 14px; }
@media (min-width: 601px) { .schedule-template-tabs { flex-wrap: wrap; overflow-x: visible; } } /* the tabs wrap instead of hiding behind the card edge */
.schedule-module .module-card__heading { align-items: center; }
.schedule-staff-controls { display: flex; align-items: flex-end; gap: 12px; }
.schedule-staff-controls .request-filter { flex: 0 0 172px; min-width: 172px; }
.schedule-staff-controls .request-filter input { width: 100%; }
.schedule-year-filter { flex: 0 0 124px; min-width: 124px !important; }
.schedule-year-filter input { width: 100%; }
.schedule-template-tabs { display: flex; gap: 7px; padding: 0 18px 14px; overflow-x: auto; }
.schedule-template-tab { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--t150); border-radius: 7px; color: var(--t151); background: var(--t005); cursor: pointer; font-size: 12px; }
.schedule-template-tab:hover, .schedule-template-tab.is-active { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.schedule-annual-table th:first-child { min-width: 160px; }
.schedule-annual-table td { padding: 4px 3px; }
.schedule-table .schedule-code-entry { display: block; width: 100%; min-height: 32px; padding: 2px 0; border: 0; border-radius: 0; color: var(--t053); background: transparent; box-shadow: none; font-size: 12px; text-align: center; text-transform: uppercase; }
.schedule-table .schedule-code-entry:hover { filter: brightness(.96); }
.schedule-table .schedule-code-entry--locked { cursor: not-allowed; }
.schedule-table .schedule-code-entry:focus { outline-offset: -2px; }
.schedule-table .schedule-code-entry[data-code-tone="hours-8"] { color: var(--t069); background: rgba(76, 175, 80, .25); }
.schedule-table .schedule-code-entry[data-code-tone="hours-7"] { color: var(--t152); background: rgba(38, 166, 154, .25); }
.schedule-table .schedule-code-entry[data-code-tone="day-off"] { color: var(--t153); background: rgba(244, 67, 54, .25); }
.schedule-table .schedule-code-entry[data-code-tone="holiday"] { color: var(--t154); background: rgba(255, 193, 7, .25); }
.schedule-table .schedule-code-entry[data-code-tone="leave"] { color: var(--t155); background: rgba(33, 150, 243, .25); }
.schedule-table .schedule-code-entry[data-code-tone="rvd"] { color: var(--t156); background: rgba(255, 152, 0, .25); }
.schedule-table .schedule-code-entry[data-code-tone="unpaid"] { color: var(--t157); background: rgba(239, 83, 80, .25); }
.schedule-table .schedule-code-entry[data-code-tone="sick"] { color: var(--t158); background: rgba(233, 30, 99, .25); }
.schedule-table .schedule-code-entry[data-code-tone="business-trip"] { color: var(--t159); background: rgba(126, 87, 194, .25); }
.schedule-table .schedule-code-entry[data-code-tone="charter"] { color: var(--t146); background: rgba(255, 193, 7, .5); }
.schedule-code-entry::placeholder { color: var(--t160); opacity: 1; }
.schedule-code-entry--monthly { width: 100%; }
.schedule-module .schedule-block-error { margin: 0 18px 12px; }
.schedule-day-empty { background: var(--t161); }
.schedule-modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgb(8 26 47 / 48%); }
.schedule-modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--t005); box-shadow: 0 22px 70px rgb(10 30 50 / 24%); }
.schedule-modal.request-booking-modal { width: min(1020px, 100%); }
/* Sign in again over the page after the session ended (app.js showSessionExpiredDialog): typed forms stay as they are. */
.session-expired { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgb(8 26 47 / 48%); }
.session-expired__dialog { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--t005); box-shadow: 0 22px 70px rgb(10 30 50 / 24%); }
.session-expired__dialog h2 { margin: 0 0 8px; font-size: 20px; }
.session-expired__dialog > p { margin: 0 0 14px; line-height: 1.5; }
.session-expired__dialog .request-filter { display: grid; gap: 6px; margin-bottom: 12px; }
.session-expired__dialog .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* Monthly password change: the "sign-in blocked" window hides the page completely; the home banner (warning colours). */
.password-block { background: var(--t007); }
.password-block .account-password-hint { margin: 0 0 12px; color: var(--ink); }
.password-rotation-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--warn-border); border-radius: 9px; color: var(--warn-text); background: var(--warn-bg); }
.password-rotation-banner p { flex: 1 1 260px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.password-rotation-banner .primary-button { flex: 0 0 auto; }
@media (max-width: 560px) { .password-rotation-banner .primary-button { width: 100%; } }
.session-restored { position: fixed; left: 50%; bottom: 24px; z-index: 1100; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--t005); box-shadow: 0 10px 30px rgb(10 30 50 / 18%); }
.birthday-greeting { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgb(8 26 47 / 48%); cursor: pointer; }
.birthday-greeting__fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.birthday-greeting__dialog { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--t005); box-shadow: 0 22px 70px rgb(10 30 50 / 24%); text-align: center; }
.birthday-greeting__dialog h2 { margin: 0 0 14px; font-size: 22px; }
.birthday-greeting__names { margin: 0 0 14px; padding: 0; list-style: none; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.birthday-greeting__names li + li { margin-top: 6px; }
.birthday-greeting__dialog p { margin: 0 0 18px; line-height: 1.5; }
.birthday-greeting__dialog .primary-button { margin: 0 auto; }
/* Task 18: the announcement window looks like the birthday greeting, without fireworks; only its button closes it. */
.birthday-greeting--announcement { cursor: default; }
.announcement-window__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-list { margin-bottom: 18px; }
.announcement-items { margin: 0; padding: 0 20px 18px; list-style: none; }
.announcement-item { padding: 14px 0; border-top: 1px solid var(--t057); }
.announcement-item__text { margin: 0 0 6px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-item__meta { margin: 0 0 10px; color: var(--t016); font-size: 12px; overflow-wrap: anywhere; }
.announcement-item .button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.announcement-modal textarea { width: 100%; min-height: 110px; padding: 9px 11px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font: inherit; font-size: 14px; resize: vertical; }
.announcement-recipients { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.announcement-recipients legend { margin-bottom: 8px; color: var(--t031); font-size: 12px; font-weight: 600; }
.announcement-recipients .secondary-button { justify-self: start; }
.announcement-recipients__list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--t032); border-radius: 7px; }
.announcement-recipient { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.announcement-recipient input[type="checkbox"] { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; cursor: pointer; } /* beats the generic ".local-form input" size */
.request-booking-modal .request-fields > .request-filter { min-width: 0; }
.request-booking-modal .request-fields > .request-filter input, .request-booking-modal .request-fields > .request-filter select { width: 100%; min-width: 0; }
.schedule-modal .module-card__heading { border-bottom: 1px solid var(--t057); }
.schedule-modal .local-form { border-top: 0; }
.schedule-modal-error { margin: 12px 20px 0; }
.schedule-modal-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.schedule-modal-actions .primary-button { margin: 0; font-size: 13px; font-weight: 600; }
.schedule-modal-actions .secondary-button { min-width: 96px; min-height: 42px; border-color: var(--t071); color: var(--t162); background: var(--t163); font-size: 13px; }
.schedule-modal-actions .secondary-button:hover:not(:disabled) { border-color: #9ebada; background: var(--t038); }
.schedule-modal-actions .schedule-modal-cancel { width: 98px; min-width: 98px; flex: 0 0 98px; margin: 0; border: 0; color: #fff; background: #c62828; font-size: 13px; font-weight: 600; }
.schedule-modal-actions .schedule-modal-cancel:hover:not(:disabled) { background: #a91f1f; }
@media (min-width: 921px) {
  .schedule-table { width: 100%; min-width: 100%; table-layout: fixed; }
  .schedule-table th, .schedule-table td { min-width: 0; padding-inline: 2px; }
  .schedule-table th:first-child { white-space: normal; overflow-wrap: anywhere; }
  .schedule-annual-table th:first-child { width: 130px; }
  .schedule-table:not(.schedule-annual-table) th:first-child { width: 180px; }
  .schedule-table:not(.schedule-annual-table) th:nth-child(2) { width: 120px; }
}
@media (min-width: 601px) and (max-width: 920px) {
  .schedule-table { width: 100%; min-width: 100%; table-layout: fixed; }
  .schedule-table th, .schedule-table td { min-width: 0; padding-inline: 1px; }
  .schedule-table th:first-child { white-space: normal; overflow-wrap: anywhere; }
  .schedule-annual-table th:first-child { width: 100px; }
  .schedule-table:not(.schedule-annual-table) th:first-child { width: 130px; }
  .schedule-table:not(.schedule-annual-table) th:nth-child(2) { width: 90px; }
}

.profile { display: grid; grid-template-columns: 34px minmax(0, auto); align-items: center; column-gap: 9px; }
.profile__avatar { grid-row: 1 / span 2; }
.profile__name { min-width: 0; max-width: 180px; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; line-height: 1.25; }
.profile__role { min-width: 0; align-self: start; transform: translateY(-3px); color: var(--muted); font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.account-logout { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--t164); background: var(--t005); cursor: pointer; font-size: 12px; }
.account-logout:hover { border-color: var(--t165); color: var(--blue); }
.account-logout[hidden] { display: none; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 0%, var(--t166) 0, var(--canvas) 58%); }
.auth-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--t061); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.auth-brand { min-height: auto; padding: 0 0 26px; border-bottom: 1px solid var(--line); color: var(--ink); }
.auth-brand .brand__name { font-size: 18px; }
.auth-card__heading { padding: 27px 0 20px; }
.auth-card__eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-card__heading h1 { margin: 0; font-size: clamp(24px, 6vw, 29px); line-height: 1.25; }
.auth-card__heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; color: var(--t131); font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--t032); border-radius: 8px; color: var(--ink); background: var(--t005); }
.auth-field input:focus { border-color: #7daedb; }
.auth-password { position: relative; display: block; }
.auth-password input { width: 100%; padding-right: 48px; }
.auth-password__toggle { position: absolute; top: 50%; right: 4px; display: grid; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 6px; color: var(--t167); background: transparent; cursor: pointer; }
.auth-password__toggle:hover { color: var(--blue-dark); background: var(--blue-pale); }
.auth-password__toggle:focus-visible { outline-offset: 1px; }
.auth-password__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.auth-password__icon--hide, .auth-password__toggle[aria-pressed="true"] .auth-password__icon--show { display: none; }
.auth-password__toggle[aria-pressed="true"] .auth-password__icon--hide { display: block; }
.auth-submit { width: 100%; min-height: 44px; justify-content: center; margin: 3px 0 0; }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-message { margin: 0; padding: 10px 12px; border: 1px solid var(--t168); border-radius: 8px; color: var(--t169); background: var(--t116); font-size: 12px; }
/* An error above the form of a request window lines up with the notices inside the form (same edges, same padding). */
.request-booking-modal > .auth-message,
.schedule-modal[aria-labelledby="employee-modal-title"] > .auth-message,
.schedule-modal[aria-labelledby="account-modal-title"] > .auth-message,
.directory-modal > .auth-message { margin: 12px var(--form-gutter) 0; }
.action-feedback { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--t168); border-radius: 8px; color: var(--t169); background: var(--t116); font-size: 12px; line-height: 1.5; }
.module-card > .action-feedback, .chat-panel > .action-feedback { margin: 0 20px 12px; }
.local-form > .action-feedback { flex: 0 0 100%; }
.schedule-modal > .action-feedback { margin: 12px 20px 0; }
.directory-modal { width: min(560px, 100%); }
.auth-message[data-kind="working"] { border-color: var(--t170); color: var(--t171); background: var(--t172); }
.auth-message[hidden] { display: none; }
/* Second step of an Administrator's sign-in (login.js): setup of the authenticator app, the code, the recovery codes. */
.auth-form[hidden], .second-factor-setup[hidden], .session-expired__dialog [hidden] { display: none; }
.auth-form > .secondary-button, .second-factor-setup > .secondary-button { justify-content: center; min-height: 44px; }
.auth-form p:not(.auth-message) { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.second-factor-setup { display: grid; gap: 12px; }
.second-factor-qr { width: min(220px, 100%); margin: 0 auto; border-radius: 8px; overflow: hidden; background: #fff; }
.second-factor-qr svg { display: block; width: 100%; height: auto; fill: #000; }
.second-factor-key { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; user-select: all; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 14px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; list-style: none; }
.recovery-codes li { color: var(--ink); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; text-align: center; white-space: nowrap; }
.recovery-codes__saved { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); font-size: 13px; }
.recovery-codes__saved input { width: 20px; height: 20px; }
.auth-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-card__footer .language-toggle { flex: 0 0 auto; }
.auth-card__tools { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-left: auto; }

@media (max-width: 920px) {
  .profile__avatar { width: 31px; height: 31px; }
  .account-logout { min-width: 38px; padding: 0 7px; overflow: hidden; font-size: 0; }
  .account-logout::after { content: "↪"; font-size: 18px; }
  .auth-card { padding: 25px 21px; }
  .auth-password__toggle { width: 40px; height: 40px; }
}

@media (max-width: 920px) {
  .schedule-table th:first-child { min-width: 124px; }
  .schedule-table td { min-width: 42px; }
  .schedule-table-scroll::after { position: sticky; left: 0; width: fit-content; max-width: 100%; text-align: left; }
}
@media (max-width: 600px) {
  .schedule-template-tabs { padding-inline: 16px; }
  .schedule-modal-backdrop { padding: 10px; }
  .schedule-modal { max-height: calc(100vh - 20px); }
  .schedule-annual-table th:first-child { min-width: 112px; }
  .schedule-code-entry { width: 32px; }
}
/* Slot grid: columns are as wide as the container allows but never narrower than the readable minimum
   (--slot-min, measured: widest RU time "11:30–12:00" at 11px + widest RU status "свободно" at 11px + paddings).
   Seven slots therefore share one row as soon as the container is about 960px wide, and wrap only below that. */
.weekend-slots {
  --slot-min: 132px;
  --slot-status-min: 58px;
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
}

.weekend-slots__row {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--slot-min)), 1fr));
  gap: 6px;
}
.weekend-slots__row > strong { display: contents; }

.weekend-slot {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(var(--slot-status-min), 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 56px;
  color: var(--t173);
  padding: 0;
  border: 1px solid var(--t173);
  border-radius: 10px;
  overflow: hidden;
  /* Each slot measures itself, so its text shrinks smoothly (11px minimum) before a column is given up. */
  container-type: inline-size;
}

.weekend-slot:is(button) {
  appearance: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.weekend-slot:is(button):disabled { cursor: default; color: var(--t173); }
.weekend-slot__time {
  display: grid;
  min-width: 0;
  padding: 8px 3px;
  place-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-size: clamp(11px, 8.5cqw, 14px);
  font-variant-numeric: tabular-nums;
}
.weekend-slot__status {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 5px 3px;
  border-left: 1px solid var(--t173);
  color: var(--t173);
  font-size: 11px;
  font-size: clamp(11px, 8cqw, 12px);
  line-height: 1.25;
  text-align: center;
}
.weekend-slot__status > span:not(.weekend-slot__timer) { font-weight: 500; }
.weekend-slot__status > strong { font-weight: 700; }
/* Fill: 10% opaque (90% transparent) colour behind black text; the element itself keeps full opacity. */
.weekend-slot--free { background: rgb(21 128 61 / 0.1); }
.weekend-slot--taken { background: rgb(185 28 28 / 0.1); }
.weekend-slot--loading { background: var(--t174); }
.weekend-slot__timer { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* Selected: the 1px black border stays; an outer ring (no layout shift) marks the choice. */
.weekend-slot--selected,
.weekend-slot:is(button).weekend-slot--selected { border-color: var(--t173); box-shadow: 0 0 0 2px #2674b8; }
.weekend-booking-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.weekend-booking-controls .primary-button { margin: 0; }
.weekend-booking-controls > span { color: var(--muted, #72849a); font-size: 12px; }
.weekend-booking-controls > .weekend-booking-hint { flex-basis: 100%; text-align: right; }
.weekend-duty-list { margin-top: 18px; }
.weekend-duty-list > .weekend-duty-card { margin-top: 0; }
.weekend-duty-list > .weekend-duty-card + .weekend-duty-card { margin-top: 14px; }
.weekend-duty-card__heading { align-items: center; flex-wrap: wrap; }
.weekend-duty-card__heading h3 { margin: 0; color: var(--t036); font-size: 15px; font-weight: 600; }
.weekend-duty-card__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.weekend-duty-card__heading .weekend-booking-controls { margin-top: 0; }
/* The hint under the button is long text: it wraps inside the actions block instead of stretching it and squeezing the notice. */
.weekend-duty-card__heading .weekend-duty-card__actions { flex: 0 1 auto; max-width: min(100%, 300px); }
.weekend-duty-card__heading .weekend-notice { display: flex; flex: 1 1 0; min-width: 160px; min-height: 44px; margin: 0; padding: 8px 14px; align-items: center; justify-content: center; border: 1px solid var(--warn-border); border-radius: 9px; color: var(--warn-text); background: var(--warn-bg); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.weekend-request-table-scroll { margin-top: 14px; }
.weekend-request-table { min-width: 1180px; text-align: center; }
.weekend-request-table th, .weekend-request-table td { text-align: center; vertical-align: middle; }
.weekend-request-table td { padding: 12px 10px; }
.weekend-request-table .request-table__single { white-space: normal; }
.weekend-request-table .request-table__construction { min-width: 150px; }
.weekend-request-actions { min-width: 0; }
.weekend-request-actions .text-action { white-space: nowrap; }
.letter-inspection-card .module-card__heading { align-items: flex-end; }
.letter-inspection-controls { display: grid; grid-template-columns: repeat(2, minmax(130px, 150px)); gap: 10px; }
.letter-inspection-year, .letter-inspection-month { min-width: 0; margin: 0; }
.letter-inspection-controls select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font-size: 13px; text-transform: capitalize; }
.letter-inspection-table { width: 100%; min-width: 0; table-layout: fixed; text-align: center; }
.letter-inspection-table th, .letter-inspection-table td { min-width: 0; padding: 7px 2px; text-align: center; vertical-align: middle; }
.letter-inspection-table thead th { background: var(--t033); }
.letter-inspection-table th:first-child, .letter-inspection-table td:first-child { width: 26%; padding-inline-start: 20px; text-align: left; overflow-wrap: anywhere; }
.letter-inspection-table tbody th:first-child { color: var(--t086); }
.letter-inspection-row--active th, .letter-inspection-row--active td { background: var(--t175); }
.letter-inspection-company-button { display: inline; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.letter-inspection-status { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: normal; line-height: 1.3; text-transform: none; white-space: normal; overflow-wrap: anywhere; } /* under the name, wraps inside the narrow first column */
.letter-inspection-status--reviewed { color: #1f7a56; }
.letter-inspection-status--received { color: #a35a00; }
html[data-theme="dark"] .letter-inspection-status--reviewed { color: #6bd6a3; }
html[data-theme="dark"] .letter-inspection-status--received { color: #f0b45c; }
.letter-inspection-company-button:hover { text-decoration: underline; text-underline-offset: 2px; }
.letter-inspection-company-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.letter-inspection-company-button[aria-pressed="true"] { color: var(--blue); font-weight: 700; }
.letter-inspection-table th:not(:first-child), .letter-inspection-table td:not(:first-child) { white-space: nowrap; }
.letter-inspection-checkbox { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); vertical-align: middle; }
.letter-inspection-checkbox:disabled { cursor: default; }
.letter-inspection-error { margin: 12px 20px 0; }

.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.report-actions .secondary-button { min-height: 36px; font-size: 12px; }
.report-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.report-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.report-entry > span { display: grid; gap: 4px; min-width: 0; }
.report-entry strong { font-size: 12px; }
.report-entry small { color: var(--muted); font-size: 11px; }
.report-entry .secondary-button { flex: 0 0 auto; }
@media (max-width: 560px) {
  .report-entry { align-items: flex-start; flex-direction: column; }
  .report-actions { display: grid; }
}

@media (max-width: 560px) {
  .weekend-slots__row { grid-template-columns: 1fr; }
  .letter-inspection-card .module-card__heading { align-items: flex-start; flex-direction: column; }
  .letter-inspection-controls { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .letter-inspection-table th:first-child, .letter-inspection-table td:first-child { padding-inline-start: 16px; }
}

body[data-page="chat"] .main-column {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body[data-page="chat"] .content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-block: 24px;
}
body[data-page="chat"] .page-heading { flex: 0 0 auto; margin-bottom: 16px; }
body[data-page="chat"] .chat-panel { min-height: 0; flex: 1 1 0; }
body[data-page="chat"] .chat-messages { min-height: 0; overscroll-behavior: contain; }
body[data-page="chat"] .chat-composer { align-items: center; }
body[data-page="chat"] .chat-composer input {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--t032);
  border-radius: 8px;
  background: var(--t033);
  font: inherit;
  font-size: 14px;
}
body[data-page="chat"] .chat-panel > .auth-message { flex: 0 0 auto; margin: 10px 16px 0; }
body[data-page="chat"] .action-feedback--success { border-color: var(--t176); color: var(--t177); background: var(--t178); }
body[data-page="chat"] .chat-panel > .chat-clear-feedback { flex: 0 0 auto; margin: 10px 16px 0; }
@media (max-width: 920px) {
  body[data-page="chat"] .content { padding: 16px; }
  body[data-page="chat"] .chat-composer { align-items: stretch; }
}

.notification-list > .auth-message { margin: 0 20px 12px; }
.notification-list > .action-feedback--success { border-color: var(--t176); color: var(--t177); background: var(--t178); }

.staff-roster-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 20px 18px; }
.staff-roster-table-scroll { min-width: 0; border: 1px solid var(--t061); border-radius: 8px; }
.staff-roster-table { width: 100%; min-width: 0; table-layout: fixed; }
.staff-roster-table th, .staff-roster-table td { padding: 8px 10px; line-height: 1.35; overflow-wrap: anywhere; }
.staff-roster-table tbody tr:last-child td { border-bottom: 1px solid var(--t079); }
.staff-roster-table th:nth-child(1), .staff-roster-table td:nth-child(1) { width: 36%; }
.staff-roster-table th:nth-child(2), .staff-roster-table td:nth-child(2) { width: 34%; }
.staff-roster-table th:nth-child(3), .staff-roster-table td:nth-child(3) { width: 30%; }
.staff-roster-table .table-empty { height: auto; } /* the «—» of an empty column is one row high: the block keeps its height from two employees to one */
.staff-roster-empty, .staff-roster-error { margin: 0 20px 18px; }
.request-working-staff-card { margin-bottom: 18px; }
@media (max-width: 760px) {
  .staff-roster-tables { grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .staff-roster-empty, .staff-roster-error { margin-inline: 12px; }
}

.equipment-table-heading { align-items: center; }
.equipment-add-button { flex: 0 0 auto; margin: 0; }
.equipment-table-scroll { width: auto; margin: 0 20px 18px; border: 1px solid var(--t061); border-radius: 8px; }
.equipment-table { width: 100%; min-width: 1040px; table-layout: fixed; text-align: center; }
.equipment-table th { padding: 10px 5px; white-space: normal; line-height: 1.3; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.equipment-table td { padding: 8px 5px; line-height: 1.35; vertical-align: middle; overflow-wrap: anywhere; }
/* Task 11: eleven columns fit a 1440 px laptop (card about 1060 px); wider screens share the extra space proportionally. */
.equipment-table th:nth-child(1), .equipment-table td:nth-child(1) { width: 120px; padding-left: 10px; text-align: left; }
.equipment-table th:nth-child(2), .equipment-table td:nth-child(2) { width: 65px; }
.equipment-table th:nth-child(3), .equipment-table td:nth-child(3) { width: 85px; }
.equipment-table th:nth-child(4), .equipment-table td:nth-child(4) { width: 85px; }
.equipment-table th:nth-child(5), .equipment-table td:nth-child(5) { width: 80px; }
.equipment-table th:nth-child(6), .equipment-table td:nth-child(6) { width: 100px; }
.equipment-table th:nth-child(7), .equipment-table td:nth-child(7) { width: 85px; }
.equipment-table th:nth-child(8), .equipment-table td:nth-child(8) { width: 75px; }
.equipment-table th:nth-child(9), .equipment-table td:nth-child(9) { width: 75px; }
.equipment-table th:nth-child(10), .equipment-table td:nth-child(10) { width: 130px; }
.equipment-table th:nth-child(11), .equipment-table td:nth-child(11) { width: 140px; }
.equipment-table .instrument-row { display: table-row; border: 0; background: var(--t005); }
.equipment-table .instrument-row > td { border-top: 1px solid var(--t079); }
.equipment-table .instrument-row--expired > td { background: var(--t066); }
.instrument-row__name { color: var(--t067); }
.instrument-row__certificate { color: var(--blue); text-decoration: underline; }
.instrument-row__missing { color: var(--t068); }
/* Edit above Delete, both buttons as wide as the wider one and centred in the cell */
.instrument-row__actions { display: grid; width: max-content; margin-inline: auto; justify-items: stretch; gap: 4px; overflow: visible; }
.instrument-row__actions .text-action, .instrument-row__actions .text-action + .text-action { margin: 0; padding-inline: 10px; text-align: center; white-space: nowrap; }
.equipment-table .instrument-row--excluded > td:not(.instrument-row__status):not(:last-child) { opacity: .6; }
.equipment-status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 8px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: left; }
.equipment-status::before { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.equipment-status--available { border-color: var(--ok-border); color: var(--ok-text); background: var(--ok-bg); }
.equipment-status--excluded { border-color: var(--closed-border); color: var(--closed-text); background: var(--closed-bg); }
.equipment-status__reason { display: block; margin-top: 4px; color: var(--closed-text); font-size: 11px; }
.equipment-exclusion-modal { width: min(560px, 100%); }
.equipment-exclusion-modal textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--t032); border-radius: 7px; background: var(--t033); font: inherit; font-size: 13px; resize: vertical; }
.request-equipment-option--excluded, .request-equipment-option--expired, .request-equipment-option--busy { color: var(--closed-text); }
.request-time-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.request-time-filter__button { min-height: 40px; padding: 0 14px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t074); background: var(--t005); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.request-time-filter__button:hover { border-color: var(--t052); }
.request-time-filter__button.is-selected { border-color: var(--t052); color: var(--blue-dark); background: var(--blue-pale); box-shadow: inset 0 -2px 0 var(--blue); }
.equipment-table .instrument-row__countdown { color: var(--t069); font-size: 11px; font-weight: 600; text-align: center; }
.equipment-table .instrument-row__countdown.is-expired { color: var(--t070); }
body.equipment-modal-open { overflow: hidden; }
.schedule-modal.equipment-modal { width: min(920px, 100%); }
.equipment-modal .module-card__heading { align-items: center; }
.equipment-modal .local-form { padding: 18px 20px 20px; }
.equipment-modal .certificate-upload { min-width: 0; }
.equipment-modal .request-filter input[type="url"] { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--t032); border-radius: 7px; background: var(--t033); font: inherit; font-size: 13px; }
@media (max-width: 720px) {
  .equipment-table-heading { align-items: flex-start; flex-direction: column; }
  .equipment-add-button { width: 100%; }
  .equipment-table-scroll { margin-inline: 12px; }
  .equipment-modal .local-form { padding: 14px; }
}

/* Outline only the outer page panels; nested cards keep their component borders. */
.app-loading__card,
.overview-card,
.section-panel,
.notice,
.request-toolbar,
.request-empty,
.request-rule,
.module-card,
.chat-panel,
.directory-group,
.company-banner,
.upload-panel,
.report-card,
.system-status,
.chat-new-message-notice,
.schedule-modal,
.auth-card {
  border: 3px solid var(--t084);
}

/* Top bar: one row while everything fits, otherwise two rows. The switch depends on the width of the bar itself
   (it changes with the sidebar state), not on the window width. Profile (avatar, login, role) is never rearranged. */
@container (max-width: 760px) {
  .topbar__actions { display: contents; }
  .topbar__tools { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .profile { grid-column: 3; grid-row: 1; max-width: 60cqw; }
  .account-logout { grid-column: 4; grid-row: 1; justify-self: end; }
  .company-control, .role-control { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
}

/* The select arrow is a data-URI image, so it needs its own light stroke on dark surfaces. */
html[data-theme="dark"] .request-table__lines select[data-request-responsible] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23a9bccf' stroke-width='1.5'/%3E%3C/svg%3E"); }

/* Notifications: calendar next to the list (same look as the date picker; dots mark days that have notifications). */
.notification-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.notification-layout > .module-card { margin-top: 18px; }
.notification-calendar { padding: 16px; }
.notification-calendar__header { grid-template-columns: 36px minmax(0, 1fr) 36px; }
.notification-calendar__title { text-align: center; font-size: 14px; font-weight: 600; }
.notification-calendar__day { position: relative; }
.notification-calendar__day.has-notifications::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
.notification-calendar__day.has-unread::after { background: var(--dot-unread); }
/* On the selected (blue) day the dot keeps its own colour and gets a white ring, so it is seen and the selection colour is not mixed into it. */
.notification-calendar__day.is-selected.has-notifications::after { box-shadow: 0 0 0 1.5px #fff; }
.notification-calendar__day.is-selected.has-read::after { background: #8fc4f5; }
.notification-calendar__day:disabled.has-notifications::after { opacity: .5; }
.notification-calendar__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.notification-calendar__legend li { display: inline-flex; align-items: center; gap: 6px; }
.notification-calendar__dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; }
.notification-calendar__dot--unread { background: var(--dot-unread); }
.notification-calendar__dot--read { background: var(--blue); }
@media (max-width: 920px) { .notification-layout { grid-template-columns: minmax(0, 1fr); } }

/* Feedback: list on the left, conversation on the right; one column on narrow screens. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.feedback-toolbar { padding: 16px 20px; }
.feedback-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.feedback-tab { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; }
.feedback-tab:hover { border-color: var(--blue); }
.feedback-tab.is-active { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.feedback-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 14px; }
.feedback-filters .request-filter { min-width: min(100%, 190px); flex: 1 1 190px; }
.feedback-unread-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; font-size: 13px; }
.feedback-layout { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); gap: 18px; align-items: start; }
.feedback-layout > .module-card { margin-top: 18px; }
.feedback-list-card { padding: 8px; }
.feedback-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.feedback-item { display: grid; width: 100%; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); cursor: pointer; text-align: left; font: inherit; }
.feedback-item:hover { border-color: var(--blue); }
.feedback-item.is-selected { border-color: var(--blue); background: var(--blue-pale); }
.feedback-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.feedback-item__subject { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.feedback-item.is-unread .feedback-item__subject { font-weight: 800; }
.feedback-item__dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 4px; border-radius: 50%; background: var(--blue-solid); }
.feedback-item__who { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.feedback-item__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 11px; }
.feedback-status { display: inline-block; padding: 1px 8px; border: 1px solid var(--ok-border); border-radius: 999px; color: var(--ok-text); background: var(--ok-bg); font-size: 11px; font-weight: 700; }
.feedback-status--closed { border-color: var(--closed-border); color: var(--closed-text); background: var(--closed-bg); }
.feedback-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; }
.feedback-thread-card { padding: 0; min-height: 320px; }
.feedback-thread { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.feedback-thread__header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.feedback-thread__title { min-width: 0; flex: 1 1 220px; }
.feedback-thread__title h2 { margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.feedback-thread__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.feedback-thread__actions { display: flex; gap: 8px; }
.feedback-back { display: none; }
.feedback-messages { display: grid; align-content: start; gap: 10px; max-height: min(58vh, 620px); min-height: 180px; overflow-y: auto; padding: 16px 18px; }
.feedback-message { max-width: min(100%, 640px); padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feedback-message--user { border-left: 3px solid var(--muted); }
.feedback-message--admin { border-left: 3px solid var(--blue-solid); }
.feedback-message--own { justify-self: end; background: var(--blue-pale); }
.feedback-message__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; font-size: 12px; }
.feedback-message__meta strong { overflow-wrap: anywhere; }
.feedback-message__role { color: var(--muted); }
.feedback-message__meta time { margin-left: auto; color: var(--muted); }
.feedback-message__text { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.feedback-attachment { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.feedback-attachment:hover { border-color: var(--blue); }
.feedback-attachment__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.feedback-attachment__name { min-width: 0; overflow-wrap: anywhere; }
.feedback-attachment__size, .feedback-attachment__action { color: var(--muted); white-space: nowrap; }
.feedback-attachment__action { color: var(--blue); }
.feedback-attachment--image { flex-direction: column; align-items: flex-start; padding: 6px; }
.feedback-attachment--image img { display: block; max-width: 100%; max-height: 160px; border-radius: 6px; object-fit: contain; }
.feedback-new-below { justify-self: center; margin: 0 0 8px; padding: 6px 14px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 700; }
.feedback-new-below[hidden] { display: none; }
.feedback-older { justify-self: center; }
.feedback-composer { display: grid; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.feedback-field { display: block; }
.feedback-composer textarea, .feedback-create-form textarea { width: 100%; min-height: 76px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; resize: vertical; }
.feedback-composer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.feedback-composer__bar .primary-button { margin-left: auto; }
/* File choice: a real button (centred text, own focus ring) for the real input, which is hidden visually and from the tab order. */
.file-picker { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%; }
.file-picker .file-picker__input[type="file"] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.file-picker__button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.file-picker output { min-width: 0; flex: 1 1 12ch; color: var(--muted, #72849a); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.feedback-hint { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.feedback-counter { color: var(--muted); font-size: 11px; }
.feedback-files { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.feedback-file { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; }
.feedback-file__name { min-width: 0; overflow-wrap: anywhere; }
.feedback-file__size { color: var(--muted); }
.feedback-closed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--closed-bg); }
.feedback-closed p { margin: 0; color: var(--closed-text); font-size: 13px; }
.feedback-offline { margin: 0; padding: 8px 18px; color: var(--warn-text); background: var(--warn-bg); font-size: 12px; }
.feedback-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; color: var(--muted); text-align: center; }
.feedback-empty__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.feedback-modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.feedback-create-form { display: grid; gap: 12px; padding: 0 20px 20px; }
.feedback-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-lightbox__box { width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 12px; overflow: auto; }
.feedback-lightbox__box img { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; object-fit: contain; }
.feedback-lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 920px) {
  .feedback-layout { grid-template-columns: minmax(0, 1fr); }
  .feedback-layout.has-thread .feedback-list-card { display: none; }
  .feedback-layout:not(.has-thread) .feedback-thread-card { display: none; }
  .feedback-back { display: inline-flex; }
  .feedback-messages { max-height: 55vh; padding: 12px; }
  .feedback-thread__header, .feedback-composer, .feedback-closed { padding-inline: 12px; }
  .feedback-message { max-width: 100%; }
}

/* Help / FAQ. Only the shared theme variables are used, so both themes and the system theme follow automatically. */
.help-page { display: grid; min-width: 0; gap: 16px; }
.help-page > * { min-width: 0; }
.help-toolbar { display: grid; gap: 14px; padding: 16px 20px; }
.help-search { min-width: 0; }
.help-search__row { display: flex; flex-wrap: wrap; gap: 8px; }
.help-search__row input { min-width: 0; flex: 1 1 240px; }
.help-search__clear[hidden] { display: none; }
.help-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.help-chip { max-width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.help-chip:hover { border-color: var(--blue); }
.help-chip.is-active { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.help-status { margin: 0; color: var(--ink); font-size: 13px; }
.help-status:empty { display: none; }
.help-message[hidden] { display: none; }
.help-list { display: grid; gap: 16px; }
.help-section[hidden], .help-question[hidden] { display: none; }
.help-section, .help-intro-card { padding: 16px 20px; }
.help-section__title { margin: 0 0 12px; font-size: 17px; overflow-wrap: anywhere; }
.help-questions { display: grid; gap: 8px; }
.help-question { scroll-margin-top: 84px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.help-question[open] { border-color: var(--blue); }
.help-question > summary { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; }
.help-question > summary::-webkit-details-marker { display: none; }
.help-question > summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 8px; align-self: center; margin: 0 4px 0 auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.help-question[open] > summary::after { transform: rotate(-135deg); }
.help-question > summary:focus-visible, .help-chip:focus-visible, .help-ref:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.help-question__number { flex: 0 0 auto; min-width: 34px; color: var(--blue); font-variant-numeric: tabular-nums; }
.help-question__title { min-width: 0; overflow-wrap: anywhere; }
.help-answer { padding: 2px 16px 14px 48px; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.help-answer p, .help-intro p, .help-intro-card p { margin: 8px 0; }
.help-answer ul, .help-answer ol, .help-intro-card ul, .help-intro ul { margin: 8px 0; padding-left: 22px; }
.help-answer li { margin: 4px 0; }
.help-answer blockquote, .help-intro blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--blue-pale); }
.help-answer blockquote p, .help-intro blockquote p { margin: 4px 0; }
.help-answer code { padding: 1px 5px; border-radius: 4px; background: var(--blue-pale); font-size: 13px; }
.help-answer .help-table { margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; }
.help-answer .help-table table { min-width: 100%; }
.help-ref { color: var(--blue); text-decoration: underline; }
.help-intro-card li { overflow-wrap: anywhere; }
@media (max-width: 920px) {
  .help-toolbar, .help-section, .help-intro-card { padding: 14px; }
  .help-answer { padding: 2px 12px 12px 14px; }
  .help-question > summary { padding: 10px 12px; }
}

/* Shared chat: archive toolbar, reply, @mentions, emoji panel. Colours come from the themed base palette (light and dark). */
.chat-toolbar { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--t057); }
.chat-toolbar__date { display: grid; width: 190px; max-width: 100%; gap: 4px; color: var(--t031); font-size: 12px; font-weight: 600; }
.chat-toolbar__date input { min-height: 40px; padding: 0 11px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font-size: 14px; }
.chat-toolbar .secondary-button { min-height: 40px; }
.chat-archive-note { flex: 0 0 auto; padding: 14px 16px; border-top: 1px solid var(--t057); color: var(--closed-text); background: var(--closed-bg); font-size: 13px; }
.chat-composer-wrap { position: relative; flex: 0 0 auto; border-top: 1px solid var(--t057); }
.chat-composer-wrap .chat-composer { border-top: 0; }
.chat-composer__field { position: relative; }
.chat-emoji-button { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--t032); border-radius: 8px; color: var(--t011); background: var(--t033); cursor: pointer; font-size: 22px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.chat-emoji-button:hover, .chat-emoji-button[aria-expanded="true"] { border-color: var(--blue-solid); background: var(--blue-pale); }
.chat-composer .chat-emoji-button { align-self: flex-start; } /* top edge with the field and "Send"; the counter under the field must not move it */
.chat-character-count--limit { color: var(--warn-text); font-weight: 700; }
.chat-reply-slot:empty { display: none; }
.chat-reply-bar { display: flex; align-items: flex-start; gap: 8px; margin: 10px 14px 0; padding: 8px 10px; border-left: 3px solid var(--blue-solid); border-radius: 6px; color: var(--blue-dark); background: var(--blue-pale); font-size: 12px; }
.chat-reply-bar__text { display: grid; min-width: 0; flex: 1; gap: 1px; }
.chat-reply-bar__text em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-bar__cancel { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.chat-reply-bar__cancel:hover { background: var(--t033); }
.chat-quote { display: block; width: 100%; margin: 7px 0 0; padding: 6px 10px; border: 0; border-left: 3px solid var(--blue-solid); border-radius: 6px; color: var(--blue-dark); background: var(--blue-pale); font: inherit; font-size: 12px; text-align: left; }
button.chat-quote { cursor: pointer; }
.chat-quote strong, .chat-quote span { display: block; overflow-wrap: anywhere; }
.chat-quote span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.chat-quote--deleted { border-left-color: var(--closed-border); color: var(--closed-text); background: var(--closed-bg); font-style: italic; }
.chat-mention { padding: 0 3px; border-radius: 4px; color: var(--blue-dark); background: var(--blue-pale); font-weight: 600; }
.chat-mention--me { color: var(--warn-text); background: var(--warn-bg); box-shadow: 0 0 0 1px var(--warn-border); }
.chat-message--mentions-me { border-color: var(--warn-border); }
.chat-mention-badge { padding: 0 7px; border-radius: 999px; color: var(--warn-text); background: var(--warn-bg); font-size: 11px; font-weight: 600; }
.chat-message--flash { outline: 2px solid var(--blue-solid); outline-offset: 2px; }
.chat-mention-list { position: absolute; z-index: 25; right: 0; bottom: 100%; left: 0; max-height: 220px; margin: 0 0 6px; padding: 4px; overflow-y: auto; border: 1px solid var(--t032); border-radius: 8px; color: var(--t011); background: var(--t005); box-shadow: var(--shadow); list-style: none; }
.chat-mention-list[hidden] { display: none; }
.chat-mention-list__item { display: grid; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.chat-mention-list__item small { color: var(--blue-dark); font-size: 11px; }
.chat-mention-list__item.is-active, .chat-mention-list__item:hover { background: var(--blue-pale); }
.chat-mention-list__note { padding: 8px 10px; color: var(--t016); font-size: 12px; }
.emoji-panel { position: absolute; z-index: 30; right: 14px; bottom: 100%; display: flex; width: 360px; max-width: calc(100% - 28px); height: 340px; max-height: 60vh; max-height: 60dvh; flex-direction: column; margin-bottom: 6px; overflow: hidden; border: 1px solid var(--t032); border-radius: 12px; color: var(--t011); background: var(--t005); box-shadow: var(--shadow); }
.emoji-panel[hidden] { display: none; }
.emoji-panel__top { flex: 0 0 auto; padding: 8px; border-bottom: 1px solid var(--t057); }
.emoji-panel__search { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--t032); border-radius: 7px; color: var(--t011); background: var(--t033); font: inherit; font-size: 14px; }
.emoji-tabs { display: flex; gap: 2px; margin-top: 6px; }
.emoji-tab { min-width: 0; flex: 1 1 0; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 17px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-tab:hover { background: var(--blue-pale); }
.emoji-panel__body { min-height: 0; flex: 1; padding: 4px 8px 8px; overflow-y: auto; overscroll-behavior: contain; }
.emoji-section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 4px; }
.emoji-section__head h3 { margin: 0; color: var(--t016); font-size: 12px; font-weight: 600; }
.emoji-clear { padding: 2px 6px; border: 0; border-radius: 5px; color: var(--blue-dark); background: transparent; cursor: pointer; font-size: 12px; text-decoration: underline; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.emoji-option { height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-option:hover, .emoji-option:focus-visible { background: var(--blue-pale); }
.emoji-option:focus-visible, .emoji-tab:focus-visible, .chat-emoji-button:focus-visible { outline: 2px solid var(--blue-solid); outline-offset: -2px; }
.emoji-panel__note { margin: 10px 8px; color: var(--t016); font-size: 12px; }
@media (max-width: 920px) {
  .chat-composer-wrap .chat-composer { flex-flow: row wrap; align-items: center; }
  .chat-composer-wrap .chat-composer__field { flex: 1 1 100%; }
  .chat-composer-wrap .chat-composer .primary-button { width: auto; flex: 1 1 0; align-self: stretch; }
  .emoji-panel { right: 8px; left: 8px; width: auto; max-width: none; height: 360px; }
  .chat-toolbar { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .chat-message--flash { outline-width: 3px; } }

/* Personal account window (app.js openPersonalAccount): picture with a crop frame, password, e-mail. */
.personal-account__dialog { width: min(520px, 100%); }
.personal-account__who { display: flex; min-width: 0; align-items: center; gap: 12px; }
.personal-account__who h2 { margin: 0; font-size: 18px; }
.personal-account__who p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.personal-account__avatar { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: var(--blue-dark); background: var(--t010); font-size: 18px; font-weight: 700; }
.personal-account__close { min-width: 40px; padding: 0; font-size: 22px; line-height: 1; }
.personal-account [hidden] { display: none !important; }
.personal-account__body { display: grid; }
.personal-account__section { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--t057); }
.personal-account__section:first-child { border-top: 0; }
.personal-account h3 { margin: 0; font-size: 15px; }
.personal-account .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.personal-account .request-filter { min-width: 0; }
.personal-account .schedule-modal-actions .primary-button { margin: 0; }
.personal-account .action-feedback--success { margin: 0; border-color: var(--t176); color: var(--t177); background: var(--t178); }
.personal-account__crop { gap: 12px; padding: 16px 20px; justify-items: center; }
.personal-account__crop > * { justify-self: stretch; }
.personal-account__crop > .avatar-crop__canvas { justify-self: center; }
.avatar-crop__canvas { width: min(320px, 100%); aspect-ratio: 1; border-radius: 8px; background: var(--t010); cursor: grab; touch-action: none; }
.avatar-crop__canvas:active { cursor: grabbing; }
.avatar-crop__zoom input { min-height: 24px; padding: 0; }


/* Accounts page: "Sign everyone out" next to "Add account"; on a phone both go under the title at full width */
.accounts-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.accounts-notice { margin: 0 20px 14px; }
.logout-all__dialog { width: min(480px, 100%); }
.logout-all__form .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 920px) {
  .accounts-heading { flex-direction: column; align-items: stretch; }
  .accounts-actions { justify-content: stretch; }
  .accounts-actions > button { flex: 1 1 100%; white-space: normal; }
  .accounts-notice { margin: 0 16px 12px; }
}
