/* ============================================
   XANLAR CRM — Complete Stylesheet
   ============================================
   Дизайн меняется через переменные в :root.
   Всё в одном файле, структурировано секциями.
   ============================================ */

/* --- IMPORT FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   1. DESIGN TOKENS (Variables)
   Хочешь сменить дизайн? Меняй ТОЛЬКО тут.
   ============================================ */
:root {
  /* Colors */
  --primary: #1A3F5C;
  --primary-light: #2B6490;
  --primary-dark: #000000;
  --accent: #430000;
  --accent-light: #53a907;
  --success: #1D8348;
  --warning: #D4A017;
  --danger: #C0392B;
  --info: #2E86C1;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #DFE3EA;
  --gray-300: #CDD3DD;
  --gray-400: #A3ACBA;
  --gray-500: #7C869A;
  --gray-600: #5A6478;
  --gray-700: #3D4759;
  --gray-800: #252D3A;
  --gray-900: #14191F;

  /* Backgrounds */
  --bg-body: #F2F4F7;
  --bg-sidebar: var(--primary-dark);
  --bg-card: var(--white);
  --bg-header: var(--white);

  /* Text */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --text-inverse: var(--white);

  /* Typography */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);

  /* Layout */
  --sidebar-w: 264px;
  --sidebar-collapsed: 72px;
  --header-h: 64px;

  /* Z-index */
  --z-sidebar: 100;
  --z-header: 90;
  --z-modal: 200;
  --z-toast: 300;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.sidebar-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1 { font-size: var(--text-3xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }
p { color: var(--text-secondary); margin-bottom: var(--sp-sm); }
.text-muted { color: var(--text-muted); }

/* ============================================
   4. APP SHELL
   ============================================ */
.app { display: flex; min-height: 100vh; }
.app__main { flex: 1; margin-left: var(--sidebar-w); transition: margin-left 0.3s var(--ease); }
.app__content { padding: var(--sp-lg); padding-top: calc(var(--header-h) + var(--sp-lg)); min-height: 100vh; overflow-x: hidden; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-lg); }
.page-header__title { font-size: var(--text-2xl); font-weight: 700; color: var(--text-primary); }
.page-header__actions { display: flex; gap: var(--sp-sm); align-items: center; }

/* ============================================
   5. SIDEBAR
   ============================================ */
.sidebar {
  position: fixed; left: 0; top: 0;
  width: var(--sidebar-w); height: 100vh; height: 100dvh;
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  display: flex; flex-direction: column;
  z-index: var(--z-sidebar);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s var(--ease);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.sidebar__logo {
  display: flex; align-items: center; gap: var(--sp-sm);
  height: var(--header-h); padding: 0 var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar__logo-text { font-size: var(--text-lg); font-weight: 700; letter-spacing: 0.3px; }
.sidebar__division {
  display: flex; margin: var(--sp-md) var(--sp-md) 0;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-md); padding: 3px;
}
.sidebar__div-btn {
  flex: 1; padding: var(--sp-xs) var(--sp-sm);
  text-align: center; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s var(--ease);
}
.sidebar__div-btn.active { background: var(--accent); color: var(--white); }
.sidebar__div-btn:hover:not(.active) { color: rgba(255,255,255,0.8); }
.sidebar__nav { flex: 1; padding: var(--sp-sm); }
.sidebar__section {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.3);
  padding: var(--sp-lg) var(--sp-sm) var(--sp-xs);
  font-weight: 600;
}
.sidebar__section:first-child { padding-top: var(--sp-md); }
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: rgba(255,255,255,0.6); font-size: var(--text-sm); font-weight: 500;
  transition: all 0.15s var(--ease); margin-bottom: 1px; cursor: pointer;
}
.sidebar__link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar__link.active { background: rgba(255,255,255,0.12); color: var(--white); }
.sidebar__link svg { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.sidebar__link.active svg { opacity: 1; }
.sidebar__footer {
  padding: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ============================================
   6. HEADER
   ============================================ */
.header {
  position: fixed; top: 0; right: 0; left: var(--sidebar-w);
  height: var(--header-h); background: var(--bg-header);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-lg);
  z-index: var(--z-header);
  transition: left 0.3s var(--ease);
}
.header__left { display: flex; align-items: center; gap: var(--sp-md); }
.header__search input {
  width: clamp(160px, 20vw, 280px); padding: 8px 14px 8px 36px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--r-full); font-size: var(--text-sm);
  transition: all 0.2s var(--ease);
}
.header__search input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(43,100,144,0.12); }
.header__search { position: relative; }
.header__search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: var(--text-sm); }
.header__search-icon svg { width: 16px; height: 16px; }
.header__right { display: flex; align-items: center; gap: var(--sp-md); }
.header__user { display: flex; align-items: center; gap: var(--sp-sm); padding: 4px 8px; border-radius: var(--r-md); cursor: pointer; transition: background 0.15s; }
.header__user:hover { background: var(--gray-50); }
.header__avatar {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: var(--text-sm);
}
.header__name { font-size: var(--text-sm); font-weight: 500; }
.header__role { font-size: var(--text-xs); color: var(--text-muted); }

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500;
  transition: all 0.15s var(--ease); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-light); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-light); }
