/* ==========================================================================
   BARBEARIA PWA — DESIGN SYSTEM
   --------------------------------------------------------------------------
   Paleta inspirada no poste de barbeiro clássico (vermelho/creme) e em
   acabamentos de latão/navalha (dourado envelhecido) sobre uma base
   grafite. As variáveis abaixo são o "token system": troque só aqui para
   re-brandear todo o app (cores, tipografia, raios, sombras).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  /* ---- Tema CLARO (padrão) ---- */
  --color-bg:            #F7F5F1;   /* creme — fundo geral */
  --color-surface:       #FFFFFF;   /* cartões / painéis */
  --color-surface-alt:   #EFEAE2;   /* cartões secundários / hover sutil */
  --color-border:        #E1DACC;
  --color-text:          #201C17;
  --color-text-muted:    #6B6355;
  --color-text-soft:     #94897A;

  --color-primary:       #B02A2A;   /* vermelho poste de barbeiro */
  --color-primary-dark:  #8C2020;
  --color-primary-soft:  #F3DCDC;

  --color-accent:        #C9A25F;   /* dourado / latão */
  --color-accent-dark:   #A9813F;
  --color-accent-soft:   #F1E6CE;

  --color-navy:          #1F2937;   /* azul do poste, usado em detalhes */

  --color-success:       #3F7D5C;
  --color-success-soft:  #DCEEE4;
  --color-danger:        #B3261E;
  --color-danger-soft:   #F8DAD8;
  --color-warning:       #A9700B;
  --color-warning-soft:  #F5E7C9;

  --shadow-sm: 0 1px 2px rgba(32,28,23,.06), 0 1px 1px rgba(32,28,23,.04);
  --shadow-md: 0 6px 16px rgba(32,28,23,.10);
  --shadow-lg: 0 16px 40px rgba(32,28,23,.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  --header-h: 64px;
  --tabbar-h: 68px;
  --transition: .18s ease;
}

[data-theme="dark"]{
  --color-bg:            #14120F;
  --color-surface:       #1E1B17;
  --color-surface-alt:   #262220;
  --color-border:        #35302A;
  --color-text:          #F3EFE8;
  --color-text-muted:    #B8AFA1;
  --color-text-soft:     #7E7566;

  --color-primary:       #D9534F;
  --color-primary-dark:  #B0403C;
  --color-primary-soft:  #3A2220;

  --color-accent:        #D8B478;
  --color-accent-dark:   #B8935F;
  --color-accent-soft:   #362C1B;

  --color-navy:          #A9BAD6;

  --color-success:       #6FBE96;
  --color-success-soft:  #1D2E25;
  --color-danger:        #E5817C;
  --color-danger-soft:   #3A1E1D;
  --color-warning:       #E0B34C;
  --color-warning-soft:  #382C16;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.55);
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--color-bg);
  color:var(--color-text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  transition:background var(--transition), color var(--transition);
}
h1,h2,h3,h4{ font-family:var(--font-display); letter-spacing:.02em; margin:0 0 4px; font-weight:400; }
h1{ font-size:34px; } h2{ font-size:26px; } h3{ font-size:20px; } h4{ font-size:16px; }
p{ margin:0 0 8px; color:var(--color-text-muted); }
a{ color:var(--color-primary); }
button{ font-family:var(--font-body); }
input,select,textarea{ font-family:var(--font-body); }
::selection{ background:var(--color-primary-soft); }

.hidden{ display:none !important; }
.sr-only{ position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }

img{ max-width:100%; display:block; }

/* ---- Scrollbars discretos ---- */
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:var(--color-border); border-radius:99px; }

/* ==========================================================================
   LAYOUT RAIZ
   ========================================================================== */
#app{
  max-width:560px;
  margin:0 auto;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--color-bg);
  position:relative;
  box-shadow:var(--shadow-lg);
}
@media (min-width:900px){
  #app{ max-width:1100px; }
}

.view{ flex:1; display:flex; flex-direction:column; min-height:100vh; }

/* ==========================================================================
   TELA DE AUTENTICAÇÃO
   ========================================================================== */
