/* ============================================
   MARKETING & BUSINESS DEVELOPMENT HUB
   Brand: Navy Blue #003366 | White | Golden Yellow #FFC000
   ============================================ */

:root {
  --navy: #003366;
  --navy-dark: #002244;
  --navy-light: #004488;
  --navy-mid: #0a4a7c;
  --gold: #FFC000;
  --gold-dark: #e6ac00;
  --gold-light: #FFD54F;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #22c55e;
  --green-light: #dcfce7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --yellow: #eab308;
  --yellow-light: #fef9c3;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --sidebar-width: 260px;
  --header-height: 60px;
  --border-radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,192,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-screen::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,192,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.login-logo-area {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.login-logo-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gold);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.login-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover:not(:disabled) {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover:not(:disabled) {
  background: var(--navy);
  color: var(--white);
}

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

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--gray-100); color: var(--navy); }

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo svg {
  width: 22px;
  height: 22px;
  fill: var(--navy-dark);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.sidebar-title span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section {
  padding: 0 8px;
  margin-bottom: 4px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-item.active {
  background: rgba(255,192,0,0.15);
  color: var(--gold);
  font-weight: 600;
}

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

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gray-50);
}

.topbar {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.topbar-subtitle {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.navy::before { background: var(--navy); }
.stat-card.gold::before { background: var(--gold); }
.stat-card.green::before { background: var(--green); }
.stat-card.red::before { background: var(--red); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.blue::before { background: var(--blue); }

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

.stat-icon.navy { background: rgba(0,51,102,0.1); color: var(--navy); }
.stat-icon.gold { background: rgba(255,192,0,0.15); color: var(--gold-dark); }
.stat-icon.green { background: var(--green-light); color: #16a34a; }
.stat-icon.red { background: var(--red-light); color: #dc2626; }
.stat-icon.orange { background: var(--orange-light); color: #ea580c; }
.stat-icon.blue { background: var(--blue-light); color: #2563eb; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ===== BADGES & STATUS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-navy { background: rgba(0,51,102,0.1); color: var(--navy); }
.badge-gold { background: rgba(255,192,0,0.2); color: #8B6914; }
.badge-green { background: var(--green-light); color: #16a34a; }
.badge-red { background: var(--red-light); color: #dc2626; }
.badge-orange { background: var(--orange-light); color: #ea580c; }
.badge-yellow { background: var(--yellow-light); color: #854d0e; }
.badge-blue { background: var(--blue-light); color: #2563eb; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--red); }
.status-dot.orange { background: var(--orange); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.gray { background: var(--gray-400); }

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }

tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: 10px 14px;
  vertical-align: middle;
}

/* ===== FORMS ===== */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

textarea.form-input {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.form-hint {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

.form-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.modal-lg { max-width: 900px; }
.modal-sm { max-width: 440px; }
.modal-xl { max-width: 1100px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ===== PROGRESS ===== */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.progress-fill.gold { background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%); }
.progress-fill.green { background: var(--green); }
.progress-fill.red { background: var(--red); }
.progress-fill.orange { background: var(--orange); }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.alert-info { background: var(--blue-light); color: #1e40af; border-left: 3px solid var(--blue); }
.alert-success { background: var(--green-light); color: #166534; border-left: 3px solid var(--green); }
.alert-warning { background: var(--yellow-light); color: #854d0e; border-left: 3px solid var(--yellow); }
.alert-error { background: var(--red-light); color: #991b1b; border-left: 3px solid var(--red); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

/* ===== MEETING TABLE ===== */
.meeting-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.meeting-header-table td {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  font-size: 13px;
}

.meeting-header-table .header-label {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  width: 120px;
}

.discussion-table {
  width: 100%;
  border-collapse: collapse;
}

.discussion-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.discussion-table td {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  vertical-align: top;
  font-size: 13px;
}

.discussion-table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* ===== WEEKLY PLAN TABLE ===== */
.weekly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.weekly-table th {
  background: var(--navy);
  color: var(--white);
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

.weekly-table td {
  padding: 7px 10px;
  border: 1px solid var(--gray-200);
  text-align: center;
  vertical-align: middle;
}

.weekly-table tr:hover td { background: var(--gray-50); }

.pct-cell {
  font-weight: 700;
  font-size: 13px;
}

.pct-100 { color: var(--green); }
.pct-high { color: var(--blue); }
.pct-mid { color: var(--orange); }
.pct-low { color: var(--red); }

/* ===== OBJECTIVES ===== */
.objective-card {
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.objective-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.objective-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.objective-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

.objective-body {
  padding: 16px;
}

.kpi-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.kpi-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-number {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  flex: 1;
}

.kpi-progress-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-pct {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  min-width: 44px;
}

/* ===== ACTION ITEMS ===== */
.action-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
}

.action-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.action-item.overdue {
  border-left: 3px solid var(--red);
  background: #fff5f5;
}

.action-item.due-soon {
  border-left: 3px solid var(--orange);
  background: #fffaf0;
}

.action-item.done {
  opacity: 0.6;
}

.action-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: var(--transition);
}

.action-check.checked {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.action-content { flex: 1; }

.action-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-500);
}

.action-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  animation: slideIn 0.3s ease;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--navy); }
.toast.warning { background: var(--orange); }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100px); opacity: 0; }
}

/* ===== SYNC INDICATOR ===== */
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.sync-indicator.online { background: var(--green-light); color: #16a34a; }
.sync-indicator.offline { background: var(--orange-light); color: #c2410c; }
.sync-indicator.syncing { background: var(--blue-light); color: #2563eb; }

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sync-indicator.online .sync-dot { background: var(--green); }
.sync-indicator.offline .sync-dot { background: var(--orange); }
.sync-indicator.syncing .sync-dot { background: var(--blue); animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== SEARCH ===== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 10px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-box input {
  padding-left: 34px;
  height: 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  width: 240px;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.08);
}

/* ===== CHANGE LOG ===== */
.log-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.log-item:last-child { border-bottom: none; }

.log-time {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  min-width: 130px;
}

.log-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.log-content {
  flex: 1;
}

.log-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.log-detail {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ===== TFT MODULE ===== */
.oem-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oem-mahindra { background: #fff3cd; color: #856404; }
.oem-savw { background: #d1ecf1; color: #0c5460; }
.oem-stellantis { background: #d4edda; color: #155724; }
.oem-hmsi { background: #f8d7da; color: #721c24; }
.oem-msil { background: #e2d9f3; color: #4a235a; }
.oem-tata { background: #fce4d6; color: #8b3a1a; }
.oem-vinfast { background: #d0e9ff; color: #0a47a9; }
.oem-other { background: var(--gray-100); color: var(--gray-600); }

/* ===== MONTHLY REPORT ===== */
.report-section {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.report-section-header {
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-section-body {
  padding: 16px;
}

/* ===== INLINE EDIT ===== */
.inline-edit {
  cursor: text;
  min-height: 24px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
  outline: none;
}

.inline-edit:hover {
  background: var(--gray-100);
}

.inline-edit:focus {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}

/* ===== DRAG HANDLE ===== */
.drag-handle {
  cursor: grab;
  color: var(--gray-300);
  padding: 2px 4px;
}

.drag-handle:hover { color: var(--gray-500); }

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: var(--transition);
}

.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 200;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .hamburger { display: flex; }
  
  .content-area {
    padding: 16px;
  }
  
  .topbar { padding: 0 16px; }
  
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  
  .form-row.cols-2,
  .form-row.cols-3,
  .form-row.cols-4 {
    grid-template-columns: 1fr;
  }
  
  .modal { margin: 0; border-radius: 0; max-height: 100vh; height: 100vh; }
  
  .modal-overlay { padding: 0; align-items: flex-end; }
  
  .table-wrapper { overflow-x: scroll; }
  
  .search-box input { width: 180px; }

  .topbar-title { font-size: 14px; }
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .tabs { font-size: 12px; }
  .tab { padding: 8px 12px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== PRINT ===== */
@media print {
  .sidebar, .topbar, .btn, .modal-overlay { display: none !important; }
  .main-content { margin: 0; }
  .content-area { padding: 0; }
}

/* ===== UTILITIES ===== */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold-dark); }
.text-gray { color: var(--gray-500); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }

.bg-navy { background: var(--navy); }
.bg-gold { background: var(--gold); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

.hidden { display: none !important; }

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Critical path visualization */
.critical-path-item {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.cp-step {
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.cp-arrow {
  width: 24px;
  height: 2px;
  background: var(--gray-300);
  position: relative;
  flex-shrink: 0;
}

.cp-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--gray-300);
}

.cp-step.critical { background: var(--red); }
.cp-step.done { background: var(--green); }

/* ===== HEADER STRIP ===== */
.header-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.header-strip-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

.header-strip-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
