/* style.css - Design System e Estilos para o Costura Facção */

/* VARIÁVEIS DO TEMA (Modern Dark Premium com Gradientes) */
:root {
  --bg-color: #0b0c14;
  --bg-card: rgba(22, 24, 45, 0.7);
  --bg-card-hover: rgba(30, 33, 62, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #8b5cf6;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #ec4899 100%);
  --secondary: #374151;
  --secondary-hover: #4b5563;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-main: 'Outfit', sans-serif;
  --border-radius: 16px;
}

/* RESET E CONFIGURAÇÕES GERAIS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--border-focus);
  text-decoration: underline;
}

/* COMPARTILHAMENTO DE GLASSMORPHISM */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
}

/* TELA (SCREEN) E GERENCIADOR DE ESTADO */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  z-index: 20;
}

/* TELA DE CARREGAMENTO */
#screen-loading {
  background-color: var(--bg-color);
  justify-content: center;
  align-items: center;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* BOTÕES E ELEMENTOS INTERATIVOS */
.btn {
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary-grad);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn-hidden {
  display: none !important;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--border-focus);
}

.icon-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* FORMULÁRIOS E INPUTS */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 16px 12px 46px;
  font-size: 15px;
  font-family: var(--font-main);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  outline: none;
  transition: all var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.input-group select {
  appearance: none;
  cursor: pointer;
}

.input-group select option {
  background-color: #0b0c14;
  color: var(--text-primary);
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* TOAST (NOTIFICAÇÕES FLUTUANTES) */
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 12px;
  background-color: rgba(17, 18, 30, 0.95);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.toast-error {
  border-color: var(--danger);
}

#toast.toast-success {
  border-color: var(--success);
}

/* CARD DE AUTENTICAÇÃO (LOGIN/CADASTRO) */
#screen-login, #screen-register, #screen-blocked {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 45%),
              radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12) 0%, rgba(0, 0, 0, 0) 50%),
              var(--bg-color);
  justify-content: center;
  align-items: center;
}

.auth-card, .blocked-card {
  width: 100%;
  max-width: 400px;
  padding: 35px 30px;
}

.auth-header, .blocked-card {
  text-align: center;
}

.auth-logo, .blocked-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px auto;
  background: var(--primary-grad);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.auth-logo span, .blocked-icon span {
  font-size: 32px;
  color: #ffffff;
}

.auth-header h2, .blocked-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.auth-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* TELA DE BLOQUEIO / TRIAL EXPIRADO */
.blocked-card {
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.08);
}

.blocked-icon {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.blocked-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.user-info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
  word-break: break-all;
}

.user-info-box strong {
  color: var(--text-secondary);
}

.activation-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activation-options hr {
  border: none;
  border-top: 1px solid var(--border-color);
}

.activation-options p {
  font-size: 13px;
  color: var(--text-muted);
}

/* APP WRAPPER E CORPO DO APLICATIVO */
#screen-app {
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CADEÇALHO DO APLICATIVO (TOPBAR) */
.app-header {
  height: 60px;
  background-color: rgba(11, 12, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  color: var(--primary);
  font-size: 24px;
}

.app-title {
  font-weight: 700;
  font-size: 18px;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CONTEÚDO PRINCIPAL E TABS */
.app-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 20px 85px 20px; /* Margem inferior para o menu */
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(0, 0, 0, 0) 60%), var(--bg-color);
}

.app-tab {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}

.app-tab.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BARRA DE NAVEGAÇÃO INFERIOR */
.app-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: rgba(15, 16, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  width: 18%;
  gap: 3px;
  transition: color var(--transition-fast);
}

