/* ==========================================================================
   e-Sarpras Al-Ihsan | Modern Mobile-First UI/UX Design System
   ========================================================================== */

:root {
  /* Color Palette - Emerald Islamic Foundation & Modern Slate */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-dark: #064e3b;

  --secondary: #2563eb;
  --secondary-light: #eff6ff;

  --amber: #d97706;
  --amber-light: #fef3c7;

  --rose: #e11d48;
  --rose-light: #ffe4e6;

  --indigo: #4f46e5;
  --indigo-light: #e0e7ff;

  --slate-900: #0f172a;
  --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;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
  --shadow-app-container: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #0f172a;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--slate-900);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}

/* Mobile-First Main Wrapper Container */
.mobile-app-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-app-container);
  overflow-x: hidden;
}

@media (min-width: 640px) {
  body {
    padding: 24px 0;
  }
  .mobile-app-wrapper {
    min-height: 880px;
    height: 880px;
    border-radius: 36px;
    border: 8px solid #1e293b;
    overflow: hidden;
  }
}

/* Top Role Simulator Switcher Bar */
.role-simulator-bar {
  background: #064e3b;
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.simulator-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.role-selector-select {
  background: #0f172a;
  color: #fef08a;
  border: 1px solid #059669;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

/* App Header */
.app-header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-subtitle {
  font-size: 0.72rem;
  opacity: 0.85;
  display: block;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: var(--radius-full);
  border: 1.5px solid #047857;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #f59e0b;
  color: #1e293b;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Persona Pill Banner */
.persona-banner {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  backdrop-filter: blur(4px);
}
.persona-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.persona-desc {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1.3;
}

/* Scrollable Main Area */
.app-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 160px;
}

.view-section {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}
.view-section.active {
  display: block;
}

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

/* Cards & Layout Containers */
.card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid var(--primary);
}
.greeting-subtitle {
  font-size: 0.75rem;
  color: var(--slate-500);
  display: block;
}
.greeting-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}
.greeting-desc {
  font-size: 0.73rem;
  color: var(--slate-600);
  margin-top: 2px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-emerald { background: var(--primary); color: #ffffff; }
.btn-indigo { background: var(--indigo); color: #ffffff; }
.btn-amber { background: var(--amber); color: #ffffff; }
.btn-secondary { background: var(--slate-200); color: var(--slate-700); }
.btn-secondary:hover { background: var(--slate-300); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }

.btn-icon-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-icon-only {
  background: var(--slate-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: var(--slate-600);
  cursor: pointer;
}
.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
}

/* Metrics KPI 2x2 Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.metric-pending .metric-icon { background: var(--amber-light); color: var(--amber); }
.metric-progress .metric-icon { background: var(--secondary-light); color: var(--secondary); }
.metric-procurement .metric-icon { background: #fae8ff; color: #c026d3; }
.metric-completed .metric-icon { background: var(--primary-light); color: var(--primary); }

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
  display: block;
}
.metric-label {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-top: 2px;
}

/* Section Titles */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  margin-top: 8px;
}
.section-title-bar h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 6px;
}
.link-see-all {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

/* Cards Stream & Ticket Item Cards */
.cards-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.ticket-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ticket-id-tag {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-pending { background: var(--amber-light); color: #b45309; }
.badge-assigned { background: var(--indigo-light); color: var(--indigo); }
.badge-progress { background: var(--secondary-light); color: #1d4ed8; }
.badge-procurement { background: #fae8ff; color: #a21caf; border: 1px dashed #d8b4fe; }
.badge-verification { background: #ffedd5; color: #c2410c; }
.badge-completed { background: var(--primary-light); color: var(--primary-hover); }
.badge-info { background: var(--slate-200); color: var(--slate-700); }

.badge-urgency-darurat { background: var(--rose-light); color: var(--rose); }
.badge-urgency-tinggi { background: #ffedd5; color: #ea580c; }
.badge-urgency-sedang { background: var(--amber-light); color: var(--amber); }
.badge-urgency-rendah { background: var(--slate-100); color: var(--slate-600); }

.ticket-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ticket-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-bottom: 10px;
}

.ticket-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--slate-600);
}
.tech-tag {
  font-weight: 700;
  color: var(--primary);
}

/* Filter Sticky Box */
.filter-sticky-box {
  margin-bottom: 14px;
}
.search-box {
  position: relative;
  margin-bottom: 10px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 0.9rem;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.filter-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-pills-bar::-webkit-scrollbar { display: none; }
.pill-btn {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Detail View Layout & Stepper Timeline */
.detail-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.detail-code-badge {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: monospace;
  background: var(--slate-200);
  color: var(--slate-800);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.stepper-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}
.stepper-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--slate-200);
}
.step-item {
  position: relative;
}
.step-node {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}
.step-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--slate-900);
  display: block;
}
.step-subtext {
  font-size: 0.73rem;
  color: var(--slate-500);
  display: block;
  margin-top: 1px;
}

/* Photo Comparison Visualizer Box */
.photo-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.photo-card-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid var(--slate-200);
}
.photo-card-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Form Photo Upload Preview Styling (Mobile-Fit Compact Height) */
.upload-dropzone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--slate-50);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.dropzone-icon { font-size: 1.6rem; }

.preview-box {
  margin-top: 10px;
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  background: #000;
}
.preview-box img {
  width: 100%;
  height: 160px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.preview-overlay-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.preview-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.tag-before { background: rgba(225, 29, 72, 0.9); }
.tag-after { background: rgba(5, 150, 105, 0.9); }

.btn-change-photo {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.btn-change-photo:hover {
  background: var(--slate-900);
}

/* Sub-Ticket Linked Procurement Card */
.linked-proc-card {
  background: #fdf4ff;
  border: 1.5px dashed #c026d3;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
}
.linked-proc-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #701a75;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Reporting Module Data Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 10px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.data-table th {
  background: var(--slate-100);
  color: var(--slate-900);
  padding: 10px;
  font-weight: 800;
  border-bottom: 2px solid var(--slate-200);
  white-space: nowrap;
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.data-table tr:hover { background: var(--slate-50); }

.export-btn-group {
  display: flex;
  gap: 6px;
}
.card-subtitle {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
}
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FLOATING STICKY NAVIGATION & ACTIONS */
.context-action-bar {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  z-index: 990;
  box-shadow: var(--shadow-lg);
}
.context-action-bar button {
  flex: 1;
}

.bottom-tab-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  height: 62px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

@media (max-width: 639px) {
  .bottom-tab-bar {
    bottom: 12px;
    width: calc(100% - 24px);
  }
  .context-action-bar {
    bottom: 84px;
    width: calc(100% - 24px);
  }
}

.tab-item {
  background: none;
  border: none;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 3px;
  cursor: pointer;
  width: 20%;
  transition: var(--transition);
}
.tab-item i { font-size: 1.15rem; }
.tab-item.active { color: var(--primary); }

.fab-tab {
  position: relative;
  top: -12px;
}
.fab-button {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
  border: 3px solid #ffffff;
  transition: var(--transition);
}
.fab-tab:hover .fab-button { transform: scale(1.08); }

/* Modals System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}
.modal-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--slate-400);
  cursor: pointer;
}

.form-group {
  margin-bottom: 14px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  background: #ffffff;
  transition: var(--transition);
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.modal-footer button { flex: 1; }

.info-callout {
  background: var(--primary-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.78rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Toast Container */
.toast-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  background: var(--slate-900);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.25s ease;
  pointer-events: auto;
}
.toast-success { border-left: 4px solid var(--primary); }
.toast-info { border-left: 4px solid var(--secondary); }

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

.hidden { display: none !important; }
.text-amber { color: var(--amber); }
.text-emerald { color: var(--primary); }
.text-indigo { color: var(--indigo); }
.font-mono { font-family: monospace; }

/* Printable PDF View Overlay */
.print-only { display: none; }
@media print {
  body { background: #fff !important; padding: 0 !important; }
  .no-print, .role-simulator-bar, .app-header, .bottom-tab-bar, .context-action-bar, .modal-backdrop { display: none !important; }
  .mobile-app-wrapper { max-width: 100% !important; border: none !important; box-shadow: none !important; min-height: auto !important; }
  .app-main-content { display: none !important; }
  .print-only { display: block !important; padding: 20px; font-family: serif, sans-serif; }
  .print-header { text-align: center; margin-bottom: 12px; }
  .print-header h2 { font-size: 14pt; margin-bottom: 4px; }
  .print-header h3 { font-size: 11pt; color: #444; }
  .print-summary { display: flex; justify-content: space-around; border: 1px solid #000; padding: 10px; margin: 16px 0; font-size: 10pt; }
  .print-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 9pt; }
  .print-table th, .print-table td { border: 1px solid #000; padding: 6px; }
  .print-table th { background: #eee; }
  .print-signatures { display: flex; justify-content: space-between; margin-top: 40px; text-align: center; font-size: 10pt; padding: 0 40px; }
}
