/* ============================================================
   Office — CSS
   Fontes locais (sem dependências externas)
   ============================================================ */

/* ── 1. Fontes ──────────────────────────────────────────── */
@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/mulish-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/mulish-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/mulish-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/assets/fonts/mulish-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('/assets/fonts/urbanist-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── 2. Design Tokens ───────────────────────────────────── */
:root {
  /* Paleta principal */
  --primary-h: 201; --primary-s: 83%; --primary-l: 57%;
  --primary:        hsl(201, 83%, 57%);
  --primary-dark:   hsl(201, 83%, 47%);
  --primary-light:  hsl(201, 83%, 67%);
  --primary-subtle: hsl(201, 83%, 94%);

  --secondary:      hsl(191, 100%, 46%);
  --secondary-dark: hsl(191, 100%, 36%);
  --secondary-light:hsl(191, 100%, 56%);

  /* Semânticas */
  --success:        hsl(108, 45%, 58%);
  --success-light:  hsl(108, 45%, 93%);
  --warning:        hsl(25,  82%, 60%);
  --warning-light:  hsl(25,  82%, 93%);
  --error:          hsl(347, 64%, 55%);
  --error-light:    hsl(347, 64%, 93%);
  --info:           hsl(193, 72%, 58%);
  --info-light:     hsl(193, 72%, 93%);
  --rating:         hsl(35,  99%, 54%);

  /* Accents */
  --accent-1:       hsl(136, 49%, 49%);  /* verde */
  --accent-1-light: hsl(136, 49%, 93%);
  --accent-2:       hsl(85,  49%, 49%);  /* lima */
  --accent-2-light: hsl(85,  49%, 93%);
  --accent-3:       hsl(32,  89%, 65%);  /* laranja */
  --accent-3-light: hsl(32,  89%, 93%);
  --accent-4:       hsl(359, 87%, 70%);  /* rosa */
  --accent-4-light: hsl(359, 87%, 93%);
  --accent-5:       hsl(311, 82%, 60%);  /* púrpura */
  --accent-5-light: hsl(311, 82%, 93%);
  --accent-6:       hsl(272, 92%, 66%);  /* violeta */
  --accent-6-light: hsl(272, 92%, 93%);

  /* Fundos */
  --bg:             hsl(220, 17%, 96%);
  --bg-card:        #ffffff;
  --bg-header:      #ffffff;
  --bg-sidebar:     #ffffff;

  /* Texto */
  --text-primary:   hsl(0, 0%, 24%);
  --text-secondary: hsl(0, 0%, 55%);
  --text-muted:     hsl(0, 0%, 72%);
  --text-disabled:  hsl(0, 0%, 80%);
  --text-contrast:  #ffffff;

  /* Cinzentos */
  --grey-50:  hsl(0, 0%, 96%);
  --grey-100: hsl(0, 0%, 93%);
  --grey-200: hsl(0, 0%, 88%);
  --grey-300: hsl(0, 0%, 83%);
  --grey-400: hsl(0, 0%, 75%);
  --grey-500: hsl(0, 0%, 65%);

  /* Bordas */
  --border:         hsl(0, 0%, 91%);
  --border-subtle:  hsl(0, 0%, 95%);

  /* Sombras */
  --shadow-xs: 0 1px 4px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);

  /* Raios */
  --r-xs:  0.5rem;
  --r-sm:  0.75rem;
  --r-md:  1rem;
  --r-lg:  1.25rem;
  --r-xl:  1.5rem;
  --r-2xl: 2rem;
  --r-full: 9999px;

  /* Layout */
  --header-h:          64px;
  --sidebar-icon-w:    0px;
  --sidebar-panel-w:   200px;
  --sidebar-total-w:   calc(var(--sidebar-icon-w) + var(--sidebar-panel-w));
  --content-padding:   24px;

  /* Tipografia */
  --font-body:    'Mulish', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Transições */
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 350ms cubic-bezier(.4,0,.2,1);
}

