:root {
  --brand: #0b5f8a;
  --brand-dark: #08425f;
  --brand-soft: #e7f2f8;
  --sidebar-w: 248px;
  --ink: #1d2733;
  --muted: #6b7785;
  --surface: #f4f6f9;
}
body { color: var(--ink); }
.app-body { background: var(--surface); }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--brand-dark); color: #dbe8f0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .75rem; z-index: 1030;
}
.app-sidebar .brand { display: flex; gap: .65rem; align-items: center; padding: .25rem .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .75rem; }
.app-sidebar .brand > i { font-size: 1.7rem; color: #7fd0f5; }
.brand-name { font-weight: 600; color: #fff; line-height: 1.2; }
.brand-sub { font-size: .75rem; color: #9fbccc; }
.app-sidebar .nav-link { color: #cfe0ea; border-radius: .45rem; padding: .45rem .65rem; display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-sidebar .nav-link.active { background: #fff; color: var(--brand-dark); font-weight: 600; }
.nav-section { text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; color: #8aa9bb; padding: .9rem .65rem .3rem; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; background: #fff; border-bottom: 1px solid #e4e8ee; position: sticky; top: 0; z-index: 1020; }
.topbar-search { position: relative; flex: 0 1 420px; }
.topbar-search i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-search input { padding-left: 2rem; }
.app-content { padding: 1.25rem; max-width: 1400px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; font-weight: 600; }
.card { border: 1px solid #e4e8ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.stat { padding: 1rem 1.1rem; }
.stat .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.45rem; font-weight: 650; }
.stat .hint { font-size: .8rem; color: var(--muted); }
.table > :not(caption) > * > * { padding: .55rem .65rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; background: #fafbfc; }
.table-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); }
.text-brand { color: var(--brand); }
.bg-brand-soft { background: var(--brand-soft); }
.board { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.board-col { background: #eef1f5; border-radius: .6rem; padding: .6rem; min-height: 200px; }
.board-col h6 { font-size: .8rem; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.board-card { background: #fff; border-radius: .5rem; padding: .55rem .65rem; margin-bottom: .5rem; border: 1px solid #e2e6ec; font-size: .86rem; }
.board-card.overdue { border-left: 3px solid #dc3545; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; border-left: 2px solid #dfe5ec; margin-left: .4rem; }
.timeline li::before { content: ''; position: absolute; left: -.42rem; top: .2rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--brand); }
.line-row .form-control, .line-row .form-select { min-width: 0; }
.auth-body { background: linear-gradient(160deg, #e7f2f8, #f7f9fb 60%); min-height: 100vh; }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 3rem 1rem; }
.auth-wrap.auth-wide { max-width: 720px; }
.auth-brand { display: block; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; margin-bottom: 1.2rem; }
.auth-card { border-radius: .9rem; }
.portal-body { background: var(--surface); }
.portal-nav { background: var(--brand-dark); }
.portal-nav .navbar-brand, .portal-nav .nav-link { color: #fff; }
.portal-nav .nav-link:hover { color: #bfe6f8; }
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 4rem 0 3rem; }
.plan-card { border-radius: .9rem; }
.plan-card .price { font-size: 2rem; font-weight: 700; }
.badge { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty i { font-size: 2rem; display: block; margin-bottom: .4rem; }
@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  .app-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .app-content { padding: 1rem .75rem; }
}
@media print { .app-sidebar, .app-topbar, .no-print { display: none !important; } }
/* polish */
.table td a.fw-semibold, .table td:first-child > a { white-space: nowrap; }
.money, .table-money { white-space: nowrap; }
@media (min-width: 992px) { .app-shell { background: linear-gradient(to right, var(--brand-dark) var(--sidebar-w), transparent var(--sidebar-w)); } }
@media (max-width: 575.98px) {
  .portal-nav .container { flex-wrap: wrap; row-gap: .25rem; }
  .portal-nav .navbar-nav { width: 100%; justify-content: space-between; }
  .portal-nav .nav-link { padding-left: .25rem; padding-right: .25rem; }
}
@media (max-width: 575.98px) { .stat .value { font-size: 1.15rem; white-space: nowrap; } .stat { padding: .75rem .85rem; } }

/* Public laundry directory */
.laundry-card .laundry-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid #e3e8ef; flex: 0 0 52px; }
.laundry-card .laundry-initial { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--brand, #0b4f6c); border: 0; }
.laundry-card ul li:last-child { border-bottom: 0 !important; }

/* Cleaning jobs */
.job-row .job-time { min-width: 56px; padding: 4px 6px; border-radius: 8px; background: var(--brand-soft, #e7f2f8); }
.team-pick .form-check-inline { margin-right: 1rem; }
