/* ============================================================== */
/* OFICINA360 PRO - SISTEMA DE DESIGN & INTERFACE INTUITIVA       */
/* ============================================================== */

:root {
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --white: #ffffff;
  --navy: #0f2b3f;
  --navy-light: #164260;
  --navy-dark: #091b28;
  --accent: #f97316;
  --accent-light: #ffedd5;
  --green: #16a34a;
  --green-light: #dcfce7;
  --blue: #0284c7;
  --blue-light: #e0f2fe;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --orange: #ea580c;
  --orange-light: #ffedd5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong, b {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  color: var(--ink);
  line-height: 1.25;
}

p {
  margin: 0;
}

/* ============================================================== */
/* ESTRUTURA DO APLICATIVO (APP SHELL) E RESPONSIVIDADE           */
/* ============================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Barra Lateral (Sidebar) */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 100;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 20px 'Manrope';
  box-shadow: 0 4px 12px rgba(15, 43, 63, 0.25);
  flex-shrink: 0;
}

.brand strong {
  font: 800 18px 'Manrope';
  color: var(--navy);
  display: block;
  letter-spacing: -0.5px;
}

.brand strong span {
  color: var(--accent);
}

.brand small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
  font-weight: 500;
}

.workspace {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 20px;
}

.workspace-icon {
  background: #fde68a;
  color: #92400e;
  font-weight: 800;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.workspace b {
  font-size: 12px;
  display: block;
  color: var(--ink);
}

.workspace small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.workspace > span {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
}

/* Navegação da Sidebar */
.nav-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted-light);
  font-weight: 800;
  padding: 8px 12px 6px;
  display: block;
  text-transform: uppercase;
}

.nav-label.secondary {
  margin-top: 20px;
}