/* ── 3. Dark Mode ───────────────────────────────────────── */
[data-theme="dark"] {
  --bg:             hsl(222, 20%, 10%);
  --bg-card:        hsl(222, 20%, 16%);
  --bg-header:      hsla(222, 20%, 13%, 0.88);
  --bg-sidebar:     hsl(222, 20%, 13%);

  --text-primary:   hsl(0, 0%, 90%);
  --text-secondary: hsl(0, 0%, 58%);
  --text-muted:     hsl(0, 0%, 40%);
  --text-disabled:  hsl(0, 0%, 30%);

  --grey-50:  hsl(222, 15%, 18%);
  --grey-100: hsl(222, 15%, 22%);
  --grey-200: hsl(222, 15%, 28%);
  --grey-300: hsl(222, 15%, 36%);
  --grey-400: hsl(222, 15%, 46%);
  --grey-500: hsl(222, 15%, 56%);

  --border:        hsl(222, 15%, 22%);
  --border-subtle: hsl(222, 15%, 18%);

  --shadow-xs: 0 1px 4px rgba(0,0,0,.3);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.7);

  --primary-subtle: hsl(201, 83%, 13%);
  --success-light:  hsl(108, 45%, 13%);
  --warning-light:  hsl(25,  82%, 13%);
  --error-light:    hsl(347, 64%, 13%);
  --info-light:     hsl(193, 72%, 13%);
  --accent-1-light: hsl(136, 49%, 13%);
  --accent-2-light: hsl(85,  49%, 13%);
  --accent-3-light: hsl(32,  89%, 13%);
  --accent-4-light: hsl(359, 87%, 13%);
  --accent-5-light: hsl(311, 82%, 13%);
  --accent-6-light: hsl(272, 92%, 13%);
}

[data-theme="dark"] .header {
  background: hsla(222, 20%, 13%, 0.88);
}

/* Transição suave ao alternar tema */
*, *::before, *::after { transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
/* Excepções onde a transição não deve aplicar */
svg *, img, video { transition: none !important; }

/* Ícone do botão de tema */
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* ── 4. Reset & Base ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── 4. Tipografia ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: .875rem; }
h6 { font-size: .8125rem; }

/* ── 5. Layout Global ───────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.main-layout {
  display: flex;
  flex: 1;
  padding-top: var(--header-h);
}

/* ── 6. Header ──────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #f3f4f7d6;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 0 1rem 0 0;
  gap: .5rem;
  z-index: 100;
  box-shadow: none;
  animation: header-shadow linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 1px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: var(--sidebar-icon-w);
  padding: 0 .75rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-left: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}
.logo-icon { color: var(--primary); }
.logo-text { color: var(--text-primary); }
.workspace-btn {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border-radius: var(--r-md);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--grey-50);
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.workspace-btn:hover { background: var(--grey-100); }
.workspace-btn .ws-icon {
  width: 22px; height: 22px;
  border-radius: var(--r-xs);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700;
}
.workspace-sep { color: var(--grey-300); margin: 0 .125rem; }

/* Botão ícone (header) */
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover {
  background: var(--grey-100);
  color: var(--text-primary);
}
.icon-btn .dot-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg-header);
}
.icon-btn .count-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--error);
  color: white;
  border-radius: 8px;
  font-size: .625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-header);
}

/* Avatar no header */
.header-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
.header-avatar:hover { border-color: var(--primary); }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-merchant-img {
  width: 34px; height: 34px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.header-merchant-initials {
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .02em;
  flex-shrink: 0;
}
.header-merchant-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ── 7. Sidebar ─────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  display: flex;
  z-index: 90;
}

/* Strip de ícones (esquerdo) */
.sidebar-icons {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: .75rem 0;
  gap: .25rem;
  overflow: hidden;
}
.sidebar-icons-top { display: none; }
.sidebar-icons-bottom { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 100%; }

.nav-icon-item {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-icon-item:hover { background: var(--grey-100); color: var(--text-primary); }
.nav-icon-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
}
.nav-icon-item.active svg { transform: scale(.85); }
.nav-icon-item svg { transition: transform var(--transition); }
.nav-icon-item:hover svg { transform: scale(.85); }

/* Tooltip no ícone */
.nav-icon-item[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-primary);
  color: white;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 200;
}
.nav-icon-item[data-tip]:hover::after { opacity: 1; }

/* Painel de sub-navegação */
.sidebar-panel {
  width: var(--sidebar-panel-w);
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 1rem .75rem;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-panel::-webkit-scrollbar { width: 4px; }
.sidebar-panel::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 2px; }