.btn--success { background: var(--success); color: var(--white); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { background: var(--gray-100); }
.btn--outline { border: 1px solid var(--gray-300); color: var(--text-primary); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: 5px 10px; font-size: var(--text-xs); }
.btn--lg { padding: 12px 24px; font-size: var(--text-md); }
.btn--full { width: 100%; }
.btn--icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); }

/* ============================================
   8. FORMS
   ============================================ */
.form__group { margin-bottom: var(--sp-md); }
.form__label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: 4px; color: var(--text-primary); }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 9px 14px;
  border: 1px solid var(--gray-300); border-radius: var(--r-sm);
  font-size: var(--text-base); background: var(--white);
  transition: all 0.2s var(--ease);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,100,144,0.12);
}
.form__input::placeholder { color: var(--gray-400); }
.form__textarea { resize: vertical; min-height: 80px; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237C869A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form__error { font-size: var(--text-xs); color: var(--danger); margin-top: 4px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.form__row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.form__actions { display: flex; justify-content: flex-end; gap: var(--sp-sm); margin-top: var(--sp-lg); padding-top: var(--sp-md); border-top: 1px solid var(--gray-200); }

/* ============================================
   9. TABLES
   ============================================ */
.table-wrap { background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow-x: auto; }
.table { width: 100%; }
.table thead { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
.table th {
  text-align: left; padding: 10px 16px;
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-secondary); white-space: nowrap;
}
.table td { padding: 10px 16px; font-size: var(--text-sm); border-bottom: 1px solid var(--gray-100); }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--gray-50); }
.table .col-money { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.table .col-date { white-space: nowrap; color: var(--text-secondary); }
.table .col-actions { text-align: right; white-space: nowrap; }
.table__empty { text-align: center; padding: var(--sp-2xl); color: var(--text-muted); }
.table__empty-icon { font-size: 40px; margin-bottom: var(--sp-sm); opacity: 0.25; display: block; }

/* ============================================
   10. CARDS
   ============================================ */
.card { background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); padding: var(--sp-lg); }
.card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md); }
.card__title { font-size: var(--text-md); font-weight: 600; }
.stat-card { padding: var(--sp-lg); }
.stat-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-md); font-size: 22px; flex-shrink: 0;
}
.stat-card__value { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 2px; }
.stat-card__label { font-size: var(--text-sm); color: var(--text-secondary); }
.stat-card--blue .stat-card__icon { background: rgba(46,134,193,0.1); color: var(--info); }
.stat-card--orange .stat-card__icon { background: rgba(217,123,43,0.1); color: #D97B2B; }
.stat-card--green .stat-card__icon { background: rgba(29,131,72,0.1); color: var(--success); }
.stat-card--red .stat-card__icon { background: rgba(192,57,43,0.1); color: var(--danger); }

/* ============================================
   11. MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  opacity: 0; visibility: hidden;
  transition: all 0.2s var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); width: 90%; max-width: 560px; max-height: 85vh;
  display: flex; flex-direction: column;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.25s var(--ease);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-lg); border-bottom: 1px solid var(--gray-200); }
.modal__title { font-size: var(--text-lg); font-weight: 600; }
.modal__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); color: var(--gray-500); transition: background 0.15s; }
.modal__close:hover { background: var(--gray-100); }
.modal__body { padding: var(--sp-lg); overflow-y: auto; flex: 1; }
.modal__footer { padding: var(--sp-md) var(--sp-lg); border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: var(--sp-sm); }
.modal--sm { max-width: 400px; }
.modal--lg { max-width: 720px; }

/* ============================================
   12. TOAST
   ============================================ */
.toast-container { position: fixed; top: var(--sp-lg); right: var(--sp-lg); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--sp-sm); }
.toast {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gray-400);
  min-width: 280px; max-width: 400px;
  animation: toastIn 0.3s var(--ease) forwards;
}
.toast--success { border-left-color: var(--success); }
.toast--danger { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
.toast__message { flex: 1; font-size: var(--text-sm); }
.toast__close { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); color: var(--gray-500); }
.toast__close:hover { background: var(--gray-100); }
.toast.removing { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ============================================
   13. BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 500;
}
.badge--success { background: rgba(29,131,72,0.1); color: var(--success); }
.badge--danger { background: rgba(192,57,43,0.1); color: var(--danger); }
.badge--warning { background: rgba(212,160,23,0.12); color: #9A7B10; }
.badge--info { background: rgba(46,134,193,0.1); color: var(--info); }
.badge--neutral { background: var(--gray-100); color: var(--gray-600); }

/* ============================================
   14. LOADER
   ============================================ */
.loader { display: flex; align-items: center; justify-content: center; padding: var(--sp-2xl); }
.loader__spinner { width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== MODAL XL ==================== */
.modal--xl { max-width: 960px; }

/* ==================== TABS ==================== */
.tabs {
  display: flex; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 4px;
  margin-bottom: var(--sp-md); width: fit-content;
}
.tabs__btn {
  padding: 6px 16px; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s var(--ease);
}
.tabs__btn:hover { background: var(--gray-100); color: var(--text-primary); }
.tabs__btn.active { background: var(--primary); color: var(--white); }

/* ==================== FILE UPLOAD ==================== */
.file-upload__area {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-sm);
  padding: var(--sp-lg); border: 2px dashed var(--gray-300);
  border-radius: var(--r-md); cursor: pointer; text-align: center;
  color: var(--text-secondary); transition: all 0.2s var(--ease);
}
.file-upload__area:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,63,92,0.03); }
.file-upload__area svg { width: 28px; height: 28px; opacity: 0.5; }

