:root {
  --ink: #f8fbff;
  --muted: #9fb0c4;
  --line: rgba(218, 178, 88, .22);
  --paper: #101a28;
  --paper-soft: #142235;
  --base: #050b13;
  --accent: #d8ad4f;
  --accent-strong: #f0c866;
  --navy: #071321;
  --navy-2: #0c1b2c;
  --rose: #d75a76;
  --gold: #d8ad4f;
  --green: #2dbb87;
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 0%, rgba(216, 173, 79, .13), transparent 32%),
    linear-gradient(145deg, #03070d 0%, #071321 45%, #0b1522 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.sidebar {
  width: 280px;
  padding: 26px 20px;
  background: linear-gradient(180deg, #02060b 0%, #081523 100%);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(216, 173, 79, .55);
  box-shadow: 0 10px 28px rgba(216, 173, 79, .18);
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.license-reminder {
  display: grid;
  gap: 4px;
  margin: -18px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 200, 102, .45);
  border-radius: 8px;
  background: rgba(216, 173, 79, .13);
  color: #fff;
  text-decoration: none;
}

.license-reminder span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.license-reminder strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.license-reminder small {
  color: #f8e3a7;
  font-weight: 900;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.sidebar a,
.nav-group summary {
  text-decoration: none;
  color: #dbe4ec;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.sidebar a:hover,
.nav-group summary:hover {
  background: rgba(216, 173, 79, .12);
  color: #fff;
}

.sidebar a.active,
.nav-group.active > summary {
  background: rgba(216, 173, 79, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 173, 79, .35);
}

.nav-group > div {
  display: grid;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  padding-left: 12px;
  transition: max-height .25s ease;
}

.nav-group[open] > div {
  max-height: 170px;
}

.nav-group > div a {
  padding: 9px 12px;
  color: var(--muted);
}

.logout-link {
  align-self: stretch;
  margin-top: auto;
  background: rgba(215, 90, 118, .14);
  border: 1px solid rgba(215, 90, 118, .36);
  color: #ffd0da !important;
}

.logout-link:hover {
  background: rgba(215, 90, 118, .28) !important;
}

.pwa-install-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(216, 173, 79, .5);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .34);
}

.pwa-install-button[hidden] {
  display: none;
}

.content,
.auth-content {
  padding: 28px;
}

.content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.auth-content {
  width: 100%;
}

.auth-content {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  align-content: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.lang-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-switch a {
  text-decoration: none;
  min-width: 38px;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 26, 40, .86);
  color: #dbe4ec;
  font-weight: 700;
}

.lang-switch .active {
  background: var(--accent);
  color: #06101b;
  border-color: var(--accent);
}

.auth-card,
.panel,
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card,
.panel {
  padding: 22px;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(16, 26, 40, .95), rgba(9, 18, 30, .95)),
    url('../CDAL_logo.png') center 16px / 150px auto no-repeat;
}

.auth-logo {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 18px;
  border: 1px solid rgba(216, 173, 79, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.narrow {
  max-width: 520px;
}

.form-grid,
.inline-form {
  display: grid;
  gap: 14px;
}

.inline-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: #c2cedd;
  font-size: 13px;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #081523;
  font: inherit;
}

input[type="color"] {
  padding: 4px;
  cursor: pointer;
}

.file-input {
  min-height: 46px;
  padding: 7px;
  color: var(--muted);
  cursor: pointer;
}

.file-input::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  padding: 7px 13px;
  background: var(--accent);
  color: #06101b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.file-input:hover::file-selector-button {
  background: var(--accent-strong);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
.light-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
}

button,
.primary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #06101b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  background: #081523;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.secondary:hover {
  border-color: rgba(216, 173, 79, .58);
  color: var(--accent);
}

.muted-link {
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
}

.flash {
  padding: 13px 15px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: rgba(45, 187, 135, .14);
  color: #b8f0d9;
  border: 1px solid rgba(45, 187, 135, .34);
}