.sidebar-section-title {
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: .25rem .5rem .75rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .125rem; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--r-md);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.sidebar-nav-item:hover { background: var(--grey-50); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
}
.sidebar-nav-item .nav-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: .6;
}
.sidebar-nav-item.active .nav-icon { opacity: 1; }

/* Upsell card no sidebar */
.sidebar-upsell {
  margin-top: auto;
  padding: 1rem;
  background: var(--grey-50);
  border-radius: var(--r-lg);
  text-align: center;
}
.sidebar-upsell-img {
  width: 80px;
  height: 80px;
  margin: 0 auto .75rem;
}
.sidebar-upsell p {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-bottom: .5rem;
  line-height: 1.4;
}

/* ── 8. Conteúdo Principal ──────────────────────────────── */
.content {
  flex: 1;
  margin-left: var(--sidebar-total-w);
  padding: var(--content-padding);
  padding-bottom: 2rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cabeçalho da página */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .125rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: .5; }

.page-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ── 11. Cartões ────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 1.25rem; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem .5rem;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text-primary);
}
.card-header .card-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
}
.card-header .card-link:hover { text-decoration: underline; }

/* ── 12. Stats Cards ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.stat-card-row {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.primary   { background: var(--primary-subtle);  color: var(--primary); }
.stat-icon.secondary { background: hsl(191 100% 93%);       color: var(--secondary); }
.stat-icon.success   { background: var(--success-light);    color: var(--success); }
.stat-icon.warning   { background: var(--warning-light);    color: var(--warning); }
.stat-icon.error     { background: var(--error-light);      color: var(--error); }
.stat-icon.info      { background: var(--info-light);       color: var(--info); }
.stat-icon.accent-1  { background: var(--accent-1-light);   color: var(--accent-1); }
.stat-icon.accent-2  { background: var(--accent-2-light);   color: var(--accent-2); }
.stat-icon.accent-3  { background: var(--accent-3-light);   color: var(--accent-3); }
.stat-icon.accent-4  { background: var(--accent-4-light);   color: var(--accent-4); }
.stat-icon.accent-5  { background: var(--accent-5-light);   color: var(--accent-5); }
.stat-icon.accent-6  { background: var(--accent-6-light);   color: var(--accent-6); }

.stat-label {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: .25rem;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .6875rem;
  font-weight: 700;
  padding: .125rem .4rem;
  border-radius: var(--r-full);
  margin-top: .25rem;
}
.stat-trend.up   { background: var(--success-light); color: var(--success); }
.stat-trend.down { background: var(--error-light);   color: var(--error); }
.stat-trend svg  { width: 10px; height: 10px; }

/* Stats com layout 2 colunas (grid visual) */
.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── 13. Botões ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1.125rem;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Variantes */
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-secondary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }

.btn-success  { background: var(--success); color: white; border-color: var(--success); }
.btn-warning  { background: var(--warning); color: white; border-color: var(--warning); }
.btn-error    { background: var(--error);   color: white; border-color: var(--error); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--grey-50); border-color: var(--grey-300); }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary-subtle); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--grey-100); color: var(--text-primary); }

/* Tamanhos */
.btn-sm { padding: .3125rem .75rem; font-size: .75rem; border-radius: var(--r-sm); }
.btn-lg { padding: .6875rem 1.5rem; font-size: .9375rem; border-radius: var(--r-lg); }
.btn-xl { padding: .875rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }

/* Ícone apenas */
.btn-icon {
  padding: .5rem;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
}
.btn-icon.btn-sm { width: 30px; height: 30px; padding: .25rem; }
.btn-icon.btn-lg { width: 46px; height: 46px; padding: .625rem; }

/* Botão com full-width */
.btn-block { width: 100%; justify-content: center; }