/* ==================== DETAIL VIEW ==================== */
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0; margin-right: var(--sp-sm); }

/* ==================== CONTRACT DETAIL ==================== */
.cont-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); margin-bottom: var(--sp-lg); }
.cont-detail__col { background: var(--gray-50); border-radius: var(--r-md); padding: var(--sp-md); }
.cont-detail__section { margin-bottom: var(--sp-lg); }
.cont-detail__section-title { font-weight: 600; font-size: var(--text-sm); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--sp-sm); }
.cont-detail__notes { background: var(--gray-50); border-radius: var(--r-md); padding: var(--sp-md); font-size: var(--text-sm); line-height: 1.7; white-space: pre-wrap; }

/* ==================== PDF BAR ==================== */
.cont-pdf-bar {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: var(--sp-md); background: var(--gray-50);
  border-radius: var(--r-md); border: 1px solid var(--gray-200);
}
.cont-pdf-bar__icon { color: var(--danger); flex-shrink: 0; }
.cont-pdf-bar__icon svg { width: 20px; height: 20px; }
.cont-pdf-bar__name { flex: 1; font-size: var(--text-sm); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-pdf-bar__actions { display: flex; gap: 6px; flex-shrink: 0; }
.cont-pdf-empty { display: flex; align-items: center; gap: var(--sp-md); padding: var(--sp-md); background: var(--gray-50); border-radius: var(--r-md); border: 1px dashed var(--gray-300); }
.cont-pdf-empty svg { width: 18px; height: 18px; }

/* ==================== BADGE NEUTRAL ==================== */
.badge--neutral { background: var(--gray-100); color: var(--gray-600); }

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex; align-items: center; gap: var(--sp-sm);
  flex-wrap: wrap; margin-bottom: var(--sp-md);
}
.filter-bar__search {
  position: relative; flex: 1; min-width: 200px;
}
.filter-bar__icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none;
}
.filter-bar__icon svg { width: 15px; height: 15px; }
.filter-bar__input {
  width: 100%; padding: 8px 12px 8px 34px;
  border: 1px solid var(--gray-300); border-radius: var(--r-sm);
  font-size: var(--text-sm); background: var(--white);
  transition: border-color 0.2s;
}
.filter-bar__input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,63,92,0.1); }
.filter-bar__select { width: auto; min-width: 160px; }
.mb-md { margin-bottom: var(--sp-md); }

