:root {
  color-scheme: light;
  /* 60/30/10 rang tizimi: Ice White (fon) / Midnight Navy (matn, sarlavha) / Signal Teal (harakat, faol holat) */
  --bg: #F4F7FA;
  --surface: #ffffff;
  --line: #dbe3eb;
  --text: #102A43;
  --muted: #5c7189;
  --accent: #19C3A6;
  --accent-strong: #102A43;
  --danger: #b91c1c;
  --warning: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.sidebar-toggle-input {
  display: none;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 240px;
  flex: 0 0 240px;
  min-height: 100vh;
  padding: 20px 14px;
  background: var(--accent-strong);
  box-shadow: 4px 0 24px rgba(16, 42, 67, 0.12);
  position: relative;
  z-index: 1;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  max-width: 190px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -12px;
  cursor: pointer;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  overflow-y: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-title {
  padding: 6px 10px 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav a.active {
  background: rgba(25, 195, 166, 0.16);
  border-left-color: var(--accent);
  color: #ffffff;
}

.nav-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  color: #ffffff;
}

.sidebar-user span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.sidebar-footer form {
  width: 100%;
}

.sidebar-footer button {
  width: 100%;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: none;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.sidebar-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -12px;
  cursor: pointer;
  font-size: 20px;
}

.page {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  margin: 24px auto 48px;
  padding: 0 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 17px;
  font-weight: 800;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #eef4ff;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
}

.stat-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.stat-card strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-navy {
  background: #e3e9f5;
  color: var(--accent-strong);
}

.stat-teal {
  background: #d7f7f0;
  color: #0e8a74;
}

.stat-orange {
  background: #fef3c7;
  color: var(--warning);
}

.stat-red {
  background: #fee2e2;
  color: var(--danger);
}

.filters-pill label {
  font-size: 12px;
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-cell-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.panel-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-preview h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 18px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
  font-weight: 700;
  cursor: pointer;
}

.toggle-card > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.switch,
.toggle-card input[type="checkbox"],
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 44px;
  min-width: 44px;
  height: 24px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}

.switch::after,
.toggle-card input[type="checkbox"]::after,
.checkbox input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.switch:checked,
.toggle-card input[type="checkbox"]:checked,
.checkbox input[type="checkbox"]:checked {
  background: var(--accent-soft, #d7f7f0);
}

.switch:checked::after,
.toggle-card input[type="checkbox"]:checked::after,
.checkbox input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04), 0 12px 28px rgba(16, 42, 67, 0.05);
}

.entity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.entity-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft, #eef4ff);
  color: var(--accent-strong);
}

.entity-icon svg {
  width: 20px;
  height: 20px;
}

.entity-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.entity-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.entity-card-meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.entity-card-footer form {
  display: inline-flex;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.icon-button svg {
  flex-shrink: 0;
}

.icon-button:hover {
  background: #f1f5f9;
  color: var(--accent-strong);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.switch-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-cell form {
  display: inline-flex;
}

.form-actions {
  padding: 0 18px 18px;
}

.panel,
.form-panel,
.filters,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04), 0 12px 28px rgba(16, 42, 67, 0.05);
}

.panel {
  margin-top: 16px;
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fafcfe;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fafcfe;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: #f7fafc;
}

tr:last-child td {
  border-bottom: 0;
}

tfoot td {
  background: #fafcfe;
  border-top: 2px solid var(--line);
  border-bottom: 0;
}

.inactive-row {
  opacity: 0.62;
  background: #f9fafb;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(25, 195, 166, 0.22);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.button:active,
button:active {
  transform: translateY(0);
}

.button.secondary,
button.secondary {
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: none;
}

button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.18);
}

.filters,
.form-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  max-width: 760px;
}

.form-panel.compact {
  max-width: none;
}

label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.avatar-photo {
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

input,
select {
  min-height: 38px;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 195, 166, 0.15);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  min-width: auto;
}

.checkbox.inline {
  min-height: 64px;
}

.form-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.grid-5 input,
.grid-6 input,
.grid-6 select {
  width: 100%;
  min-width: 0;
}

.schedule-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.schedule-grid {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: end;
}

.schedule-row strong {
  padding-bottom: 10px;
}

.schedule-off {
  min-height: 64px;
}

.calendar-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-box-head form {
  margin: 0;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #d1d5db;
}

.calendar-dot.present {
  background: #22c55e;
}

.calendar-dot.late {
  background: #f59e0b;
}

