/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --os-bg: #1a2a5e;
  --os-bg2: #142050;
  --taskbar: #0d1a3a;
  --taskbar-border: #2a3f6e;
  --win-chrome: #1e3060;
  --win-title: #0d1a3a;
  --win-body: #f0ede8;
  --win-border: #3a5090;
  --tab-active: #fff;
  --tab-inactive: #d8d2c8;
  --accent: #2050c0;
  --accent2: #1a40a0;
  --gold: #c9a84c;
  --text-dark: #1a1a2e;
  --text-mid: #444;
  --text-light: #888;
  --danger: #c0392b;
  --success: #1a7a4a;
  --font: 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;
}

body {
  font-family: var(--font);
  background: #000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ddd; }
::-webkit-scrollbar-thumb { background: #aaa; border-radius: 4px; }

/* ===========================
   LOGIN
=========================== */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a2a6e 0%, #0a0e2a 70%);
  position: relative;
  overflow: hidden;
}

.login-bg-seal {
  position: absolute;
  inset: 0;
  background-image: url('/assets/lapd_logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  opacity: 0.05;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 2;
  background: rgba(10, 16, 40, 0.92);
  border: 1px solid rgba(100, 140, 220, 0.3);
  border-radius: 8px;
  padding: 40px 48px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 0 60px rgba(30, 70, 200, 0.3), 0 20px 80px rgba(0,0,0,0.8);
  text-align: center;
  animation: loginFade 0.6s ease;
}

@keyframes loginFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(100,160,255,0.5));
  margin-bottom: 16px;
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #eef3ff;
  font-family: var(--font-mono);
}

.login-subtitle {
  font-size: 11px;
  letter-spacing: 5px;
  color: #6a9edf;
  margin-top: 4px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.login-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(100,150,255,0.5), transparent);
  margin: 16px 0 24px;
}

.login-field {
  margin-bottom: 16px;
  text-align: left;
}

.login-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6a7a9a;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(100,150,255,0.25);
  border-radius: 4px;
  padding: 11px 14px;
  color: #eef3ff;
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input:focus {
  border-color: rgba(100,150,255,0.7);
  box-shadow: 0 0 0 2px rgba(50,100,200,0.2);
}

.login-error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  color: #e74c3c;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: left;
}

.login-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px;
  font-size: 12px;
  letter-spacing: 3px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.login-btn:hover {
  background: #1640a8;
  box-shadow: 0 0 20px rgba(50,100,200,0.4);
}

/* ===========================
   DESKTOP
=========================== */
#desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.desktop-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(30,60,150,0.6) 0%, transparent 65%),
    var(--os-bg);
  background-image: url('/assets/lapd_logo.png');
  background-repeat: no-repeat;
  background-position: center 44%;
  background-size: 52%;
  filter: brightness(0.55) saturate(0.7);
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 80px;
  text-align: center;
}

