@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --ink:         #0b1e3d;
  --ink-soft:    #3a5275;
  --sky:         #1a6ef5;
  --sky-hover:   #1560d8;
  --sky-deep:    #0f44a8;
  --sky-light:   #e8f1fe;
  --sky-mid:     #b8d4fc;
  --gold:        #e8b421;
  --gold-hover:  #c99a14;
  --gold-light:  #fdf5da;
  --surface:     #ffffff;
  --bg:          #f0f4fb;
  --bg-alt:      #f7faff;
  --border:      #d8e4f5;
  --border-mid:  #b8cee8;
  --muted:       #7a91b0;
  --danger:      #d63031;
  --danger-hover:#b52828;
  --success:     #00a86b;
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        16px;
  --shadow:      0 2px 12px rgba(11,30,61,.08);
  --shadow-md:   0 6px 24px rgba(11,30,61,.12);
  --shadow-lg:   0 16px 48px rgba(11,30,61,.18);
  --transition:  .18s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.hidden { display: none !important; }

/* ─── Typography ──────────────────────────────────────────── */
h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 14px;
}

/* ─── Header ──────────────────────────────────────────────── */
header {
  width: 100%;
  min-height: 80px;
  padding: 18px clamp(18px, 4vw, 48px);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
}

header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,33,.3) 0%, transparent 65%);
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.22) 0%, transparent 65%);
  pointer-events: none;
}

header h1 {
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(0,0,0,.2);
}

/* ─── Layout ──────────────────────────────────────────────── */
main {
  width: min(100% - 32px, 1060px);
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Sections / Cards ────────────────────────────────────── */
section,
.login-card,
.mercado-section,
.recebimento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

section {
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  overflow: hidden;
}

/* Accent bar */
section::before,
.mercado-section::before,
.login-card::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
}

/* ─── Forms ───────────────────────────────────────────────── */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

input,
select,
button {
  min-height: 42px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 0;
}

input,
select {
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input::placeholder { color: var(--muted); opacity: .8; }

input:hover,
select:hover {
  border-color: var(--border-mid);
  background: var(--surface);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(26,110,245,.14);
  background: var(--surface);
}

/* ─── Buttons ─────────────────────────────────────────────── */
button {
  border: 1px solid var(--sky);
  background: var(--sky);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  letter-spacing: -.01em;
}

button:hover {
  background: var(--sky-hover);
  border-color: var(--sky-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,110,245,.3);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  box-shadow: 0 6px 18px rgba(214,48,49,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--sky);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--sky-light);
  border-color: var(--sky-mid);
  box-shadow: none;
  transform: none;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-actions {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--sky-mid);
  border-radius: var(--r-sm);
  background: var(--sky-light);
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-link:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.back-link span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--sky-deep);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.back-link:hover span {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.back-link {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
}

/* ─── Tables ──────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
}

th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 12px 14px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--sky-light);
  cursor: default;
}

/* ─── Result highlight ────────────────────────────────────── */
#resultadoBusca {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--gold-light);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #d4f7ec; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: var(--sky-light); color: var(--sky-deep); }

/* ─── Login ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(232,180,33,.18) 0%, transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(26,110,245,.16) 0%, transparent 40%),
    linear-gradient(160deg, var(--ink) 0%, #163362 50%, var(--bg) 50%);
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-top: none;
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  border-radius: 0;
}

.login-card::before { display: none; }

.login-card h1 {
  margin-bottom: 4px;
  color: var(--ink);
  text-align: center;
  font-size: 22px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.login-form input,
.login-form button {
  width: 100%;
}

.link-button {
  width: 100%;
  margin-top: 6px;
  background: transparent;
  color: var(--sky);
  border: 1px solid var(--border);
  font-weight: 500;
}

.link-button:hover {
  background: var(--sky-light);
  border-color: var(--sky-mid);
  box-shadow: none;
  transform: none;
}

.login-message {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.45;
}

.login-message.info    { color: var(--sky); }
.login-message.sucesso { color: var(--success); }

.login-version {
  display: block;
  margin: -8px 0 16px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}

/* ─── Mercado / Estoque ───────────────────────────────────── */
.mercado-main {
  width: min(100% - 32px, 920px);
  margin: 0 auto 48px;
}

.mercado-section {
  padding: clamp(18px, 3vw, 30px);
}

.mercado-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.mercado-form input { flex: 1; }

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.folder-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

.folder-card:hover {
  transform: translateY(-3px);
  background: var(--bg-alt);
  border-color: var(--sky-mid);
  box-shadow: var(--shadow-md);
}

.folder-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.folder-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--sky-light);
  color: var(--sky-deep);
  font-weight: 800;
  font-size: 18px;
}

.folder-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.folder-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.folder-metrics div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
}

.folder-metrics strong,
.folder-metrics span {
  display: block;
}

.folder-metrics strong {
  color: var(--ink);
  font-size: 18px;
  font-family: 'DM Mono', monospace;
}

.folder-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.folder-actions {
  justify-content: flex-start;
}

.folder-actions button {
  width: auto;
  min-width: 88px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.empty {
  text-align: center;
  font-size: 14px;
  margin-top: 24px;
  color: var(--muted);
}

.Total-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.Total-grid b {
  padding: 9px 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.material-symbols-outlined {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  transition: background var(--transition);
}
.material-symbols-outlined:hover {
  background: rgba(255,255,255,.22);
}

.side-wrapper {
  position: fixed;
  top: 0;
  left: -290px;
  width: 268px;
  height: 100vh;
  background: var(--ink);
  box-shadow: 10px 0 40px rgba(11,30,61,.3);
  transition: left .22s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  padding: 22px 18px;
  border-right: 3px solid var(--gold);
}

.side-wrapper.active { left: 0; }

.side-wrapper-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 22px;
}

.side-wrapper-header button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 16px;
  border-radius: var(--r-sm);
}
.side-wrapper-header button:hover {
  background: rgba(255,255,255,.2);
  transform: none;
  box-shadow: none;
}