.nav-item span.material-icons-round {
  font-size: 22px;
  transition: transform var(--transition-fast);
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active span.material-icons-round {
  transform: translateY(-2px);
  color: var(--primary);
}

/* CARDS E CONTEÚDO */
.card {
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.card-body {
  padding: 20px;
}

/* DASHBOARD: STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card.purple .stat-icon {
  background-color: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.stat-card.indigo .stat-icon {
  background-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.stat-icon span {
  font-size: 24px;
}

.stat-info h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0;
  letter-spacing: -0.5px;
}

.stat-info small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* GRÁFICO SVG SIMPLES */
.chart-container {
  display: flex;
  height: 140px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 15px 5px 5px 5px;
  width: 100%;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 26px;
  background: var(--primary-grad);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  min-height: 2px;
}

.chart-bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chart-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* TABELAS */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.table th {
  padding: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* FLOATING ACTION BUTTON (FAB) */
.fab {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  transition: all var(--transition-fast);
}

.fab:hover {
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.fab span {
  font-size: 28px;
}

/* TOTAL PREVIEW DO LANÇAMENTO */
.total-preview-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.total-preview-box span {
  font-size: 14px;
  color: var(--text-secondary);
}

.total-preview-box strong {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

/* LISTA DE CLIENTES */
.clients-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: background-color var(--transition-fast);
}

.client-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.client-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.client-info p {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.client-actions {
  display: flex;
  gap: 8px;
}

.client-actions .icon-button.edit {
  color: #818cf8;
}

.client-actions .icon-button.delete {
  color: #f87171;
}

.client-actions .icon-button.whatsapp {
  color: #34d399;
}

/* TELA DE PERFIL */
.profile-card {
  text-align: center;
  padding-bottom: 30px;
}

.profile-header {
  padding: 30px 20px 20px 20px;
  border-bottom: 1px solid var(--border-color);
}

.avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  box-shadow: var(--shadow-sm);
}

.avatar-large span {
  font-size: 45px;
  color: #ffffff;
}

.profile-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.profile-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon {
  color: var(--text-muted);
  font-size: 24px;
}

.info-content label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.info-content span {
  font-size: 15px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.trial {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.code-text {
  font-family: monospace;
  font-weight: bold !important;
  color: #a78bfa;
}

.activation-section {
  text-align: left;
}

.activation-section hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.activation-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.activation-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.activation-section form {
  display: flex;
  gap: 10px;
}

/* RELATÓRIOS E AÇÕES */
.report-paper {
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.report-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.report-meta h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.report-meta p {
  font-size: 13px;
  color: var(--text-secondary);
}

.report-totals {
  display: flex;
  gap: 15px;
}

.total-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.total-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.total-item .value {
  font-size: 16px;
  font-weight: 600;
}

.total-item.highlight .value {
  color: var(--success);
  font-size: 18px;
  font-weight: 700;
}

.report-actions-panel {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.report-actions-panel button {
  flex: 1;
}

/* ESCONDIDOS NA TELA (SÓ PARA IMPRESSÃO) */
.print-header, .print-footer {
  display: none;
}

/* RESPONSIVIDADE E DESKTOP SIDEBAR */
@media (min-width: 768px) {
  body {
    flex-direction: row;
  }
  
  #screen-app {
    flex-direction: row;
    width: 100%;
  }

  .app-header {
    display: none; /* Em desktop a navegação lateral substitui */
  }

  /* Barra de Navegação como Barra Lateral */
  .app-nav-bar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 15px;
    border-top: none;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    gap: 10px;
  }

  /* Adicionar Logo no topo do menu lateral */
  .app-nav-bar::before {
    content: "Costura Facção";
    font-weight: 800;
    font-size: 20px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
    display: block;
  }

  .nav-item {
    width: 100%;
    height: 50px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 20px;
    border-radius: 12px;
    gap: 15px;
  }

  .nav-item.active {
    background-color: rgba(99, 102, 241, 0.08);
  }

  .nav-item.active span.material-icons-round {
    transform: none;
  }

  .nav-label {
    font-size: 15px;
  }

  .app-content {
    padding: 40px;
  }

  .fab {
    bottom: 40px;
    right: 40px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* LAYOUT DE IMPRESSÃO (A4) */
@media print {
  /* Ocultar elementos da interface */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    height: auto;
  }

  .no-print, 
  .app-nav-bar, 
  .app-header, 
  .fab, 
  #toast, 
  #client-form-container,
  .report-actions-panel,
  .table td.no-print,
  .table th.no-print {
    display: none !important;
  }

  #screen-app {
    display: block;
    height: auto;
  }

  .app-content {
    background: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Formatar Card de Relatório como Folha de Papel A4 */
  .report-paper {
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }

  /* Cabeçalho de Impressão */
  .print-header {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .print-header h2 {
    font-size: 20pt;
    font-weight: bold;
    color: #000000;
  }

  .print-header p {
    font-size: 10pt;
    color: #555555;
    margin-top: 5px;
  }

  .report-header {
    border-bottom: 1px solid #000000 !important;
    padding: 10px 0 !important;
    color: #000000 !important;
  }

  .report-meta h3 {
    color: #000000 !important;
    font-size: 14pt;
  }

  .total-item {
    color: #000000 !important;
  }

  .total-item .value, 
  .total-item.highlight .value {
    color: #000000 !important;
    font-size: 14pt !important;
  }

  /* Tabela de Impressão */
  .table {
    color: #000000 !important;
    border-collapse: collapse;
  }

  .table th {
    border-bottom: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: bold;
  }

  .table td {
    border-bottom: 1px solid #dddddd !important;
    color: #000000 !important;
    padding: 8px 6px !important;
  }

  /* Bloco de Assinaturas (Rodapé de Impressão) */
  .print-footer {
    display: flex !important;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
  }

    .signature-line {
      width: 45%;
      text-align: center;
      border-top: 1px solid #000000;
      padding-top: 8px;
      font-size: 11pt;
    }
  }
}

/* ESTILOS PARA CAPTURA E PREVIEW DA FOTO DA OS */
.photo-capture-wrapper {
  margin-top: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

#photo-preview-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  width: 100%;
  max-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#photo-preview-container.photo-preview-hidden {
  display: none !important;
}

#photo-preview-container img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.btn-remove-photo {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(239, 68, 68, 0.85) !important;
  color: white !important;
  border: none !important;
}
.btn-remove-photo:hover {
  background-color: var(--danger) !important;
}

/* BADGES DE STATUS DE PAGAMENTO */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  user-select: none;
}

.badge-status.pending {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-status.pending:hover {
  background-color: rgba(245, 158, 11, 0.22);
}

.badge-status.paid {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-status.paid:hover {
  background-color: rgba(16, 185, 129, 0.22);
}

/* BOTÃO DA FOTO DA OS NA TABELA */
.btn-os-photo {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.btn-os-photo:hover {
  color: var(--border-focus);
  transform: scale(1.1);
}
.btn-os-photo.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* LIGHTBOX PARA VISUALIZAR A FOTO DA OS */
.os-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.os-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.os-lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.os-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.os-lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