.flash.error {
  background: rgba(215, 90, 118, .15);
  color: #ffd0da;
  border-color: rgba(215, 90, 118, .38);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.day-summary {
  margin-bottom: 18px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}

.stat-breakdown {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.stat-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.25;
  color: #d7e4f2;
}

.stat-breakdown b {
  color: #fff;
  white-space: nowrap;
}

.table-card {
  margin-top: 16px;
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

code {
  background: #081523;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
}

.calendar-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.calendar-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.calendar-main {
  min-width: 0;
}

.mini-calendar {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.mini-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mini-calendar-head a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}

.mini-calendar-head strong {
  font-size: 18px;
}

.mini-weekdays,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.mini-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-weekdays span {
  text-align: center;
}

.mini-day {
  position: relative;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.mini-day:hover {
  border-color: var(--accent);
}

.mini-day.muted {
  opacity: .45;
}

.mini-day.selected {
  background: var(--accent);
  color: #06101b;
  border-color: var(--accent);
}

.mini-day b {
  position: absolute;
  left: 50%;
  bottom: -5px;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}

.mini-day i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .28);
}

.date-form {
  grid-template-columns: minmax(190px, 260px) auto;
  justify-content: start;
}

.schedule-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.schedule-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.schedule-edit-form {
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, .9fr) minmax(150px, .9fr) minmax(160px, 1fr) minmax(110px, .7fr) minmax(110px, .7fr) minmax(180px, 1fr) minmax(140px, .8fr);
}

.schedule-tabs {
  display: flex;
  gap: 10px;
  padding: 12px;
}

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

.schedule-tabs a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.schedule-tabs a.active {
  background: var(--accent);
  color: #06101b;
  border-color: var(--accent);
}

.schedule-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.schedule-day-card {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 26, 40, .92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.schedule-day-card.has-entry {
  border-color: rgba(216, 173, 79, .46);
}

.schedule-day-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-day-card header span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216, 173, 79, .16);
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
}

.schedule-day-card header strong {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}

.schedule-card-entry {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-left: 5px solid var(--employee-color, var(--accent));
  border-radius: 8px;
  background: rgba(5, 11, 19, .5);
}

.schedule-card-entry strong {
  font-size: 13px;
}

.schedule-card-entry small {
  color: var(--muted);
  font-weight: 900;
}

.schedule-filter-panel,
.schedule-form-panel {
  display: grid;
  gap: 14px;
}

.schedule-filter-panel h2,
.schedule-form-panel h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.schedule-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(840px, calc(100vh - 34px));
  overflow: auto;
}

.schedule-detail-list,
.schedule-modal-add {
  display: grid;
  gap: 12px;
}

.schedule-modal-add {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.schedule-modal-add h3 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.schedule-detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--employee-color, var(--accent));
  border-radius: 8px;
  background: rgba(8, 21, 35, .86);
}

.schedule-detail-card > div,
.schedule-detail-card > strong {
  display: grid;
  gap: 7px;
}

.schedule-detail-card small {
  color: var(--muted);
  font-weight: 900;
}

.schedule-modal-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 110px 110px minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.schedule-list-edit-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 110px 110px minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.schedule-list-edit-form input,
.schedule-list-edit-form select,
.schedule-list-edit-form button {
  min-height: 38px;
}

.day-calendar {
  display: grid;
  grid-template-columns: 76px minmax(720px, 1fr);
  background: rgba(8, 17, 29, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: var(--shadow);
}

.time-axis {
  background: #050b13;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.time-axis-head {
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

.time-label {
  height: 70px;
  padding: 9px 10px 0 0;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
}

.day-columns {
  display: grid;
  grid-template-columns: repeat(var(--employee-count), minmax(280px, 1fr));
  min-width: calc(var(--employee-count) * 280px);
}

.day-column {
  border-right: 1px solid rgba(216, 173, 79, .16);
}

.employee-head {
  height: 74px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #101c2d, #0b1625);
  border-top: 5px solid var(--employee-color, var(--accent));
  border-bottom: 1px solid var(--line);
}

.employee-head strong {
  font-size: 16px;
}

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

.employee-head[data-calendar-employee-head] {
  cursor: pointer;
  transition: border-color .2s ease, filter .2s ease, transform .2s ease;
}

.employee-head[data-calendar-employee-head]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.calendar-schedule-dialog {
  width: min(720px, calc(100vw - 28px));
}

.calendar-schedule-actions {
  display: grid;
  gap: 12px;
}

.calendar-schedule-actions details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 19, .36);
  overflow: hidden;
}