.menu {
  list-style: none;
  padding: 0;
}

.menu li { margin: 4px 0; }

.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.menu a:hover {
  background: rgba(26,110,245,.22);
  color: #fff;
  transform: translateX(3px);
}

.menu a.active {
  background: rgba(26,110,245,.28);
  color: #93c5fd;
}

.menu-badge {
  display: inline-block;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

/* ─── Recebimentos ────────────────────────────────────────── */
.recebimento-form {
  display: flex;
  flex-direction: column;
}

.recebimento-produtos,
.recebimento-listas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recebimento-produto {
  display: grid;
  grid-template-columns: 1fr 130px 120px auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.recebimento-produto:hover {
  border-color: var(--sky-mid);
  box-shadow: var(--shadow);
}

.produto-nome {
  cursor: pointer;
  background: var(--sky-light);
  border-color: var(--sky-mid);
}

.produto-popup { max-width: 720px; }

.produto-popup-novo {
  display: block;
  margin: 12px 0;
}
.produto-popup-novo.hidden { display: none; }
.produto-popup-novo input { width: 100%; }

.produto-popup-tabela {
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
}

.produto-popup-row { cursor: pointer; }
.produto-popup-row td { text-align: left; }
.produto-popup-row:hover td { background: var(--sky-light); }

.produto-popup-row-new td {
  font-weight: 600;
  color: var(--sky);
  background: var(--gold-light);
}
.produto-popup-row-new input {
  width: 100%;
  border-color: var(--sky);
  background: var(--surface);
}

.recebimento-card {
  padding: 18px;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
}

/* ─── Toast ───────────────────────────────────────────────── */
.recebimento-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1600;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(232,180,33,.4);
  border-left: 5px solid var(--gold);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.recebimento-toast strong { display: block; margin-bottom: 3px; font-size: 14px; }
.recebimento-toast p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; }

.recebimento-toast-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Popup overlay ───────────────────────────────────────── */
.recebimento-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11,30,61,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.recebimento-popup-overlay.hidden { display: none; }

.recebimento-popup {
  width: min(800px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.recebimento-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ─── Float button ────────────────────────────────────────── */
.recebimento-float {
  position: fixed;
  right: 20px;
  top: 96px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid rgba(26,110,245,.4);
  border-radius: var(--r);
  background: var(--sky);
  color: #fff;
  box-shadow: 0 8px 28px rgba(26,110,245,.28);
  text-align: left;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.recebimento-float:hover {
  background: var(--sky-hover);
  box-shadow: 0 12px 36px rgba(26,110,245,.38);
}

.recebimento-float-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.recebimento-float strong,
.recebimento-float small { display: block; }

.recebimento-float small {
  max-width: 140px;
  color: rgba(255,255,255,.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.recebimento-float.has-new {
  background: var(--ink);
  border-color: var(--gold);
  animation: recebimentoPulse 1.4s ease-in-out infinite;
}
.recebimento-float.has-new small { color: rgba(232,180,33,.85); }

@keyframes recebimentoPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(11,30,61,.2); }
  50%       { box-shadow: 0 8px 42px rgba(232,180,33,.5); }
}

/* ─── Overlay ─────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,30,61,.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  z-index: 900;
  transition: opacity var(--transition);
}
.overlay.active { display: block; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  main,
  .mercado-main {
    width: min(100% - 20px, 100%);
  }

  header {
    justify-content: flex-start;
    padding: 18px 20px;
  }

  .material-symbols-outlined {
    right: 16px;
  }

  form,
  .mercado-form {
    flex-direction: column;
  }

  input,
  select,
  button {
    width: 100%;
  }

  .material-symbols-outlined,
  .side-wrapper-header button,
  #fecharPopupRecebimento,
  #fecharPopupProdutos {
    width: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .recebimento-produto {
    grid-template-columns: 1fr;
  }

  .recebimento-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .recebimento-float {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    min-width: unset;
  }
}

.admin-acoes-popup {
  width: min(620px, 100%);
}

#formAcoesUsuario {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.admin-permissoes-lista {
  display: grid;
  gap: 10px;
  width: 100%;
}

.admin-permissao-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
}

.admin-permissao-item strong,
.admin-permissao-item small {
  display: block;
}

.admin-permissao-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-permissao-item input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-acoes-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
}

.admin-acoes-footer button {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 34px;
  min-width: 96px;
  padding: 7px 12px;
  font-size: 13px;
}

.btn-excluir-estoque {
  width: auto;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

/* Distribuicao */
.distribuicao-tabs-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.distribuicao-tabs-section::before {
  display: none;
}

.distribuicao-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border-mid);
  overflow-x: auto;
}

.distribuicao-tab {
  width: auto;
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 11px 22px 10px;
  border: 1px solid transparent;
  border-bottom-color: var(--border-mid);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.distribuicao-tab:hover {
  background: rgba(255,255,255,.62);
  border-color: transparent;
  border-bottom-color: var(--border-mid);
  color: var(--sky-deep);
  box-shadow: none;
  transform: none;
}

.distribuicao-tab.active {
  background: var(--surface);
  border-color: var(--border-mid);
  border-bottom-color: var(--surface);
  color: var(--sky-deep);
  box-shadow: 0 -1px 10px rgba(11,30,61,.04);
}

.distribuicao-tab.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.distribuicao-tab-panel {
  padding: 18px;
  border: 1px solid var(--border-mid);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.distribuicao-tab-panel[hidden] {
  display: none;
}