/* ── 14. Badges / Chips ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .125rem .5rem;
  border-radius: var(--r-full);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.4;
}
.badge-primary   { background: var(--primary-subtle); color: var(--primary); }
.badge-secondary { background: hsl(191 100% 93%);     color: var(--secondary); }
.badge-success   { background: var(--success-light);  color: var(--success); }
.badge-warning   { background: var(--warning-light);  color: var(--warning); }
.badge-error     { background: var(--error-light);    color: var(--error); }
.badge-info      { background: var(--info-light);     color: var(--info); }
.badge-grey      { background: var(--grey-100);       color: var(--text-secondary); }
.badge-new       { background: var(--accent-4-light); color: var(--accent-4); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3125rem .75rem;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
}
.chip-primary  { background: var(--primary-subtle); color: var(--primary); border-color: transparent; }
.chip-outlined { background: transparent; }

/* ── 15. Avatar ─────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 24px; height: 24px; font-size: .625rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 40px; height: 40px; font-size: .9rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-2xl{ width: 96px; height: 96px; font-size: 1.8rem; }

.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--bg-card); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ── 16. Tabelas ────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}
.table th {
  text-align: left;
  padding: .625rem 1rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--grey-50); }
.table .td-img {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--grey-100);
}
.table .td-id { color: var(--text-muted); font-weight: 600; font-size: .75rem; }
.table .td-name { font-weight: 600; }
.table .td-price { font-weight: 700; font-family: var(--font-heading); }
.table .td-status { text-align: center; }

/* ── 17. Formulários ────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-label.required::after { content: ' *'; color: var(--error); }

.form-control {
  width: 100%;
  padding: .5625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: .875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(201 83% 57% / .15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { background: var(--grey-50); opacity: .7; cursor: not-allowed; }

.form-control-sm { padding: .375rem .75rem; font-size: .8125rem; border-radius: var(--r-sm); }
.form-control-lg { padding: .75rem 1.125rem; font-size: 1rem; border-radius: var(--r-lg); }

textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { 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='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.25rem; }

.form-hint { font-size: .75rem; color: var(--text-muted); }
.form-error { font-size: .75rem; color: var(--error); }

/* Checkbox / Radio */
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label { font-size: .875rem; font-weight: 500; cursor: pointer; }

/* Input com ícone */
.input-group { position: relative; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* ── 18. Listas de Atividade / Feed ─────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: .125rem; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .125rem;
}
.activity-content { flex: 1; min-width: 0; }
.activity-title { font-weight: 600; font-size: .8125rem; margin-bottom: .125rem; }
.activity-desc { font-size: .75rem; color: var(--text-secondary); }
.activity-time { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }

/* ── 19. Lista de Tarefas ───────────────────────────────── */
.task-list { display: flex; flex-direction: column; }
.task-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.task-item:last-child { border-bottom: none; }
.task-item:hover { background: var(--grey-50); }
.task-checkbox {
  width: 18px; height: 18px;
  border: 2px solid var(--grey-300);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}
.task-item.done .task-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.task-item.done .task-text { text-decoration: line-through; color: var(--text-muted); }
.task-text { flex: 1; font-size: .8125rem; font-weight: 500; }
.task-time { font-size: .75rem; color: var(--text-muted); }

/* ── 20. Progress Bars ──────────────────────────────────── */
.progress { height: 6px; background: var(--grey-100); border-radius: var(--r-full); overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--r-full); transition: width .6s ease; }
.progress-bar.primary   { background: var(--primary); }
.progress-bar.secondary { background: var(--secondary); }
.progress-bar.success   { background: var(--success); }
.progress-bar.warning   { background: var(--warning); }
.progress-bar.error     { background: var(--error); }
.progress-bar.gradient  { background: linear-gradient(90deg, var(--primary), var(--secondary)); }

/* Progresso circular (SVG) */
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg  { fill: none; stroke: var(--grey-100); }
.progress-ring-bar { fill: none; transition: stroke-dashoffset .6s ease; }

/* ── 21. Grelhas de Conteúdo ────────────────────────────── */
.content-grid { display: grid; gap: 1rem; }
.content-grid-2 { grid-template-columns: 1fr 1fr; }
.content-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.content-grid-lg-sm { grid-template-columns: 1fr minmax(0, 340px); }
.content-grid-sm-lg { grid-template-columns: minmax(0, 340px) 1fr; }

/* ── 22. Cartões de Ação Rápida ─────────────────────────── */
.quick-actions { display: flex; flex-direction: column; gap: .5rem; }
.quick-action-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.quick-action-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.quick-action-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-action-text .qa-title { font-weight: 700; font-size: .8125rem; }
.quick-action-text .qa-desc  { font-size: .75rem; color: var(--text-secondary); }

