/*! AFMobile ERP — modern.css v2
    Design system SaaS moderno com Bootstrap Icons
    Mantém compatibilidade total com JSP existente.
*/

/* ============================================================
   DESIGN TOKENS — sobrepõem as variáveis de default.css
   ============================================================ */
:root {
  /* Sidebar */
  --sidebar-bg:            #1e2233;
  --sidebar-width:         260px;
  --sidebar-text:          rgba(255,255,255,.72);
  --sidebar-text-active:   #ffffff;
  --sidebar-hover-bg:      rgba(255,255,255,.06);
  --sidebar-active-bg:     rgba(220,53,69,.18);
  --sidebar-active-border: #dc3545;

  /* App shell */
  --app-bg:       #f0f2f5;
  --card-bg:      #ffffff;
  --card-radius:  12px;
  --card-shadow:  0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
  --card-shadow-hover: 0 4px 24px rgba(0,0,0,.13);

  /* Text */
  --t1: #1a202c;
  --t2: #4a5568;
  --t3: #718096;
  --t4: #a0aec0;

  /* Status */
  --status-open:   #dc3545;
  --status-sync:   #d97706;
  --status-done:   #0078A3;
  --status-cancel: #a0aec0;
  --status-green:  #38a169;

  --border: #e2e8f0;
}

/* Fundo geral da aplicação */
body { background-color: var(--app-bg) !important; }

/* ============================================================
   1. SECTION / MODULE TITLES
   ============================================================ */
.module-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t4);
  margin: 20px 0 8px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.module-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* ============================================================
   2. BOTÕES DE PROCESSO (btn-nav) — suporta img E BI icons
   ============================================================ */