.auth-view{
  justify-content:center;
  padding:32px 24px 40px;
  background:
    radial-gradient(circle at 15% 0%, var(--color-primary-soft), transparent 55%),
    radial-gradient(circle at 90% 10%, var(--color-accent-soft), transparent 45%);
}
.auth-brand{ text-align:center; margin-bottom:28px; }
.auth-brand .pole{ width:56px; height:56px; margin:0 auto 10px; }
.auth-brand h1{ font-size:40px; }
.auth-brand p{ margin:0; }

.auth-card{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  box-shadow:var(--shadow-md);
}
.auth-tabs{
  display:flex; background:var(--color-surface-alt); border-radius:var(--radius-pill);
  padding:4px; margin-bottom:20px;
}
.auth-tabs button{
  flex:1; border:0; background:transparent; padding:10px 0; border-radius:var(--radius-pill);
  color:var(--color-text-muted); font-weight:600; cursor:pointer; transition:var(--transition);
}
.auth-tabs button.active{ background:var(--color-primary); color:#fff; box-shadow:var(--shadow-sm); }

.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--color-text-muted); margin-bottom:6px; }
.field input, .field select{
  width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--color-border);
  background:var(--color-bg); color:var(--color-text); font-size:15px; transition:var(--transition);
}
.field input:focus, .field select:focus{
  outline:none; border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-primary-soft);
}
.field-row{ display:flex; gap:10px; }
.field-row .field{ flex:1; }
.radio-group{ display:flex; gap:10px; }
.radio-chip{
  flex:1; border:1.5px solid var(--color-border); border-radius:var(--radius-sm); padding:10px;
  text-align:center; cursor:pointer; font-size:14px; font-weight:600; color:var(--color-text-muted);
  transition:var(--transition);
}
.radio-chip input{ display:none; }
.radio-chip.checked{ border-color:var(--color-primary); background:var(--color-primary-soft); color:var(--color-primary-dark); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--radius-pill); padding:13px 20px; font-weight:700; font-size:15px;
  cursor:pointer; transition:var(--transition); width:100%;
}
.btn-primary{ background:var(--color-primary); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--color-primary-dark); }
.btn-outline{ background:transparent; border:1.5px solid var(--color-border); color:var(--color-text); }
.btn-outline:hover{ border-color:var(--color-primary); color:var(--color-primary); }
.btn-ghost{ background:transparent; color:var(--color-text-muted); width:auto; padding:8px 10px; }
.btn-accent{ background:var(--color-accent); color:#25200f; }
.btn-danger{ background:var(--color-danger); color:#fff; }
.btn-sm{ padding:8px 14px; font-size:13px; width:auto; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }
.btn-icon{ width:40px; height:40px; padding:0; border-radius:50%; background:var(--color-surface-alt); color:var(--color-text); border:1px solid var(--color-border); }

.link-btn{ background:none; border:none; color:var(--color-primary); font-weight:600; cursor:pointer; padding:0; font-size:13px; }
.auth-foot{ text-align:center; margin-top:14px; }

.form-error{ color:var(--color-danger); font-size:13px; margin:-6px 0 12px; min-height:16px; }
.form-msg{ font-size:13px; margin:-6px 0 12px; min-height:16px; }

/* ==========================================================================
   HEADER / BANNER DO ESTABELECIMENTO
   ========================================================================== */
.app-header{
  position:sticky; top:0; z-index:30;
  height:var(--header-h);
  display:flex; align-items:center; gap:12px;
  padding:0 16px;
  background:var(--color-surface);
  border-bottom:1px solid var(--color-border);
}
.app-header .brand-photo{
  width:40px; height:40px; border-radius:50%; object-fit:cover;
  border:2px solid var(--color-accent);
  background:var(--color-surface-alt);
}
.app-header .brand-info{ flex:1; min-width:0; }
.app-header .brand-info strong{ display:block; font-size:15px; line-height:1.1; }
.app-header .brand-info span{ font-size:11px; color:var(--color-text-soft); text-transform:uppercase; letter-spacing:.05em; }
.header-actions{ display:flex; align-items:center; gap:6px; }

.icon-btn{
  position:relative; width:38px; height:38px; border-radius:50%; border:1px solid var(--color-border);
  background:var(--color-surface-alt); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--color-text); transition:var(--transition);
}
.icon-btn:hover{ border-color:var(--color-primary); color:var(--color-primary); }
.icon-btn svg{ width:19px; height:19px; }
.badge-dot{
  position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 3px; border-radius:99px;
  background:var(--color-primary); color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center;
  border:2px solid var(--color-surface);
}

/* ==========================================================================
   CONTEÚDO / SCROLL
   ========================================================================== */
.app-main{ flex:1; padding:16px 16px calc(var(--tabbar-h) + 24px); overflow-y:auto; }
.section-title{ display:flex; align-items:center; justify-content:space-between; margin:22px 0 12px; }
.section-title:first-child{ margin-top:0; }
.section-title h3{ margin:0; }
.eyebrow{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--color-accent-dark); margin-bottom:4px; }