/* ==================== FORM PREVIEW ==================== */
.form-preview {
  padding: var(--sp-md); background: var(--gray-50);
  border-radius: var(--r-md); border: 1px solid var(--gray-200);
  margin-bottom: var(--sp-md);
}
.form-preview__row {
  display: flex; justify-content: space-between;
  font-size: var(--text-sm); padding: 3px 0;
  color: var(--text-secondary);
}
.form-preview__row strong { color: var(--text-primary); }

/* ==================== EXPENSES PAGE ==================== */
.exp-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: var(--sp-md);
}

/* Type picker in form */
.exp-type-picker {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm); margin-bottom: var(--sp-lg);
}
.exp-type-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: var(--sp-md);
  border: 2px solid var(--gray-200); border-radius: var(--r-md);
  cursor: pointer; transition: all 0.15s var(--ease);
  background: var(--white); text-align: center;
}
.exp-type-btn:hover { border-color: var(--primary-light); background: var(--gray-50); }
.exp-type-btn.active { border-color: var(--primary); background: rgba(26,63,92,0.05); }
.exp-type-icon { font-size: 24px; line-height: 1; }
.exp-type-label { font-weight: 700; font-size: var(--text-sm); color: var(--text-primary); }
.exp-type-desc  { font-size: var(--text-xs); color: var(--text-muted); }

/* ============================================
   15. GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }

/* ============================================
   16. LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.login-page__left {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white); padding: var(--sp-2xl);
}
.login-page__brand { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-xl); }
.login-page__brand-text { font-size: var(--text-3xl); font-weight: 700; }
.login-page__tagline { font-size: var(--text-lg); opacity: 0.7; text-align: center; max-width: 360px; }
.login-page__right {
  width: 480px; display: flex; align-items: center; justify-content: center;
  background: var(--white); padding: var(--sp-2xl);
}
.login-box { width: 100%; max-width: 360px; }
.login-box__title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 4px; }
.login-box__subtitle { color: var(--text-secondary); margin-bottom: var(--sp-xl); font-size: var(--text-sm); }
.login-box__error {
  background: rgba(192,57,43,0.08); color: var(--danger);
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: var(--text-sm); margin-bottom: var(--sp-md);
  display: none;
}
.login-box__error.show { display: block; }

/* ============================================
   17. UTILITIES
   ============================================ */
.hidden { display: none !important; }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

/* ============================================
   18. PAGE TABS & STATISTICS
   ============================================ */

/* --- Tab switcher --- */
.page-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--gray-200);
}
.page-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--sp-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  background: none;
}
.page-tab:hover { color: var(--primary); background: var(--gray-50); }
.page-tab--active { color: var(--primary); border-bottom-color: var(--primary); background: var(--gray-50); }

/* --- Period selector bar --- */
.stats-period-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding: 12px var(--sp-lg);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-lg);
}
.stats-period-btn {
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  transition: all 0.18s;
}
.stats-period-btn:hover { background: var(--gray-200); color: var(--text-primary); }
.stats-period-btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.stats-period-sep { width: 1px; height: 24px; background: var(--gray-200); margin: 0 2px; flex-shrink: 0; }
.stats-custom-range {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.stats-custom-range input[type="date"] {
  padding: 5px 10px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.stats-custom-range input[type="date"]:focus { border-color: var(--primary); outline: none; }

/* --- Stats summary cards grid --- */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
/* stats-summary breakpoints handled in section 23 */

/* --- Chart section --- */
.stats-chart-wrap {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-lg);
}
.stats-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-md);
}
.stats-chart-title { font-weight: 600; font-size: var(--text-md); color: var(--text-primary); }
.stats-chart-canvas-wrap { position: relative; height: 300px; }
.stats-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  gap: var(--sp-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.stats-no-data-icon { font-size: 2.5rem; opacity: 0.25; }

/* --- Breakdown table --- */
.stats-breakdown {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--sp-lg);
}
.stats-breakdown-header {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-primary);
}
.stats-pct-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-pct-bar__track {
  width: 80px; height: 6px;
  background: var(--gray-200);
  border-radius: var(--r-full);
  overflow: hidden;
  flex-shrink: 0;
}
.stats-pct-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-full);
  transition: width 0.4s var(--ease);
}
.stats-pct-bar__label { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }

/* --- Loading state inside stats --- */
.stats-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2xl);
}

/* ============================================
   19. DASHBOARD
   ============================================ */

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-lg);
  align-items: start;
}
/* dash-grid breakpoints handled in section 23 */

/* Activity feed */
.dash-activity { padding: 0; }
.dash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px var(--sp-lg);
  border-left: 3px solid var(--gray-300);
  margin-left: 4px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-item:hover { background: var(--gray-50); }
.dash-activity-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.dash-activity-body { flex: 1; min-width: 0; }
.dash-activity-title { font-size: var(--text-sm); color: var(--text-primary); line-height: 1.4; }
.dash-activity-detail {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-activity-time { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.dash-activity-product {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  padding-left: var(--sp-sm);
}
.dash-activity-amount {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
}
.dash-activity-empty {
  padding: var(--sp-xl);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Warehouse summary */
.dash-wh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--sp-md);
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
}
.dash-wh-item:last-child { border-bottom: none; }
.dash-wh-name { font-weight: 500; color: var(--text-primary); }
.dash-wh-qty  { font-weight: 700; }

/* ============================================
   20. FINANCE PAGE
   ============================================ */

.fin-breakdown-list { padding: var(--sp-sm) 0; }

.fin-breakdown-item {
  padding: 8px var(--sp-md);
  border-bottom: 1px solid var(--gray-100);
}
.fin-breakdown-item:last-child { border-bottom: none; }

.fin-breakdown-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-breakdown-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Debt sections */
.fin-debt-section { padding: 0 0 var(--sp-sm); }
.fin-debt-section + .fin-debt-section {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--sp-sm);
}
.fin-debt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--sp-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--gray-50);
}
.fin-debt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px var(--sp-md);
  border-bottom: 1px solid var(--gray-100);
}
.fin-debt-item:last-of-type { border-bottom: none; }
.fin-debt-name {
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  margin-right: var(--sp-sm);
}
.fin-debt-amt {
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.fin-debt-more {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  padding: 4px var(--sp-md);
  font-style: italic;
}

/* ============================================
   21. GLOBAL SEARCH + DASHBOARD ALERTS
   ============================================ */

.header__search { position: relative; }
.global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  max-height: 360px;
  overflow-y: auto;
}
.global-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--sp-md);
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.12s;
}
.global-search-item:hover { background: var(--gray-50); }
.global-search-item:last-child { border-bottom: none; }
.global-search-icon { font-size: 18px; flex-shrink: 0; }
.global-search-body { display: flex; flex-direction: column; min-width: 0; }
.global-search-label { font-weight: 600; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-type  { font-size: var(--text-xs); color: var(--text-muted); }
.global-search-empty {
  padding: 12px var(--sp-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-md);
}
.dash-alert--warning { background: #fff8e1; border: 1px solid var(--warning); }
.dash-alert__icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.dash-alert__body  { font-size: var(--text-sm); flex: 1; line-height: 1.6; }
.dash-alert__item  {
  display: inline-block;
  background: rgba(0,0,0,0.07);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  margin: 4px 4px 0 0;
  font-size: var(--text-xs);
}

/* ============================================
   22. SALE DATE FILTER + MISC
   ============================================ */

.sale-date-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: var(--sp-sm) 0 var(--sp-md);
}
.sale-date-btn {
  padding: 5px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sale-date-btn:hover { border-color: var(--primary); color: var(--primary); }
.sale-date-btn--active { background: var(--primary); border-color: var(--primary); color: #fff; }

.expiry-warn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--warning);
}

/* ============================================
   23. RESPONSIVE
   ============================================ */

/* --- Burger menu button (hidden on desktop) --- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.burger-btn:hover { background: var(--gray-100); }
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sidebar overlay backdrop --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: calc(var(--z-sidebar) - 1);
}
.sidebar-overlay.active { display: block; }

/* ============================================
   BREAKPOINT 1024px — tablet landscape
   Sidebar becomes a slide-out drawer here,
   NOT at 768px. Eliminates cramped layout on iPads.
   ============================================ */
@media (max-width: 1024px) {

  /* SIDEBAR — drawer */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }

  /* MAIN — full width without sidebar margin */
  .app__main { margin-left: 0; }
  .header { left: 0; }

  /* Show burger button */
  .burger-btn { display: flex; }

  /* HEADER — hide user name/role, keep avatar */
  .header__name, .header__role { display: none; }

  /* GRIDS — 4-col → 2-col */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-summary { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }

  /* MODAL — wider on tablet */
  .modal--xl { width: 96%; }
}