/* ── 23. Carta de Configuração ──────────────────────────── */
.config-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.config-card-body { max-width: 60%; }
.config-card-illustration {
  position: absolute;
  right: 1rem;
  bottom: 0;
  height: 80%;
  pointer-events: none;
  opacity: .8;
}
.config-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.config-card-desc { font-size: .8125rem; color: var(--text-secondary); line-height: 1.6; }
.config-card-actions { display: flex; gap: .5rem; margin-top: .5rem; }

/* ── 24. Itens de Lista ─────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.list-item:last-child { border-bottom: none; }
.list-item-icon { color: var(--primary); flex-shrink: 0; }
.list-item-text { flex: 1; font-size: .8125rem; font-weight: 600; }
.list-item-value { font-size: .8125rem; font-weight: 700; color: var(--text-secondary); }
.list-item-bar { flex: 1; margin: 0 .75rem; }

/* ── 25. Cartão de Perfil ───────────────────────────────── */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.profile-card-head { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.profile-name { font-weight: 700; font-size: 1rem; margin-top: .75rem; }
.profile-role { font-size: .75rem; color: var(--text-secondary); }
.profile-tabs { display: flex; gap: .5rem; margin: .75rem 0; }
.profile-tabs .btn { flex: 1; justify-content: center; }
.profile-info { display: flex; flex-direction: column; gap: .875rem; }
.profile-info-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .25rem; }
.profile-info-value { font-size: .875rem; font-weight: 600; }

/* ── 25. Cartões de Disponibilidade / Biométrica ────────── */
.biometric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.biometric-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.biometric-icon { flex-shrink: 0; }
.biometric-label { font-size: .75rem; color: var(--text-secondary); }
.biometric-value { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.biometric-status { display: flex; align-items: center; gap: .25rem; font-size: .75rem; margin-top: .125rem; }
.biometric-status.ok    { color: var(--success); }
.biometric-status.warn  { color: var(--error); }

/* ── 27. Calendário simples ─────────────────────────────── */
.calendar {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 1rem;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .25rem;
  text-align: center;
}
.calendar-day-label { font-size: .6875rem; font-weight: 700; color: var(--text-muted); padding: .25rem 0; }
.calendar-day {
  padding: .375rem .25rem;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}
.calendar-day:hover { background: var(--grey-100); }
.calendar-day.today { background: var(--primary-subtle); color: var(--primary); font-weight: 700; }
.calendar-day.selected { background: var(--primary); color: white; font-weight: 700; }
.calendar-day.other-month { color: var(--text-muted); }

/* ── 26. Autenticação ───────────────────────────────────── */
.theme-fab {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-full);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: box-shadow var(--transition), color var(--transition);
}
.theme-fab:hover { box-shadow: var(--shadow-md); color: var(--text-primary); }