.calendar-schedule-actions summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #f8fbff;
  font-weight: 900;
  background: rgba(16, 28, 45, .78);
}

.calendar-schedule-form {
  display: grid;
  grid-template-columns: 120px 120px minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.day-lane {
  position: relative;
  height: 910px;
  cursor: crosshair;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)),
    #0a1421;
}

.hour-line {
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.timeline-event {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  min-height: 18px;
  overflow: hidden;
  border-radius: 7px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(90deg, var(--employee-color, var(--accent)) 0 50%, var(--status-color, #facc15) 50% 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .26);
  cursor: pointer;
}

.timeline-event.compact-event {
  padding: 6px 8px;
}

.timeline-event.compact-event > strong,
.timeline-event.compact-event > span:not(.new-client-badge):not(.event-drag-handle):not(.event-resize-handle),
.timeline-event.compact-event > small {
  display: none;
}

.timeline-event.compact-event .new-client-badge {
  top: 2px;
  right: 6px;
  padding: 2px 6px;
  font-size: 9px;
}

.event-drag-handle,
.event-resize-handle {
  position: absolute !important;
  left: 0;
  right: 0;
  z-index: 4;
  display: block !important;
  opacity: 0;
  transition: opacity .14s ease;
}

.event-drag-handle {
  top: 0;
  height: 12px;
  cursor: grab;
  background: rgba(6, 16, 27, .78);
}

.event-drag-handle:active {
  cursor: grabbing;
}

.event-resize-handle {
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
  background:
    linear-gradient(90deg, transparent, rgba(6, 16, 27, .55), transparent),
    rgba(255, 255, 255, .18);
}

.timeline-event:hover .event-drag-handle,
.timeline-event:hover .event-resize-handle {
  opacity: 1;
}

.new-client-badge {
  position: absolute !important;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(124, 58, 237, .35);
}

.timeline-event:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: rgba(6, 16, 27, .72);
}

.timeline-event strong,
.timeline-event span,
.timeline-event small {
  display: block;
  position: relative;
}

.timeline-event strong {
  margin-top: 3px;
  font-size: 13px;
}

.timeline-event span,
.timeline-event small,
.event-time {
  font-size: 11px;
  font-weight: 800;
}

.event-time {
  position: relative;
  margin-top: 4px;
}

.timeline-event form {
  position: absolute;
  right: 7px;
  bottom: 7px;
}

.timeline-event select {
  min-height: 30px;
  max-width: 132px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .72);
  color: #06101b;
  border-color: rgba(6, 16, 27, .2);
  font-size: 11px;
  text-shadow: none;
}

.event-tooltip {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 10px);
  z-index: 8;
  width: min(320px, 80vw);
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(216, 173, 79, .42);
  border-radius: 8px;
  background: #050b13;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}

.event-tooltip span,
.event-tooltip strong {
  font-size: 12px;
  line-height: 1.35;
}

.timeline-event:hover {
  z-index: 7;
  overflow: visible;
}

.timeline-event:hover .event-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.timeline-event.planned {
  --status-color: #facc15;
}

.timeline-event.done {
  --status-color: #22c55e;
}

.timeline-event.cancelled {
  --status-color: #ef4444;
}

.schedule-unavailable {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.schedule-unavailable.full-day {
  inset: 10px;
}

.schedule-unavailable.break-block {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.schedule-unavailable.off-hours {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(148, 163, 184, .18) 0 8px,
      rgba(148, 163, 184, .06) 8px 16px
    );
  color: #cbd5e1;
}

.timeline-event.time_off {
  --status-color: #fff;
  color: #06101b;
  text-shadow: none;
  border-color: rgba(255, 255, 255, .78);
}

.timeline-event.time_off:before {
  background: rgba(6, 16, 27, .14);
}

.timeline-event.time_off .event-tooltip {
  color: var(--ink);
}

.schedule-chip.work {
  border-color: rgba(45, 187, 135, .5);
  background: rgba(45, 187, 135, .16);
}

.schedule-chip.day_off {
  border-color: rgba(250, 204, 21, .5);
  background: rgba(250, 204, 21, .16);
}

.schedule-chip.break {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
}

.schedule-chip.sick_leave {
  border-color: rgba(239, 68, 68, .5);
  background: rgba(239, 68, 68, .16);
}

.color-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-form input[type="color"] {
  width: 52px;
  min-height: 36px;
}

.color-form button {
  min-height: 36px;
  padding: 7px 12px;
}

.employee-create-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(210px, 1fr) 240px;
  gap: 14px;
  align-items: end;
}

.employee-create-colors {
  grid-column: 3;
}

.employee-create-submit {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: end;
}

.palette-field {
  display: grid;
  gap: 7px;
}

.palette-field > span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(10, 26px);
  gap: 7px;
  align-content: start;
}