.nav-item {
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin: 3px 0;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item i {
  font-style: normal;
  font-size: 17px;
  width: 20px;
  text-align: center;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.nav-item:hover i {
  color: var(--navy);
}

.nav-item.active {
  background: var(--blue-light);
  color: #0369a1;
  font-weight: 700;
}

.nav-item.active i {
  color: var(--blue);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
}

/* Badges de navegação */
.badge-nav {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  line-height: 1.2;
}

.badge-nav.danger { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.badge-nav.warning { background: var(--amber-light); color: var(--amber); border: 1px solid #fde68a; }
.badge-nav.orange { background: var(--orange-light); color: var(--orange); border: 1px solid #fed7aa; }

/* Rodapé da Sidebar */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
}

.profile {
  border-top: 1px solid var(--line);
  padding: 14px 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile b {
  font-size: 12px;
  display: block;
}

.profile small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.avatar, .mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px 'Manrope';
  flex-shrink: 0;
}

.avatar-blue, .mini-avatar { background: #e0f2fe; color: #0284c7; font-weight: 800; }
.avatar-orange { background: #ffedd5; color: #ea580c; }
.avatar-green { background: #dcfce7; color: #16a34a; }
.avatar-purple { background: #ede9fe; color: #7c3aed; }

/* Overlay Mobile para Sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 95;
}

/* Conteúdo Principal */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Barra Superior (Topbar) */
.topbar {
  height: 66px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}

.btn-mobile-menu:hover {
  background: #f1f5f9;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.breadcrumb span {
  padding: 0 8px;
  color: var(--line-strong);
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-help-topbar {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-help-topbar:hover {
  background: #f1f5f9;
  border-color: var(--line-strong);
  color: var(--navy);
}

.user-short b {
  font-size: 12px;
  display: block;
}

.user-short small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

/* Área de Conteúdo da Página */
.page-content {
  padding: 30px 36px 60px;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}

/* Cabeçalho da Página */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.eyebrow {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.page-heading h1 {
  font-size: 26px;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin: 0;
  font-weight: 800;
}

.page-heading p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================== */
/* GUIAS AUTOEXPLICATIVOS & BANNERS DIDÁTICOS                      */
/* Para facilitar a operação de quem tem pouca intimidade técnica */
/* ============================================================== */

.guide-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ed 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.guide-icon {
  width: 36px;
  height: 36px;
  background: #22c55e;
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

.guide-body {
  flex: 1;
}

.guide-title {
  font-size: 14px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-body p {
  font-size: 12px;
  color: #15803d;
  line-height: 1.45;
  margin-bottom: 10px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(187, 247, 208, 0.8);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.step-num {
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Stepper do Ciclo de Vida da OS (Passo a Passo Visual) */
.os-lifecycle-stepper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin: 14px 0 20px;
  overflow-x: auto;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-light);
  white-space: nowrap;
}

.lifecycle-step .step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #cbd5e1;
}

.lifecycle-step.completed {
  color: #16a34a;
}
.lifecycle-step.completed .step-circle {
  background: #dcfce7;
  color: #16a34a;
  border-color: #86efac;
}

.lifecycle-step.current {
  color: #0369a1;
}
.lifecycle-step.current .step-circle {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.lifecycle-arrow {
  color: #cbd5e1;
  font-size: 14px;
  padding: 0 4px;
}

/* ============================================================== */
/* BOTÕES MODERNOS E CLAROS                                       */
/* ============================================================== */

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 43, 63, 0.2);
}
.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 6px 16px rgba(15, 43, 63, 0.3);
}

.btn-outline {
  background: #ffffff !important;
  color: var(--navy) !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700;
}
.btn-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: var(--navy-dark) !important;
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}
.btn-ghost:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.btn-success {
  background: #16a34a !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.btn-success:hover {
  background: #15803d !important;
}

.btn-warning {
  background: #f59e0b !important;
  color: #fff !important;
  border: none !important;
}
.btn-warning:hover {
  background: #d97706 !important;
}

.btn-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}
.btn-danger:hover {
  background: #fecaca !important;
}

.btn-danger-dark {
  background: #dc2626 !important;
  color: #fff !important;
  border: none !important;
}
.btn-danger-dark:hover {
  background: #b91c1c !important;
}

.btn-sm {
  padding: 7px 11px !important;
  font-size: 12px !important;
}

/* ============================================================== */
/* CARDS DE MÉTRICAS & PAINÉIS                                    */
/* ============================================================== */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card, .panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card {
  padding: 18px 20px;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}

.metric-icon.green, .trend.green { color: var(--green); background: var(--green-light); }
.metric-icon.orange, .trend.orange { color: var(--amber); background: var(--amber-light); }
.metric-icon.blue, .trend.blue { color: var(--blue); background: var(--blue-light); }
.metric-icon.purple, .trend.purple { color: var(--purple); background: var(--purple-light); }

.metric-card > strong {
  font-size: 24px;
  color: var(--ink);
  display: block;
  letter-spacing: -0.5px;
}

.trend {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

/* Painéis (Panels) */
.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.panel-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

/* ============================================================== */
/* TABELAS MODERNAS E BUSCA EM TEMPO REAL                         */
/* ============================================================== */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th {
  text-align: left;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-secondary);
  font-size: 13px;
  vertical-align: middle;
}

tr:hover td {
  background: #fafcff;
}

td b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

/* Toolbar e Barra de Busca Rápida */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  flex: 1;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search span {
  font-size: 16px;
  color: var(--muted);
}

.search input {
  border: 0;
  outline: 0;
  font: 13px 'DM Sans', sans-serif;
  width: 100%;
  color: var(--ink);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--muted-light);
  cursor: pointer;
  padding: 4px;
  display: none;
  font-size: 14px;
}
.search-clear-btn:hover {
  color: var(--ink);
}

.search-count-badge {
  background: #e2e8f0;
  color: #475569;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pills e Badges de Status */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill.success { color: #166534; background: #dcfce7; }
.pill.warning { color: #b45309; background: #fef3c7; }
.pill.info { color: #0369a1; background: #e0f2fe; }
.pill.purple { color: #6d28d9; background: #ede9fe; }
.pill.teal { color: #0f766e; background: #ccfbf1; }
.pill.danger { color: #991b1b; background: #fee2e2; }
.pill.secondary { color: #475569; background: #f1f5f9; }

/* Callouts de Alerta */
.callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  color: #92400e;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.callout > span {
  font-size: 20px;
  flex-shrink: 0;
}

.callout.erro {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.callout.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.callout.info {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

/* ============================================================== */
/* BOTÃO FLUTUANTE DE AJUDA & CENTRAL DE DÚVIDAS                   */
/* ============================================================== */

.floating-help-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d6d 100%);
  color: #fff;
  border: 1px solid #33668a;
  border-radius: 30px;
  padding: 11px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(15, 43, 63, 0.35);
  z-index: 80;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-help-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.4);
  background: linear-gradient(135deg, #164260 0%, #0284c7 100%);
}

/* Modal e Diálogos */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog.modal-lg {
  max-width: 860px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.btn-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.modal-body {
  padding: 24px;
}

/* Formulários */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px;
}

.form-grid label, .modal-card label {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 700;
}

.form-grid input, .form-grid select, .form-grid textarea, .modal-card select, .modal-card input {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  outline: none;
  color: var(--ink);
  font: 13px 'DM Sans', sans-serif;
  transition: all 0.15s ease;
  background: #fff;
}

.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Toast Notificações */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font: 700 13px 'DM Sans', sans-serif;
  box-shadow: 0 10px 30px rgba(15, 43, 63, 0.35);
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.toast-success { background: #15803d; }
.toast.toast-error { background: #b91c1c; }

/* ============================================================== */
/* RESPONSIVIDADE (MOBILE & TABLETS)                              */
/* ============================================================== */

@media (max-width: 1024px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-content {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .btn-mobile-menu {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-overlay.mobile-open {
    display: block;
  }
  .user-short {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .floating-help-btn span.label {
    display: none;
  }
  .floating-help-btn {
    padding: 12px;
    border-radius: 50%;
  }
}

[hidden] {
  display: none !important;
}

/* ============================================================== */
/* ESTILOS ESPECÍFICOS DOS MÓDULOS DE OFICINA & FINANCEIRO        */
/* ============================================================== */

.actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.actions form { margin: 0; }
.check-line { display: flex !important; align-items: center; gap: 10px; }
.check-line input { width: auto !important; margin: 0 !important; }

/* Banners de Alerta Operacionais e Financeiros */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.alert-banner.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-banner.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-icon { font-size: 24px; flex-shrink: 0; }
.alert-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.alert-text strong { font-size: 14px; font-weight: 800; color: inherit; }

/* Indicadores de Tempo / Prazos de Entrega */
.badge-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}
.badge-time.today {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid #fde68a;
}
.badge-time.expired {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #fca5a5;
}

/* Linhas Destacadas */
.row-highlight-today { background: #fffdf5 !important; }
.row-highlight-late { background: #fff5f5 !important; }
.row-returned { background: #fafafa !important; opacity: 0.75; }
.text-strikethrough { text-decoration: line-through; color: var(--muted); }

/* Tags de Especialidade e Tipo de Item */
.service-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}
.tag-tipo {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag-tipo.servico { background: #e0f2fe; color: #0369a1; }
.tag-tipo.peca { background: #fef3c7; color: #b45309; }
.tag-tipo.produto { background: #dcfce7; color: #15803d; }
.tag-tipo.fabricado { background: #f3e8ff; color: #7e22ce; }
.tag-tipo.material { background: #ffedd5; color: #c2410c; }

/* Haver e Valores */
.badge-haver {
  display: inline-block;
  padding: 3px 9px;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
}
.color-debt { color: #dc2626 !important; font-weight: 800; }
.color-ok { color: #16a34a !important; font-weight: 800; }

/* Prioridades */
.pill-priority {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.pill-priority.baixa { background: #f1f5f9; color: #64748b; }
.pill-priority.normal { background: #e0f2fe; color: #0284c7; }
.pill-priority.alta { background: #ffedd5; color: #ea580c; }
.pill-priority.urgente { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* Abas Pills */
.tab-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-pill {
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.15s;
}
.tab-pill:hover { background: #e2e8f0; }
.tab-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Card Hero Detalhe da OS */
.os-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--shadow);
}
.os-hero-main { display: flex; align-items: center; gap: 16px; }
.os-code-badge {
  background: var(--navy);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 18px;
  padding: 9px 16px;
  border-radius: 10px;
}
.os-subtitle { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.os-hero-meta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.os-hero-meta small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Faixa de Equilíbrio Financeiro da OS */
.financial-balance-strip {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
  padding: 16px 22px;
  flex-wrap: wrap;
  gap: 18px;
}
.balance-cell { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.balance-cell small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.balance-cell strong { font-size: 22px; font-family: 'Manrope', sans-serif; font-weight: 800; }
.balance-cell.divider-left { border-left: 1px solid #cbd5e1; }
.balance-cell.highlight-cell { background: #fff; padding: 10px 16px; border-radius: 10px; border: 1px solid #94a3b8; }
.micro-text { font-size: 11px; color: var(--muted); }
.balance-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Filtros Rápidos */
.quick-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-filter {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s;
}
.btn-filter:hover { background: #f1f5f9; }
.btn-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================== */
/* GRIDS DE CONTEÚDO, FINANCEIRO, ESPECIALIDADES & ACESSO RÁPIDO  */
/* ============================================================== */

/* Grid de duas colunas do dashboard */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1050px) {
  .content-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Link de texto elegante */
.text-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.text-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Cards de Alerta Financeiro (Dashboard) */
.financial-alert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px 0;
}

@media (max-width: 768px) {
  .financial-alert-cards {
    grid-template-columns: 1fr !important;
  }
}

.fin-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fin-card strong {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  margin: 4px 0 2px;
  display: block;
  letter-spacing: -0.5px;
}

.fin-card small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.fin-card.danger-card {
  background: #fff8f8;
  border-color: #fecaca;
}
.fin-card.danger-card strong { color: var(--red); }

.fin-card.warning-card {
  background: #fffdf5;
  border-color: #fde68a;
}
.fin-card.warning-card strong { color: var(--amber); }

.fin-card.info-card {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.fin-card.info-card strong { color: var(--blue); }

.fin-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.fin-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.red-dot { background: var(--red); box-shadow: 0 0 6px rgba(220, 38, 38, 0.4); }
.yellow-dot { background: var(--amber); box-shadow: 0 0 6px rgba(217, 119, 6, 0.4); }
.blue-dot { background: var(--blue); box-shadow: 0 0 6px rgba(2, 132, 199, 0.4); }

/* Mini-listas financeiras */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 20px;
}

.mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.15s ease;
}

.mini-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mini-item b {
  font-size: 13px;
  display: block;
  color: var(--ink);
}

.mini-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.text-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.text-right b {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.empty-state-mini {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed var(--line);
}

.badge-status-date {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-status-date.red { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.badge-status-date.yellow { background: var(--amber-light); color: var(--amber); border: 1px solid #fde68a; }
.badge-status-date.blue { background: var(--blue-light); color: var(--blue); border: 1px solid #bae6fd; }
.badge-status-date.gray { background: #f1f5f9; color: var(--muted); }
.badge-status-date.success { background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0; }

/* Grid de Especialidades no Dashboard */
.service-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}

.service-type-badge-card {
  padding: 13px 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-type-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.st-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--ink);
}

.st-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.service-type-badge-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* Grid de Acesso Rápido */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px 20px;
}

@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: 1fr !important;
  }
}

.quick-grid a {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.quick-grid a:hover {
  border-color: var(--blue);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-grid b {
  font-size: 13px;
  font-weight: 800;
  display: block;
  color: var(--navy);
}

.quick-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}

.blue-bg { background: var(--blue-light); color: var(--blue); }
.orange-bg { background: var(--orange-light); color: var(--orange); }
.green-bg { background: var(--green-light); color: var(--green); }
.purple-bg { background: var(--purple-light); color: var(--purple); }

/* ============================================================== */
/* CATÁLOGO DE PRODUTOS, PEÇAS, FABRICADOS & SERVIÇOS             */
/* ============================================================== */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr !important;
  }
}

.catalog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex !important;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  cursor: pointer;
  text-decoration: none;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.catalog-card h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.catalog-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

.catalog-symbol {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  font-weight: 800;
  transition: transform 0.15s ease;
}

.catalog-card:hover .catalog-symbol {
  transform: scale(1.08);
}

.catalog-card.orange-border { border-top: 3px solid var(--orange); }
.catalog-card.orange-border .catalog-symbol { background: var(--orange-light); color: var(--orange); }

.catalog-card.blue-border { border-top: 3px solid var(--blue); }
.catalog-card.blue-border .catalog-symbol { background: var(--blue-light); color: var(--blue); }

.catalog-card.green-border { border-top: 3px solid var(--green); }
.catalog-card.green-border .catalog-symbol { background: var(--green-light); color: var(--green); }

.catalog-card.purple-border { border-top: 3px solid var(--purple); }
.catalog-card.purple-border .catalog-symbol { background: var(--purple-light); color: var(--purple); }

/* Comentários da OS */
.comment-card {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Ajustes específicos para o bloco financeiro e cards de catálogo ativos */
#bloco-financeiro {
  grid-template-columns: 1fr 1fr !important;
}
@media (max-width: 950px) {
  #bloco-financeiro {
    grid-template-columns: 1fr !important;
  }
}

.catalog-card.active-card {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.3), var(--shadow) !important;
  background: #f8fafc;
}

/* Responsividade Avançada de Modais e Formulários em Qualquer Tamanho de Tela */
.modal-dialog.modal-lg {
  max-width: 860px !important;
}
.modal-dialog {
  display: flex;
  flex-direction: column;
}
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(88vh - 70px);
}
@media (max-width: 680px) {
  .modal {
    padding: 10px;
  }
  .modal-dialog {
    max-width: 100% !important;
    border-radius: 12px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-head {
    padding: 14px 16px;
  }
  .modal-dialog .form-grid, .modal-body.form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
  }
}

/* ============================================================== */
/* INTERRUPTORES TOGGLE & CONFIGURAÇÕES RESPONSIVAS               */
/* ============================================================== */
.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 580px) {
  .setting-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch i {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 28px;
}
.switch i:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.switch input:checked + i {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.switch input:checked + i:before {
  transform: translateX(22px);
}
.switch input:focus + i {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.venda-add-item {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.venda-qtd {
  width: 120px;
}
.venda-resumo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.venda-resumo > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}
.venda-resumo strong {
  color: var(--navy);
  font-size: 16px;
}
.venda-resumo .venda-total strong {
  color: var(--green);
  font-size: 22px;
}
.venda-panel .table-wrap input {
  padding: 6px 8px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .venda-add-item,
  .venda-resumo {
    align-items: stretch;
    flex-direction: column;
  }
  .venda-qtd {
    width: auto;
  }
}

.os-diagnostico-text {
  padding: 0 22px 20px;
  color: var(--ink-secondary);
  white-space: normal;
  line-height: 1.7;
}

.os-print-sheet,
.venda-print-sheet {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  html, body {
    background: #fff !important;
    color: #111827 !important;
  }

  body * {
    visibility: hidden !important;
  }

  .os-print-sheet,
  .os-print-sheet *,
  .venda-print-sheet,
  .venda-print-sheet * {
    visibility: visible !important;
  }

  .os-print-sheet,
  .venda-print-sheet {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    font: 10pt/1.4 Arial, sans-serif;
    color: #111827;
  }

  .os-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0f2b3f;
  }

  .os-print-header h1 {
    margin: 0 0 4px;
    color: #0f2b3f;
    font-size: 19pt;
  }

  .os-print-header p {
    margin: 2px 0;
    color: #475569;
    font-size: 8.5pt;
  }

  .os-print-title {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: #0f2b3f;
    text-align: right;
  }

  .os-print-title strong {
    font-size: 11pt;
    letter-spacing: .5px;
  }

  .os-print-title span {
    font-size: 16pt;
    font-weight: 800;
  }

  .os-print-title small {
    color: #64748b;
  }

  .os-print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px 16px;
    padding: 14px 0;
    border-bottom: 1px solid #cbd5e1;
  }

  .os-print-grid div {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .os-print-grid b {
    color: #64748b;
    font-size: 8pt;
    text-transform: uppercase;
  }

  .os-print-section {
    margin-top: 16px;
  }

  .os-print-section h2 {
    margin: 0 0 7px;
    padding-bottom: 4px;
    border-bottom: 1px solid #cbd5e1;
    color: #0f2b3f;
    font-size: 11pt;
  }

  .os-print-description {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    white-space: normal;
  }

  .os-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
  }

  .os-print-table th,
  .os-print-table td {
    padding: 6px 7px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
  }

  .os-print-table th {
    background: #f1f5f9 !important;
    color: #334155;
    font-size: 7.5pt;
    text-transform: uppercase;
  }

  .os-print-table th:nth-last-child(-n+2),
  .os-print-table td:nth-last-child(-n+2) {
    text-align: right;
  }

  .os-print-muted {
    color: #64748b;
    font-style: italic;
  }

  .os-print-totals {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px solid #94a3b8;
  }

  .os-print-totals div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .os-print-totals span {
    color: #64748b;
    font-size: 8pt;
  }

  .os-print-total b {
    color: #0f2b3f;
    font-size: 13pt;
  }

  .os-print-signatures {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    margin-top: 58px;
  }

  .os-print-signatures div {
    width: 42%;
    padding-top: 7px;
    border-top: 1px solid #334155;
    color: #475569;
    font-size: 8.5pt;
    text-align: center;
  }
}