.calendar-dot.absent {
  background: #ef4444;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
  padding-bottom: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #f3f4f6;
  color: #9ca3af;
}

.calendar-day.present {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.calendar-day.late {
  background: rgba(245, 158, 11, 0.22);
  color: #b45309;
}

.calendar-day.absent {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.calendar-day.off,
.calendar-day.future,
.calendar-day.is-empty {
  background: transparent;
  color: #d1d5db;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.check_in {
  background: #d7f7f0;
  color: #0e8a74;
}

.pill.check_out {
  background: #dcfce7;
  color: #15803d;
}

.pill.absence {
  background: #fef3c7;
  color: var(--warning);
}

.status.new {
  background: #fef3c7;
  color: var(--warning);
}

.status.sent {
  background: #d7f7f0;
  color: #0e8a74;
}

.status.failed {
  background: #fee2e2;
  color: var(--danger);
}

.status.pending {
  background: #e0e7ff;
  color: #3730a3;
}

.status.processing {
  background: #fef3c7;
  color: var(--warning);
}

.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-color: #99f6e4;
  background: #f0fdfa;
}

.notice-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: var(--warning);
}

.notice-success {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.billing-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  gap: 12px;
  align-items: end;
}

.billing-grow {
  grid-column: span 2;
}

.billing-details summary {
  color: var(--accent-strong);
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.billing-edit-form,
.billing-payment-form {
  min-width: 290px;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.billing-payment-form input {
  width: 100%;
}

.payment-provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-provider-grid .entity-card {
  display: grid;
  gap: 14px;
}

.integration-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1100px) {
  .billing-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-provider-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .billing-form { grid-template-columns: 1fr; }
  .billing-grow { grid-column: auto; }
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.token-display {
  width: 100%;
  background: #f9fafb;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.msg-cell {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.actions {
  width: 1%;
  white-space: nowrap;
}

.actions form {
  display: inline-flex;
  margin-left: 6px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.split table {
  min-width: 0;
}

@media (max-width: 900px) {
  .topbar {
    display: flex;
    justify-content: space-between;
  }

  .topbar .brand img {
    max-height: 30px;
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  }

  .sidebar-toggle-input:checked ~ .app-shell .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(16, 42, 67, 0);
    pointer-events: none;
    transition: background 0.2s ease;
  }

  .sidebar-toggle-input:checked ~ .app-shell .sidebar-backdrop {
    background: rgba(16, 42, 67, 0.45);
    pointer-events: auto;
  }

  .stat-cards,
  .stat-cards-3,
  .grid-5,
  .grid-6,
  .schedule-row,
  .split {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 0 16px;
    margin-top: 16px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
  }

  .actions {
    white-space: normal;
  }

  .actions form {
    display: block;
    margin: 6px 0 0;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .stat-cards,
  .stat-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.login-body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.login-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.login-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(16, 42, 67, 0.92) 0%, rgba(16, 42, 67, 0.72) 45%, rgba(16, 42, 67, 0.55) 100%);
}

.login-topbar {
  padding: 24px 32px;
}

.login-topbar-logo {
  max-height: 56px;
  width: auto;
}

.login-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  padding: 44px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 42, 67, 0.28);
}

.login-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.login-help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.login-card .form-panel {
  padding: 0;
  border: none;
  gap: 20px;
}

.login-card label {
  gap: 8px;
  font-size: 14px;
}

.login-card input {
  min-height: 46px;
  border-color: #cbd5e1;
  background: #f8fafc;
  font-size: 15px;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.password-toggle:hover {
  color: var(--text);
  transform: translateY(-50%);
  opacity: 1;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.login-footer {
  padding: 20px 32px;
  color: #F4F7FA;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-footer span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(16, 42, 67, 0.55);
}

.notice-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger);
}

.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.45);
  z-index: 40;
}

.slide-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(16, 42, 67, 0.18);
  z-index: 41;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

body.panel-open {
  overflow: hidden;
}

body.panel-open .panel-overlay {
  display: block;
}

body.panel-open .slide-panel {
  transform: translateX(0);
}

.slide-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.slide-panel-header h2 {
  margin: 0;
}

.slide-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.slide-panel-body .form-panel {
  max-width: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.slide-panel-body .schedule-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-panel-body input:not([type="checkbox"]):not([type="radio"]),
.slide-panel-body select {
  min-width: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .slide-panel {
    width: 100%;
  }
}
