:root {
  --nav: #181818;
  --nav-dark: #242424;
  --accent: #10a37f;
  --accent-soft: #e7f5ef;
  --green: #10a37f;
  --yellow: #10a37f;
  --red: #ef5f5f;
  --line: #d0d0d0;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f4f4f4;
  --panel-3: #ececec;
  --text: #171717;
  --muted: #6b7280;
  --field: #f2f2f2;
  --field-border: #bdbdbd;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* Final calm product layer */
:root {
  --bg: #fbfaf7;
  --panel: #fffefd;
  --panel-2: #f5f3ee;
  --line: #e7e2d9;
  --line-soft: rgba(32, 33, 31, .08);
  --text: #20211f;
  --muted: #747b83;
  --accent: #0f9f7a;
  --accent-strong: #08775b;
  --danger: #d74d52;
  --warning: #b8871d;
  --info: #49658a;
  --shadow-soft: 0 12px 34px rgba(32, 33, 31, .07);
  --shadow-tiny: 0 5px 18px rgba(32, 33, 31, .05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 450;
  letter-spacing: 0;
}

h1, h2, h3, strong, b {
  font-weight: 680;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app {
  background: var(--bg);
  grid-template-rows: 1fr 56px;
}

.main,
.details,
.order-page {
  background: var(--bg);
}

.topbar {
  min-height: 70px;
  height: auto;
  padding: 14px clamp(18px, 2.4vw, 34px);
  background: rgba(255, 254, 252, .9);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  box-shadow: 0 8px 26px rgba(32, 33, 31, .04);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.crumb,
.subline,
.muted,
.employee-sub,
.stat span,
.stat small,
.coolness-note,
.coolness-text {
  color: var(--muted);
}

.alerts {
  gap: 8px;
}

.alerts button,
.alerts .balance,
.alerts .shift-button,
.profile-pill,
.logout {
  min-height: 36px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  box-shadow: var(--shadow-tiny);
}

.alerts .balance,
.alerts .shift-button.open,
.status-ok,
.success,
.money {
  color: var(--accent-strong);
}

.primary,
.btn.primary,
button.primary,
.sale-button,
.add,
.shift-button.open,
.work-button,
.confirm-button,
.login-button,
.photo-monitor.passed {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 159, 122, .18);
}

.primary:hover,
.btn.primary:hover,
button.primary:hover,
.sale-button:hover,
.add:hover,
.work-button:hover,
.confirm-button:hover,
.login-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.danger,
.status-bad,
.late-warning,
.close-shift {
  color: var(--danger);
}

button,
.btn,
.tab,
.nav,
.round,
.profile-pill,
.logout,
select,
input,
textarea {
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:not(.primary):hover,
.btn:not(.primary):hover,
.tab:hover,
.profile-pill:hover,
.logout:hover {
  border-color: rgba(15, 159, 122, .24);
  box-shadow: 0 8px 20px rgba(32, 33, 31, .06);
}

input,
select,
textarea,
.field-like {
  background: #f3f1ed;
  border: 1px solid #d7d2c9;
  border-radius: 10px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 159, 122, .55);
  box-shadow: 0 0 0 4px rgba(15, 159, 122, .1);
  outline: none;
}

.sidebar {
  height: 56px;
  background: rgba(255, 254, 252, .92);
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  box-shadow: 0 -8px 28px rgba(32, 33, 31, .06);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  min-width: 136px;
  height: 42px;
  font-size: 13px;
  letter-spacing: .02em;
}

.nav,
.round {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #687078;
  background: transparent;
}

.nav.active {
  color: var(--text);
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.round.plus,
.photo-monitor.passed {
  border-radius: 16px;
}

.content,
.dashboard,
.employee-page,
.order-view,
.price-modal,
.cash-view {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.employee-head,
.employee-dashboard-main,
.employee-grid > *,
.employee-stats .stat,
.coolness-card,
.panel,
.summary-card,
.modal,
.order-shell,
.filters,
.table-wrap,
.price-modal,
.cash-card,
.shift-card,
.stock-card,
.salary-focus-card,
.employee-tasks-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-tiny);
}

.card:hover,
.employee-stats .stat:hover,
.employee-grid > *:hover,
.summary-card:hover,
.stock-card:hover {
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: #606972;
  font-weight: 620;
  background: #f7f5f1;
}

td,
th {
  border-bottom: 1px solid var(--line-soft);
}

tr:hover td {
  background: rgba(15, 159, 122, .035);
}

.tabs {
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  color: #66707a;
  font-weight: 560;
  border-bottom-width: 2px;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.employee-page {
  padding: 24px clamp(18px, 2.8vw, 34px) 88px;
}

.employee-page > h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.employee-head {
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
}

.employee-avatar {
  box-shadow: 0 0 0 3px rgba(15, 159, 122, .14);
}

.rank-badge {
  background: #0f9f7a;
  color: #fff;
  box-shadow: 0 7px 18px rgba(15, 159, 122, .2);
}

.rank-badge::after {
  opacity: .42;
}

.employee-dashboard-main {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.salary-focus-card,
.employee-tasks-panel {
  padding: 18px;
}

.salary-focus-card span,
.salary-focus-card small {
  display: block;
  color: var(--muted);
}

.salary-focus-card > strong {
  display: block;
  margin: 7px 0 16px;
  color: var(--accent-strong);
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: .95;
  letter-spacing: 0;
}

.salary-focus-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.salary-focus-card div p {
  margin: 0;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.salary-focus-card b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.employee-tasks-panel .task-list {
  margin-top: 12px;
}

.coolness-card {
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
}

.coolness-intro {
  min-height: 100%;
}

.coolness-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 159, 122, .08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .02em;
}

.coolness-score {
  color: var(--accent-strong);
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.coolness-premium,
.two-gis-card,
.coolness-progress,
.metric,
.employee-grid > *,
.employee-stats .stat {
  background: #fffefd;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: none;
}

.two-gis-card {
  padding: 16px;
}

.two-gis-count {
  color: var(--accent-strong);
  font-size: clamp(36px, 4vw, 54px);
}

.progress-track,
.metric-bar {
  background: #e9e6df;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill,
.metric-fill {
  background: var(--accent);
  border-radius: inherit;
}

.employee-stats {
  gap: 12px;
}

.employee-stats .stat {
  min-height: 96px;
  padding: 16px;
}

.employee-stats .stat strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.employee-grid {
  gap: 14px;
}

.login-screen {
  background: #fbfaf7;
}

.login-shell {
  background: #fffefd;
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 70px rgba(32, 33, 31, .12);
}

.login-pattern {
  opacity: .06;
}

@media (max-width: 1000px) {
  .employee-dashboard-main,
  .coolness-card,
  .employee-grid {
    grid-template-columns: 1fr;
  }

  .employee-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
  }

  .app {
    grid-template-rows: 1fr 54px;
  }

  .sidebar {
    height: 54px;
  }

  .brand {
    min-width: 118px;
  }

  .nav,
  .round {
    width: 40px;
    height: 40px;
  }

  .employee-dashboard-main,
  .employee-stats,
  .salary-focus-card div {
    grid-template-columns: 1fr;
  }
}

/* Dark navigation accents after light redesign */
:root {
  --nav: #181918;
  --nav-dark: #20211f;
  --top-button: #1b1c1a;
  --top-button-border: rgba(255, 255, 255, .08);
}

.sidebar {
  height: 58px;
  background: var(--nav);
  border-top: 1px solid #2a2b29;
  color: #f7f7f4;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .18);
  backdrop-filter: none;
}

.brand {
  color: #f7f7f4;
}

.nav,
.round {
  color: #c6ccc9;
  background: transparent;
}

.nav:hover,
.round:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.nav.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.round.plus,
.photo-monitor.passed {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 159, 122, .26);
}

.photo-monitor.failed {
  background: #ef3338;
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 51, 56, .28);
}

.alerts button,
.alerts .balance,
.alerts .shift-button,
.profile-pill,
.logout {
  background: var(--top-button);
  border-color: var(--top-button-border);
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.alerts button:hover,
.alerts .balance:hover,
.alerts .shift-button:hover,
.profile-pill:hover,
.logout:hover {
  background: #222320;
  border-color: rgba(15, 159, 122, .32);
}

.alerts .balance,
.alerts .shift-button.open,
.late-pill.ok {
  color: #19c99b;
}

.profile-pill .rank-badge {
  background: rgba(15, 159, 122, .78);
  color: #fff;
}

/* Windows 11-like bottom navigation */
.sidebar {
  gap: 10px;
  padding: 8px 18px;
}

.nav,
.round {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #bfc6c3;
  background: transparent;
  border: 0;
  margin: 0;
}

.nav::after,
.round::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .16s ease, opacity .16s ease;
  opacity: 0;
}

.nav:hover,
.round:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.nav.active,
.round:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.nav.active::after,
.round:focus-visible::after {
  width: 18px;
  opacity: 1;
}

.round.plus,
.photo-monitor {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-left: 8px;
}

.round.plus {
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
}

.photo-monitor.failed {
  background: #e7353b;
  color: #fff;
  box-shadow: 0 8px 22px rgba(231, 53, 59, .28);
}

.photo-monitor.passed {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 159, 122, .26);
}

.camera-icon {
  width: 22px;
  height: 16px;
  border-width: 2px;
  border-radius: 5px;
}

.camera-icon::before {
  left: 4px;
  top: -6px;
  width: 8px;
  height: 4px;
  border-width: 2px 2px 0;
  border-radius: 4px 4px 0 0;
}

.camera-icon::after {
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

body.auth-active {
  background: #ffffff;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr 74px;
}

.app-hidden {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    #ffffff;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  position: relative;
  width: min(520px, 100%);
  min-height: 0;
  display: grid;
  gap: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23181818' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='.08'%3E%3Cpath d='M0 28h28l18 18h44l16-16h28l18 18h68'/%3E%3Cpath d='M0 66h42l28 28h56l22-22h72'/%3E%3Cpath d='M0 106h64l24 24h40l30-30h62'/%3E%3Cpath d='M0 148h34l22-22h30l28 28h46l24-24h36'/%3E%3Cpath d='M0 188h62l26-26h48l22 22h62'/%3E%3Cpath d='M42 0v34l22 22v28'/%3E%3Cpath d='M82 0v42l24 24v40'/%3E%3Cpath d='M122 0v28l-20 20v28'/%3E%3Cpath d='M164 0v58l-22 22v28'/%3E%3Cpath d='M196 0v36l-18 18v34'/%3E%3Cpath d='M36 220v-38l28-28v-34'/%3E%3Cpath d='M76 220v-52l22-22v-28'/%3E%3Cpath d='M116 220v-36l-18-18v-36'/%3E%3Cpath d='M158 220v-48l-24-24v-28'/%3E%3Cpath d='M198 220v-64l-22-22v-26'/%3E%3C/g%3E%3Cg fill='%23181818' opacity='.1'%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Ccircle cx='90' cy='46' r='5'/%3E%3Ccircle cx='134' cy='30' r='5'/%3E%3Ccircle cx='42' cy='66' r='5'/%3E%3Ccircle cx='126' cy='94' r='5'/%3E%3Ccircle cx='148' cy='72' r='5'/%3E%3Ccircle cx='64' cy='106' r='5'/%3E%3Ccircle cx='128' cy='130' r='5'/%3E%3Ccircle cx='158' cy='100' r='5'/%3E%3Ccircle cx='34' cy='148' r='5'/%3E%3Ccircle cx='86' cy='126' r='5'/%3E%3Ccircle cx='160' cy='154' r='5'/%3E%3Ccircle cx='62' cy='188' r='5'/%3E%3Ccircle cx='136' cy='162' r='5'/%3E%3Ccircle cx='184' cy='130' r='5'/%3E%3Ccircle cx='64' cy='84' r='5'/%3E%3Ccircle cx='106' cy='106' r='5'/%3E%3Ccircle cx='142' cy='108' r='5'/%3E%3Ccircle cx='98' cy='118' r='5'/%3E%3Ccircle cx='176' cy='108' r='5'/%3E%3C/g%3E%3C/svg%3E"),
    #ffffff;
  background-size: 360px 360px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .94));
  opacity: 1;
}

.login-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--accent);
  box-shadow: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 34px 34px 0;
  text-align: center;
  max-width: 100%;
}