.compact-palette {
  grid-template-columns: repeat(10, 22px);
  min-width: 290px;
}

.color-swatch {
  display: block;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.compact-palette .color-swatch {
  width: 22px;
  height: 22px;
}

.color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}

.color-swatch input:checked + span {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 173, 79, .22), inset 0 0 0 1px rgba(0, 0, 0, .36);
}

.column-panel {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.client-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.client-pagination-info {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.client-pagination-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.client-pagination-actions button {
  min-width: 42px;
}

.client-pagination-actions .pagination-arrow {
  border-color: rgba(85, 167, 255, .45);
  color: #9fd0ff;
  background: rgba(85, 167, 255, .12);
}

.client-pagination-actions .pagination-arrow:hover:not(:disabled) {
  border-color: rgba(85, 167, 255, .78);
  color: #d7ecff;
}

.client-pagination-actions .pagination-arrow:disabled {
  opacity: .55;
}

.client-page-summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #dbe4ec;
  font-weight: 900;
  white-space: nowrap;
}

.client-page-numbers {
  display: inline-flex;
  width: 330px;
  gap: 6px;
}

.client-page-numbers button {
  flex: 0 0 42px;
}

.client-page-numbers button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #06101b;
}

.client-page-numbers button.placeholder {
  visibility: hidden;
  pointer-events: none;
}

.column-panel > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.column-panel label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081523;
}