[data-theme="dark"] .auth-page { background-image: none !important; }

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem;
}
.auth-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.75rem;
  color: var(--primary);
}
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: .375rem; }
.auth-subtitle { font-size: .875rem; color: var(--text-secondary); text-align: center; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .5rem 0;
  color: var(--text-muted);
  font-size: .75rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .8125rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── 27. Charts (SVG) ───────────────────────────────────── */
.chart-wrap { padding: .5rem 1.25rem 1.25rem; }
.chart-label { font-size: .7rem; fill: var(--text-muted); }
.chart-grid-line { stroke: var(--grey-100); stroke-width: 1; }
.chart-bar { rx: 4; ry: 4; transition: opacity var(--transition); }
.chart-bar:hover { opacity: .8; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { opacity: .12; }
.chart-dot { r: 4; }

/* ── Página de Erro (404) ───────────────────────────────── */
.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem;
}
.error-card {
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.error-corners span {
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid;
}
.error-corners span:nth-child(1) { top: 1rem; left: 1rem; border-color: var(--accent-4); border-right: none; border-bottom: none; }
.error-corners span:nth-child(2) { top: 1rem; right: 1rem; border-color: var(--primary); border-left: none; border-bottom: none; }
.error-corners span:nth-child(3) { bottom: 1rem; left: 1rem; border-color: var(--primary); border-right: none; border-top: none; }
.error-corners span:nth-child(4) { bottom: 1rem; right: 1rem; border-color: var(--accent-4); border-left: none; border-top: none; }
.error-code { font-size: .8125rem; color: var(--text-muted); margin-top: .5rem; }

/* ── 28. Utilitários ────────────────────────────────────── */
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.text-primary   { color: var(--primary) !important; }
.text-secondary-color { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-error     { color: var(--error); }
.text-sm  { font-size: .8125rem; }
.text-xs  { font-size: .75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.375rem; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-heading { font-family: var(--font-heading); }
.text-center { text-align: center; }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }

.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--border); margin: 1rem 0; }

.rounded    { border-radius: var(--r-md); }
.rounded-sm { border-radius: var(--r-sm); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

.bg-primary   { background: var(--primary) !important; color: white !important; }
.bg-secondary { background: var(--secondary) !important; color: white !important; }
.bg-success   { background: var(--success) !important; color: white !important; }
.bg-warning   { background: var(--warning) !important; color: white !important; }
.bg-error     { background: var(--error) !important; color: white !important; }
.bg-accent-1  { background: var(--accent-1) !important; color: white !important; }
.bg-accent-3  { background: var(--accent-3) !important; color: white !important; }
.bg-accent-4  { background: var(--accent-4) !important; color: white !important; }
.bg-grey      { background: var(--grey-100) !important; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--text-primary); }

/* ── Dropdown ───────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: .375rem;
  z-index: 200;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--r-md);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}
.dropdown-item:hover { background: var(--grey-50); color: var(--text-primary); }
.dropdown-item.danger { color: var(--error); }
.dropdown-item.danger:hover { background: var(--error-light); color: var(--error); }
.dropdown-item.active { background: var(--primary-subtle); color: var(--primary); }
.dropdown-item.active:hover { background: var(--primary-subtle); color: var(--primary); }
.dropdown-item.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.dropdown-divider { height: 1px; background: var(--border); margin: .375rem 0; }
.dropdown-header {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  padding: .375rem .75rem .25rem;
}
.dropdown-item-text {
  font-size: .8125rem;
  color: var(--text-secondary);
  padding: .375rem .75rem;
}

/* ── 29. Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .content-grid-lg-sm { grid-template-columns: 1fr; }
  .content-grid-sm-lg { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.nav-toggle  { display: none; }
.nav-overlay { display: none; }
.burger-btn  { display: none; cursor: pointer; }

@media (max-width: 900px) {
  :root { --sidebar-panel-w: 0px; }
  .sidebar-panel { display: none; }
  .burger-btn { display: flex; }
  .content-grid-2 { grid-template-columns: 1fr; }
  .content-grid-3 { grid-template-columns: 1fr; }

  .app:has(.nav-toggle:checked) .nav-overlay {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 85;
  }
  .app:has(.nav-toggle:checked) .sidebar {
    display: flex;
    background: #f3f4f7d6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
  }
  .app:has(.nav-toggle:checked) .sidebar-panel {
    display: flex;
    width: 260px;
  }
}

@keyframes header-shadow {
  from { box-shadow: none; }
  to   { box-shadow: var(--shadow-sm); }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 1.5rem; }
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 500;
  animation: modal-fade var(--transition) both;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 3rem);
  animation: modal-in var(--transition) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1.125rem 1.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6;
}
.modal-footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}


/* ── MERCHANT ADDRESSES ─────────────────────────────────────── */

.addr-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .375rem;
}
.addr-card-icon { color: var(--text-secondary); width: 1.125rem; text-align: center; flex-shrink: 0; }
.addr-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.addr-card-name { font-weight: 600; font-size: .875rem; }
.addr-card-info { font-size: .8125rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.addr-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem;
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.addr-form-type { display: flex; gap: 1.25rem; font-size: .875rem; }
.addr-form-type label { display: flex; align-items: center; gap: .375rem; cursor: pointer; }
.addr-physical-section { display: flex; flex-direction: column; gap: .375rem; }
.addr-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; }
.addr-form-actions { display: flex; gap: .5rem; justify-content: flex-end; padding-top: .25rem; }
