/* =========================================================
   SISTEMA KORTEI, DESIGN SYSTEM BASEADO NO RESOLVI.APP
   ========================================================= */

@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  /* Cores de Marca Kortei (Resolvi Layout Base) */
  --blue:        #FF6B00;   /* Tom de destaque da marca Kortei */
  --blue-strong: #EA580C;
  --blue-soft:   #FFF7ED;   /* Fundo suave para pílula ativa */
  --ink:         #0E0E12;   /* Botão escuro / texto forte */
  --ink-2:       #17171B;
  --black:       #090909;

  --bg:          #F4F4F5;   /* Fundo do app */
  --surface:     #FFFFFF;   /* Cards */
  --surface-2:   #FAFAFA;
  --line:        #ECECEE;   /* Bordas */
  --line-2:      #F1F1F3;

  --text:        #111114;
  --text-2:      #6E6E76;   /* Secundário */
  --text-3:      #A2A2AA;   /* Terciário / labels */

  --green:       #1FA971;
  --green-2:     #2B985F;
  --red:         #E5484D;
  --orange:      #FF6B00;
  --purple:      #8B5CF6;
  --amber:       #FCBB55;

  /* Raios e sombras */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17,17,20,.04), 0 1px 3px rgba(17,17,20,.03);
  --shadow-md: 0 4px 16px rgba(17,17,20,.05), 0 1px 3px rgba(17,17,20,.04);
  --shadow-lg: 0 18px 50px rgba(17,17,20,.10);

  --sidebar-w: 268px;

  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
svg { display: block; }
input, select, textarea { font-family: inherit; }

.serif { font-family: var(--serif); font-style: italic; letter-spacing: 0; }

/* Barras de rolagem discretas */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #dcdce0; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #cfcfd4; }

/* Layout Shell */
.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
}