.column-panel input {
  width: auto;
  min-height: auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar a {
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dbe4ec;
  background: #081523;
}

.filter-bar a.active {
  background: rgba(216, 173, 79, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 173, 79, .35);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081523;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.employee-edit-form,
.employee-table-card thead tr {
  --employee-table-grid: minmax(280px, 1.1fr) minmax(340px, 1.35fr) minmax(170px, .65fr) 96px minmax(250px, 280px) minmax(96px, auto) minmax(78px, auto);
}

.employee-edit-form {
  display: grid;
  grid-template-columns: var(--employee-table-grid);
  gap: 10px;
  align-items: center;
}

.employee-table-card table {
  min-width: 1240px;
}

.employee-table-card thead tr {
  display: grid;
  grid-template-columns: var(--employee-table-grid);
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.employee-table-card th {
  padding: 0;
  border: 0;
}

.employee-table-card th:last-child {
  grid-column: 6 / span 2;
}

.employee-table-card td {
  padding: 18px 16px;
}

.employee-edit-form input {
  min-height: 38px;
}

.employee-edit-form button {
  min-height: 38px;
  padding: 8px 14px;
}

.client-edit-form {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.client-edit-form input,
.client-edit-form select {
  min-height: 38px;
}

.client-edit-form button {
  min-height: 38px;
  padding: 8px 14px;
}

.appointment-list-form {
  display: grid;
  grid-template-columns: 190px 150px 190px 220px 115px 110px 135px 150px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.number-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px auto 18px;
  gap: 3px;
  width: 100%;
  align-items: stretch;
}

.number-stepper .money-step-input,
.number-stepper .number-step-input {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding-right: 10px;
}

.money-step-input::-webkit-outer-spin-button,
.money-step-input::-webkit-inner-spin-button,
.number-step-input::-webkit-outer-spin-button,
.number-step-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.money-step-input,
.number-step-input {
  -moz-appearance: textfield;
}

.number-stepper-button {
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(79, 161, 255, .45);
  background: linear-gradient(180deg, rgba(79, 161, 255, .22), rgba(79, 161, 255, .09));
  color: #b9dcff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.number-stepper-up {
  grid-column: 1;
  grid-row: 1;
  border-radius: 8px 8px 5px 5px;
}

.number-stepper-down {
  grid-column: 1;
  grid-row: 3;
  border-radius: 5px 5px 8px 8px;
}

.number-stepper-button:hover:not(:disabled) {
  border-color: rgba(92, 176, 255, .78);
  background: linear-gradient(180deg, rgba(92, 176, 255, .34), rgba(92, 176, 255, .16));
  color: #ffffff;
}

.number-stepper-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.product-edit-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr auto;
  gap: 10px;
  align-items: center;
}

.license-edit-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(210px, .8fr) minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: center;
}

.license-edit-form input {
  min-height: 38px;
}

.license-edit-form code {
  width: fit-content;
}

.stock-details summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(110px, 1fr));
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.nested-table {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.stock-edit-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(4, minmax(110px, 1fr)) minmax(120px, .8fr) auto;
  gap: 8px;
  align-items: center;
}

.procedure-edit-form,
.discount-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(120px, .8fr) auto;
  gap: 10px;
  align-items: center;
}

.procedure-table-card table,
.discount-table-card table {
  min-width: 0;
}

.procedure-table-card .procedure-edit-form,
.procedure-table-card thead tr {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(120px, .55fr) minmax(120px, .55fr) minmax(300px, 1.2fr) minmax(120px, auto) minmax(76px, auto);
  gap: 10px;
}

.discount-table-card .discount-edit-form,
.discount-table-card thead tr {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(210px, .8fr) minmax(170px, .65fr) minmax(120px, auto) minmax(76px, auto);
  gap: 10px;
}

.procedure-table-card thead tr,
.discount-table-card thead tr {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.procedure-table-card th,
.discount-table-card th {
  padding: 0;
  border: 0;
}

.procedure-table-card th:last-child,
.discount-table-card th:last-child {
  grid-column: 5 / span 2;
}

.procedure-table-card td,
.discount-table-card td {
  padding: 14px 16px;
}

.search-panel {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 420px);
}

.payroll-edit-button {
  width: 100%;
}

.payroll-modal-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.payroll-modal-notes,
.payroll-modal-form button {
  grid-column: 1 / -1;
}

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #dbe4ec;
}

.compact-check input {
  width: auto;
  min-height: auto;
}

.danger-button {
  background: #d20f13 !important;
  color: #fff !important;
  border: 1px solid #ef4444;
}

.success-button {
  background: #00f060 !important;
  color: #06101b !important;
}

.brown-button {
  background: #8a581f !important;
  color: #fff !important;
  border: 1px solid #b17933;
}

.goal-stat {
  grid-column: span 3;
}

.chart-panel {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.chart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.chart-panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.chart-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  background: #081523;
}

.chart-tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #06101b;
}

.chart-card {
  grid-column: auto;
  padding: 0;
}

