:root {
  --gold: #B8892E;
  --gold-dark: #8F6217;
  --gold-light: #D4AF37;
  --gold-soft: #FAF4E6;
  --ink: #25241F;
  --muted: #6F6B62;
  --surface: #FFFFFF;
  --bg: #FAF7F0;
  --line: #E8E0D2;
  --green: #16825D;
  --red: #BA1A1A;
  --shadow: 0 14px 40px rgba(184, 137, 46, 0.12);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.fullscreen { min-height: 100vh; }
.center { display: grid; place-content: center; text-align: center; gap: 16px; }

/* CUSTOM ANIMATED LOADER (VIBRANT GOLD) */
#loading.custom-loader {
  background: radial-gradient(circle at center, #E8C86E 0%, #D4AF37 35%, #B8892E 75%, #8F6217 100%);
  color: #FFFFFF;
  z-index: 1000;
}
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 0.4s ease;
}
.loader-logo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}
.loader-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  animation: pulseLogo 2s ease-in-out infinite;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-right-color: #FFF0B8;
  border-radius: 50%;
  animation: spin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.loader-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.loader-subtitle {
  font-size: 14px;
  color: #FFF6DE;
  margin: 4px 0 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.loader-bar {
  width: 180px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}
.loader-bar-inner {
  position: absolute;
  height: 100%;
  width: 45%;
  background: #FFFFFF;
  border-radius: 999px;
  animation: loaderBarMove 1.4s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4)); }
}
@keyframes loaderBarMove {
  0% { left: -45%; }
  100% { left: 100%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* AUTH VIEW & CENTERED 2-COLUMN BALANCED LAYOUT (VIBRANT LUXURY GOLD THEME) */
.auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(135deg, #8F6217 0%, #B8892E 35%, #D4AF37 70%, #E8C86E 100%);
  position: relative;
  overflow: hidden;
  gap: 60px;
  box-sizing: border-box;
}
.auth-view:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(245, 215, 142, 0.2) 60%, transparent 80%);
  top: -140px;
  right: -120px;
  border-radius: 50%;
  pointer-events: none;
}
.auth-view:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  bottom: -120px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* LEFT SIDE: BRANDING & HIGHLIGHTS */
.auth-brand {
  flex: 1;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  z-index: 2;
  padding: 0;
}
.auth-brand-content {
  width: 100%;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.brand-hero-title {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 14px;
  color: #FFFFFF;
  letter-spacing: -0.8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.gold-gradient-text {
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.brand-hero-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: #FFF6E5;
  margin: 0 0 24px;
  font-weight: 600;
}
.brand-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(100, 68, 15, 0.15);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-item strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

/* RIGHT SIDE: CLEAN CRYSTAL GLASS LOGIN MODAL */
.auth-card-wrap {
  flex: 1;
  max-width: 410px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0;
}
.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 32px 26px;
  box-shadow: 0 25px 60px rgba(100, 68, 15, 0.25);
  text-align: center;
  color: var(--ink);
}
.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
}
.auth-card h2 {
  font-size: 23px;
  margin: 6px 0 4px;
  color: var(--ink);
  font-weight: 850;
}
.auth-card > p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13px;
}
.auth-card form { text-align: left; }
.auth-card label, .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 15px;
}
.auth-card input {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #FAF8F5;
  color: var(--ink);
  outline: none;
  transition: .2s;
}
.auth-card input::placeholder {
  color: #A0988A;
}
.auth-card input:focus {
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 46, 0.2);
}
.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.auth-card input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #f5d78e;
  box-shadow: 0 0 0 3px rgba(212, 177, 90, 0.25);
}
.field input, .field select, .field textarea, .toolbar input {
  border: 1px solid #d7cfc5;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
  transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #f5e5c8;
}

/* BUTTONS */
.primary-button, .outline-button, .text-button, .google-button, .icon-button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s;
}
.primary-button {
  background: var(--gold);
  color: white;
  padding: 13px 20px;
}
.primary-button:hover { background: var(--gold-dark); }
.outline-button {
  background: white;
  border: 1px solid #d7cfc5;
  padding: 10px 14px;
  color: var(--ink);
}
.text-button {
  background: transparent;
  color: var(--gold);
  padding: 10px;
}