.card{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md);
  padding:16px; box-shadow:var(--shadow-sm);
}
.card + .card{ margin-top:10px; }

.hero-cta{
  background:linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color:#fff; border-radius:var(--radius-lg); padding:22px; position:relative; overflow:hidden;
  box-shadow:var(--shadow-md);
}
.hero-cta::after{
  content:""; position:absolute; inset:auto -30% -60% auto; width:220px; height:220px; border-radius:50%;
  background:rgba(255,255,255,.08);
}
.hero-cta h2{ color:#fff; font-size:28px; margin-bottom:6px; }
.hero-cta p{ color:rgba(255,255,255,.85); margin-bottom:16px; }
.hero-cta .btn{ background:#fff; color:var(--color-primary-dark); width:auto; padding:12px 22px; }

.quick-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:16px; }
.quick-item{
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md);
  padding:12px 6px; text-align:center; cursor:pointer; transition:var(--transition);
}
.quick-item:hover{ border-color:var(--color-accent); transform:translateY(-1px); }
.quick-item svg{ width:22px; height:22px; margin:0 auto 6px; color:var(--color-primary); }
.quick-item span{ font-size:11px; font-weight:600; color:var(--color-text-muted); display:block; }

.list-row{
  display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--color-border);
}
.list-row:last-child{ border-bottom:none; }
.list-row .thumb{
  width:46px; height:46px; border-radius:var(--radius-sm); object-fit:cover; background:var(--color-surface-alt); flex-shrink:0;
}
.list-row .thumb.round{ border-radius:50%; }
.list-row .info{ flex:1; min-width:0; }
.list-row .info strong{ display:block; font-size:14px; }
.list-row .info span{ font-size:12px; color:var(--color-text-soft); }
.list-row .meta{ text-align:right; font-size:13px; font-weight:700; color:var(--color-primary); white-space:nowrap; }

.empty-state{ text-align:center; padding:40px 14px; color:var(--color-text-soft); }
.empty-state svg{ width:44px; height:44px; margin:0 auto 12px; opacity:.5; }
.empty-state strong{ display:block; color:var(--color-text-muted); margin-bottom:4px; }

