/* ============================================
   Hanif Enterprise — Somiti-style design system
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --sb-bg: #1e293b;
  --sb-hover: #334155;
  --sb-active: #6366f1;
  --sb-text: #94a3b8;
  --sb-text-bright: #e2e8f0;
  --sb-brand-sub: #64748b;
  --sb-w: 235px;

  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #059669;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;

  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --topbar-h: 50px;
  --bc-h: 28px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body {
  font-family: 'Noto Sans Bengali', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15.5px;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ===== LOGIN ===== */
.login-wrap {
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow-y: auto;
  background: var(--bg);
}
.login-left {
  flex: 0 0 60%;
  background-color: #0f172a;
  background-image: url('/images/login.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.login-brand { position: relative; z-index: 1; max-width: 420px; }
.login-logo-icon {
  width: 76px; height: 76px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  margin-bottom: 22px;
}
.login-brand h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; }
.login-brand .tagline { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 36px; }
.login-features { display: flex; flex-direction: column; gap: 14px; }
.feat-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-size: .9rem; }
.feat-item .feat-ico {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.12);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: #fff; flex-shrink: 0;
}
.login-right {
  flex: 0 0 40%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px); background: var(--bg);
}

/* Login form: center the input text + placeholder */
.login-card form input[type="text"],
.login-card form input[type="password"] {
  text-align: center;
}
.login-card form input::placeholder { text-align: center; }
.login-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  width: 100%;
  max-width: clamp(320px, 38vw, 460px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-icon-sm {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--primary);
  margin-bottom: 14px;
}
.login-header h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 6px; }
.login-header p { color: var(--text-muted); font-size: .92rem; }
.login-footer { text-align: center; margin-top: 22px; font-size: .76rem; color: var(--text-light); }
.demo-hint {
  margin-top: 18px; padding: 10px 14px;
  background: var(--primary-light); border-radius: 10px;
  font-size: .8rem; color: var(--primary-dark); text-align: center;
}

/* ===== APP SHELL ===== */
.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sb-w);
  background: var(--sb-bg);
  height: 100vh;
  height: 100dvh;
  position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1rem; font-weight: 800; color: #f1f5f9; line-height: 1.2; }
.brand-name span { color: var(--text-light); font-weight: 500; }
.brand-sub { font-size: .7rem; color: var(--sb-brand-sub); line-height: 1.3; margin-top: 1px; }

.sidebar-search {
  margin: 10px 12px 4px;
  position: relative;
}
.sidebar-search input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--sb-text-bright);
  border-radius: 9px;
  padding: 7px 32px 7px 11px;
  font-size: .76rem;
  outline: none;
  font-family: inherit;
}
.sidebar-search input::placeholder { color: #6e7e8d; }
.sidebar-search input:focus { border-color: var(--primary); background: rgba(255,255,255,.08); }
.sidebar-search .kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: .62rem; color: #6e7e8d;
  background: rgba(255,255,255,.06);
  padding: 1px 5px; border-radius: 4px;
}

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 6px 0; }
.menu-section {
  padding: 12px 14px 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #475569;
}
.menu { display: flex; flex-direction: column; gap: 1px; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-size: .9rem; font-weight: 500;
  color: var(--sb-text);
  transition: all .15s; position: relative;
}
.menu-item:hover { background: var(--sb-hover); color: var(--sb-text-bright); }
.menu-item.active { background: var(--sb-active); color: #fff; font-weight: 600; }
.menu-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
  background: rgba(255,255,255,.06); color: var(--sb-text);
  transition: all .15s;
}
.menu-item:hover .menu-icon { background: rgba(255,255,255,.1); }
.menu-item.active .menu-icon { background: rgba(255,255,255,.2); color: #fff; }
.menu-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
  flex-shrink: 0;
}
.avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: .85rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .72rem; color: #64748b; }
.logout-btn {
  background: none; border: none; cursor: pointer;
  color: #64748b; font-size: 1rem; padding: 6px 8px;
  border-radius: 8px; transition: all .15s;
}
.logout-btn:hover { background: rgba(255,255,255,.08); color: var(--red); }