.desktop-icon .icon-folder {
  width: 60px;
  height: 52px;
  background: linear-gradient(160deg, #f5c842 0%, #e8a820 40%, #c8881a 100%);
  border-radius: 2px 8px 4px 4px;
  position: relative;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.12s, filter 0.12s;
}

.desktop-icon .icon-folder::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 28px;
  height: 10px;
  background: linear-gradient(160deg, #f5c842 0%, #e8a820 100%);
  border-radius: 3px 5px 0 0;
}

.desktop-icon:hover .icon-folder {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.desktop-icon:active .icon-folder {
  transform: translateY(0) scale(0.96);
}

.desktop-icon span {
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.8);
  font-weight: 600;
  line-height: 1.3;
}

/* ===== TASKBAR ===== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--taskbar);
  border-top: 1px solid var(--taskbar-border);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
  z-index: 1000;
}

.taskbar-start {
  background: linear-gradient(180deg, #2a5ccc 0%, #1840a0 100%);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  height: 30px;
  white-space: nowrap;
}

.taskbar-start:hover { background: linear-gradient(180deg, #3a6cdc 0%, #2450b8 100%); }

.taskbar-windows {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow-x: auto;
}

.taskbar-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  color: #dde;
  font-size: 11px;
  padding: 3px 12px;
  cursor: pointer;
  white-space: nowrap;
  height: 28px;
}

.taskbar-btn:hover { background: rgba(255,255,255,0.2); }
.taskbar-btn.active { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.3); }

.taskbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 11px;
  color: #aab;
  white-space: nowrap;
}

.taskbar-clock { font-family: var(--font-mono); }

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 240px;
  background: var(--taskbar);
  border: 1px solid var(--taskbar-border);
  border-radius: 0 6px 0 0;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 4px -4px 20px rgba(0,0,0,0.5);
}

.start-menu-header {
  background: linear-gradient(135deg, #1840a8, #0d1a50);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.start-menu-header span {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.start-menu-header small {
  color: #89a0cc;
  font-size: 11px;
}

.start-menu-items {
  padding: 6px 0;
}

.start-menu-items button {
  width: 100%;
  background: none;
  border: none;
  color: #ccd;
  padding: 9px 16px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.start-menu-items button:hover { background: rgba(255,255,255,0.1); }
.start-divider { height: 1px; background: var(--taskbar-border); margin: 4px 0; }
.start-logout { color: #e87070 !important; }

/* ===========================
   OS WINDOWS
=========================== */
.os-window {
  position: fixed;
  background: var(--win-body);
  border: 1px solid var(--win-border);
  border-radius: 4px 4px 3px 3px;
  box-shadow: 4px 6px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 100;
  min-width: 400px;
  min-height: 200px;
  overflow: hidden;
}

.os-window.active { z-index: 200; }

.win-titlebar {
  background: linear-gradient(180deg, var(--win-chrome) 0%, var(--win-title) 100%);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: grab;
  flex-shrink: 0;
}

.win-titlebar:active { cursor: grabbing; }

.win-title {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.win-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.win-btn {
  width: 22px;
  height: 20px;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-min { background: rgba(255,255,255,0.15); color: #fff; }
.win-min:hover { background: rgba(255,255,255,0.3); }
.win-close { background: rgba(180,50,50,0.6); color: #fff; }
.win-close:hover { background: #c0392b; }

/* Tabs */
.win-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  background: #d8d4ce;
  border-bottom: 2px solid var(--accent);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.win-tab {
  background: var(--tab-inactive);
  border: 1px solid #aaa;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-mid);
  transition: background 0.1s;
  white-space: nowrap;
}

.win-tab.active {
  background: var(--tab-active);
  color: var(--text-dark);
  font-weight: 600;
  border-color: #999;
  position: relative;
  bottom: -1px;
}

.win-tab:hover:not(.active) { background: #e8e4e0; }

/* Tab content */
.win-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.win-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.win-tab-content.active { display: flex; flex-direction: column; }

/* Toolbar */
.tab-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
  flex-shrink: 0;
}

.search-box {
  flex: 1;
  max-width: 300px;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.search-box:focus { border-color: var(--accent); }

.tb-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.tb-btn:hover { background: var(--accent2); }

/* ===========================
   WIN TABLE
=========================== */
.win-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border: 1px solid #ccc;
}

.win-table thead tr {
  background: linear-gradient(180deg, #e8e4e0 0%, #d8d4d0 100%);
}

.win-table th {
  padding: 7px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid #bbb;
  border-right: 1px solid #ddd;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.win-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #eee;
  color: var(--text-dark);
  vertical-align: middle;
}

.win-table tbody tr:nth-child(even) { background: #f7f5f2; }
.win-table tbody tr:hover { background: #dce8ff; }

.win-table .empty-row td {
  text-align: center;
  color: var(--text-light);
  padding: 24px;
  font-style: italic;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-active { background: #d4f4e2; color: #1a6b40; border: 1px solid #8bd4aa; }
.badge-closed { background: #e8e8e8; color: #666; border: 1px solid #bbb; }
.badge-pending { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-issued { background: #cfe2ff; color: #084298; border: 1px solid #9ec5fe; }
.badge-executed { background: #d4f4e2; color: #1a6b40; border: 1px solid #8bd4aa; }
.badge-cancelled { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* Action buttons in table */
.btn-tbl {
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  border: 1px solid #aaa;
  border-radius: 2px;
  color: var(--text-dark);
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-right: 2px;
}

.btn-tbl:hover { background: linear-gradient(180deg, #e8e8ff 0%, #d0d0f0 100%); border-color: var(--accent); }
.btn-tbl.danger:hover { background: linear-gradient(180deg, #ffe8e8 0%, #f0d0d0 100%); border-color: var(--danger); color: var(--danger); }

/* ===========================
   FORM INSIDE WINDOW
=========================== */
.form-win {
  background: #f5f2ee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.form-row input, .form-row select {
  flex: 1;
  min-width: 140px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 140px;
  margin-bottom: 10px;
}

.form-group.full { flex: 100%; min-width: 100%; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-win input,
.form-win select,
.form-win textarea {
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: var(--font);
  outline: none;
  background: #fff;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(32,80,192,0.15);
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.btn-save {
  background: linear-gradient(180deg, #2a60cc 0%, #1840a0 100%);
  color: #fff;
  border: 1px solid #1030a0;
  border-radius: 3px;
  padding: 7px 18px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn-save:hover { background: linear-gradient(180deg, #3070dc 0%, #2050b8 100%); }

.btn-cancel {
  background: linear-gradient(180deg, #f8f8f8 0%, #e0e0e0 100%);
  color: var(--text-mid);
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
}

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

/* Report form */
.report-form {
  background: #f5f2ee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 16px;
}

.report-form h3 {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
  background: #fff;
  margin-bottom: 8px;
}

.report-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
  text-transform: uppercase;
}

/* Bureau specific */
.bureau-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  gap: 12px;
}

.bureau-inicio-icon { font-size: 56px; }

.bureau-inicio h2 { font-size: 18px; color: var(--text-mid); }

.bureau-form-inner {
  margin-top: 12px;
  border-top: 2px solid var(--accent);
}

.planilha-section h3 {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
}

.planilha-section .form-row input {
  flex: 1;
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.ev-suspeitos-section label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ev-suspeitos-section input {
  flex: 1;
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
}

/* Perm warning */
.perm-warn {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 3px;
  margin-top: 8px;
}

.cred-section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding: 5px 8px;
  background: rgba(32,80,192,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

/* ===========================
   DETAIL MODAL
=========================== */
.detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.detail-modal-box {
  background: var(--win-body);
  border: 1px solid var(--win-border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  width: 500px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

.detail-close:hover { color: var(--danger); }

.detail-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.detail-key {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.5px;
}

.detail-val {
  font-size: 13px;
  color: var(--text-dark);
  flex: 1;
}

/* ===========================
   PRINT AREA
=========================== */
#print-area { display: none; }

@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area {
    display: block !important;
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    color: #000;
    background: #fff;
    padding: 20mm;
    width: 210mm;
    margin: 0 auto;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .print-header h1 { font-size: 15pt; font-weight: 900; }
  .print-header h2 { font-size: 12pt; font-weight: 400; }
  .print-header h3 { font-size: 10pt; font-weight: 400; color: #333; }

  .print-section {
    border: 1px solid #888;
    margin-bottom: 10px;
  }

  .print-section-title {
    background: #ccc;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 10pt;
    text-transform: uppercase;
    border-bottom: 1px solid #888;
  }

  .print-section-body { padding: 8px; }

  .print-field {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
  }

  .print-field-label {
    font-weight: 700;
    min-width: 140px;
    font-size: 10pt;
  }

  .print-field-value {
    flex: 1;
    border-bottom: 1px solid #000;
    min-height: 16px;
    font-size: 11pt;
  }

  .print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .print-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

  .print-separator { border: none; border-top: 1px solid #000; margin: 12px 0; }

  .print-signature-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
  }

  .print-signature-line {
    border-top: 1px solid #000;
    padding-top: 4px;
    font-size: 9pt;
    text-align: center;
  }

  .print-ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
  }
  .print-ev-table th, .print-ev-table td {
    border: 1px solid #999;
    padding: 4px 6px;
    text-align: left;
  }
  .print-ev-table th {
    background: #ddd;
    font-weight: bold;
  }
}

/* ===== FOTOS EVIDÊNCIA ===== */
.file-input {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 1px dashed #bbb;
  border-radius: 4px;
  background: #fafafa;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.fotos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.foto-thumb {
  position: relative;
  width: 80px;
  height: 80px;
}

.foto-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.foto-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.detail-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.detail-foto {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.15s;
}

.detail-foto:hover { transform: scale(1.05); }