.btn-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 62px;
  padding: 0 16px;
  margin-bottom: 10px;
  background-color: #2d3748;
  border: none;
  border-radius: var(--card-radius);
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, transform .12s, box-shadow .15s;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-nav:hover   { background-color: #3a4a5e; box-shadow: var(--card-shadow-hover); }
.btn-nav:active  { transform: scale(.97); background-color: #1a2535; }

/* ícones — suporta tanto <img> quanto <i class="bi …"> */
.btn-nav__icon, .btn-nav i.bi {
  font-size: 22px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-nav__icon { object-fit: contain; }

.btn-nav__label {
  flex: 1;
  text-align: center;
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Grid responsivo de botões */
.btn-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) {
  .btn-nav-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .btn-nav {
    margin-bottom: 0;
    height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px;
  }
  .btn-nav__icon:last-child,
  .btn-nav i.bi:last-child { display: none; }
  .btn-nav__label { font-size: 13px; }
}

/* ============================================================
   3. SIDEBAR MENU ITEMS — suporta img E BI icons
   ============================================================ */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  margin-bottom: 2px;
  border-radius: 10px;
  background-color: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s;
  border: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.menu-item:hover { background-color: var(--sidebar-hover-bg); }
.menu-item:active { transform: scale(.98); }
.menu-item.active {
  background-color: var(--sidebar-active-bg);
  border-left: 3px solid var(--sidebar-active-border);
  padding-left: 7px;
}

/* ícone: suporta <img> e <i class="bi …"> */
.menu-item__icon,
.menu-item i.bi {
  font-size: 18px;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}
.menu-item .menu-item__icon { opacity: .80; }

.menu-item__text   { flex: 1; min-width: 0; }
.menu-item__label  {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-item.active .menu-item__label { color: var(--sidebar-text-active); }
.menu-item__sublabel {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 1px;
}

/* ícone final (chevron, lupa) */
.menu-item__end-icon,
.menu-item i.bi-end {
  font-size: 14px;
  width: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,.35);
  object-fit: contain;
}

.menu-section-divider {
  height: 1px;
  background-color: rgba(255,255,255,.10);
  margin: 10px 0;
  border: none;
}

.menu-user-info {
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.menu-user-info span {
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-user-info .user-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
}

/* ============================================================
   4. STAT / KPI CARDS
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 12px 10px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  border-top: 3px solid transparent;
  transition: box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
}
.stat-card--open   { border-top-color: var(--status-open);   }
.stat-card--sync   { border-top-color: var(--status-sync);   }
.stat-card--done   { border-top-color: var(--status-done);   }
.stat-card--cancel { border-top-color: var(--status-cancel); }

.stat-card__value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--t1);
}
.stat-card--open   .stat-card__value { color: var(--status-open);  }
.stat-card--sync   .stat-card__value { color: var(--status-sync);  }
.stat-card--done   .stat-card__value { color: var(--status-done);  }

.stat-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 4px;
  text-align: center;
}

/* Dashboard section wrapper */
.dash-section {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}
.dash-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
}
.dash-section-header img  { width: 20px; height: 20px; opacity: .70; }
.dash-section-header i.bi { font-size: 18px; color: var(--t3); }
.dash-section .stat-grid { margin-bottom: 0; }

/* ============================================================
   5. OS LIST GRID
   ============================================================ */
.os-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px)  { .os-list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 1200px) { .os-list-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   6. OS CARD
   ============================================================ */
.os-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow .18s, transform .12s;
  min-height: 100px;
}
.os-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

/* Faixa colorida lateral esquerda */
.os-card__accent {
  width: 5px;
  flex-shrink: 0;
  align-self: stretch;
}
.os-card__accent--open   { background-color: var(--status-open);   }
.os-card__accent--sync   { background-color: var(--status-sync);   }
.os-card__accent--done   { background-color: var(--status-done);   }
.os-card__accent--cancel { background-color: var(--status-cancel); }

/* Corpo principal */
.os-card__body {
  flex: 1;
  padding: 10px 12px;
  min-width: 0;
}

/* Header: badge + número */
.os-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.os-card__status-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}
.os-card__status-badge--open   { background-color: rgba(220,53,69,.12);  color: #dc3545; }
.os-card__status-badge--sync   { background-color: rgba(217,119,6,.12);  color: #d97706; }
.os-card__status-badge--done   { background-color: rgba(0,120,163,.12);  color: #0078A3; }
.os-card__status-badge--cancel { background-color: rgba(160,172,192,.15);color: #718096; }

.os-card__os-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: .3px;
}

/* Linhas de dados */
.os-card__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
  line-height: 1.4;
}
.os-card__row-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  min-width: 48px;
  flex-shrink: 0;
}
.os-card__row-label--red  { color: #c0392b; }
.os-card__row-label--blue { color: #0078A3; }

.os-card__row-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.os-card__row-value--red  { color: #c0392b; font-weight: 600; }
.os-card__row-value--blue { color: #0078A3; font-weight: 600; }

/* Linha de total */
.os-card__total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
  gap: 4px;
}

/* Coluna de ações — suporta img E i.bi */
.os-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 8px;
  gap: 6px;
  min-width: 62px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}

.os-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .12s, transform .10s;
  -webkit-tap-highlight-color: transparent;
}
.os-action:active { transform: scale(.83); }

/* Suporte a <img> */
.os-action img { width: 24px; height: 24px; }

/* Suporte a Bootstrap Icons <i> */
.os-action i.bi { font-size: 22px; line-height: 1; }

.os-action--edit   { background-color: rgba(69,69,69,.08); }
.os-action--delete { background-color: rgba(220,53,69,.10); }
.os-action--done   { background-color: rgba(56,161,105,.10); }
.os-action--view   { background-color: rgba(0,120,163,.10); }
.os-action--zap    { background-color: rgba(37,211,102,.12); }

.os-action--edit   i.bi { color: #454545; }
.os-action--delete i.bi { color: #dc3545; }
.os-action--done   i.bi { color: #38a169; }
.os-action--view   i.bi { color: #0078A3; }
.os-action--zap    i.bi { color: #25d366; }

.os-action--edit:active   { background-color: rgba(69,69,69,.20); }
.os-action--delete:active { background-color: rgba(220,53,69,.25); }
.os-action--done:active   { background-color: rgba(56,161,105,.25); }
.os-action--view:active   { background-color: rgba(0,120,163,.25); }
.os-action--zap:active    { background-color: rgba(37,211,102,.30); }

/* ============================================================
   7. FIELD BUTTONS — botões de ação inline nos campos de formulário
      (substituem img-lupa / img-placa / img-edit — 46px touch-safe)
   ============================================================ */
.field-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .12s, transform .10s;
  -webkit-tap-highlight-color: transparent;
}
.field-btn:active { transform: scale(.83); }
.field-btn i.bi { font-size: 22px; line-height: 1; color: #fff; }

/* Pesquisar / Detalhes */
.field-btn--search { background-color: #dc3545; }
.field-btn--search:active { background-color: #a02c2c; }

/* Adicionar novo (campo vazio) */
.field-btn--add { background-color: #dc3545; }
.field-btn--add:active { background-color: #a02c2c; }

/* Editar existente */
.field-btn--edit { background-color: #e07d10; }
.field-btn--edit:active { background-color: #b56200; }

/* ============================================================
   7b. NAV ICONS — ícones Bootstrap nos botões button-like-default
   ============================================================ */
.nav-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .85);
}

/* Garante que a coluna do ícone fique à direita com tamanho fixo.
   Usa > table > tbody > tr > td:last-child para NÃO afetar tabelas aninhadas
   (ex: a tabela interna com código/CPF/nome do cliente). */
.button-like-default > table > tbody > tr > td:last-child,
.button-like-delete  > table > tbody > tr > td:last-child,
.button-like-disable > table > tbody > tr > td:last-child {
  width: 36px;
  min-width: 36px;
  text-align: right;
  vertical-align: middle;
  padding-right: 4px;
}

/* ============================================================
   8. RODAPÉ ACTIONS (filtros / rodapés de formulário)
   ============================================================ */
.rodape-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.rodape-actions .btn-action-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #dc3545;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, transform .12s;
  box-shadow: 0 2px 8px rgba(220,53,69,.30);
  -webkit-tap-highlight-color: transparent;
}
.rodape-actions .btn-action-delete:active { background-color: #a02c2c; transform: scale(.95); }

/* Suporte a img e BI em btn-action-delete */
.rodape-actions .btn-action-delete img  { width: 24px; height: 24px; }
.rodape-actions .btn-action-delete i.bi { font-size: 22px; color: #fff; }

.rodape-actions .btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  background-color: #2d3748;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, transform .12s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  -webkit-tap-highlight-color: transparent;
}
.rodape-actions .btn-action-primary:active { background-color: #1a202c; transform: scale(.98); }

.rodape-actions .btn-action-primary span {
  flex: 1;
  text-align: center;
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 700;
}
.rodape-actions .btn-action-primary img  { width: 24px; height: 24px; flex-shrink: 0; }
.rodape-actions .btn-action-primary i.bi { font-size: 20px; color: rgba(255,255,255,.80); flex-shrink: 0; }

/* ============================================================
   8. TABLE FALLBACK (tabelas dentro de button-like)
      height:100% OMITIDO intencionalmente — causaria inflação
   ============================================================ */
.button-like-default > table,
.button-like-delete  > table,
.button-like-disable > table,
.button-like-list    > table,
.button-like-menu    > table,
.button-like-box     > table,
.button-like-fixo    > table { width: 100%; }

/* ============================================================
   9. CHART CONTAINER
   ============================================================ */
.chart-wrapper {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 20px 16px 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 80px;
}
.chart-wrapper canvas {
  width: 100% !important;
  max-height: 300px;
}

/* ============================================================
   10. PAGE HEADER
   ============================================================ */
.page-header {
  text-align: center;
  padding: 6px 0 16px;
}
.page-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 4px;
  user-select: none;
}
.page-header__subtitle {
  font-size: 12px;
  color: var(--t3);
  margin: 0;
  user-select: none;
}

/* ============================================================
   11. FILTER PAGE — estilo moderno para formulários de filtro
   ============================================================ */
.filter-section {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 16px 16px 12px;
  margin-bottom: 14px;
  box-shadow: var(--card-shadow);
}

/* Input com ícone interno */
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper i.bi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--t4);
  pointer-events: none;
  z-index: 2;
}
.input-icon-wrapper .form-control { padding-left: 38px; }

/* Select com estilo moderno */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
}

/* Dois campos lado a lado (datas) */
.form-row-2 {
  display: flex;
  gap: 12px;
}
.form-row-2 .mb-3 { flex: 1; }

/* ============================================================
   12. BLINK ANIMATION
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.blink { animation: blink 1.4s ease-in-out infinite; }

/* ============================================================
   13. DESKTOP: centrar conteúdo no container
   ============================================================ */
@media (min-width: 768px) {
  .container {
    max-width: 1080px !important;
    min-width: auto  !important;
    width: 100%      !important;
    padding-left:  24px !important;
    padding-right: 24px !important;
    margin-left:  auto !important;
    margin-right: auto !important;
  }

  /* Rodapé: centralizar e arredondar */
  .rodape {
    max-width: 1080px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
  }

  /* Hover em cards */
  .button-like-fixo:hover,
  .button-like-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transition: box-shadow .2s;
  }

  /* Stat cards maiores */
  .stat-card        { min-height: 80px; padding: 16px 10px; }
  .stat-card__value { font-size: 28px; }
  .stat-card__label { font-size: 9.5px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1280px !important; }
  .rodape { max-width: 1280px; }
}

/* ============================================================
   14. SIDEBAR PERMANENTE (desktop ≥ 992px)
       Só se aplica à tela do main-menu via .desktop-layout
   ============================================================ */
@media (min-width: 992px) {

  .desktop-layout {
    display: flex;
    height: calc(100vh - 58px);
    margin-top: 58px;
    overflow: hidden;
  }

  /* Offcanvas vira sidebar fixa */
  .desktop-layout .offcanvas.offcanvas-start {
    position: relative  !important;
    transform: none     !important;
    visibility: visible !important;
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width);
    height: 100%;
    border-right: 1px solid rgba(255,255,255,.06) !important;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
    background-color: var(--sidebar-bg) !important;
    overflow-y: auto;
  }

  /* Esconder botão fechar na sidebar */
  .desktop-layout .btn-close { display: none; }

  /* Esconder o botão hamburger SOMENTE na tela do dashboard (tem .desktop-layout)
     Em todas as outras telas o mesmo botão serve como "Voltar" — não pode sumir */
  body:has(.desktop-layout) #menuToggle { display: none !important; }

  /* Impedir backdrop somente onde a sidebar é permanente */
  .desktop-layout ~ .offcanvas-backdrop { display: none !important; }

  /* Área principal */
  .desktop-layout .sidebar-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* Scrollable dentro da área principal */
  .desktop-layout .sidebar-content .scrollable {
    height: auto;
    min-height: 100%;
    overflow-y: visible;
  }

  /* Page header maior no desktop */
  .page-header              { padding: 18px 0 16px; }
  .page-header__title       { font-size: 24px; }

  /* Chart taller */
  .chart-wrapper { padding: 24px 28px 20px; }
  .chart-wrapper canvas { max-height: 340px; }

  /* Container dentro do sidebar-content */
  .desktop-layout .sidebar-content .container {
    max-width: 1060px !important;
  }
}

/* ============================================================
   15. SELECTION LIST CARD (.list-item-card)
       Usado em: listacadcli, listacadven, listacadfun,
                 listacadpro, listacadserv, listacadtipnf,
                 listacadcond
   ============================================================ */
.list-item-card {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 12px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .18s, transform .12s;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.list-item-card:hover  { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.list-item-card:active { transform: scale(.98); }

.list-item-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(220,53,69,.08);
  flex-shrink: 0;
}
.list-item-card__icon i.bi { font-size: 20px; color: var(--status-open); }

/* Variações de cor por módulo */
.list-item-card__icon--blue   { background-color: rgba(0,120,163,.08); }
.list-item-card__icon--blue   i.bi { color: var(--status-done); }
.list-item-card__icon--green  { background-color: rgba(56,161,105,.08); }
.list-item-card__icon--green  i.bi { color: var(--status-green); }
.list-item-card__icon--orange { background-color: rgba(217,119,6,.08); }
.list-item-card__icon--orange i.bi { color: var(--status-sync); }
.list-item-card__icon--gray   { background-color: rgba(160,172,192,.10); }
.list-item-card__icon--gray   i.bi { color: var(--t3); }

.list-item-card__content {
  flex: 1;
  min-width: 0;
}
.list-item-card__code {
  font-size: 10px;
  font-weight: 700;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 2px;
}
.list-item-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-card__subtitle {
  font-size: 12px;
  color: var(--t2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-card__meta {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-card__price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.list-item-card__price-item {
  font-size: 11px;
  color: var(--t3);
}
.list-item-card__price-item strong {
  color: var(--t1);
  font-size: 12px;
  font-weight: 700;
}
.list-item-card__price-item.price-highlight strong { color: var(--status-done); }
.list-item-card__price-item.stock-warn  strong     { color: var(--status-open); }

.list-item-card__chevron {
  font-size: 16px;
  color: var(--status-open);
  flex-shrink: 0;
  opacity: .75;
}

/* ============================================================
   16. DETAIL ITEM CARD (.det-card)
       Usado em: listadetvenda, listadetproveiculos
   ============================================================ */
.det-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow .18s;
}
.det-card:hover { box-shadow: var(--card-shadow-hover); }

.det-card__accent--produto { width: 5px; flex-shrink: 0; background-color: var(--status-done); }
.det-card__accent--servico { width: 5px; flex-shrink: 0; background-color: var(--status-open); }

.det-card__body { flex: 1; padding: 10px 12px; min-width: 0; }

.det-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.det-card__badge--produto {
  font-size: 9px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 20px;
  background-color: rgba(0,120,163,.12); color: #0078A3;
  flex-shrink: 0;
}
.det-card__badge--servico {
  font-size: 9px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 20px;
  background-color: rgba(220,53,69,.12); color: #dc3545;
  flex-shrink: 0;
}
.det-card__code {
  font-size: 11px; font-weight: 700; color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.det-card__title {
  font-size: 13px; font-weight: 700; color: var(--t1);
  margin-bottom: 2px; line-height: 1.3;
}
.det-card__sub {
  font-size: 11px; color: var(--t3); margin-bottom: 4px;
}
.det-card__obs {
  font-size: 11px; color: var(--t2); font-style: italic;
  min-height: 14px; margin-bottom: 4px; line-height: 1.3;
}

.det-card__divider { height: 1px; background-color: var(--border); margin: 6px 0; }

.det-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}
.det-card__field         { display: flex; flex-direction: column; }
.det-card__field-label   { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--t4); letter-spacing: .3px; }
.det-card__field-value   { font-size: 12px; font-weight: 600; color: var(--t1); }
.det-card__field-value--red   { color: #dc3545; }
.det-card__field-value--blue  { color: #0078A3; }
.det-card__field-value--green { color: var(--status-green); }

.det-card__tabprc { margin-top: 4px; display: flex; gap: 6px; align-items: baseline; }
.det-card__tabprc .det-card__field-label { margin-top: 0; }

.det-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 8px 6px;
  gap: 4px;
  min-width: 48px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