/* ===== MAIN WRAPPER ===== */
.main {
  margin-left: var(--sb-w);
  height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column;
  flex: 1;
  overflow: hidden;
  transition: margin .25s;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle {
  width: 32px; height: 32px; border-radius: 8px;
  background: none; border: 1px solid var(--border);
  cursor: pointer; color: var(--text-muted);
  display: none; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .15s;
}
.menu-toggle:hover { background: var(--bg); color: var(--text); }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; line-height: 1.1; }
.page-sub { font-size: .78rem; color: var(--text-muted); margin: 2px 0 0; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-date {
  display: flex; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--text-muted);
  background: var(--bg); padding: 6px 12px;
  border-radius: 8px; border: 1px solid var(--border);
}
.topbar-date i { color: var(--primary); }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 9px; border: 1px solid var(--border);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .92rem; transition: all .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 9px;
  border: 1px solid var(--border); cursor: pointer;
  transition: all .15s; background: none;
}
.topbar-user:hover { background: var(--bg); border-color: var(--primary); }
.tu-avatar {
  width: 26px; height: 26px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.tu-info { line-height: 1.15; text-align: left; }
.tu-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.tu-role { font-size: .72rem; color: var(--text-muted); }
.topbar-logout {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: none;
  cursor: pointer; color: var(--text-muted); font-size: .92rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.topbar-logout:hover { background: #fef2f2; color: var(--red); border-color: var(--red); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  height: var(--bc-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--text-muted);
  flex-shrink: 0;
}
.bc-sep { color: var(--border); font-size: .55rem; }
.bc-current { color: var(--primary); font-weight: 600; }

/* ===== PAGE CONTENT ===== */
.content {
  padding: 14px 16px 18px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius);
  font-family: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s;
  white-space: nowrap; text-decoration: none;
  background: var(--bg); color: var(--text);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.btn-secondary, .btn-outline { background: var(--card); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover, .btn-outline:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--orange); color: white; }
.btn-warning:hover { background: #d97706; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: var(--green-dark); }
.btn-info { background: var(--blue); color: white; }
.btn-info:hover { background: #2563eb; }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: .74rem; border-radius: 6px; }
.btn-full { width: 100%; justify-content: center; }
.btn i { font-size: .82em; }

/* ===== FORM ===== */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: .84rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
label i { color: var(--primary); width: 14px; text-align: center; }
input[type="text"], input[type="number"], input[type="date"], input[type="password"],
input[type="email"], select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-family: inherit; font-size: .9rem;
  color: var(--text); background: var(--card);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
input:disabled, select:disabled { background: var(--bg); opacity: .7; cursor: not-allowed; }
textarea { resize: vertical; min-height: 60px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.toggle-pwd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-light); padding: 4px;
}
.toggle-pwd:hover { color: var(--text-muted); }
.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.form-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-title {
  font-size: .76rem; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: .06em;
  margin: 0 0 6px; font-weight: 700;
}
.card-value { font-size: 1.55rem; font-weight: 800; color: var(--text); }

/* ===== STATS / SUMMARY GRID ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card > div:first-child { flex: 1; min-width: 0; }
.stat-card .label {
  font-size: .78rem; color: var(--text-muted);
  font-weight: 600; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}
.stat-card .value { font-size: 1.55rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-card .sub { font-size: .78rem; color: var(--text-light); margin-top: 5px; }
.stat-card .icon-circle {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
}
.stat-card .icon-circle.green { background: var(--green-light); color: var(--green); }
.stat-card .icon-circle.orange { background: var(--orange-light); color: var(--orange); }
.stat-card .icon-circle.red { background: var(--red-light); color: var(--red); }
.stat-card .icon-circle.blue { background: var(--blue-light); color: var(--blue); }
.stat-card .icon-circle.purple { background: var(--purple-light); color: var(--purple); }
.stat-card .delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .76rem; font-weight: 600;
  background: var(--green-light); color: var(--green-dark);
  padding: 2px 8px; border-radius: 999px;
}
.stat-card .delta.down { background: var(--red-light); color: var(--red); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* ===== TABLES ===== */
.table-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
}
.table-head h3 { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--text); }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 9px 12px;
  font-size: .86rem;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-weight: 700;
  color: var(--text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fafc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
  white-space: nowrap;
}
.badge-paid { background: var(--green-light); color: var(--green-dark); }
.badge-partial { background: var(--orange-light); color: #b45309; }
.badge-unpaid { background: var(--red-light); color: #b91c1c; }
.badge-admin { background: var(--purple-light); color: #7c3aed; }
.badge-owner { background: var(--orange-light); color: #b45309; }
.badge-user { background: var(--blue-light); color: #1d4ed8; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.filter-bar input, .filter-bar select {
  padding: 7px 12px;
  font-size: .86rem;
  min-width: 170px;
}
.filter-bar input[type="date"] { min-width: 130px; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title a, .section-link {
  font-size: .84rem; color: var(--primary);
  font-weight: 600;
}

/* ===== ITEMS / TOTALS BOX ===== */
.items-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.items-table th {
  text-align: left;
  font-size: .74rem; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: .05em;
  font-weight: 700;
  padding: 8px 9px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
}
.items-table td {
  padding: 6px 7px;
  border-bottom: 1px solid var(--border);
}
.items-table input { padding: 7px 10px; font-size: .86rem; }
.items-table .remove-btn {
  background: transparent; border: none;
  color: var(--red); font-size: 18px; width: 30px; cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
}
.items-table .remove-btn:hover { background: var(--red-light); }
.items-table .right { text-align: right; font-variant-numeric: tabular-nums; padding-right: 10px; }

.totals-box {
  margin-top: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  align-items: end;
  border: 1px solid #c7d2fe;
}
.totals-list { display: flex; flex-direction: column; gap: 7px; font-size: .92rem; }
.totals-list .row { display: flex; justify-content: space-between; align-items: center; }
.totals-list .row.total {
  font-weight: 800; font-size: 1.2rem;
  color: var(--primary-dark);
  margin-top: 6px; padding-top: 8px;
  border-top: 1.5px solid #c7d2fe;
}

.alloc-table input[type=number] { width: 110px; text-align: right; }

/* ===== ERROR / EMPTY ===== */
.error-msg {
  background: #fef2f2; color: var(--red);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: .84rem;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.empty {
  text-align: center;
  color: var(--text-light);
  padding: 30px 20px;
  font-size: .94rem;
}
.empty i { font-size: 1.8rem; display: block; margin-bottom: 10px; opacity: .5; }

.error-page {
  text-align: center;
  padding: 60px 20px;
}
.error-page i { font-size: 4rem; color: var(--primary); margin-bottom: 20px; }
.error-page h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* ===== UTILITIES ===== */
.muted { color: var(--text-muted); }
.right { text-align: right; }
.center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-3 { margin-bottom: 18px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex.between { justify-content: space-between; }
.hidden { display: none !important; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-eq { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .totals-box { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar-date, .topbar-user .tu-info { display: none; }
  .breadcrumb-bar { display: none; }
  .content { padding: 10px 12px; }
  .form-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .login-wrap { flex-direction: column; }
  .login-left {
    flex: 0 0 200px;
    padding: 20px;
    background-position: center 30%;
  }
  .login-brand h1 { font-size: 1.4rem; }
  .login-features { display: none; }
}

/* Print: hide chrome */
@media print {
  .sidebar, .topbar, .breadcrumb-bar, .filter-bar, .btn, .form-actions { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 10px; overflow: visible; }
  body, html { overflow: visible; height: auto; }
  .card, .table-wrap, .form-section { box-shadow: none; border: 1px solid #ddd; }
}