/* AUTHENTIC GOOGLE BUTTON */
.google-button {
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}
.google-button:hover {
  background: #f8fafd;
  border-color: #d2e3fc;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.16);
}
.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-card .primary-button { width: 100%; }
.auth-card > .text-button { width: 100%; margin-top: 6px; }
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9b938a;
  font-size: 12px;
  margin: 16px 0;
}
.divider:before, .divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.error-text {
  color: var(--red) !important;
  font-size: 13px;
  min-height: 18px;
}

/* APP SHELL */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; background: var(--bg); color: var(--ink); padding: 0 13px 18px 13px; display: flex; flex-direction: column; z-index: 20; border-right: 1.5px solid var(--line); }
.brand { height: 88px; padding: 0 16px; margin: 0 -14.5px 14px -13px; display: flex; align-items: center; gap: 12px; background: linear-gradient(115deg, #8F6217 0%, #B8892E 100%); border-bottom: 1.5px solid rgba(255, 255, 255, 0.28); border-right: 1px solid rgba(255, 255, 255, 0.22); box-sizing: border-box; color: #FFFFFF; box-shadow: 0 4px 18px rgba(184, 137, 46, 0.15); position: relative; z-index: 2; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.brand div, .sidebar-user div { min-width: 0; display: flex; flex-direction: column; }
.brand strong { font-size: 19px; color: #FFFFFF; font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.brand small { color: #FFF3D1; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.5px; }
.sidebar nav { overflow-y: auto; overflow-x: hidden; padding: 6px 0 14px; flex: 1; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; background: transparent; color: #625F57; padding: 11px 14px; border-radius: 14px; text-align: left; cursor: pointer; font-weight: 700; margin: 3px 0; transition: .2s; }
.nav-item:hover { background: rgba(184, 137, 46, 0.12); color: #8F6217; }
.nav-item.active { background: #B8892E; color: #FFFFFF; font-weight: 800; box-shadow: 0 4px 14px rgba(184, 137, 46, 0.35); }
.nav-item.active .material-icons-round { color: #FFFFFF; }
.nav-item .material-icons-round { font-size: 21px; }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 10px; padding: 12px 14px; background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); margin-top: auto; }
.sidebar-user img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; background: var(--gold-soft); border: 1.5px solid rgba(184, 137, 46, 0.3); }
.sidebar-user strong { font-size: 12px; color: var(--ink); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { color: #8F6217; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user button { border: 0; background: transparent; color: #8F6217; cursor: pointer; }
.workspace { grid-column: 2; min-width: 0; background: var(--bg); }
.topbar { height: 88px; padding: 0 28px; background: linear-gradient(115deg, #B8892E 0%, #D4AF37 50%, #8F6217 100%); border-bottom: 1.5px solid rgba(255, 255, 255, 0.28); color: white; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; box-shadow: 0 4px 18px rgba(184, 137, 46, 0.15); box-sizing: border-box; }
.topbar h1 { margin: 2px 0 0; font-size: 25px; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.sync-state { font-size: 12px; background: #ffffff1c; padding: 9px 13px; border-radius: 999px; }
.sync-state i { display: inline-block; width: 8px; height: 8px; background: #68e2a8; border-radius: 50%; margin-right: 6px; }
.topbar .outline-button { background: #ffffff18; color: white; border-color: #ffffff55; }
.icon-button { width: 42px; height: 42px; background: transparent; color: inherit; }
.topbar > #mobile-menu { display: none; }
.content { padding: 28px 36px 60px; margin-top: -20px; position: relative; z-index: 11; }
.hero-strip { background: white; border-radius: 23px; padding: 23px 27px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hero-strip h2 { margin: 0 0 6px; font-size: 22px; }
.hero-strip p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card, .panel { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.stat-card { position: relative; overflow: hidden; }
.stat-card .material-icons-round { color: var(--gold); background: var(--gold-soft); padding: 10px; border-radius: 13px; }
.stat-card strong { display: block; font-size: 27px; margin: 14px 0 3px; }
.stat-card small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel-header, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header h3 { margin: 0; }
.panel-header p { color: var(--muted); font-size: 12px; }
.toolbar { margin-bottom: 18px; }
.toolbar input { width: min(360px, 100%); }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: .8px; color: #877e74; padding: 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #eee9e2; font-size: 13px; }
.data-table tr:hover td { background: #fcfaf6; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eee9e2; font-size: 11px; font-weight: 800; }
.badge.good { color: #086846; background: #dcf5e9; }
.badge.warn { color: #855300; background: #fff0c9; }
.badge.bad { color: #a01313; background: #ffe1df; }
.row-actions { display: flex; gap: 4px; }
.row-actions button { border: 0; background: transparent; color: #746b61; cursor: pointer; padding: 5px; border-radius: 8px; }
.row-actions button:hover { background: #eee9e2; color: var(--gold); }
.empty { display: grid; place-items: center; text-align: center; padding: 48px; color: var(--muted); }
.empty .material-icons-round { font-size: 45px; color: #c9b99e; }
.list { display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eee9e2; }
.list-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.list-item strong, .list-item small { display: block; }
.list-item small { color: var(--muted); margin-top: 4px; }
.money-positive { color: var(--green); font-weight: 800; }
.money-negative { color: var(--red); font-weight: 800; }
.blocked { display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #f8edda, #fff); }
.blocked-card { max-width: 540px; text-align: center; background: white; padding: 48px; border-radius: 28px; box-shadow: var(--shadow); }
.blocked-icon { font-size: 64px; color: var(--gold); }
dialog { border: 0; border-radius: 24px; padding: 0; width: min(540px, calc(100vw - 32px)); box-shadow: 0 30px 90px #0005; overflow: hidden !important; }
dialog::backdrop { background: #1c160ec9; backdrop-filter: blur(3px); }
dialog form { overflow: hidden !important; }
dialog form header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog h2 { margin: 4px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 16px 20px; max-height: none !important; overflow: hidden !important; scrollbar-width: none; -ms-overflow-style: none; }
.form-grid::-webkit-scrollbar { display: none; width: 0; height: 0; }
.field.wide { grid-column: 1/-1; }
.field textarea { min-height: 90px; resize: vertical; }
dialog footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 25px; bottom: 25px; background: #29221a; color: white; padding: 14px 18px; border-radius: 13px; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .3s; z-index: 99; }
.toast.show { transform: none; opacity: 1; }
.scrim { position: fixed; inset: 0; background: #0008; z-index: 15; }

@media (max-width: 1000px) {
  .auth-view {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 0;
  }
  .auth-brand {
    display: none;
  }
  .auth-card-wrap {
    justify-content: center;
    padding: 0;
  }
}
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app-layout { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; }
  .workspace { margin: 0; }
  .topbar { height: 110px; padding: 18px 18px; }
  .topbar > #mobile-menu { display: inline-flex; }
  .topbar h1 { font-size: 24px; }
  .sync-state { display: none; }
  .content { padding: 22px 14px 45px; }
  .hero-strip { align-items: flex-start; gap: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar input { width: 100%; }
}
@media (max-width: 480px) {
  .auth-card-wrap { padding: 0; }
  .auth-card { padding: 28px 20px; border-radius: 22px; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-strip { flex-direction: column; }
  .top-actions .outline-button { font-size: 0; }
  .top-actions .outline-button span { font-size: 20px; }
}
/* AUDIT-2026-LAYOUT */
.app-layout{grid-template-columns:252px minmax(0,1fr);background:var(--bg)}
.sidebar{width:252px;padding:0 13px 18px 13px;background:var(--bg);border-right:1.5px solid var(--line)}
.brand{height:88px;padding:0 16px;margin:0 -14.5px 14px -13px;display:flex;align-items:center;background:linear-gradient(115deg,#8F6217 0%,#B8892E 100%);border-bottom:1.5px solid rgba(255,255,255,0.28);border-right:1px solid rgba(255,255,255,0.22);box-sizing:border-box;color:#FFFFFF;box-shadow:0 4px 18px rgba(184,137,46,0.15);position:relative;z-index:2}
.brand img{width:44px;height:44px;border-radius:12px;border:2px solid rgba(255,255,255,0.85)}
.sidebar nav{padding:6px 0 14px}
.nav-item{padding:9px 11px;margin:2px 0;font-size:14px;min-height:40px;border-radius:12px}
.sidebar-user{padding-top:10px}
.topbar{height:88px;padding:0 28px;z-index:40;background:linear-gradient(115deg,#B8892E 0%,#D4AF37 50%,#8F6217 100%);border-bottom:1.5px solid rgba(255,255,255,0.28);box-shadow:0 4px 18px rgba(184,137,46,.15);display:flex;align-items:center}
.topbar h1{font-size:25px;margin-top:2px}
.content{padding:18px 26px 48px;margin-top:0;z-index:1}
.hero-strip{padding:15px 19px;border-radius:17px;margin-bottom:15px;box-shadow:0 8px 25px rgba(184,137,46,.08);border:1.5px solid var(--line)}
.hero-strip h2{font-size:19px;margin-bottom:3px}
.hero-strip p{font-size:13px;line-height:1.45}
.stat-grid{gap:12px;margin-bottom:15px}
.stat-card,.panel{border-radius:16px;padding:16px;border:1.5px solid var(--line)}
.stat-card strong{font-size:23px;margin-top:10px}
.stat-card .material-icons-round{padding:8px;border-radius:11px;font-size:21px}
.dashboard-grid{gap:14px}
.toolbar{min-height:38px;margin-bottom:10px}
.toolbar input{width:min(310px,100%);padding:9px 12px;border-radius:11px;font-size:13px}
#record-count{color:var(--muted);font-size:12px;white-space:nowrap}
.data-table th{padding:9px 10px}
.data-table td{padding:11px 10px}
.row-actions .material-icons-round{font-size:19px}
.empty{padding:34px 18px}
.list-item{padding:10px 0}
.topbar,.sidebar{isolation:isolate}.detail-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap}body{overflow-x:hidden}button:disabled{opacity:.58;cursor:not-allowed;pointer-events:none}
@media(max-width:800px){.toolbar{flex-direction:row;align-items:center}.toolbar input{flex:1;min-width:0}.topbar{height:76px;padding:9px 13px}.topbar h1{font-size:21px}.content{padding:12px 11px 36px}.hero-strip{padding:13px 15px}.sidebar{width:min(88vw,280px)}.stat-grid{gap:9px}.stat-card,.panel{padding:13px}}
/* SPECIALIZED-MODULES */
.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-section:first-child{grid-column:1/-1}.section-title{display:flex;align-items:center;gap:11px;margin-bottom:13px}.section-title>.material-icons-round{color:var(--gold);background:var(--gold-soft);padding:9px;border-radius:11px}.section-title h3,.section-title p{margin:0}.section-title p{font-size:12px;color:var(--muted);margin-top:2px}.form-grid.inline{padding:0;max-height:none;overflow:visible}.check-field{display:flex;align-items:center;gap:11px;padding:10px 0;color:var(--ink);cursor:pointer}.check-field input{width:19px;height:19px;accent-color:var(--gold)}.check-field span{display:flex;flex-direction:column}.check-field small{color:var(--muted);margin-top:2px}.settings-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.support-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:14px}.action-card{display:grid;grid-template-columns:48px 1fr 30px;align-items:center;gap:14px;background:white;border:1.5px solid var(--line);border-radius:17px;padding:20px;text-decoration:none;color:var(--ink);transition:.2s}.action-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d1b987}.action-card>.material-icons-round:first-child{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--gold-soft);color:var(--gold)}.action-card h3,.action-card p{margin:0}.action-card p{font-size:12px;color:var(--muted);margin-top:4px}.action-card .arrow{color:var(--muted)}.support-note{display:flex;gap:13px;align-items:flex-start}.support-note p{margin:4px 0 0;color:var(--muted)}
.period-tabs{display:flex;gap:7px;margin-bottom:14px}.period-tabs button{border:1.5px solid var(--line);background:white;padding:8px 14px;border-radius:999px;font-weight:800;cursor:pointer}.period-tabs button.active{background:var(--gold);color:white;border-color:var(--gold)}.report-headline,.financial-summary,.cash-summary{background:linear-gradient(120deg,#B8892E,#8F6217);color:white;border-radius:18px;padding:22px;margin-bottom:14px;box-shadow:var(--shadow)}.report-headline{display:flex;flex-direction:column}.report-headline strong,.financial-summary>strong,.cash-summary>strong{font-size:30px;margin:4px 0}.report-headline span,.report-headline small,.financial-summary>small,.cash-summary>small{color:#f1dec0}.report-stats{margin-bottom:14px}.report-rows>div{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}.report-rows>div:last-child{border:0}
.cash-current{display:grid;grid-template-columns:minmax(300px,.7fr) 1.3fr;gap:14px}.cash-summary{grid-column:1}.cash-summary>div,.financial-summary>div{display:flex;gap:25px;margin-top:12px}.cash-summary span,.financial-summary span{display:flex;flex-direction:column;font-size:11px;color:#ead9bd}.cash-summary b,.financial-summary b{font-size:13px;color:white;margin-top:2px}.cash-actions{grid-column:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.cash-actions .primary-button{grid-column:1/-1}.cash-current>.panel{grid-column:2;grid-row:1/3}.cash-history{margin-top:14px}.cash-empty{text-align:center;padding:35px}.cash-empty>.material-icons-round{font-size:48px;color:var(--gold)}.cash-empty h2{margin:8px 0}.cash-empty p{color:var(--muted)}
.financial-summary>div{max-width:560px}.dual-actions{display:flex;gap:8px;margin:-4px 0 14px}.table-date{display:block;color:var(--muted);margin-top:3px;font-size:11px}
@media(max-width:900px){.settings-layout{grid-template-columns:1fr}.settings-section:first-child{grid-column:auto}.settings-actions{grid-column:auto}.cash-current{display:block}.cash-actions{margin-bottom:14px}.cash-current>.panel{margin-top:14px}.support-grid{grid-template-columns:1fr}}
@media(max-width:520px){.cash-summary>div,.financial-summary>div{gap:12px;justify-content:space-between}.cash-summary b,.financial-summary b{font-size:11px}.dual-actions>*{flex:1}.settings-actions .primary-button{width:100%}}
.subscription-card{display:flex;align-items:center;gap:18px}.subscription-card>.material-icons-round{font-size:52px;color:var(--gold);background:var(--gold-soft);padding:15px;border-radius:18px}.subscription-card h2,.subscription-card p{margin:4px 0}.subscription-card small{color:var(--muted);font-weight:800;letter-spacing:1px}.subscription-info{margin-top:14px}.subscription-info h3{margin-top:0}.subscription-info p{color:var(--muted);line-height:1.65;margin-bottom:0}
.update-badge{background:linear-gradient(135deg,#ffd995,#f0b450);color:#3d2402;border:0;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:6px;cursor:pointer;box-shadow:0 4px 14px rgba(240,180,80,.4);animation:pulseUpdate 2s infinite;transition:.2s}.update-badge:hover{transform:scale(1.05);background:linear-gradient(135deg,#ffe3ad,#f7be62)}.update-badge .material-icons-round{font-size:16px}@keyframes pulseUpdate{0%,100%{box-shadow:0 0 0 0 rgba(240,180,80,.6)}50%{box-shadow:0 0 0 8px rgba(240,180,80,0)}}
/* MOBILE PARITY MODAL STYLING */
dialog{border:0;border-radius:24px;padding:0;width:min(540px,calc(100vw - 32px));box-shadow:0 30px 90px rgba(0,0,0,.2)}
dialog form header{padding:18px 22px;border-bottom:1.5px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;padding:16px 20px;max-height:none;overflow:hidden;scrollbar-width:none;-ms-overflow-style:none}
.form-grid::-webkit-scrollbar{display:none;width:0;height:0}
.mobile-parity-modal{grid-column:1/-1;width:100%;padding:0;font-family:Manrope,system-ui,sans-serif}
.parity-card{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:10px;box-shadow:0 2px 6px rgba(184,137,46,.05)}
.user-row{display:flex;align-items:center;gap:12px}
.avatar-circle{width:42px;height:42px;border-radius:50%;background:var(--gold-soft);color:var(--gold);display:grid;place-items:center;font-size:22px}
.customer-name{font-size:16px;font-weight:900;color:var(--ink);display:block;margin-bottom:2px}
.detail-row{display:flex;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid #f4eee6}
.detail-row:last-child{border:0}
.detail-row .material-icons-round{color:var(--gold);font-size:20px;background:var(--gold-soft);padding:6px;border-radius:10px}
.detail-row small{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;display:block}
.detail-row strong{font-size:13px;color:var(--ink)}
.stepper-card{background:linear-gradient(135deg,#B8892E,#8F6217);color:white;padding:12px 14px;margin-bottom:10px;border-radius:14px}
.stepper-title{font-size:10px;font-weight:800;letter-spacing:1px;color:#FFF0B8;text-transform:uppercase;margin-bottom:8px}
.stepper-track{display:flex;justify-content:space-between;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}
.stepper-track::-webkit-scrollbar{display:none}
.step-pill{font-size:10px;font-weight:800;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.2);color:#FFFFFF;white-space:nowrap}
.step-pill.active{background:#FFFFFF;color:var(--gold-dark)}
.primary-action-wrap{margin-bottom:10px}
.btn-primary-action{width:100%;padding:12px 18px;border:0;border-radius:14px;background:linear-gradient(135deg,#B8892E,#8F6217);color:white;font-size:14px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 14px rgba(184,137,46,.3);transition:background .2s ease-in-out}
.btn-primary-action:hover{background:linear-gradient(135deg,#D4AF37,#8F6217)}
.secondary-actions-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px}
.action-btn{border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:9px 10px;font-size:11px;font-weight:800;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:background .2s ease-in-out,border-color .2s ease-in-out,color .2s ease-in-out}
.action-btn:hover{background:var(--gold-soft);border-color:var(--gold);color:var(--gold-dark)}
.action-btn.whatsapp-btn{background:#e8f5e9;border-color:#c8e6c9;color:#1b5e20}
.action-btn.whatsapp-btn:hover{background:#d4edda;border-color:#25d366;color:#155724}
.action-btn.noshow-btn{color:#e65100}
.action-btn.noshow-btn:hover{background:#ffe0b2;border-color:#fb8c00;color:#e65100}
.action-btn.cancel-btn{color:#c62828}
.action-btn.cancel-btn:hover{background:#f8d7da;border-color:#dc3545;color:#721c24}

/* HOVER EFFECTS - COLOR ONLY */
.data-table tr.clickable-row{cursor:pointer}
.data-table tr.clickable-row:hover td{background:#f5e8d5!important;color:#523605!important;transition:background .15s ease-in-out,color .15s ease-in-out}
.data-table tr.clickable-row:hover td:first-child{box-shadow:inset 5px 0 0 var(--gold)}
.stat-card{transition:background .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out}
.stat-card:hover{background:#fffdf9;box-shadow:0 8px 24px rgba(154,104,23,.18);border-color:var(--gold)}
.stat-card:hover .material-icons-round{background:var(--gold);color:white}
.list-item{transition:background .2s ease-in-out;padding:11px 8px;border-radius:12px}
.list-item:hover{background:#f8edda}
.list-item:hover .list-icon{background:var(--gold);color:white}
.primary-button{transition:background .2s ease-in-out}
.primary-button:hover{background:var(--gold-dark);color:white}
.outline-button{transition:background .2s ease-in-out,border-color .2s ease-in-out,color .2s ease-in-out}
.outline-button:hover{border-color:var(--gold);color:#523605;background:var(--gold-soft)}
.row-actions button{transition:background .2s ease-in-out,color .2s ease-in-out}
.row-actions button:hover{background:var(--gold);color:white}

/* RESPONSIVE MODAL FOR SMALL SCREENS */
@media(max-width:560px){
 dialog{width:min(540px,calc(100vw - 16px));border-radius:18px}
 dialog form header{padding:14px 16px}
 .form-grid{padding:12px 14px}
 .parity-card{padding:10px 12px;margin-bottom:8px}
 .customer-name{font-size:15px}
 .avatar-circle{width:38px;height:38px;font-size:18px}
 .detail-row{padding:5px 0}
 .detail-row .material-icons-round{font-size:18px;padding:5px}
 .detail-row strong{font-size:12px}
 .btn-primary-action{padding:11px 14px;font-size:13px}
 .secondary-actions-bar{grid-template-columns:1fr 1fr;gap:6px}
 .action-btn{padding:8px 6px;font-size:10.5px}
}