/* ==========================================================================
   SFARMART24 - ADMIN DASHBOARD STYLES
   ========================================================================== */

:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #dcfce7;
  --primary-glow: rgba(21, 128, 61, 0.2);

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff;

  --wa-green: #25D366;
  --wa-green-hover: #1eb956;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --danger: #ef4444;
  --danger-light: #fee2e2;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: #f1f5f9;
  color: var(--slate-800);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP ADMIN HEADER
   ========================================================================== */

.admin-header {
  background: var(--slate-900);
  color: var(--white);
  border-bottom: 1px solid var(--slate-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-logo {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px;
}

.brand-headings {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.admin-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--slate-400);
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Status Indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-indicator.offline .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-label {
  color: var(--slate-200);
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-400);
  background: rgba(0,0,0,0.25);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-open-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.btn-open-portal:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #38bdf8;
}

.btn-header-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-header-refresh:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   MAIN LAYOUT & TITLE BAR
   ========================================================================== */

.admin-main {
  max-width: 1400px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--slate-600);
}

.header-action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: all 0.2s;
}

.btn-action-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* ==========================================================================
   KPI CARDS GRID
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-green .kpi-icon-box { background: #dcfce7; color: #15803d; }
.card-blue .kpi-icon-box { background: #dbeafe; color: #2563eb; }
.card-amber .kpi-icon-box { background: #fef3c7; color: #d97706; }
.card-purple .kpi-icon-box { background: #f3e8ff; color: #7e22ce; }

.kpi-details {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.15rem 0;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* ==========================================================================
   TABLE CARD & SEARCH TOOLBAR
   ========================================================================== */

.table-container-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.table-toolbar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  min-width: 260px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-box svg {
  color: var(--slate-400);
  margin-right: 0.5rem;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--slate-800);
  outline: none;
}

.btn-clear-search {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0 0.25rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--slate-200);
  background: #ffffff;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: var(--accent-blue);
}

.table-info-strip {
  padding: 0.65rem 1.5rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-600);
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Switch toggle */
.switch-label {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--slate-300);
  transition: .2s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.switch-label input:checked + .switch-slider {
  background-color: var(--primary);
}

.switch-label input:checked + .switch-slider:before {
  transform: translateX(14px);
}

/* ==========================================================================
   SUBMISSIONS DATA TABLE
   ========================================================================== */

.table-responsive-wrapper {
  overflow-x: auto;
  width: 100%;
}

.submissions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.submissions-table th {
  background: #f8fafc;
  color: var(--slate-600);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1.5px solid var(--slate-200);
  white-space: nowrap;
}

.submissions-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
  color: var(--slate-800);
}

.submissions-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Table cells styling */
.id-cell {
  display: flex;
  flex-direction: column;
}

.reg-id-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.reg-time-sub {
  font-size: 0.72rem;
  color: var(--slate-400);
}

.name-cell {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.95rem;
}

/* Contact Cell & Action Buttons */
.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-row-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-whatsapp-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp-sm:hover {
  background: var(--wa-green);
  color: #ffffff;
}

.btn-call-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-decoration: none;
}

.btn-call-sm:hover {
  background: var(--slate-200);
}

.contact-email-link {
  font-size: 0.78rem;
  color: var(--slate-500);
  text-decoration: none;
}

.contact-email-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Address cell */
.address-cell {
  max-width: 220px;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.35;
  white-space: normal;
}

/* Payment cell */
.payment-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.payment-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.pill-upi {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pill-utr {
  background: #bbf7d0;
  color: #14532d;
  border: 1px solid #86efac;
}

.pill-screenshot {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.pill-offline {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.pill-razorpay {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.payment-ref-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  width: fit-content;
}

/* Amount cell */
.amount-cell {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

/* Status badge */
.badge-status-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Actions cell */
.actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-icon:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-action-icon.btn-delete:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* Loading & Empty State */
.loading-cell {
  text-align: center;
  padding: 4rem 1rem !important;
  color: var(--slate-500);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}

.empty-desc {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

.btn-fill-form-now {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

/* ==========================================================================
   MODAL STYLES (DETAIL & MANUAL ENTRY)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modal-fade 0.25s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
}

.modal-body {
  padding: 1.75rem;
}

/* Receipt Print Area inside Modal */
.receipt-print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed var(--slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.print-logo {
  height: 40px;
  width: auto;
}

.print-org-info {
  text-align: right;
}

.print-org-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.print-doc-name {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item.full-width {
  grid-column: span 2;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.detail-val {
  font-size: 0.95rem;
  color: var(--slate-800);
  font-weight: 600;
}

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary) !important; }
.text-green { color: #16a34a !important; }
.bg-highlight {
  background: var(--slate-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-whatsapp-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: #25D366;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-whatsapp-modal:hover {
  background: #1eb956;
}

.btn-print-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: var(--slate-900);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-print-modal:hover {
  background: var(--slate-800);
}

/* Manual Entry Form Styles */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-col {
  flex: 1;
}

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

.form-lbl {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.form-ctrl {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-ctrl:focus {
  border-color: var(--accent-blue);
}

.btn-primary-modal {
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-secondary-modal {
  padding: 0.65rem 1.15rem;
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--slate-900);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2000;
  animation: toast-pop 0.25s ease-out;
}

@keyframes toast-pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* ==========================================================================
   RESPONSIVE & PRINT
   ========================================================================== */

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  .detail-item.full-width {
    grid-column: span 1;
  }
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #detailModal, #detailModal * {
    visibility: visible;
  }
  #detailModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 0;
  }
  .modal-footer, .btn-close-modal {
    display: none !important;
  }
}