.goal-stat b {
  display: block;
  height: 10px;
  margin: 8px 0 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--progress), rgba(255, 255, 255, .12) var(--progress));
}

.goal-stat small {
  color: var(--muted);
}

.compare-chart {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compare-chart > small:first-child {
  display: block;
  color: #dbe4ec;
  font-weight: 800;
  margin-bottom: 8px;
}

.compare-chart b.current {
  background: linear-gradient(90deg, var(--accent) var(--progress), rgba(255, 255, 255, .12) var(--progress));
}

.compare-chart b.previous {
  background: linear-gradient(90deg, #55a7ff var(--progress), rgba(255, 255, 255, .12) var(--progress));
}

.inline-chip {
  display: inline-flex;
  margin: 4px 6px 0 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe4ec;
  background: #081523;
}

.import-panel h2,
.import-panel h3 {
  margin: 0;
}

.import-panel h3 {
  color: #dbe4ec;
  font-size: 18px;
}

.import-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.import-columns .compact-check {
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #081523;
}

.import-columns input:disabled + span {
  color: var(--muted);
}

.import-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.import-report-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081523;
}

.import-report-box span {
  color: #dbe4ec;
  font-weight: 800;
}

.appointment-list-form input,
.appointment-list-form select {
  min-height: 38px;
}

.appointment-list-form input:disabled,
.appointment-list-form select:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.appointment-list-form button,
.quick-done-form button {
  min-height: 38px;
  padding: 8px 14px;
}

.appointment-list-form .number-stepper-button {
  min-height: 0;
  padding: 0;
}

.quick-done-form {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.quick-done-form button {
  background: var(--green);
  color: #06101b;
}

.appointment-readonly {
  display: grid;
  grid-template-columns: 190px 150px 190px 220px 115px 110px 135px 150px minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  color: #dbe4ec;
}

.trend-chart-form {
  padding-top: 4px;
}

.chart-canvas-card {
  position: relative;
  height: 330px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(216, 173, 79, .12), transparent 28%),
    #081523;
}

.line-chart-canvas-card {
  height: 360px;
}

.chart-canvas-card canvas {
  width: 100% !important;
  height: 100% !important;
}

.line-chart-form {
  padding-top: 0;
}

.trend-line-options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trend-line-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-line-options .compact-check {
  min-height: 32px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: #081523;
  font-size: 12px;
}

.trend-chart {
  min-height: 280px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  gap: 12px;
  align-items: end;
  overflow-x: auto;
  padding: 12px 4px 2px;
}

.trend-chart-bar {
  position: relative;
  min-width: 58px;
  height: 250px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  align-items: end;
  text-align: center;
}

.trend-chart-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-height) + 42px);
  z-index: 4;
  min-width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #02060b;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .15s ease, transform .15s ease;
}

.trend-chart-bar:hover::after,
.trend-chart-bar:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.trend-chart-bar span {
  color: #dbe4ec;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
}

.trend-chart-bar b {
  width: 100%;
  height: var(--bar-height);
  min-height: 8px;
  display: block;
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.trend-chart-bar small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.line-chart-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.line-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.line-chart-head strong {
  font-size: 18px;
}

.line-chart-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.line-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe4ec;
  font-size: 12px;
  font-weight: 800;
}

.line-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--series-color);
}

.line-chart-wrap {
  min-width: 0;
  overflow-x: auto;
}