.login-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--nav);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.login-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  color: #151515;
  white-space: nowrap;
}

.login-brand p {
  max-width: 300px;
  margin: 8px 0 0;
  color: #4b5563;
  font-weight: 650;
  text-align: left;
}

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  width: 100%;
  padding: 0 34px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-form label {
  color: #4b5563;
  font-weight: 700;
}

.login-form input {
  height: 42px;
  margin-top: 6px;
  border-color: rgba(17, 24, 39, .22);
  background: #f0f0ef;
}

.login-form .primary {
  width: 100%;
  height: 44px;
  margin-top: 5px;
  border-radius: 7px;
  background: var(--accent);
  color: #071a15;
  font-weight: 900;
  box-shadow: none;
}

.login-form .primary:hover {
  background: #08745b;
  color: #ffffff;
  transform: translateY(-1px);
}

.login-error {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
}

.login-hint {
  margin-top: 18px;
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
}

.login-hint b {
  color: var(--text);
}

@media (max-width: 760px) {
  .login-card {
    width: min(460px, 100%);
    border-radius: 8px;
  }

  .login-brand {
    justify-content: center;
    padding: 28px 24px 0;
  }

  .login-brand h1 {
    font-size: 27px;
  }

  .login-logo {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .login-form {
    padding: 0 24px 28px;
  }
}

/* Soft product polish */
:root {
  --nav: #171817;
  --nav-dark: #20211f;
  --accent: #0f9f7a;
  --accent-dark: #08745b;
  --accent-soft: #eef8f4;
  --green: #0f9f7a;
  --yellow: #0f9f7a;
  --red: #ef5b5b;
  --line: #e4e1da;
  --bg: #fbfaf7;
  --panel: #fffefd;
  --panel-2: #f5f3ee;
  --panel-3: #eeebe4;
  --text: #1b1b1a;
  --muted: #73736f;
  --field: #f3f1ec;
  --field-border: #d7d2c8;
  --shadow: 0 18px 45px rgba(42, 38, 30, 0.07);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 450;
}

h1,
h2,
h3,
strong,
b {
  font-weight: 720;
}

button {
  font-weight: 650;
}

.app {
  grid-template-rows: 1fr 58px;
}

.main,
.details,
.order-page {
  background: var(--bg);
}

.topbar {
  height: 76px;
  padding: 14px clamp(20px, 3vw, 42px);
  background: rgba(23, 24, 23, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.crumb {
  color: rgba(255, 255, 255, .44);
  font-size: 11px;
  font-weight: 600;
}

h1 {
  font-size: 23px;
  font-weight: 760;
}

.alerts {
  gap: 8px;
}

.alerts .pill,
.alerts .ghost,
.alerts .balance,
.alerts .shift-button,
.alerts .trash-button,
.alerts .employee-mini,
.alerts .overdue-status {
  min-height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
}

.alerts .employee-mini {
  border-radius: 999px;
}

.alerts .pill:hover,
.alerts .ghost:hover,
.alerts .balance:hover,
.alerts .shift-button:hover,
.alerts .trash-button:hover,
.alerts .employee-mini:hover,
.alerts .overdue-status:hover {
  background: rgba(255, 255, 255, .07);
}

.sidebar {
  height: 58px;
  padding: 7px 18px;
  gap: 10px;
  background: rgba(23, 24, 23, .98);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  height: 38px;
  min-width: 136px;
  font-size: 12px;
  font-weight: 760;
}

.nav,
.round {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-bottom: 0;
  color: rgba(255, 255, 255, .62);
}

.nav.active {
  background: rgba(255, 255, 255, .07);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.round {
  margin-left: 12px;
}

.plus,
.photo-monitor.passed {
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(15, 159, 122, .22);
}

.photo-monitor.failed {
  box-shadow: 0 8px 22px rgba(220, 38, 38, .28);
}

.view {
  padding-top: 18px;
}

.page-shell,
.employee-cabinet,
.simple-view > h2,
.simple-view > .cards-list,
.simple-view > .doc-grid,
.simple-view > .settings-box {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.panel,
.summary article,
.employee-head,
.employee-panel,
.employee-stats article,
.coolness-card,
.two-gis-widget,
.money-summary div,
.cash-audit-grid article,
.list-card,
.settings-box,
.doc-grid {
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(42, 38, 30, .045);
}

.summary article,
.employee-head,
.employee-panel,
.employee-stats article,
.coolness-card,
.two-gis-widget,
.money-summary div,
.cash-audit-grid article {
  border-radius: 12px;
}

input,
select,
textarea,
.search-select-button {
  border-color: var(--field-border);
  border-radius: 9px;
  background-color: var(--field);
}

.primary,
.success,
.payment-button {
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 159, 122, .18);
}

.ghost {
  border-radius: 10px;
}

.employee-cabinet {
  gap: 16px;
  margin-top: 12px;
}

.employee-head {
  padding: 18px 20px;
}

.employee-identity img {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(15, 159, 122, .7);
  box-shadow: 0 0 0 5px rgba(15, 159, 122, .08);
}

.employee-head h3 {
  font-size: 22px;
  font-weight: 760;
}

.employee-head p {
  font-size: 13px;
}

.employee-dashboard-main {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr);
  gap: 16px;
}

.salary-focus-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(15, 159, 122, .2);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
  box-shadow: 0 18px 42px rgba(15, 159, 122, .08);
}

.salary-focus-card span,
.salary-focus-card small {
  color: var(--muted);
}

.salary-focus-card > strong {
  color: #065f4a;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.salary-focus-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.salary-focus-card b {
  padding: 10px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
}

.employee-tasks-panel {
  min-height: 210px;
}

.coolness-card {
  grid-template-columns: minmax(260px, .58fr) minmax(420px, 1.42fr);
  gap: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(42, 38, 30, .045);
}

.coolness-intro,
.coolness-card > div:first-child {
  padding: 4px;
}

.section-kicker {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 760;
}

.coolness-card strong {
  color: #065f4a;
  font-size: 44px;
}

.rank-bonus,
.rank-transition,
.coolness-metrics article,
.task-item {
  border-color: var(--line);
  background: #faf9f5;
  border-radius: 10px;
}

.coolness-metrics {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
}

.two-gis-widget {
  grid-column: span 1;
  border-color: var(--line);
}

.two-gis-widget strong {
  color: #065f4a;
  font-size: 18px;
}

.rank-transition {
  grid-column: span 1;
}

.employee-stats {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.employee-stats article {
  padding: 15px;
  box-shadow: none;
}

.employee-stats strong {
  color: #065f4a;
  font-size: 24px;
}

.employee-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.employee-panel {
  padding: 18px;
}

.employee-panel h3 {
  font-size: 16px;
  font-weight: 720;
}

.task-list {
  gap: 8px;
}

.task-item {
  padding: 12px;
}

.mini-table th,
.mini-table td {
  border-color: var(--line);
}

@media (max-width: 1000px) {
  .employee-dashboard-main,
  .coolness-card,
  .employee-grid {
    grid-template-columns: 1fr;
  }

  .employee-stats {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-rows: 1fr 58px;
  }

  .employee-dashboard-main,
  .employee-stats,
  .salary-focus-card div {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  height: 74px;
  background: var(--nav);
  border-top: 1px solid #252525;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  grid-row: 2;
}

.brand {
  width: auto;
  min-width: 142px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .4px;
  margin: 0 12px 0 0;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
}

.brand small {
  display: none;
}

.nav, .round {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #b8b8b8;
  background: transparent;
  border-bottom: 4px solid transparent;
  font-size: 18px;
  border-radius: 6px;
}

.nav {
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
}

.nav.active {
  color: #fff;
  background: var(--nav-dark);
  border-bottom-color: var(--accent);
}

.round {
  border-radius: 50%;
  border-bottom: 0;
  margin-left: 18px;
}

.plus {
  color: white;
  background: var(--accent);
  font-size: 28px;
}

.photo-monitor {
  margin-left: 0;
  color: #ffffff;
  font-size: 0;
}

.photo-monitor.failed {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .16), 0 0 18px rgba(220, 38, 38, .55);
}

.photo-monitor.passed {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 163, 127, .16);
}

.camera-icon {
  position: relative;
  width: 21px;
  height: 15px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.camera-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -6px;
  width: 8px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
}

.camera-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.stock-icon {
  position: relative;
  width: 22px;
  height: 18px;
  display: block;
  color: currentColor;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 8px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 16px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 0 8px / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 8px 8px / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 16px 8px / 6px 6px no-repeat;
}

.main {
  min-width: 0;
  grid-row: 1;
  overflow: auto;
}

.topbar {
  height: 92px;
  padding: 18px clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav);
  border-bottom: 1px solid #252525;
}

.crumb {
  color: #8f8f8f;
  font-size: 12px;
  margin-bottom: 4px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 25px;
  color: #ffffff;
}

.alerts {
  display: flex;
  gap: 10px;
  align-items: center;
}

.alerts .pill,
.alerts .ghost,
.alerts .balance,
.alerts .shift-button,
.alerts .trash-button,
.alerts .employee-mini,
.alerts .overdue-status {
  background: #181818;
  color: #ffffff;
  border-color: #242424;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.alerts .pill:hover,
.alerts .ghost:hover,
.alerts .balance:hover,
.alerts .shift-button:hover,
.alerts .trash-button:hover,
.alerts .employee-mini:hover,
.alerts .overdue-status:hover {
  background: #242424;
}

.alerts .balance,
.alerts .shift-button.open {
  color: var(--accent);
}

.alerts .shift-button.open,
.alerts .shift-button.closed {
  background: #181818;
  border-color: #242424;
}

.alerts .shift-button.closed {
  color: #ffffff;
}

.alerts .employee-mini {
  border-color: #2f2f2f;
}

.alerts .employee-mini img {
  border: 2px solid var(--accent);
  background: #000000;
}

.alerts .trash-button {
  color: #ffb4b4;
}

.pill, .ghost, .balance {
  height: 34px;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.overdue-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.overdue-status.ok {
  color: var(--accent);
}

.overdue-status.danger {
  color: #ff5f6f;
}

.pill b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 50%;
  background: #e33247;
  color: white;
  font-size: 12px;
}

.balance {
  color: var(--accent);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.trash-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 0 12px;
  color: #b42318;
  background: #fff1f1;
  border: 1px solid #ffd2d2;
  font-weight: 800;
}

.trash-button b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  background: #b42318;
  font-size: 12px;
}

.shift-button {
  height: 34px;
  border-radius: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.shift-button.closed {
  color: #7a2e0e;
  background: #fff4e8;
  border-color: #ffd9ad;
}

.shift-button.open {
  color: #0f5132;
  background: #e7f5ef;
  border-color: #bce4d3;
}

.employee-mini {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 7px;
  border-radius: 19px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-weight: 700;
}

.employee-mini .metal-status {
  font-size: 11px;
  padding: 4px 8px;
}

.employee-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-mini span {
  white-space: nowrap;
}

.view {
  display: none;
  padding: 20px clamp(18px, 3vw, 40px) 28px;
}

.view.active {
  display: block;
}

.page-shell {
  width: min(100%, 1560px);
  margin: 0 auto;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.summary article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.summary strong {
  font-size: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.filters {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(170px, .8fr) minmax(170px, .8fr) auto auto;
  gap: 10px;
  align-items: flex-end;
  justify-content: stretch;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background: var(--field);
  color: var(--text);
  padding: 9px 10px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.18);
}

.search-select {
  position: relative;
  width: 100%;
}

.search-select > select {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.search-select-button {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 9px 36px 9px 10px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background:
    linear-gradient(45deg, transparent 50%, #555 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #555 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
    var(--field);
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-select-button[class*="status-tone-"] {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.search-select-button[class*="status-tone-"]::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--status-color, #64748b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color, #64748b) 16%, transparent);
}

.search-select-button:focus {
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.18);
}

.search-select-button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.search-select-panel {
  position: absolute;
  z-index: 3000;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(420px, 55vh);
  overflow: auto;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  padding: 5px;
}

.search-select-panel.hidden {
  display: none;
}

.search-select-query {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.search-select-query span {
  color: var(--muted);
  font-weight: 600;
}

.search-select-option {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  font-weight: 500;
}

.search-select-option[class*="status-tone-"] {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.search-select-option[class*="status-tone-"]::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--status-color, #64748b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color, #64748b) 16%, transparent);
}

.search-select-option:hover,
.search-select-option.selected {
  background: #e7f5ef;
  color: var(--accent-dark);
}

.search-select-option:disabled {
  color: var(--muted);
  cursor: default;
}

.search-select-empty {
  padding: 10px;
  color: var(--muted);
}

input::placeholder,
textarea::placeholder {
  color: #7d7d7d;
}

.filters label {
  min-width: 0;
}

.filters label:first-child {
  max-width: none;
}

.filters button {
  white-space: nowrap;
  min-width: max-content;
}

.primary, .success, .danger {
  height: 38px;
  border-radius: 6px;
  padding: 0 15px;
  color: white;
  font-weight: 700;
}

.primary { background: var(--accent); color: #06130f; }
.success { background: var(--green); color: #06130f; }
.danger { background: var(--red); }

.table-wrap {
  overflow: auto;
  min-height: calc(100vh - 274px);
}

.orders-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.orders-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.orders-table tr {
  cursor: pointer;
}

.orders-table tr:hover {
  background: #f6faf8;
}

.orders-table tr.selected {
  background: #e7f5ef;
}

.orders-table tr.late {
  background: #fff1f1;
}

.orders-table tr.late.selected {
  background: #fde4e4;
}

.orders-table tr.pending-delete,
.orders-table tr.pending-delete.selected,
.orders-table tr.pending-delete.late {
  background: #ffe8e8;
  color: #8a1f17;
}

.orders-table tr.pending-delete td:first-child::before {
  content: "🗑 ";
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-select {
  font-weight: 800;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.status-select.status-tone-all {
  color: #111827;
}

.status-select.status-tone-принят {
  color: #64748b;
  border-color: rgba(100, 116, 139, .45);
  background: #f8fafc;
}

.status-select.status-tone-диагностика {
  color: #0284c7;
  border-color: rgba(14, 165, 233, .45);
  background: #f0f9ff;
}

.status-select.status-tone-согласование {
  color: #b45309;
  border-color: rgba(245, 158, 11, .5);
  background: #fffbeb;
}

.status-select.status-tone-в-ремонте,
.status-select.status-tone-выдан {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .45);
  background: #eff6ff;
}

.status-select.status-tone-готов,
.status-select.status-tone-ждет-клиента {
  color: #08745b;
  border-color: rgba(16, 163, 127, .55);
  background: #f0fdf8;
}

.status-select.status-tone-закрыт {
  color: #111827;
  border-color: rgba(17, 24, 39, .45);
  background: #f3f4f6;
}

.status-select.status-tone-гарантия {
  color: #dc2626;
  border-color: rgba(220, 38, 38, .48);
  background: #fef2f2;
}

.status-select option {
  background: #fff;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.details {
  min-width: 0;
  background: var(--panel);
  overflow: auto;
}

.order-page-view {
  padding: 0;
}

.order-page {
  width: min(100%, 1660px);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  background: var(--bg);
}

.order-page.order-locked .order-main-grid,
.order-page.order-locked .work-actions-strip,
.order-page.order-locked .tabs,
.order-page.order-locked .tab-content {
  opacity: .58;
}

.order-page.order-locked input,
.order-page.order-locked textarea,
.order-page.order-locked select,
.order-page.order-locked .search-select-button,
.order-page.order-locked button:disabled {
  cursor: not-allowed;
}

.order-page.order-locked .work-actions-strip button,
.order-page.order-locked #paymentButton {
  filter: grayscale(.35);
}

.order-toolbar {
  min-height: 70px;
  padding: 14px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-left {
  flex: 0 0 auto;
}

.toolbar-right {
  flex: 0 0 auto;
}

.order-toolbar-meta {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-toolbar-meta span {
  white-space: nowrap;
}

.order-toolbar-meta b {
  color: var(--text);
}

.toolbar-left small {
  color: var(--muted);
}

.back-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 25px;
}

.payment-button {
  height: 34px;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--yellow);
  color: #06130f;
  font-weight: 800;
}

.print-menu {
  position: relative;
}

.print-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 230px;
  display: none;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.print-dropdown.open {
  display: grid;
}

.print-dropdown button {
  height: 34px;
  padding: 0 10px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border-radius: 5px;
}

.print-dropdown button:hover {
  background: var(--panel-2);
}

.print-dropdown button:disabled {
  color: #b5b5b5;
  cursor: not-allowed;
}

.print-dropdown button:disabled:hover {
  background: transparent;
}

.order-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 20px clamp(18px, 3vw, 40px) 12px;
}

.order-field-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 160px 1fr;
  gap: 12px;
  align-items: end;
}

.money-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  align-items: stretch;
  gap: 8px;
  color: var(--muted);
  padding-top: 2px;
}

.money-summary div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.money-summary b {
  color: var(--text);
  text-align: left;
  font-size: 13px;
}

.work-actions-strip {
  padding: 0 clamp(18px, 3vw, 40px) 12px;
  border-bottom: 1px solid var(--line);
}

.work-actions-strip .work-action-grid {
  margin-bottom: 0;
}

.order-page .tabs {
  padding: 0 clamp(18px, 3vw, 40px);
  margin-bottom: 0;
  background: var(--bg);
}

.order-page .tab-content {
  padding: 16px clamp(18px, 3vw, 40px) 24px;
}

.about-order-compact {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 14px 28px;
  align-items: start;
  min-height: 112px;
}

.about-order-lines {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.about-order-lines div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.empty-state {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  gap: 8px;
}

.empty-state strong {
  color: var(--text);
}

.order-card {
  padding: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head small {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.work-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 10px;
  max-width: none;
  margin-bottom: 14px;
}

.work-action-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.work-action {
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.work-action span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-action.green {
  background: var(--accent);
}

.work-action.red {
  background: var(--accent);
}

.work-action:hover {
  background: #0d8f70;
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 8px 18px rgba(16, 163, 127, .22);
  transform: translateY(-1px);
}

.work-action:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(16, 163, 127, .18);
}

.work-action-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1.7px solid currentColor;
  opacity: .95;
}

.icon-work {
  border-radius: 3px;
  transform: rotate(45deg);
}

.icon-work::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.7px;
  background: currentColor;
  left: 3px;
  top: 6px;
}

.icon-clean {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.icon-clean::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: currentColor;
  left: 8px;
  top: -2px;
  transform: rotate(-35deg);
  border-radius: 2px;
}

.icon-booking {
  border-radius: 2px;
}

.icon-booking::before,
.icon-booking::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-booking::before {
  width: 9px;
  height: 1.6px;
  left: 2px;
  top: 4px;
}

.icon-booking::after {
  width: 9px;
  height: 1.6px;
  left: 2px;
  top: 8px;
}

.icon-accessory {
  border-radius: 4px;
}

.icon-accessory::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -4px;
  top: -4px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
  background: var(--accent);
}

.work-percent {
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 163, 127, .1);
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab {
  height: 36px;
  padding: 0 10px;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fields .wide {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  gap: 8px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.info-list span {
  color: var(--muted);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th, .mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.mini-table .work-edit-input {
  width: 100%;
  min-width: 96px;
  height: 30px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.mini-table .work-warranty-input {
  min-width: 64px;
}

.work-delete-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

.work-delete-button:hover {
  background: #be123c;
  color: #ffffff;
}

.test-row {
  display: grid;
  grid-template-columns: 1fr 132px 132px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.test-row strong {
  font-size: 12px;
  font-weight: 500;
}

.auto-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.auto-test-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(16, 163, 127, .28);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.auto-test-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.checkline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.checkline label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.checkline input {
  width: auto;
}

.video-drop {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.video-drop strong {
  color: var(--text);
}

.simple-view {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.cards-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.structured-table {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.structured-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.structured-table th {
  padding: 11px 14px;
  background: #f4f4f4;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.structured-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.structured-table tbody tr:hover {
  background: #f8faf9;
}

.structured-table tbody tr:last-child td {
  border-bottom: 0;
}

.qty-badge {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.paid-cell {
  color: var(--accent);
  font-weight: 800;
}

.debt-cell {
  color: #dc2626;
  font-weight: 800;
}

.muted-cell {
  color: var(--muted);
}

.return-cell {
  color: var(--accent);
  font-weight: 800;
}

.waiting-cell {
  color: var(--accent);
  font-weight: 800;
}

.cash-audit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cash-audit-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cash-audit-grid span,
.cash-audit-grid small {
  color: var(--muted);
}

.cash-audit-grid strong {
  font-size: 18px;
}

.list-card, .settings-box, .doc-grid {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.doc-grid button {
  height: 46px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}

.employee-cabinet {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.employee-head,
.employee-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.employee-panel {
  overflow-x: auto;
}

.employee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.employee-identity img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(16, 163, 127, .12);
}

.employee-head span {
  color: var(--muted);
  font-size: 12px;
}

.employee-head h3 {
  margin-top: 4px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-shift-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(16, 163, 127, .35);
  border-radius: 999px;
  background: rgba(16, 163, 127, .08);
  color: #08745b;
  font-weight: 800;
  white-space: nowrap;
}

.employee-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.employee-stats article {
  display: grid;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  padding: 14px;
}

.employee-stats span,
.employee-stats small {
  color: var(--muted);
}

.employee-stats strong {
  font-size: 24px;
  color: #08745b;
}

.two-gis-widget {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cfe4dc;
  border-radius: 8px;
  background: #ffffff;
}

.two-gis-widget div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.two-gis-widget b {
  color: var(--text);
}

.two-gis-widget span,
.two-gis-widget small {
  color: var(--muted);
}

.two-gis-widget strong {
  color: #08745b;
  font-size: 18px;
}

.two-gis-widget button {
  justify-self: start;
  min-height: 30px;
}

.metal-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  overflow: hidden;
  min-height: 24px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 46%, rgba(0,0,0,.16) 100%),
    #0f6f59;
  color: #ffffff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.24);
  box-shadow:
    0 5px 12px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.metal-status > * {
  position: relative;
  z-index: 2;
}

.rank-bronze {
  --rank-a: #2c1510;
  --rank-b: #704021;
  --rank-c: #c6864b;
  --rank-d: #8f552b;
  --rank-e: #e7a66a;
  --rank-edge: #b2743d;
  --rank-text: #fff2e7;
  --rank-glow: rgba(202, 122, 54, .42);
}

.rank-silver {
  --rank-a: #20252a;
  --rank-b: #7e8992;
  --rank-c: #f5f7f7;
  --rank-d: #9ca7af;
  --rank-e: #d8e0e2;
  --rank-edge: #d9e0e2;
  --rank-text: #ffffff;
  --rank-glow: rgba(210, 225, 230, .46);
}

.rank-gold {
  --rank-a: #3a2506;
  --rank-b: #9b6a12;
  --rank-c: #ffe08a;
  --rank-d: #c89318;
  --rank-e: #fff1b6;
  --rank-edge: #ffd36a;
  --rank-text: #fff8df;
  --rank-glow: rgba(255, 190, 55, .48);
}

.rank-platinum {
  --rank-a: #151922;
  --rank-b: #8190a8;
  --rank-c: #ffffff;
  --rank-d: #bac6d9;
  --rank-e: #e9f7ff;
  --rank-edge: #f2fbff;
  --rank-text: #ffffff;
  --rank-glow: rgba(215, 240, 255, .58);
}

.metal-status::after {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -40px;
  width: 22px;
  z-index: 3;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.72) 48%, transparent 100%);
  transform: rotate(18deg);
  animation: metal-glint 3.2s ease-in-out infinite;
  pointer-events: none;
}

.metal-status::before {
  content: none;
}

.coolness-card {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.coolness-card > div:first-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

.section-kicker,
.coolness-card span {
  color: #08745b;
  font-weight: 800;
  font-size: 12px;
}

.section-kicker {
  width: max-content;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eef3f1;
  letter-spacing: .08em;
}

.coolness-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.coolness-card strong {
  color: #064e3b;
  font-size: 48px;
  line-height: 1;
}

.coolness-card p {
  margin: 0;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.5;
}

.rank-bonus {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d8e0dc;
  border-radius: 7px;
  background: #f7f8f8;
}

.rank-bonus b {
  color: var(--text);
  font-size: 13px;
}

.rank-bonus span {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.coolness-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rank-transition {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  background: #f7f8f8;
}

.rank-transition > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rank-transition > div:first-child span,
.rank-transition > div:first-child b {
  color: #1f2937;
}

.rank-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(0,0,0,.08)),
    #d9dfdd;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}

.rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #0f6f59, #128066);
  box-shadow: none;
}

.rank-transition small {
  color: var(--muted);
  font-weight: 700;
}

.coolness-metrics article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8e0dc;
  border-radius: 7px;
  background: #ffffff;
}

.coolness-metrics article div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.coolness-metrics b {
  color: var(--text);
}

.coolness-metrics span {
  white-space: nowrap;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e7e5;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #128066;
  box-shadow: none;
}

@keyframes metal-glint {
  0%, 45% {
    left: -40px;
    opacity: 0;
  }
  55% {
    opacity: .9;
  }
  72%, 100% {
    left: calc(100% + 32px);
    opacity: 0;
  }
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.employee-panel h3 {
  margin-bottom: 12px;
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-2);
}

.task-item span {
  color: var(--muted);
}

.admin-table th,
.admin-table td {
  white-space: normal;
  vertical-align: middle;
}

.admin-table {
  min-width: 860px;
}

.admin-table td:first-child {
  min-width: 180px;
}

.salary-cell {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 82px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f6f4;
  color: #0f513f;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.presence-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.presence-pill.online {
  color: #08745b;
}

.presence-pill.online::before {
  background: #10a37f;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, .14);
}

.presence-pill.offline {
  color: #64748b;
}

.presence-pill.offline::before {
  background: #94a3b8;
}

.admin-question {
  border-left: 4px solid #dc2626;
  background: #fff7f7;
}

.admin-question b {
  color: #991b1b;
}

.employee-panel .debt-cell {
  color: #dc2626;
}

.employee-panel .paid-cell {
  color: #08745b;
}

@media (max-width: 980px) {
  .employee-stats,
  .employee-grid {
    grid-template-columns: 1fr;
  }
}

select option {
  background: var(--panel-2);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 999px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.settings-box {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
  width: min(920px, calc(100vw - 32px));
}

#workDialog {
  width: min(430px, calc(100vw - 24px));
}

#quickPartDialog {
  width: min(560px, calc(100vw - 24px));
}

#quickWorkDialog {
  width: min(440px, calc(100vw - 28px));
}

#printConfirmDialog {
  width: min(520px, calc(100vw - 28px));
}

#photoMonitorDialog {
  width: min(520px, calc(100vw - 24px));
}

#shiftDialog {
  width: min(520px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.dialog-card {
  background: var(--panel);
}

.print-confirm-dialog {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.print-confirm-dialog header,
.print-confirm-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.print-confirm-dialog footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.print-confirm-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.print-confirm-warning {
  padding: 10px 12px;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  line-height: 1.45;
}

.print-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.print-history h4 {
  margin: 0;
  font-size: 13px;
}

.print-history div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--panel-2);
}

.print-history span {
  color: var(--muted);
  font-size: 12px;
}

.print-history.muted {
  color: var(--muted);
}

.dialog-card header,
.dialog-card footer,
.payment-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-card footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  gap: 10px;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.payment-dialog {
  background: var(--panel);
}

.work-dialog {
  width: 100%;
  background: var(--panel);
}

.quick-part-dialog {
  width: 100%;
  background: var(--panel);
}

.work-dialog header,
.quick-part-dialog header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.work-dialog h2,
.quick-part-dialog h2 {
  font-size: 14px;
}

.work-dialog footer,
.quick-part-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.work-dialog-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.work-dialog-body label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
}

.work-dialog-body label.required::before {
  content: "*";
  color: #d81223;
  margin-right: 3px;
}

.work-dialog-body input,
.work-dialog-body select {
  height: 34px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 0 10px;
  background: var(--field);
  color: var(--text);
}

.work-dialog-body select {
  appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, #666666 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #666666 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    var(--field);
}

.work-dialog-body select:focus,
.work-dialog-body input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, .14);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.work-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.work-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.work-options input {
  width: auto;
  height: auto;
}

.muted-check {
  color: #b5b5b5 !important;
}

.part-picker {
  display: block;
}

.stock-badge {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #666666;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.stock-badge::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.stock-badge:hover {
  color: var(--accent);
  border-color: rgba(16, 163, 127, .45);
  background: var(--accent-soft);
  box-shadow: 0 7px 16px rgba(16, 163, 127, .16);
  transform: translateY(-1px);
}

.stock-badge:active {
  transform: translateY(0);
  box-shadow: none;
}

.quick-work-dialog {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.quick-work-dialog header,
.quick-work-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.quick-work-dialog footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.quick-work-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.quick-work-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.quick-work-body input,
.quick-work-body select {
  height: 36px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--field);
  color: var(--text);
}

.quick-work-body input:focus,
.quick-work-body select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, .14);
}

.yellow-action {
  width: 100%;
  height: 32px;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  transition: background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.yellow-action:hover {
  background: #0d8f70;
  box-shadow: 0 8px 18px rgba(16, 163, 127, .22);
  transform: translateY(-1px);
}

.yellow-action:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(16, 163, 127, .18);
}

.trash-dialog {
  width: min(760px, calc(100vw - 32px));
  background: var(--panel);
}

.trash-dialog header,
.shift-dialog header,
.shift-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.shift-dialog {
  width: 100%;
  background: var(--panel);
}

.shift-dialog footer {
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.shift-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.shift-body p {
  margin: 0;
  color: var(--text);
}

.shift-note {
  padding: 10px 12px;
  border-radius: 6px;
  color: #7a2e0e;
  background: #fff4e8;
}

.shift-audit-note {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #bce4d3;
  border-radius: 6px;
  color: var(--text);
  background: var(--accent-soft);
  font-size: 12px;
}

.shift-audit-note.bad {
  border-color: #fecaca;
  background: #fff1f1;
  color: #991b1b;
}

.shift-returns-block {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.shift-returns-title {
  display: grid;
  gap: 3px;
}

.shift-returns-title span,
.shift-returns-empty {
  color: var(--muted);
  font-size: 12px;
}

.shift-returns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.shift-returns-table th,
.shift-returns-table td {
  padding: 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.shift-returns-table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.shift-returns-table select,
.shift-returns-table input {
  width: 100%;
  min-width: 120px;
  height: 30px;
  padding: 4px 7px;
  font-size: 12px;
}

.shift-returns-table input {
  min-width: 70px;
}

.suspicious-return-row {
  background: #fff1f1;
}

.photo-monitor-status {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.photo-monitor-status.failed {
  color: #991b1b;
  background: #fff1f1;
  border: 1px solid #fecaca;
}

.photo-monitor-status.passed {
  color: #065f46;
  background: var(--accent-soft);
  border: 1px solid #bce4d3;
}

.close-order-dialog {
  width: min(560px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.close-order-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.close-order-body {
  padding: 18px;
  display: grid;
  gap: 14px;
  font-size: 14px;
}

.close-order-body p,
.close-order-body ul {
  margin: 0;
}

.close-order-body ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.close-order-body li::marker {
  color: var(--accent);
}

.close-order-reminder {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 159, 122, .24);
  border-radius: 12px;
  background: rgba(15, 159, 122, .08);
  color: #165f4b;
}

.close-order-reminder strong {
  color: var(--accent-strong, var(--accent));
  font-size: 15px;
}

.close-order-reminder span {
  font-size: 18px;
  font-weight: 700;
}

.close-order-countdown {
  padding: 12px 14px;
  border: 1px solid rgba(16, 163, 127, .28);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.close-order-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.trash-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.trash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #ffd2d2;
  border-radius: 6px;
  background: #fff8f8;
}

.trash-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.trash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trash-actions button {
  height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.trash-actions .danger-mini {
  color: #ffffff;
  background: #b42318;
  border-color: #b42318;
}

.payment-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.payment-body h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.payment-methods,
.payment-flags,
.payment-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-methods label,
.payment-flags label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
}

.payment-methods input,
.payment-flags input {
  width: auto;
}

.payment-total-badge {
  padding: 10px 14px;
  border-radius: 2px;
  background: #fff8df;
  font-weight: 700;
}

.payment-inputs label {
  min-width: 230px;
}

.payment-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.payment-result div {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.payment-result div + div {
  border-left: 1px solid var(--line);
}

.payment-result span {
  font-weight: 700;
}

.payment-note {
  padding: 12px 14px;
  color: #15517d;
  background: #e5f5ff;
}

#createPaymentDocument:disabled {
  color: #a3a3a3;
  cursor: not-allowed;
}

.context-menu {
  position: fixed;
  z-index: 100;
  display: none;
  min-width: 170px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.context-menu.open {
  display: grid;
}

.context-menu button {
  height: 34px;
  padding: 0 10px;
  text-align: left;
  color: #b42318;
  background: transparent;
  border-radius: 5px;
  font-weight: 700;
}

.context-menu button:hover {
  background: #fff1f1;
}

.price-dialog {
  width: min(98vw, 1980px);
  height: min(94vh, 980px);
  max-width: none;
  padding: 0;
  background: #ffffff;
}

.price-window {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  background: #ffffff;
}

.price-window header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.price-window h2 {
  font-size: 15px;
}

.price-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) 42px;
  gap: 12px;
  padding: 18px;
  align-items: center;
}

.round-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.price-tabs {
  display: flex;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.price-tab {
  height: 42px;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 700;
}

.price-tab.active {
  color: var(--text);
  border-bottom-color: #0f4c81;
}

.price-search-row {
  padding: 14px 18px;
}

.price-search-row input {
  max-width: 640px;
}

.price-table-wrap {
  position: relative;
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  overflow: auto;
}

.price-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}

.price-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f7f7;
  color: var(--muted);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.price-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.price-table tr:hover {
  background: #f6faf8;
}

.self-calc {
  margin: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: auto;
}

.self-calc-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}

.self-calc-table th {
  background: #f7f7f7;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.self-calc-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.self-calc-table input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field);
  padding: 0 10px;
  font: inherit;
  color: var(--text);
}

.self-calc-table strong {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

#selfCalcTotal {
  color: var(--accent);
}

#selfCalcTotal.price-alert {
  color: #dc2626;
  animation: priceBlink 900ms ease-in-out infinite;
}

.self-calc-warning {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: #dc2626;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  animation: priceBlink 900ms ease-in-out infinite;
}

.self-calc-warning span {
  font-size: 18px;
  line-height: 1.25;
}

@keyframes priceBlink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.price-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .order-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .order-toolbar-meta {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .order-main-grid,
  .order-field-grid {
    grid-template-columns: 1fr;
  }

  .money-summary {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-rows: 1fr 66px;
  }

  .sidebar {
    height: 66px;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .brand {
    width: auto;
    min-width: 128px;
    height: 42px;
    margin-right: 4px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .nav, .round {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .round {
    margin-left: 8px;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .alerts {
    flex-wrap: wrap;
  }

  .filters {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .price-filters {
    grid-template-columns: 1fr;
  }

  .filters label,
  .filters label:first-child,
  .filters button,
  .price-filters select,
  .price-filters button {
    width: 100%;
    max-width: none;
  }

  .summary, .fields, .form-grid, .money-summary {
    grid-template-columns: 1fr;
  }

  .cash-audit-grid {
    grid-template-columns: 1fr;
  }

  .work-action-grid {
    grid-template-columns: 1fr;
  }

  .employee-head {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-mini span {
    display: none;
  }

  .employee-stats,
  .employee-grid,
  .coolness-card,
  .coolness-metrics {
    grid-template-columns: 1fr;
  }
}

/* Final override: calmer Apple-like CRM surface */
:root {
  --bg: #fbfaf7;
  --panel: #fffefd;
  --panel-2: #f5f3ee;
  --line: #e7e2d9;
  --line-soft: rgba(32, 33, 31, .08);
  --text: #20211f;
  --muted: #747b83;
  --accent: #0f9f7a;
  --accent-strong: #08775b;
  --danger: #d74d52;
  --shadow-soft: 0 12px 34px rgba(32, 33, 31, .07);
  --shadow-tiny: 0 5px 18px rgba(32, 33, 31, .05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 450;
}

h1, h2, h3, strong, b {
  font-weight: 680;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app {
  background: var(--bg);
  grid-template-rows: 1fr 56px;
}

.main,
.details,
.order-page {
  background: var(--bg);
}

.topbar {
  min-height: 70px;
  height: auto;
  padding: 14px clamp(18px, 2.4vw, 34px);
  background: rgba(255, 254, 252, .9);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  box-shadow: 0 8px 26px rgba(32, 33, 31, .04);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.crumb,
.subline,
.muted,
.employee-sub,
.stat span,
.stat small,
.coolness-note,
.coolness-text {
  color: var(--muted);
}

.alerts {
  gap: 8px;
}

.alerts button,
.alerts .balance,
.alerts .shift-button,
.profile-pill,
.logout {
  min-height: 36px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  box-shadow: var(--shadow-tiny);
}

.primary,
.btn.primary,
button.primary,
.sale-button,
.add,
.shift-button.open,
.work-button,
.confirm-button,
.login-button,
.photo-monitor.passed {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 159, 122, .18);
}

.primary:hover,
.btn.primary:hover,
button.primary:hover,
.sale-button:hover,
.add:hover,
.work-button:hover,
.confirm-button:hover,
.login-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.alerts .balance,
.alerts .shift-button.open,
.status-ok,
.success,
.money {
  color: var(--accent-strong);
}

.danger,
.status-bad,
.late-warning,
.close-shift {
  color: var(--danger);
}

button,
.btn,
.tab,
.nav,
.round,
.profile-pill,
.logout,
select,
input,
textarea {
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:not(.primary):hover,
.btn:not(.primary):hover,
.tab:hover,
.profile-pill:hover,
.logout:hover {
  border-color: rgba(15, 159, 122, .24);
  box-shadow: 0 8px 20px rgba(32, 33, 31, .06);
}

input,
select,
textarea,
.field-like {
  background: #f3f1ed;
  border: 1px solid #d7d2c9;
  border-radius: 10px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 159, 122, .55);
  box-shadow: 0 0 0 4px rgba(15, 159, 122, .1);
  outline: none;
}

.sidebar {
  height: 56px;
  background: rgba(255, 254, 252, .92);
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  box-shadow: 0 -8px 28px rgba(32, 33, 31, .06);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  min-width: 136px;
  height: 42px;
  font-size: 13px;
  letter-spacing: .02em;
}

.nav,
.round {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #687078;
  background: transparent;
}

.nav.active {
  color: var(--text);
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.round.plus,
.photo-monitor.passed {
  border-radius: 16px;
}

.content,
.dashboard,
.employee-page,
.order-view,
.price-modal,
.cash-view {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.employee-head,
.employee-grid > *,
.employee-stats .stat,
.coolness-card,
.panel,
.summary-card,
.modal,
.order-shell,
.filters,
.table-wrap,
.price-modal,
.cash-card,
.shift-card,
.stock-card,
.salary-focus-card,
.employee-tasks-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-tiny);
}

.card:hover,
.employee-stats .stat:hover,
.employee-grid > *:hover,
.summary-card:hover,
.stock-card:hover {
  box-shadow: var(--shadow-soft);
}

th {
  color: #606972;
  font-weight: 620;
  background: #f7f5f1;
}

td,
th {
  border-bottom: 1px solid var(--line-soft);
}

tr:hover td {
  background: rgba(15, 159, 122, .035);
}

.tabs {
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  color: #66707a;
  font-weight: 560;
  border-bottom-width: 2px;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.employee-page {
  padding: 24px clamp(18px, 2.8vw, 34px) 88px;
}

.employee-page > h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.employee-head {
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
}

.employee-avatar {
  box-shadow: 0 0 0 3px rgba(15, 159, 122, .14);
}

.rank-badge {
  background: #0f9f7a;
  color: #fff;
  box-shadow: 0 7px 18px rgba(15, 159, 122, .2);
}

.rank-badge::after {
  opacity: .42;
}

.employee-dashboard-main {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.salary-focus-card,
.employee-tasks-panel {
  padding: 18px;
}

.salary-focus-card span,
.salary-focus-card small {
  display: block;
  color: var(--muted);
}

.salary-focus-card > strong {
  display: block;
  margin: 7px 0 16px;
  color: var(--accent-strong);
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: .95;
  letter-spacing: 0;
}

.salary-focus-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.salary-focus-card div p {
  margin: 0;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.salary-focus-card b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.employee-tasks-panel .task-list {
  margin-top: 12px;
}

.coolness-card {
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
}

.coolness-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 159, 122, .08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 680;
}

.coolness-score {
  color: var(--accent-strong);
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.coolness-premium,
.two-gis-card,
.coolness-progress,
.metric,
.employee-grid > *,
.employee-stats .stat {
  background: #fffefd;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: none;
}

.two-gis-card {
  padding: 16px;
}

.two-gis-count {
  color: var(--accent-strong);
  font-size: clamp(36px, 4vw, 54px);
}

.progress-track,
.metric-bar {
  background: #e9e6df;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill,
.metric-fill {
  background: var(--accent);
  border-radius: inherit;
}

.employee-stats {
  gap: 12px;
}

.employee-stats .stat {
  min-height: 96px;
  padding: 16px;
}

.employee-stats .stat strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.employee-grid {
  gap: 14px;
}

.login-screen {
  background: #fbfaf7;
}

.login-shell {
  background: #fffefd;
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 70px rgba(32, 33, 31, .12);
}

.login-pattern {
  opacity: .045;
}

@media (max-width: 1000px) {
  .employee-dashboard-main,
  .coolness-card,
  .employee-grid {
    grid-template-columns: 1fr;
  }

  .employee-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
  }

  .app {
    grid-template-rows: 1fr 54px;
  }

  .sidebar {
    height: 54px;
  }

  .brand {
    min-width: 118px;
  }

  .nav,
  .round {
    width: 40px;
    height: 40px;
  }

  .employee-dashboard-main,
  .employee-stats,
  .salary-focus-card div {
    grid-template-columns: 1fr;
  }
}

/* Runtime final: dark bottom bar and graphite top buttons */
:root {
  --nav: #181918;
  --nav-dark: #20211f;
  --top-button: #f0efeb;
  --top-button-border: rgba(32, 33, 31, .1);
}

.sidebar {
  height: 58px;
  background: var(--nav);
  border-top: 1px solid #2a2b29;
  color: #f7f7f4;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .18);
  backdrop-filter: none;
}

.brand {
  color: #f7f7f4;
}

.nav,
.round {
  color: #c6ccc9;
  background: transparent;
}

.nav:hover,
.round:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.nav.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.round.plus,
.photo-monitor.passed {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 159, 122, .26);
}

.photo-monitor.failed {
  background: #ef3338;
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 51, 56, .28);
}

.alerts button,
.alerts .balance,
.alerts .shift-button,
.profile-pill,
.logout {
  background: var(--top-button);
  border-color: var(--top-button-border);
  color: #20211f;
  box-shadow: 0 6px 16px rgba(32, 33, 31, .06);
}

.alerts button:hover,
.alerts .balance:hover,
.alerts .shift-button:hover,
.profile-pill:hover,
.logout:hover {
  background: #e8e6df;
  border-color: rgba(15, 159, 122, .24);
}

.alerts .balance,
.alerts .shift-button.open,
.late-pill.ok {
  color: #19c99b;
}

.profile-pill .rank-badge {
  background: rgba(15, 159, 122, .78);
  color: #fff;
}

/* Runtime final: Windows 11-like bottom navigation */
.sidebar {
  gap: 10px;
  padding: 8px 18px;
}

.nav,
.round {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #bfc6c3;
  background: transparent;
  border: 0;
  margin: 0;
}

.nav::after,
.round::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .16s ease, opacity .16s ease;
  opacity: 0;
}

.nav:hover,
.round:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.nav.active,
.round:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.nav.active::after,
.round:focus-visible::after {
  width: 18px;
  opacity: 1;
}

.round.plus,
.photo-monitor {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-left: 8px;
}

.round.plus {
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
}

.photo-monitor.failed {
  background: #e7353b;
  color: #fff;
  box-shadow: 0 8px 22px rgba(231, 53, 59, .28);
}

.photo-monitor.passed {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 159, 122, .26);
}

.camera-icon {
  width: 22px;
  height: 16px;
  border-width: 2px;
  border-radius: 5px;
}

.camera-icon::before {
  left: 4px;
  top: -6px;
  width: 8px;
  height: 4px;
  border-width: 2px 2px 0;
  border-radius: 4px 4px 0 0;
}

.camera-icon::after {
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

/* Runtime final: unified light topbar pills */
.alerts .pill,
.alerts .ghost,
.alerts .balance,
.alerts .shift-button,
.alerts .trash-button,
.alerts .employee-mini,
.alerts .overdue-status,
.profile-pill,
.logout {
  min-height: 42px;
  padding: 10px 16px;
  background: #f0efeb;
  border: 1px solid rgba(32, 33, 31, .12);
  border-radius: 12px;
  color: #20211f;
  box-shadow: 0 8px 22px rgba(32, 33, 31, .07);
}

.alerts .pill:hover,
.alerts .ghost:hover,
.alerts .balance:hover,
.alerts .shift-button:hover,
.alerts .trash-button:hover,
.alerts .employee-mini:hover,
.alerts .overdue-status:hover,
.profile-pill:hover,
.logout:hover {
  background: #e8e6df;
  border-color: rgba(15, 159, 122, .24);
  box-shadow: 0 10px 24px rgba(32, 33, 31, .09);
}

.alerts .balance,
.alerts .shift-button.open,
.alerts .overdue-status.ok {
  color: #10a37f;
  font-weight: 800;
}

.alerts .overdue-status.danger {
  color: #d74d52;
  font-weight: 800;
}

.alerts .employee-mini,
.profile-pill {
  gap: 10px;
  color: #20211f;
}

.alerts .employee-mini strong,
.profile-pill strong,
.logout,
.alerts .ghost,
.alerts .pill {
  color: #20211f;
}

.profile-pill .rank-badge,
.alerts .employee-mini .rank-badge {
  background: #0f9f7a;
  color: #fff;
  box-shadow: none;
}

/* Runtime final: closed shift button matches light topbar pills */
.alerts .shift-button.closed,
.shift-button.closed {
  background: #f0efeb;
  border: 1px solid rgba(32, 33, 31, .12);
  color: #20211f;
  box-shadow: 0 8px 22px rgba(32, 33, 31, .07);
}

.alerts .shift-button.closed:hover,
.shift-button.closed:hover {
  background: #e8e6df;
  border-color: rgba(15, 159, 122, .24);
}

/* Runtime final: readable employee rank text */
.profile-pill .rank-badge,
.alerts .employee-mini .rank-badge,
.rank-badge {
  color: #fff !important;
  text-shadow: none;
}