/* Chips / tags */
.chip{
  display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:var(--radius-pill);
  font-size:12px; font-weight:600; background:var(--color-surface-alt); color:var(--color-text-muted);
  border:1px solid var(--color-border);
}
.chip.chip-success{ background:var(--color-success-soft); color:var(--color-success); border-color:transparent; }
.chip.chip-danger{ background:var(--color-danger-soft); color:var(--color-danger); border-color:transparent; }
.chip.chip-warning{ background:var(--color-warning-soft); color:var(--color-warning); border-color:transparent; }
.chip-scroll{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-bottom:4px; }
.chip-scroll::-webkit-scrollbar{ display:none; }
.chip-select{ cursor:pointer; user-select:none; white-space:nowrap; }
.chip-select.active{ background:var(--color-primary); color:#fff; }

/* ==========================================================================
   TAB BAR INFERIOR (cliente / profissional)
   ========================================================================== */
.tab-bar{
  position:sticky; bottom:0; z-index:30; height:var(--tabbar-h);
  display:flex; background:var(--color-surface); border-top:1px solid var(--color-border);
  padding-bottom:env(safe-area-inset-bottom);
}
.tab-bar button{
  flex:1; border:none; background:none; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; color:var(--color-text-soft); cursor:pointer; font-size:10.5px; font-weight:600;
}
.tab-bar button svg{ width:21px; height:21px; }
.tab-bar button.active{ color:var(--color-primary); }

/* Menu "mais abas" (client tem muitas abas; usamos tab bar com 4 + botão "mais") */
.more-sheet-list .list-row{ cursor:pointer; }
.more-sheet-list .list-row:hover{ background:var(--color-surface-alt); }

/* ==========================================================================
   ADMIN LAYOUT
   ========================================================================== */
.admin-tabs{ display:flex; gap:8px; overflow-x:auto; padding:12px 16px; background:var(--color-surface); border-bottom:1px solid var(--color-border); position:sticky; top:var(--header-h); z-index:20; }
.admin-tabs::-webkit-scrollbar{ display:none; }
.admin-tab-btn{
  flex-shrink:0; border:1.5px solid var(--color-border); background:var(--color-bg); color:var(--color-text-muted);
  padding:9px 15px; border-radius:var(--radius-pill); font-weight:700; font-size:13px; cursor:pointer; transition:var(--transition);
}
.admin-tab-btn.active{ background:var(--color-navy); border-color:var(--color-navy); color:#fff; }
[data-theme="dark"] .admin-tab-btn.active{ color:#14120F; }

.admin-subnav{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.admin-subnav button{
  border:1px solid var(--color-border); background:var(--color-surface); color:var(--color-text-muted);
  padding:7px 13px; border-radius:var(--radius-sm); font-size:12.5px; font-weight:600; cursor:pointer;
}
.admin-subnav button.active{ border-color:var(--color-primary); color:var(--color-primary); background:var(--color-primary-soft); }

.stat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:640px){ .stat-grid{ grid-template-columns:repeat(4,1fr); } }
.stat-card{ background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md); padding:14px; }
.stat-card .stat-label{ font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--color-text-soft); font-weight:700; }
.stat-card .stat-value{ font-family:var(--font-display); font-size:26px; margin-top:4px; }
.stat-value.positive{ color:var(--color-success); }
.stat-value.negative{ color:var(--color-danger); }

.data-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table th{ text-align:left; font-size:11px; text-transform:uppercase; color:var(--color-text-soft); padding:8px 10px; border-bottom:1.5px solid var(--color-border); }
.data-table td{ padding:10px; border-bottom:1px solid var(--color-border); vertical-align:middle; }
.data-table tr:last-child td{ border-bottom:none; }
.table-wrap{ overflow-x:auto; border-radius:var(--radius-md); border:1px solid var(--color-border); background:var(--color-surface); }
.table-wrap .data-table{ min-width:520px; }

.toggle-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 0; border-bottom:1px solid var(--color-border); }
.toggle-row:last-child{ border-bottom:none; }
.toggle-row .toggle-copy strong{ display:block; font-size:14px; }
.toggle-row .toggle-copy span{ font-size:12px; color:var(--color-text-soft); }

