/* ===== DESIGN TOKENS ===== */
:root {
  --bg-base:       #0F172A;
  --bg-surface:    #1E293B;
  --bg-elevated:   #253348;
  --accent:        #F59E0B;
  --accent-hover:  #D97706;
  --accent-dim:    rgba(245, 158, 11, 0.12);
  --text-primary:  #F8FAFC;
  --text-secondary:#94A3B8;
  --text-muted:    #64748B;
  --border:        #2D3F55;
  --success:       #10B981;
  --danger:        #EF4444;
  --danger-hover:  #DC2626;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --shadow-md:     0 4px 20px rgba(0,0,0,0.35);
  --sidebar-w:     240px;
  --transition:    0.18s ease;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, button { outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ===== LOADING OVERLAY ===== */
#loading-overlay {
  position: fixed; inset: 0;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
#loading-overlay.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ===== LOGIN PAGE (SPLIT SCREEN) ===== */
.login-split {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- Left panel --- */
.login-left {
  width: 30%;
  flex-shrink: 0;
  background: #0A2463;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 16px;
  overflow: hidden;
}

.login-left-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.login-left-brand {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.login-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.left-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #CC2936;
}

.left-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.left-subtext {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 280px;
}

/* --- Spiderweb spoke layout --- */
.spoke-container {
  position: relative;
  height: 220px;
  width: 100%;
}

.spoke-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.spoke-item {
  position: absolute;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: color 0.5s ease, transform 0.5s ease;
  will-change: transform, color;
  text-align: center;
}

.spoke-item.highlight {
  color: #E31837;
  font-weight: 700;
  transform: translate(-50%, -50%) scale(1.05);
}

.login-left-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* --- Right panel --- */
.login-right {
  flex: 1;
  background: #f5f5f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 48px;
  overflow-y: auto;
}

.login-right-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.login-right-top img {
  height: 72px;
  width: auto;
}

.login-right-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.login-brand-heading {
  font-size: 13px;
  font-weight: 700;
  color: #0A2463;
  margin-bottom: 10px;
}

.login-welcome {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.login-caption {
  font-size: 14px;
  color: #999;
  margin-bottom: 28px;
  line-height: 1.5;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 7px;
}

.field-input {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus {
  border-color: #CC2936;
  box-shadow: 0 0 0 3px rgba(204,41,54,0.08);
}
.field-input::placeholder { color: #ccc; }

.btn-signin {
  width: 100%;
  background: #CC2936;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}
.btn-signin:hover { background: #b3222e; }
.btn-signin:active { transform: scale(0.98); }
.btn-signin:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.forgot-link:hover { color: #666; }

.form-divider {
  border: none;
  border-top: 1px solid #e4e4de;
  margin: 20px 0;
}

.supabase-details summary {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbb;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.supabase-details summary::-webkit-details-marker { display: none; }
.supabase-details summary::before {
  content: '▸';
  font-size: 10px;
  display: inline-block;
  transition: transform 0.15s;
}
.supabase-details[open] summary::before { transform: rotate(90deg); }
.supabase-info {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  border: 1px solid #e4e4de;
}
.supabase-info code {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 11px;
  color: #888;
  word-break: break-all;
}

.error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(204,41,54,0.06);
  border: 1px solid rgba(204,41,54,0.2);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  color: #CC2936;
  margin-top: 12px;
}
.error-msg.visible { display: flex; }
.error-msg svg { flex-shrink: 0; width: 16px; height: 16px; fill: #CC2936; }

/* ===== COMMAND CENTER ===== */
.command-center { margin-top: 24px; }

.command-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.4fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.cc-panel {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc-panel-header { display: flex; flex-direction: column; gap: 3px; }
.cc-panel-title { font-size: 13px; font-weight: 700; color: #0A2463; }
.cc-panel-subtitle { font-size: 11px; color: #9CA3AF; }

/* --- Task Board --- */
.task-input-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.task-text-input {
  flex: 1;
  min-width: 120px;
  height: 32px;
  border: 1px solid #e4e4de;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafaf8;
}
.task-text-input:focus { outline: none; border-color: #0A2463; background: #fff; }

.task-date-input,
.task-project-select {
  height: 32px;
  border: 1px solid #e4e4de;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-family: inherit;
  color: #374151;
  background: #fafaf8;
}
.task-date-input:focus,
.task-project-select:focus { outline: none; border-color: #0A2463; }

.task-add-btn {
  height: 32px;
  padding: 0 14px;
  background: #0A2463;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.task-add-btn:hover { background: #0c2d7a; }

.task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 320px;
  overflow-y: auto;
}

.task-empty {
  text-align: center;
  color: #9CA3AF;
  font-size: 12px;
  padding: 20px 0;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  border-left: 3px solid #e4e4de;
  background: #fafaf8;
}
.task-item.priority-urgent { border-left-color: #CC2936; background: rgba(204,41,54,0.04); }
.task-item.priority-soon   { border-left-color: #F59E0B; background: rgba(245,158,11,0.04); }
.task-item.priority-low    { border-left-color: #22C55E; background: rgba(34,197,94,0.04); }
.task-item.completed       { opacity: 0.45; }

.task-check {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #0A2463;
}

.task-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.task-text {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  word-break: break-word;
}
.task-item.completed .task-text { text-decoration: line-through; color: #9CA3AF; }

.task-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

.task-due { font-size: 10px; color: #9CA3AF; }
.task-due.overdue { color: #CC2936; font-weight: 600; }

.task-project-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  color: #fff;
}
.task-project-tag.starmart      { background: #0A2463; }
.task-project-tag.construction  { background: #F59E0B; }
.task-project-tag.bella-vista   { background: #22C55E; }
.task-project-tag.general       { background: #9CA3AF; }

.task-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #D1D5DB;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.task-delete:hover { color: #CC2936; }

/* --- 30-Day Calendar --- */
.cal-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6B7280;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #f9f9f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  gap: 2px;
}
.cal-day.today { background: #0A2463; }
.cal-day.today .cal-day-num { color: #fff; }

.cal-day-num { font-size: 9px; font-weight: 600; color: #6B7280; line-height: 1; }

.cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot.starmart     { background: #0A2463; }
.cal-dot.construction { background: #F59E0B; }
.cal-dot.bella-vista  { background: #22C55E; }
.cal-dot.general      { background: #9CA3AF; }

/* --- Status Snapshot --- */
.status-list { display: flex; flex-direction: column; gap: 8px; }

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f9f9f6;
  border: 1px solid transparent;
}
.status-item.overdue {
  background: rgba(204,41,54,0.05);
  border-color: rgba(204,41,54,0.18);
}

.status-label { font-size: 12px; font-weight: 500; color: #374151; }
.status-item.overdue .status-label { color: #CC2936; }

.status-count { font-size: 20px; font-weight: 800; color: #0A2463; }
.status-item.overdue .status-count { color: #CC2936; }

.status-overdue-list { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }

.status-overdue-item {
  font-size: 11px;
  color: #CC2936;
  padding: 5px 9px;
  background: rgba(204,41,54,0.05);
  border-radius: 6px;
  border-left: 3px solid #CC2936;
  line-height: 1.4;
}

/* --- Task open button --- */
.task-open-btn {
  background: none;
  border: 1px solid #e4e4de;
  border-radius: 5px;
  color: #0A2463;
  font-size: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}
.task-open-btn:hover { background: #0A2463; color: #fff; border-color: #0A2463; }

/* --- Mini progress bar on task card --- */
.task-progress {
  height: 4px;
  background: #f0f0ea;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 5px;
}
.task-progress-fill {
  height: 100%;
  background: #0A2463;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ===== TASK DETAIL PANEL ===== */
.task-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,36,99,0.22);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.task-detail-overlay.open { opacity: 1; pointer-events: auto; }

.task-detail-panel {
  width: 480px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.task-detail-overlay.open .task-detail-panel { transform: translateX(0); }

.td-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0f0ea;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.td-title { font-size: 17px; font-weight: 700; color: #0A2463; line-height: 1.35; flex: 1; }
.td-close { background: none; border: none; font-size: 24px; color: #9CA3AF; cursor: pointer; line-height: 1; padding: 0; flex-shrink: 0; }
.td-close:hover { color: #374151; }

.td-meta { display: flex; align-items: center; gap: 10px; padding: 14px 24px; flex-wrap: wrap; }

.td-urgency { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.td-urgency.urgent { background: rgba(204,41,54,0.10); color: #CC2936; }
.td-urgency.soon   { background: rgba(245,158,11,0.10); color: #D97706; }
.td-urgency.low    { background: rgba(34,197,94,0.10);  color: #16A34A; }
.td-urgency.done   { background: rgba(156,163,175,0.10); color: #6B7280; }

.td-due { font-size: 12px; color: #6B7280; }

.td-progress-section { padding: 0 24px 14px; display: flex; flex-direction: column; gap: 6px; }
.td-progress-label { font-size: 11px; color: #6B7280; font-weight: 500; }
.td-progress-bar { height: 6px; background: #f0f0ea; border-radius: 99px; overflow: hidden; }
.td-progress-fill { height: 100%; background: #0A2463; border-radius: 99px; transition: width 0.3s ease; }

.td-section { padding: 16px 24px; border-top: 1px solid #f0f0ea; display: flex; flex-direction: column; gap: 10px; }
.td-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #9CA3AF; }

.td-notes {
  width: 100%;
  min-height: 96px;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  resize: vertical;
  background: #fafaf8;
  box-sizing: border-box;
  line-height: 1.5;
}
.td-notes:focus { outline: none; border-color: #0A2463; background: #fff; }

.td-subtask-list { display: flex; flex-direction: column; gap: 6px; }
.td-subtask-empty { font-size: 12px; color: #9CA3AF; padding: 6px 0; }

.td-subtask-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; background: #fafaf8; border: 1px solid #f0f0ea; }
.td-subtask-item.done .td-subtask-text { text-decoration: line-through; color: #9CA3AF; }

.td-subtask-check { width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; accent-color: #0A2463; }
.td-subtask-text { flex: 1; font-size: 13px; color: #374151; line-height: 1.3; }
.td-subtask-del { background: none; border: none; color: #D1D5DB; font-size: 16px; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0; }
.td-subtask-del:hover { color: #CC2936; }

.td-subtask-form { display: flex; gap: 8px; }
.td-subtask-input {
  flex: 1;
  height: 32px;
  border: 1px solid #e4e4de;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  background: #fafaf8;
  color: #374151;
}
.td-subtask-input:focus { outline: none; border-color: #0A2463; }

.td-subtask-add {
  height: 32px;
  padding: 0 14px;
  background: #0A2463;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.td-subtask-add:hover { background: #0c2d7a; }

.td-footer { margin-top: auto; padding: 16px 24px 24px; border-top: 1px solid #f0f0ea; }
.td-delete {
  background: none;
  border: 1px solid rgba(204,41,54,0.30);
  color: #CC2936;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.td-delete:hover { background: rgba(204,41,54,0.06); }

@media (max-width: 820px) {
  .login-split { flex-direction: column; height: auto; min-height: 100vh; }
  .login-left { width: 100%; padding: 28px 24px; }
  .login-right { padding: 28px 24px; }
  .left-headline { font-size: 28px; }
}


/* ===== APP LAYOUT (dashboard + tools) ===== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #0A2463;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #CC2936;
  padding: 10px 10px 4px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(204,41,54,0.14);
  color: #fff;
}
.nav-item.active {
  background: #CC2936;
  color: #fff;
  font-weight: 600;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }

.sidebar-footer {
  padding: 12px 10px;
  background: #061840;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
}
.user-avatar {
  width: 32px; height: 32px;
  background: rgba(204,41,54,0.2);
  border: 1px solid rgba(204,41,54,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .u-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info .u-email {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info .role-badge { margin-top: 5px; }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.58);
  margin-top: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.logout-btn:hover {
  background: rgba(204,41,54,0.18);
  border-color: rgba(204,41,54,0.45);
  color: #fff;
}
.logout-btn svg { width: 15px; height: 15px; fill: currentColor; }


/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #f5f5f0;
}

.content-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid #e4e4de;
  background: #f5f5f0;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 6px;
}
.page-breadcrumb a { color: #9CA3AF; text-decoration: none; transition: color 0.15s; }
.page-breadcrumb a:hover { color: #CC2936; }
.page-breadcrumb span { color: #6B7280; }
.breadcrumb-sep { opacity: 0.5; }

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0A2463;
}
.page-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-top: 3px;
}

.content-body {
  flex: 1;
  padding: 28px 32px;
}


/* ===== PAGE HEADER (top-right user bar) ===== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f5f0;
  border-bottom: 1px solid #E4E4DE;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  min-height: 52px;
  flex-shrink: 0;
}
.ph-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ph-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}
.ph-badge {
  font-size: 10px;
  padding: 2px 8px;
}
.ph-avatar {
  width: 32px;
  height: 32px;
  background: rgba(204,41,54,0.12);
  border: 1px solid rgba(204,41,54,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #CC2936;
  flex-shrink: 0;
}
.ph-signout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-left: 4px;
}
.ph-signout:hover {
  background: rgba(204,41,54,0.06);
  border-color: rgba(204,41,54,0.3);
  color: #CC2936;
}
.ph-signout svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }


/* ===== DASHBOARD SPECIFIC ===== */
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.greeting-block h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #0A2463;
}
.greeting-block .date-str {
  font-size: 13px;
  color: #6B7280;
  margin-top: 3px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-left: 3px solid #CC2936;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(204,41,54,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; fill: #CC2936; }
.stat-icon.amber svg, .stat-icon.green svg,
.stat-icon.blue svg,  .stat-icon.purple svg { fill: #CC2936; }
.stat-icon.amber, .stat-icon.green,
.stat-icon.blue,  .stat-icon.purple { background: rgba(204,41,54,0.08); }

.stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #0A2463;
}
.stat-label {
  font-size: 12px;
  color: #6B7280;
  margin-top: 3px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0A2463;
}
.section-count {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #CC2936;
  padding: 2px 10px;
  border-radius: 99px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-left-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tool-card:hover {
  border-left-color: #CC2936;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(204,41,54,0.08);
  display: flex; align-items: center; justify-content: center;
}
.tool-icon svg { width: 22px; height: 22px; fill: #CC2936; }
.tool-icon.amber svg, .tool-icon.green svg, .tool-icon.blue svg,
.tool-icon.purple svg, .tool-icon.red svg, .tool-icon.teal svg { fill: #CC2936; }
.tool-icon.amber, .tool-icon.green, .tool-icon.blue,
.tool-icon.purple, .tool-icon.red, .tool-icon.teal { background: rgba(204,41,54,0.08); }

.tool-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-top: 4px;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.tool-status-dot.coming-soon {
  background: #9CA3AF;
  box-shadow: none;
}

.tool-name {
  font-size: 15px;
  font-weight: 700;
  color: #0A2463;
}
.tool-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.55;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}
.tool-tag {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #0A2463;
  padding: 3px 10px;
  border-radius: 99px;
}
.tool-tag--coming-soon {
  background: #CC2936;
}
.tool-arrow {
  display: flex; align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #CC2936;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.18s;
}
.tool-card:hover .tool-arrow { opacity: 1; }
.tool-arrow svg { width: 14px; height: 14px; fill: #CC2936; }


/* ===== TOOL PAGE SPECIFIC ===== */
.tool-page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 60px 24px;
  gap: 16px;
}
.placeholder-icon {
  width: 72px; height: 72px;
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.placeholder-icon svg { width: 36px; height: 36px; fill: #CC2936; }
.placeholder-title {
  font-size: 20px;
  font-weight: 700;
  color: #0A2463;
}
.placeholder-text {
  font-size: 14px;
  color: #6B7280;
  max-width: 380px;
}
.placeholder-badge {
  font-size: 12px;
  font-weight: 600;
  background: #0A2463;
  color: #fff;
  padding: 4px 14px;
  border-radius: 99px;
}


/* ===== ADD TOOL CARD ===== */
.tool-card.add-tool {
  border: 1.5px dashed #0A2463;
  border-left-width: 1.5px;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0A2463;
  gap: 10px;
  cursor: default;
  box-shadow: none;
}
.tool-card.add-tool:hover {
  border-color: #0A2463;
  border-left-color: #0A2463;
  box-shadow: none;
  transform: none;
}
.add-tool-plus {
  width: 42px; height: 42px;
  border: 1.5px dashed #0A2463;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.add-tool-plus svg { width: 22px; height: 22px; fill: #0A2463; }
.add-tool-label {
  font-size: 14px;
  font-weight: 700;
  color: #0A2463;
}
.add-tool-sub {
  font-size: 12px;
  color: #9CA3AF;
}


/* ===== SEND EMAIL BUTTON ===== */
.send-email-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.send-email-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}
.send-email-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ===== EMAIL MODAL ===== */
.email-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.email-modal-overlay.open { display: flex; }

.email-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  padding: 28px;
}
.email-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.email-modal-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.email-modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.email-modal-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.email-modal-input:focus { border-color: var(--accent); }
.email-modal-actions {
  display: flex;
  gap: 10px;
}
.email-modal-send {
  flex: 1;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  transition: background var(--transition), opacity var(--transition);
}
.email-modal-send:hover { background: var(--accent-hover); }
.email-modal-send:disabled { opacity: 0.5; cursor: not-allowed; }
.email-modal-cancel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  padding: 10px 18px;
  transition: background var(--transition);
}
.email-modal-cancel:hover { background: var(--bg-elevated); }
.email-modal-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
.email-modal-status.success { color: var(--success); }
.email-modal-status.error   { color: var(--danger); }

/* ===== MANAGER STORE BANNER ===== */
.manager-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e9e9e3;
  border-left: 4px solid #CC2936;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.msb-icon { font-size: 32px; flex-shrink: 0; }
.msb-info { flex: 1; min-width: 0; }
.msb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 4px;
}
.msb-name {
  font-size: 20px;
  font-weight: 700;
  color: #0A2463;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msb-cta {
  flex-shrink: 0;
  background: #0A2463;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.msb-cta:hover { background: #0c2d7a; }

/* ===== EMPLOYEE PLACEHOLDER ===== */
.employee-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.employee-placeholder .ep-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.employee-placeholder .ep-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.employee-placeholder .ep-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* ===== TICKET BADGES ===== */
.tk-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tk-status.submitted  { background: rgba(100,116,139,0.1); color: #475569; border: 1px solid rgba(100,116,139,0.2); }
.tk-status.processing { background: rgba(59,130,246,0.1);  color: #1D4ED8; border: 1px solid rgba(59,130,246,0.2); }
.tk-status.completed  { background: rgba(16,185,129,0.1);  color: #047857; border: 1px solid rgba(16,185,129,0.2); }

.tk-category { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tk-category.software   { background: rgba(59,130,246,0.1);  color: #1D4ED8; }
.tk-category.customers  { background: rgba(139,92,246,0.1);  color: #7C3AED; }
.tk-category.structure  { background: rgba(249,115,22,0.1);  color: #C2410C; }
.tk-category.item       { background: rgba(16,185,129,0.1);  color: #047857; }

.tk-urgency { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tk-urgency.urgent     { background: rgba(239,68,68,0.1);  color: #DC2626; }
.tk-urgency.important  { background: rgba(245,158,11,0.1); color: #D97706; }
.tk-urgency.not-urgent { background: rgba(100,116,139,0.1); color: #475569; }

/* ===== TICKET WIDGET (dashboard) ===== */
.ticket-widget {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid #e9e9e3; border-radius: 12px;
  padding: 18px 24px; margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tw-icon { font-size: 26px; flex-shrink: 0; }
.tw-content { flex: 1; min-width: 0; }
.tw-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 8px; }
.tw-counts { display: flex; gap: 20px; flex-wrap: wrap; }
.tw-count { display: flex; flex-direction: column; }
.tw-num { font-size: 20px; font-weight: 700; color: #0A2463; line-height: 1; }
.tw-num.urgent { color: #DC2626; }
.tw-name { font-size: 11px; color: #9CA3AF; margin-top: 3px; }
.tw-name.urgent { color: #DC2626; font-weight: 600; }
.tw-resolved-notif {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; color: #047857; font-weight: 600; cursor: pointer;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  padding: 4px 10px; border-radius: 6px; transition: background 0.15s;
}
.tw-resolved-notif:hover { background: rgba(16,185,129,0.15); }
.tw-cta {
  flex-shrink: 0; background: #0A2463; color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background 0.15s;
}
.tw-cta:hover { background: #0c2d7a; }
@media (max-width: 600px) {
  .ticket-widget { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tw-cta { align-self: stretch; text-align: center; }
}

/* ===== DASHBOARD WIDGETS ROW (side-by-side) ===== */
.widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.widgets-row .ticket-widget { margin-bottom: 0; height: 100%; box-sizing: border-box; }
@media (max-width: 768px) {
  .widgets-row { grid-template-columns: 1fr; }
}

/* ===== TICKET METRICS PANEL (ticketing page) ===== */
.tk-metrics-panel {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 12px;
  padding: 18px 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tk-metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tk-metrics-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9CA3AF;
}
.tk-metrics-summary {
  font-size: 11px;
  color: #9CA3AF;
}
.tk-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.tk-metric-cell {
  background: #f8f8f6;
  border-radius: 8px;
  padding: 12px 14px;
}
.tk-metric-cell-label {
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.tk-metric-cell-val {
  font-size: 22px;
  font-weight: 700;
  color: #0A2463;
  line-height: 1.1;
}
.tk-metric-cell-val.bad  { color: #DC2626; }
.tk-metric-cell-val.good { color: #16A34A; }
.tk-metric-cell-sub {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 3px;
}
@media (max-width: 700px) {
  .tk-metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== TICKET STORE SECTIONS ===== */
.tk-store-section {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tk-store-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: #fafaf8;
  border-bottom: 1px solid #f0f0ea;
  transition: background 0.15s;
}
.tk-store-section-header:hover { background: #f4f4f0; }
.tk-store-section-name {
  font-size: 14px;
  font-weight: 700;
  color: #0A2463;
}
.tk-store-section-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tk-store-section-count {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  background: rgba(107,114,128,0.08);
  border-radius: 99px;
  padding: 2px 9px;
}
.tk-urgent-dot {
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 99px;
  padding: 2px 8px;
}
.tk-store-toggle-icon {
  font-size: 11px;
  color: #9CA3AF;
  margin-left: 4px;
  width: 14px;
  text-align: center;
}
.tk-store-section-body .admin-table { border-radius: 0; box-shadow: none; border: none; }

/* ===== TICKET EMPLOYEE COMMENT ===== */
.tk-comment.by-employee {
  background: rgba(59,130,246,0.04);
  border-color: rgba(59,130,246,0.15);
}

/* ===== ADMIN PANEL ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.admin-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9CA3AF;
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid #f0f0ea;
  background: #fafaf8;
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f1;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafaf8; }
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.role-badge.owner {
  background: rgba(245,158,11,0.12);
  color: #92400E;
  border: 1px solid rgba(245,158,11,0.3);
}
.role-badge.admin {
  background: rgba(10,36,99,0.1);
  color: #0A2463;
  border: 1px solid rgba(10,36,99,0.2);
}
.role-badge.manager {
  background: rgba(245,158,11,0.1);
  color: #D97706;
  border: 1px solid rgba(245,158,11,0.2);
}
.role-badge.employee {
  background: rgba(100,116,139,0.1);
  color: #475569;
  border: 1px solid rgba(100,116,139,0.2);
}

/* Dark sidebar overrides for all role badges */
.sidebar-footer .role-badge.owner   { background: rgba(245,158,11,0.15);  color: #FCD34D; border-color: rgba(245,158,11,0.3); }
.sidebar-footer .role-badge.admin   { background: rgba(96,165,250,0.15);  color: #93C5FD; border-color: rgba(96,165,250,0.25); }
.sidebar-footer .role-badge.manager { background: rgba(251,146,60,0.15);  color: #FCA44F; border-color: rgba(251,146,60,0.3); }
.sidebar-footer .role-badge.employee{ background: rgba(148,163,184,0.12); color: #94A3B8; border-color: rgba(148,163,184,0.2); }
.edit-user-btn {
  background: transparent;
  border: 1px solid #e4e4de;
  color: #6B7280;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.edit-user-btn:hover { background: #0A2463; border-color: #0A2463; color: #fff; }
.store-tag {
  display: inline-block;
  background: #f0f0ea;
  color: #374151;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px;
}

/* ===== SHARED MODAL (Admin panel + others) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff;
  border: 1px solid #e9e9e3;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0ea;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #0A2463;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9CA3AF;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal-close:hover { color: #374151; }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9CA3AF;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #fafaf8;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #0A2463; }
.form-field textarea { resize: vertical; min-height: 90px; }
.store-checklist {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e4e4de;
  border-radius: 8px;
}
.store-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f1;
  cursor: pointer;
  transition: background 0.12s;
}
.store-check-item:last-child { border-bottom: none; }
.store-check-item:hover { background: #fafaf8; }
.store-check-item input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #0A2463;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
}
.store-check-item span { font-size: 13px; font-weight: 500; color: #374151; }
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0ea;
}
.btn-primary {
  flex: 1;
  background: #0A2463;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #0c2d7a; }
.btn-secondary {
  background: transparent;
  color: #6B7280;
  border: 1px solid #e4e4de;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #fafaf8; }
.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9CA3AF;
  font-size: 13px;
  padding: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .content-header { padding: 20px 20px 16px; }
  .content-body { padding: 20px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tools-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 0 16px; }
  .ph-info { display: none; }
  .ph-signout-label { display: none; }
  .ph-signout { padding: 7px; margin-left: 0; }
}