/* ============================================
   BREAKPOINT 768px — tablet portrait / large phone
   ============================================ */
@media (max-width: 768px) {

  /* SIDEBAR — compact internal spacing */
  .sidebar__division { margin: var(--sp-sm) var(--sp-sm) 0; }
  .sidebar__section { padding: 10px var(--sp-sm) 2px; font-size: 10px; letter-spacing: 1px; }
  .sidebar__section:first-child { padding-top: var(--sp-sm); }
  .sidebar__nav { padding: 4px; }
  .sidebar__link { padding: 8px 10px; font-size: var(--text-xs); gap: 8px; }
  .sidebar__link svg { width: 16px; height: 16px; }
  .sidebar__footer { padding: var(--sp-sm); }

  /* HEADER — search grows to fill available space */
  .header { padding: 0 var(--sp-md); }
  .header__left { flex: 1; min-width: 0; gap: var(--sp-sm); }
  .header__search { flex: 1; min-width: 0; }
  .header__search input { width: 100%; }
  .header__right { gap: var(--sp-sm); }

  /* CONTENT — tighter padding */
  .app__content {
    padding: var(--sp-md);
    padding-top: calc(var(--header-h) + var(--sp-md));
  }

  /* TYPOGRAPHY */
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  /* PAGE HEADER — stays on one line, title truncates if needed */
  .page-header { flex-wrap: nowrap; gap: var(--sp-sm); margin-bottom: var(--sp-md); align-items: center; }
  .page-header__title { font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
  .page-header__actions { flex-wrap: nowrap; flex-shrink: 0; gap: 6px; }

  /* GRIDS — grid-4 stays 2x2 on tablet/mobile to avoid tall stacking */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form__row, .form__row-3 { grid-template-columns: 1fr; }
  .cont-detail__grid { grid-template-columns: 1fr; }
  .exp-type-picker { grid-template-columns: 1fr 1fr; }

  /* TABLE — hide non-essential columns on tablet */
  .col-hide-md { display: none; }
  .col-hide-md + td, .col-hide-md + th { display: none; }

  /* TABS — horizontal scroll, no visible bar */
  .page-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .page-tabs::-webkit-scrollbar { display: none; }
  .page-tab { white-space: nowrap; padding: 10px var(--sp-md); }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }

  /* STATS PERIOD BAR */
  .stats-period-bar { padding: var(--sp-sm) var(--sp-md); gap: 4px; }
  .stats-custom-range { flex-wrap: wrap; }
  .stats-custom-range input[type="date"] { flex: 1; min-width: 120px; }
  .stats-chart-canvas-wrap { height: 220px; }

  /* FILTER BARS */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar__search { max-width: none; min-width: 0; }
  .filter-bar__select { min-width: 0; width: 100%; }
  .exp-filter-bar { flex-direction: column; align-items: stretch; }
  .exp-filter-bar input[type="text"],
  .exp-filter-bar input[type="month"] { width: 100% !important; }

  /* MODAL */
  .modal { width: 96%; max-height: 88vh; }
  .modal--xl { width: 98%; }

  /* LOGIN — stack vertically */
  .login-page { flex-direction: column; }
  .login-page__left { padding: var(--sp-xl) var(--sp-lg); min-height: auto; flex: none; }
  .login-page__right { width: 100%; flex: 1; padding: var(--sp-xl) var(--sp-lg); }
  .login-box { max-width: 100%; }

  /* TABLES — tighter cells */
  .table th, .table td { padding: 9px 12px; }
}