.line-chart-stage {
  min-width: 700px;
  display: grid;
  grid-template-columns: 58px minmax(640px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.line-chart-axis {
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.line-chart {
  width: 100%;
  height: 260px;
  display: block;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 100% 25%,
    #081523;
}

.line-chart line {
  stroke: rgba(255, 255, 255, .18);
  stroke-width: .45;
}

.line-chart polyline {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.line-chart circle {
  fill: var(--series-color);
  stroke: #02060b;
  stroke-width: .7;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.line-chart circle:hover {
  r: 2.3;
}

.line-chart-labels {
  min-width: 700px;
  padding-left: 68px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
}

.line-chart-labels small {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.chart-hover-tooltip {
  position: fixed;
  z-index: 90;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #02060b;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: none;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  background: linear-gradient(180deg, #111f31, #071321);
  border: 1px solid rgba(216, 173, 79, .34);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: #071321;
  color: var(--ink);
}

.modal-heading {
  margin-bottom: 18px;
  padding-right: 44px;
}

.modal-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.modal-heading span {
  color: var(--accent);
  font-weight: 900;
}

.appointment-modal-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.appointment-modal-form > label {
  align-self: start;
}

.appointment-modal-form button {
  grid-column: 1 / -1;
}

.appointment-history-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 19, .32);
}

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

.section-head strong {
  color: var(--muted);
  font-weight: 900;
}

.history-cards,
.history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.history-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(216, 173, 79, .28);
  border-radius: 8px;
  background: #050b13;
  color: var(--ink);
}

.history-card strong {
  color: var(--accent);
}

.history-card span,
.history-card small {
  color: #dbe7f5;
  font-weight: 800;
}

.history-dialog {
  width: min(940px, calc(100vw - 28px));
}

.history-list {
  max-height: 62vh;
  overflow: auto;
}

.confirm-dialog {
  width: min(560px, calc(100vw - 28px));
}

.confirm-dialog h2 {
  font-size: 20px;
  line-height: 1.3;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.confirm-actions button {
  min-width: 120px;
}

.appointment-new-client-toggle {
  grid-column: 1 / -1;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 19, .38);
  color: var(--ink);
  font-weight: 900;
}

.toggle-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.icon-field {
  position: relative;
}

.icon-field input {
  padding-right: 42px;
}

.notes-field::after {
  content: "\2709";
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.autocomplete-field {
  position: relative;
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  max-height: 230px;
  overflow: auto;
  background: #050b13;
  border: 1px solid rgba(216, 173, 79, .3);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}

.suggestions:empty {
  display: none;
}

.suggestions-caption {
  padding: 10px 12px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-item {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.suggestion-item:hover {
  background: rgba(216, 173, 79, .14);
  color: var(--accent-strong);
}

.appointment-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(18, 35, 48, .08);
}

.appointment-card.done {
  border-left-color: var(--green);
}

.appointment-card.cancelled {
  border-left-color: var(--rose);
}

.appointment-card strong,
.appointment-card span,
.appointment-card small {
  display: block;
}

.appointment-card small {
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .brand {
    margin-bottom: 14px;
  }

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

  .content,
  .auth-content {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 30px;
  }

  .appointment-card {
    grid-template-columns: 1fr;
  }

  .appointment-modal-form {
    grid-template-columns: 1fr;
  }

  .history-cards,
  .history-list {
    grid-template-columns: 1fr;
  }

  .calendar-layout,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .mini-calendar {
    position: static;
  }

  .schedule-edit-form {
    grid-template-columns: 1fr;
  }

  .schedule-card-grid {
    grid-template-columns: 1fr;
  }

  .schedule-modal-form {
    grid-template-columns: 1fr;
  }

  .calendar-schedule-form {
    grid-template-columns: 1fr;
  }

  .schedule-list-edit-form {
    grid-template-columns: 1fr;
  }

  .employee-edit-form {
    grid-template-columns: 1fr;
  }

  .employee-create-form {
    grid-template-columns: 1fr;
  }

  .employee-create-colors,
  .employee-create-submit {
    grid-column: auto;
    grid-row: auto;
  }

  .client-search-panel {
    grid-template-columns: 1fr;
  }

  .client-edit-form {
    grid-template-columns: 1fr;
  }

  .appointment-list-form,
  .product-edit-form,
  .license-edit-form,
  .stock-details summary,
  .stock-edit-form,
  .procedure-edit-form,
  .discount-edit-form,
  .payroll-modal-form,
  .appointment-readonly {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 620px;
  }
}