.switch{ position:relative; width:44px; height:26px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.switch .track{
  position:absolute; inset:0; background:var(--color-border); border-radius:99px; cursor:pointer; transition:var(--transition);
}
.switch .track::before{
  content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%;
  transition:var(--transition); box-shadow:var(--shadow-sm);
}
.switch input:checked + .track{ background:var(--color-primary); }
.switch input:checked + .track::before{ transform:translateX(18px); }

/* ==========================================================================
   BOOKING FLOW (passo a passo)
   ========================================================================== */
.steps-bar{ display:flex; align-items:center; gap:6px; margin-bottom:18px; }
.steps-bar .step-dot{
  flex:1; height:4px; border-radius:99px; background:var(--color-border);
}
.steps-bar .step-dot.done{ background:var(--color-primary); }

.service-pick, .pro-pick{
  display:flex; align-items:center; gap:12px; border:1.5px solid var(--color-border); border-radius:var(--radius-md);
  padding:13px; cursor:pointer; transition:var(--transition); margin-bottom:10px; background:var(--color-surface);
}
.service-pick:hover, .pro-pick:hover{ border-color:var(--color-accent); }
.service-pick.selected, .pro-pick.selected{ border-color:var(--color-primary); background:var(--color-primary-soft); }
.pro-pick img{ width:48px; height:48px; border-radius:50%; object-fit:cover; }
.service-pick .info, .pro-pick .info{ flex:1; }
.service-pick .info strong, .pro-pick .info strong{ display:block; font-size:14.5px; }
.service-pick .info span, .pro-pick .info span{ font-size:12px; color:var(--color-text-soft); }
.service-pick .price{ font-weight:700; color:var(--color-primary); }

.day-strip{ display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:14px; }
.day-strip::-webkit-scrollbar{ display:none; }
.day-chip{
  flex-shrink:0; width:56px; padding:10px 0; border-radius:var(--radius-md); border:1.5px solid var(--color-border);
  text-align:center; cursor:pointer; background:var(--color-surface);
}
.day-chip .dow{ font-size:10px; text-transform:uppercase; color:var(--color-text-soft); }
.day-chip .num{ font-family:var(--font-display); font-size:20px; }
.day-chip.active{ border-color:var(--color-primary); background:var(--color-primary); color:#fff; }
.day-chip.active .dow{ color:rgba(255,255,255,.8); }
.day-chip.disabled{ opacity:.35; pointer-events:none; }

.slot-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
@media (min-width:640px){ .slot-grid{ grid-template-columns:repeat(5,1fr); } }
.slot-btn{
  border:1.5px solid var(--color-border); background:var(--color-surface); border-radius:var(--radius-sm);
  padding:10px 4px; font-weight:700; font-size:13px; cursor:pointer; color:var(--color-text);
}
.slot-btn:hover{ border-color:var(--color-accent); }
.slot-btn.selected{ background:var(--color-primary); border-color:var(--color-primary); color:#fff; }

.summary-line{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px dashed var(--color-border); font-size:14px; }
.summary-line:last-child{ border-bottom:none; }
.summary-line span:first-child{ color:var(--color-text-muted); }
.summary-line span:last-child{ font-weight:700; }

/* ==========================================================================
   AVATAR GALERIA / PERFIL
   ========================================================================== */
.avatar-header{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:20px; }
.avatar-header .avatar-big{ width:92px; height:92px; border-radius:50%; object-fit:cover; border:3px solid var(--color-accent); background:var(--color-surface-alt); }
.avatar-gallery{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin:12px 0 18px; }
.avatar-gallery .avatar-opt{
  width:100%; aspect-ratio:1; border-radius:50%; border:2px solid var(--color-border); cursor:pointer; object-fit:cover;
}
.avatar-gallery .avatar-opt.selected{ border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-primary-soft); }

/* ==========================================================================
   MODAL / TOAST / SHEET
   ========================================================================== */
.overlay{
  position:fixed; inset:0; background:rgba(20,17,13,.55); backdrop-filter:blur(2px);
  display:flex; align-items:flex-end; justify-content:center; z-index:100; opacity:0; pointer-events:none; transition:opacity var(--transition);
}
.overlay.open{ opacity:1; pointer-events:auto; }
@media (min-width:640px){ .overlay{ align-items:center; } }

.modal{
  background:var(--color-surface); width:100%; max-width:440px; border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  padding:24px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow:var(--shadow-lg);
  transform:translateY(16px); transition:transform var(--transition); max-height:88vh; overflow-y:auto;
}
.overlay.open .modal{ transform:translateY(0); }
@media (min-width:640px){ .modal{ border-radius:var(--radius-lg); } }
.modal-icon{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.modal-icon.success{ background:var(--color-success-soft); color:var(--color-success); }
.modal-icon.danger{ background:var(--color-danger-soft); color:var(--color-danger); }
.modal-icon svg{ width:28px; height:28px; }
.modal-title{ text-align:center; margin-bottom:6px; }
.modal-text{ text-align:center; margin-bottom:20px; }
.modal-close{ position:absolute; top:14px; right:14px; }
.modal-actions{ display:flex; gap:10px; margin-top:18px; }

.toast-stack{ position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:200; display:flex; flex-direction:column; gap:8px; width:calc(100% - 32px); max-width:420px; }
.toast{
  background:var(--color-navy); color:#fff; padding:12px 16px; border-radius:var(--radius-sm); font-size:13.5px; font-weight:600;
  box-shadow:var(--shadow-md); display:flex; align-items:center; gap:10px; animation:toast-in .2s ease;
}
.toast.toast-error{ background:var(--color-danger); }
.toast.toast-success{ background:var(--color-success); }
@keyframes toast-in{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }

/* Notification drawer */
.notif-panel{ background:var(--color-surface); width:100%; max-width:420px; height:100%; margin-left:auto; padding:20px; overflow-y:auto; box-shadow:var(--shadow-lg); }
.overlay.notif-overlay{ justify-content:flex-end; align-items:stretch; }
.overlay.notif-overlay .notif-panel{ transform:translateX(16px); }
.overlay.notif-overlay.open .notif-panel{ transform:translateX(0); }
.notif-item{ display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--color-border); }
.notif-item .dot{ width:8px; height:8px; border-radius:50%; background:var(--color-primary); margin-top:6px; flex-shrink:0; }
.notif-item.read .dot{ background:transparent; }
.notif-item strong{ font-size:13.5px; display:block; }
.notif-item span{ font-size:12px; color:var(--color-text-soft); }

/* Loading */
.spinner{ width:22px; height:22px; border:3px solid rgba(0,0,0,.12); border-top-color:var(--color-primary); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.full-loader{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:var(--color-bg); z-index:999; flex-direction:column; gap:14px; }
.full-loader .pole{ width:48px; height:48px; }

/* Barber pole loader signature */
.barber-pole-loader{ width:14px; height:48px; border-radius:99px; overflow:hidden; position:relative; background:repeating-linear-gradient(45deg, var(--color-primary) 0 8px, var(--color-accent) 8px 16px, #F7F5F1 16px 24px); background-size:200% 200%; animation:pole-spin 1.1s linear infinite; }
@keyframes pole-spin{ from{ background-position:0 0; } to{ background-position:34px 0; } }

/* Forms genéricos usados em CRUDs do admin */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-grid .field.full{ grid-column:1 / -1; }
@media (max-width:420px){ .form-grid{ grid-template-columns:1fr; } }
.icon-picker{ display:flex; flex-wrap:wrap; gap:8px; }
.icon-picker button{
  width:40px; height:40px; border-radius:var(--radius-sm); border:1.5px solid var(--color-border); background:var(--color-surface);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--color-text-muted);
}
.icon-picker button.selected{ border-color:var(--color-primary); color:var(--color-primary); background:var(--color-primary-soft); }
.color-picker{ display:flex; flex-wrap:wrap; gap:8px; }
.color-picker input[type="color"]{ width:40px; height:40px; border:none; border-radius:50%; padding:0; background:none; cursor:pointer; }

.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.row-actions button{ width:32px; height:32px; border-radius:50%; border:1px solid var(--color-border); background:var(--color-surface); cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--color-text-muted); }
.row-actions button:hover{ border-color:var(--color-primary); color:var(--color-primary); }
.row-actions button svg{ width:15px; height:15px; }

.theme-toggle-track{ display:flex; align-items:center; gap:8px; }

/* Relatório imprimível (usado pelo Financeiro > Exportar PDF via impressão do navegador) */
#print-report{ display:none; }
@media print{
  body *{ visibility:hidden; }
  #print-report, #print-report *{ visibility:visible; }
  #print-report{ position:absolute; left:0; top:0; width:100%; display:block; padding:24px; color:#111; background:#fff; }
  #print-report table{ width:100%; border-collapse:collapse; }
  #print-report th, #print-report td{ border:1px solid #ccc; padding:6px 8px; text-align:left; font-size:12px; }
}