.org {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.org:hover { background: var(--surface-2); }
.org-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: #121212;
  display: grid; place-items: center; flex: 0 0 36px;
}
.org-logo svg { width: 22px; height: 22px; }
.org-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.org-meta .k { font-size: 11px; color: var(--text-3); }
.org-meta .v { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.org .chev { margin-left: auto; color: var(--text-3); }

.nav { margin-top: 12px; overflow-y: auto; flex: 1; }
.nav::-webkit-scrollbar { width: 0; }
.nav-label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.nav-item.active svg { opacity: 1; stroke: var(--blue); }

/* Promo card no rodapé */
.promo {
  margin-top: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.promo h4 { font-size: 13px; font-weight: 600; text-align: center; margin: 4px 0 10px; }
.btn-dark {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.btn-dark:hover { background: #000; }

/* Main Content */
.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  height: 100vh; overflow-y: auto;
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,244,245,.85);
  backdrop-filter: saturate(180%) blur(14px);
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.page-head { min-width: 0; }
.page-head .date { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }

.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 9px;
  width: 240px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--text-3); font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.search input { border: none; background: none; outline: none; width: 100%; font-size: 13px; color: var(--text); }

/* Buttons Resolvi Style */
.actions { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.btn:hover { background: var(--surface-2); border-color: #d8d8dc; }
.btn.primary {
  background: var(--blue); color: #FFF; border-color: var(--blue);
  font-weight: 600; box-shadow: 0 4px 12px rgba(255,107,0,.25);
}
.btn.primary:hover { background: var(--blue-strong); }

/* Cards e Dash Grid */
.content { padding: 24px 28px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; font-weight: 600; }

/* Table Style */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
th { padding: 12px 16px; color: var(--text-3); font-weight: 600; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

/* Status Badges */
.pill-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
}
.pill-active { background: #DCFCE7; color: #166534; }
.pill-warning { background: #FEF9C3; color: #854D0E; }
.pill-error { background: #FEE2E2; color: #991B1B; }
.pill-orange { background: var(--blue-soft); color: var(--blue); }

/* Form Elements */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* min-width:0 permite que os campos encolham dentro de grids (evita overflow). */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form-input::placeholder { color: var(--text-3, #9CA3AF); }
select.form-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E76' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* Modal Backdrop */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,18,0.55); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; z-index: 1000;
  padding: 20px; box-sizing: border-box;
  animation: kortei-fade .18s ease;
}
@keyframes kortei-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--surface); border-radius: 20px;
  width: 100%; max-width: 600px; padding: 30px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 24px 60px rgba(14,14,18,.28); border: 1px solid var(--line);
  box-sizing: border-box;
  animation: kortei-pop .2s cubic-bezier(.16,1,.3,1);
}
@keyframes kortei-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card > h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
/* Rodapé de ações padrão dos modais */
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 620px) {
  .form-grid, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr !important; }
  .modal-card { padding: 22px; }
}

/* =========================================================
   SISTEMA PROFISSIONAL DE TOAST NOTIFICATIONS (KORTEI)
   ========================================================= */
#kortei-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: 100%;
}

.kortei-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.kortei-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.kortei-toast-sucesso::before { background: #10B981; }
.kortei-toast-erro::before { background: #EF4444; }
.kortei-toast-aviso::before { background: #F59E0B; }
.kortei-toast-info::before { background: #3B82F6; }

.kortei-toast-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.kortei-toast-content {
  flex: 1;
}

.kortei-toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.kortei-toast-close {
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.kortei-toast-close:hover {
  color: var(--text);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =========================================================
   PERFIL DE CLIENTE COMPLETO ESTILO FACEBOOK / SOCIAL
   ========================================================= */
.fb-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.fb-cover-banner {
  height: 220px;
  background: linear-gradient(135deg, #111114 0%, #FF6B00 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.fb-profile-header {
  padding: 0 28px 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -60px;
  flex-wrap: wrap;
  gap: 16px;
}

.fb-avatar-container {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.fb-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--blue);
  color: #FFF;
  font-size: 38px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-user-info {
  margin-bottom: 6px;
}

.fb-user-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.fb-user-info p {
  font-size: 13.5px;
  color: var(--text-2);
}

.fb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}



/* ==================================================================== */
/* AO VIVO / ATENDIMENTO + PDV COMANDA                                  */
/* ==================================================================== */
.av-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.av-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.av-stat-num { font-size: 30px; font-weight: 700; line-height: 1; }
.av-stat-lbl { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.av-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: avPulse 1.6s infinite; }
@keyframes avPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }

.av-tabs, .pdv-cat-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.av-tab, .pdv-cat-tab { background: none; border: none; padding: 10px 18px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.av-tab.active, .pdv-cat-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.pdv-cat-tabs { margin-bottom: 0; }

/* Toggle switch (Configurações) */
.cfg-switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.cfg-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cfg-switch-track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .18s ease; }
.cfg-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
.cfg-switch input:checked + .cfg-switch-track { background: var(--blue); }
.cfg-switch input:checked + .cfg-switch-track::after { transform: translateX(18px); }
.cfg-switch input:focus-visible + .cfg-switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Linha de tipo de profissional */
.cfg-tipo-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, background .15s ease; }
.cfg-tipo-row:hover { border-color: var(--blue-soft); }
.cfg-tipo-row .cfg-tipo-nome { font-weight: 600; font-size: 15px; }
.cfg-tipo-row .cfg-tipo-agenda { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-left: auto; }
.cfg-tipo-row .cfg-tipo-agenda.on { color: var(--blue); font-weight: 600; }
.cfg-tipo-remover { background: none; border: none; color: var(--text-3, #9aa0a6); cursor: pointer; padding: 4px; display: inline-flex; border-radius: 6px; }
.cfg-tipo-remover:hover { color: #DC2626; background: #FEE2E2; }
/* Chips de sugestão (origens padrão) */
.cfg-chip { background: var(--surface-2, #f4f5f7); border: 1px solid var(--line); color: var(--text-1, #1f2328); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.cfg-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ===== Página de Perfil (estilo rede social) ===== */
.perfil-card { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(17,17,20,.06); }
.perfil-capa { height: 190px; background: linear-gradient(120deg, #111114 0%, #3a2410 45%, #FF6B00 100%); background-size: cover; background-position: center; position: relative; }
.perfil-capa-btn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: #1f2328; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background .15s ease; }
.perfil-capa-btn:hover { background: #fff; }
.perfil-header { position: relative; padding: 18px 30px 20px; min-height: 72px; margin-bottom: 6px; }
.perfil-avatar-wrap { position: absolute; top: -64px; left: 30px; flex-shrink: 0; }
.perfil-avatar { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--surface); background: linear-gradient(135deg, var(--blue) 0%, #ff9147 100%); overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.perfil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-avatar-initials { color: #fff; font-size: 44px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.perfil-avatar-cam { position: absolute; right: 4px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); color: var(--text-1, #1f2328); transition: background .15s ease; }
.perfil-avatar-cam:hover { background: var(--surface-2, #f4f5f7); }
.perfil-ident { margin-left: 156px; padding-top: 4px; min-width: 0; }
.perfil-ident h2 { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.perfil-ident p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.perfil-ident .perfil-badge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
.perfil-body { padding: 0 30px 30px; }
.perfil-body .perfil-sec-titulo { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin: 4px 0 14px; }
.perfil-divisor { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
@media (max-width: 560px) {
  .perfil-capa { height: 150px; }
  .perfil-header { text-align: center; padding-top: 76px; }
  .perfil-avatar-wrap { position: absolute; top: -56px; left: 50%; transform: translateX(-50%); }
  .perfil-ident { margin-left: 0; }
  .perfil-avatar { width: 108px; height: 108px; }
}

/* ===== Wizard de agendamento (passo a passo com fotos) ===== */
.wiz-steps { display: flex; align-items: center; margin: 0 0 26px; }
.wiz-step { display: flex; align-items: center; gap: 10px; }
.wiz-step .wiz-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2, #f0f1f3); color: var(--text-2); flex-shrink: 0; transition: all .2s ease; }
.wiz-step .wiz-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.wiz-line { flex: 1; height: 2px; background: var(--line); margin: 0 14px; min-width: 20px; }
.wiz-step.active .wiz-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.wiz-step.active .wiz-label { color: var(--text-1, #1f2328); }
.wiz-step.done .wiz-dot { background: var(--blue-soft); color: var(--blue); }
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: wizfade .22s ease; }
@keyframes wizfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-panel-titulo { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.wiz-panel-sub { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.wiz-nav .spacer { flex: 1; }

.pick-search { width: 100%; margin-bottom: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px; }
.pick-card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, background .15s ease; text-align: left; width: 100%; font: inherit; }
.pick-card:hover { border-color: var(--blue); }
.pick-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.pick-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #ff9147); color: #fff; font-weight: 700; font-size: 15px; text-transform: uppercase; }
.pick-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pick-nome { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-sub { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-check { margin-left: auto; color: var(--blue); opacity: 0; flex-shrink: 0; }
.pick-card.selected .pick-check { opacity: 1; }
.pick-vazio { color: var(--text-2); font-size: 13px; padding: 14px; text-align: center; }

.serv-list { display: flex; flex-direction: column; gap: 8px; }
.serv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, background .15s ease; text-align: left; width: 100%; font: inherit; }
.serv-row:hover { border-color: var(--blue); }
.serv-row.selected { border-color: var(--blue); background: var(--blue-soft); }
.serv-nome { display: block; font-weight: 600; font-size: 14px; }
.serv-meta { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.serv-preco { margin-left: auto; font-weight: 700; color: var(--blue); white-space: nowrap; }

.av-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.av-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.av-card.live { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 0 1px rgba(34,197,94,0.15); }
.av-card-head { display: flex; align-items: center; gap: 10px; }
.av-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: var(--text-2); }
.av-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-card-name { font-weight: 700; font-size: 15px; }
.av-card-sub { font-size: 12.5px; color: var(--text-2); }
.av-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.av-card-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 8px; }
.av-timer { font-size: 12px; color: var(--green); font-weight: 600; }

@media (max-width: 900px) {
  .av-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Tesoura animada (atendimento em execução) */
.tesoura { color: var(--orange); flex-shrink: 0; }
.tesoura g { transform-box: view-box; transform-origin: 12px 12px; }
.tesoura .lam-cima { animation: tesouraSnip 0.9s ease-in-out infinite; }
.tesoura .lam-baixo { animation: tesouraSnip 0.9s ease-in-out infinite reverse; }
@keyframes tesouraSnip { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-9deg); } }
.av-barbeiro-fixo { display:flex; align-items:center; gap:8px; padding:8px 10px; background:var(--surface-2); border-radius:10px; }

/* Tarefas do Dia */
.tarefa-lista { display: flex; flex-direction: column; }
.tarefa-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tarefa-row:last-child { border-bottom: none; }
.tarefa-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; }
@media (max-width: 700px) { .tarefa-row { flex-wrap: wrap; } }
/* Tarefas do Dia: resumo em 4 colunas iguais e seções com espaçamento uniforme */
.tarefa-resumo { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.tarefa-secoes { display: flex; flex-direction: column; gap: 16px; }
.tarefa-secoes .tarefa-card { margin: 0; }
@media (max-width: 900px) { .tarefa-resumo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tarefa-resumo { grid-template-columns: 1fr; } }
.tarefa-vazio { text-align: center; padding: 48px 24px; }
.tarefa-vazio-ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(34,197,94,0.12); color: #16a34a; }