/* ============================================
   BREAKPOINT 480px — mobile phones
   ============================================ */
@media (max-width: 480px) {

  /* Shrink header height slightly */
  :root { --header-h: 56px; }

  /* CONTENT — minimal padding */
  .app__content {
    padding: var(--sp-sm);
    padding-top: calc(var(--header-h) + var(--sp-sm));
  }

  /* HEADER */
  .header { padding: 0 var(--sp-sm); gap: var(--sp-xs); }
  .header__right { gap: 6px; }
  .header__user { padding: 4px; }

  /* TYPOGRAPHY */
  h1 { font-size: var(--text-xl); }
  h2 { font-size: var(--text-lg); }
  h3 { font-size: var(--text-md); }

  /* PAGE HEADER */
  .page-header { margin-bottom: var(--sp-sm); }
  .page-header__title { font-size: var(--text-lg); }

  /* CARDS */
  .card { padding: var(--sp-md); border-radius: var(--r-md); }

  /* STAT CARDS — CSS grid: icon spans both rows left, value+label stack right.
     Works without any HTML changes in JS pages. */
  .stat-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px var(--sp-md);
  }
  .stat-card__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 40px; height: 40px;
    font-size: 18px;
    margin-bottom: 0;
    align-self: center;
  }
  .stat-card__value {
    grid-column: 2; grid-row: 1;
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
  }
  .stat-card__label {
    grid-column: 2; grid-row: 2;
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* STATS SUMMARY — keep 2 cols on phones */
  .stats-summary { grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }

  /* TABLE — hide non-essential columns on small phones */
  .col-hide-sm { display: none; }

  /* TABLE cells more compact */
  .table th { padding: 7px 8px; font-size: 10px; }
  .table td { padding: 8px; font-size: var(--text-xs); }
  .stats-chart-canvas-wrap { height: 180px; }
  .stats-period-btn { padding: 4px 10px; font-size: var(--text-xs); }
  .stats-period-sep { display: none; }

  /* MODAL — bottom sheet style */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    margin: 0;
  }
  .modal__body { padding: var(--sp-md); }
  .modal__header { padding: var(--sp-md); }
  .modal__footer { padding: var(--sp-sm) var(--sp-md); }

  /* TOAST — below header, full width */
  .toast-container {
    left: var(--sp-sm);
    right: var(--sp-sm);
    top: calc(var(--header-h) + var(--sp-sm));
  }
  .toast { min-width: 0; max-width: 100%; }

  /* TABLES — minimal padding */
  .table th { padding: 8px 10px; font-size: 10px; }
  .table td { padding: 8px 10px; font-size: var(--text-xs); }

  /* PAGE HEADER — compact button on small screens */
  .page-header__title { font-size: var(--text-md); }
  .page-header__actions .btn { padding: 6px 10px; font-size: var(--text-xs); }
  .page-header__actions .btn svg { width: 13px; height: 13px; }

  /* STAT CARDS — tighter on tiny screens */
  .stat-card { padding: 10px 12px; column-gap: 10px; }
  .stat-card__icon { width: 36px; height: 36px; font-size: 16px; }
  .stat-card__value { font-size: var(--text-sm); }

  /* BADGES — slightly smaller */
  .badge { padding: 2px 8px; font-size: 10px; }

  /* TABS */
  .page-tab { padding: 8px var(--sp-sm); font-size: var(--text-xs); }

  /* LOGIN — hide branding, show only form */
  .login-page__left { display: none; }
  .login-page__right { width: 100%; padding: var(--sp-xl) var(--sp-md); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
  .login-box__title { font-size: var(--text-xl); }

  /* FORM */
  .form__input, .form__select, .form__textarea { padding: 8px 12px; font-size: var(--text-sm); }
  .form__actions { flex-direction: column-reverse; }
  .form__actions .btn { width: 100%; justify-content: center; }
}
