@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Playfair+Display:wght@400;500&display=swap');
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --surface2: #F0EDE6;
  --border: #E2DDD4;
  --border2: #D0C9BE;
  --text: #1A1714;
  --text2: #6B6460;
  --text3: #9E9790;
  --accent: #00806f;
  --accent-light: #e7eeed;
  --accent-hover: #015f53;
  --purple: #3D2B6B;
  --purple-light: #EDE9F8;
  --amber: #B45309;
  --amber-light: #fdf6db;
  --yellow: #f5a803; 
  --yellow-light: #FEF3C7;
  --red: #9B1C1C;
  --red-light: #FEE2E2;
  --sidebar-w: 232px;
  --topbar-h: 60px;
  --radius: 10px;
  --radius-lg: 14px;
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
/* APP SHELL */
.app { display: flex; min-height: 100vh; }
/* SIDEBAR  */
.sidebar { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100; box-shadow: 1px 0 12px rgba(0,0,0,0.03); }
.sidebar-brand { padding: 20px 18px 16px; border-bottom: 1px solid var(--border); }
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brand-icon { height:75px;width:125px;max-width:160px;object-fit:contain}
.brand-name { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500; letter-spacing: -0.3px; }
.org-chip {  display: inline-flex; align-items: center; gap: 6px;  font-size: 11px; font-weight: 600;  padding: 5px 11px;  border-radius: 20px;  background: var(--accent-light); color: var(--accent);  letter-spacing: 0.01em; }
.org-chip::before { /* idk */
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; 
  box-shadow: 0 0 0 3px currentColor22; /* NEW */

}
.nav { flex: 1; padding: 16px 12px; }
.nav-section { margin-bottom: 18px; }
.nav-section:last-child { margin-bottom: 0; }
.nav-label { font-size: 10px; font-weight: 700;  letter-spacing: 0.08em; text-transform: uppercase;  color: var(--text3);  padding: 0 10px 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 2px; color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 8px; border-left: none; transition: all 0.15s ease; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-item.active.mgr { background: var(--accent); }
.nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; opacity: 0.65; }
.nav-item.active svg { opacity: 1; }
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; background: var(--amber); color: white; }
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }
.nav-badge.amber { background: var(--amber); }
.nav-badge.red { background: var(--red, #ef4444) !important; color: white !important; }
.nav-badge.purple { background: var(--purple, #7c3aed) !important; color: white !important; }
.sidebar-footer { padding: 16px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--surface2);}
.user-avi { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; background: var(--accent); box-shadow: 0 0 0 2px var(--surface2), 0 0 0 3px var(--accent-light); }
.user-name {   font-size: 11px; color: var(--text3); white-space:nowrap;overflow:hidden;text-overflow:ellipsis }
.user-role { font-size: 11px; color: var(--text3); }
.user-org_name { font-size: 12.5px; font-weight: 600; }
.user-Man_name { font-size: 12.5px; font-weight: 600; }
.sign-out { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text3); padding: 6px; border-radius: 7px; display: flex; align-items: center; transition: all 0.15s;}
.sign-out:hover { color: var(--red); background: var(--red-light); }
.sign-out svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
/* MAIN */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 10px; flex-shrink: 0; position: sticky; top: 0; z-index: 50; }
.page-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; letter-spacing: -0.3px; }
.page-sub { font-size: 11px; color: var(--text3); margin-top: 1px; }
.topbar-right { 
  margin-left: auto; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
/* CONTENT */
.content { flex: 1; padding: 15px 17px; display: flex; flex-direction: column; gap: 20px; animation: fadeUp 0.25s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
/* BUTTON */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--border2); background: var(--surface); color: var(--text); transition: all 0.15s; }
.btn:hover { background: var(--bg); }
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary.mgr { background: var(--accent); border-color: var(--accent); }
.btn-primary.mgr:hover { background: #015f53; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; position: relative; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; border: 1.5px solid white; }
.btn-va { font-size: 11px; padding: 4px 9px; gap: 4px; }
.btn-va svg { width: 11px; height: 11px; }
/* LAYOUT HELPERS */ 
.two-col { display: grid; grid-template-columns: 1fr 500px; gap: 16px; align-items: start; grid-template-columns: 2fr 1fr; gap: 14px;}
.stack-col { display: flex; flex-direction: column; gap: 14px; }
.two-col-settings { display: grid; grid-template-columns:1.5fr 1fr; gap: 16px; max-width: 1000px; align-items: start; }
.two-col-narrow { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.two-col-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.three-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
/* CARDS */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px;}
.card-title { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.card-title svg { width: 14px; height: 14px; stroke: var(--text3); fill: none; stroke-width: 2; }
.card-body { padding: 8px 8px; }
.card-body--announcement--scroll { max-height: 180px; overflow-y: auto; padding: 5px 8px 5px 12px; }
.card-body--submission--scroll { max-height: 300px; overflow-y: auto; }

.card-body--left-col--scroll { max-height: 485px; overflow-y: auto; padding-top: 8px; }
.card-body--messages { max-height: 180px; overflow-y: auto; padding: 5px 8px 5px 12px; }
.card-empty-state { text-align: center; padding: 4px 0; color: var(--text3); font-size: 12.5px; }

.card-body--ce-templates-scroll { max-height: 300px; overflow-y: auto;  padding: 5px 8px 5px 7px; }
.card-body--ce-report-scroll { max-height: 300px; overflow-y: auto;  padding: 5px 8px 5px 7px; }
/*Inline Error Banner*/
.inline-error-banner { display: none; padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; font-size: 13px; font-weight: 500; background: #fdf2f2; color: #9b1c1c; border: 1px solid #f8b4b4; }
.inline-success-banner { display: none; padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; font-size: 13px; font-weight: 500; align-items: center; gap: 8px; background: var(--accent-light, #e6f9ee); color: var(--accent, #05aa44); border: 1px solid var(--accent, #05aa44); }
.inline-success-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center}
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--radius-lg); width: 420px; max-width: 90vw; box-shadow: 0 12px 40px rgba(0,0,0,0.2); animation: modalIn 0.2s ease both }
@keyframes modalIn { from { opacity:0; transform:translateY(10px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;}
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 500; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text3); padding: 4px; border-radius: 6px; display: flex; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
/* Delete modal */
.delete-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.15s ease-out; }
.delete-modal-box { width: 340px; border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); overflow: hidden; animation: scaleIn 0.15s ease-out; }
.delete-modal-body { text-align: center; padding: 28px 24px 20px; }
.delete-modal-icon { width: 50px; height: 50px; background: var(--red-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.delete-modal-icon svg { width: 20px; height: 20px; }
.delete-modal-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.delete-modal-text { font-size: 13px; color: var(--text2); line-height: 1.6; }
.delete-modal-actions { display: flex; justify-content: center; gap: 8px; padding: 12px 16px 20px;}
.delete-modal-actions .btn { padding: 9px 20px; font-size: 13px;}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; }}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); }}
/* Messages: Manager*/
.contacts-list { overflow-y: auto; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.contact-row:hover { background: var(--surface2); }
.contact-row.active { background: var(--accent-light); }
.contact-avi { width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.contact-name { font-size: 13px; font-weight: 500; }
.contact-role { font-size: 11px; color: var(--text3); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.5;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.4;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 44px;
  width: 440px;
  position: relative;
  z-index: 1;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.login-heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.login-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
}
.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-login:hover { background: var(--accent-hover); }
.btn-login.community { background: var(--accent); }
.btn-login.community:hover { background: var(--accent); }
.login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text3);
}
.login-footer a { color: var(--accent); }


/* Report preview modal */
.report-preview-box { width: 560px; }
.report-preview-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.report-preview-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500; }
.report-preview-sub { font-size: 12px; color: var(--text3); margin-bottom: 18px; }
.report-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.report-stat {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.report-stat-num { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; }
.report-stat-lbl { font-size: 10.5px; color: var(--text3); margin-top: 2px; }
.report-chart { margin-bottom: 18px; }
.report-chart-label { font-size: 11px; font-weight: 600; color: var(--text2); margin-bottom: 10px; }
.report-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.report-bar-name { font-size: 11.5px; width: 88px; flex-shrink: 0; color: var(--text2); }
.report-bar-track { flex: 1; height: 16px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.report-bar-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.report-bar-val { font-size: 11px; font-weight: 600; width: 32px; text-align: right; flex-shrink: 0; }
.report-preview-table-label { font-size: 11px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.assign-list {
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  max-height: 160px;
  overflow-y: auto;
  background: var(--bg);
}
.assign-option {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
}
.assign-option:last-child { border-bottom: none; }
.assign-option:hover { background: var(--surface); }
.assign-option input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.assign-select-all {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 6px;
}
.assign-select-all span { font-size: 11px; color: var(--accent); font-weight: 500; cursor: pointer; }
.assign-count { font-size: 11px; color: var(--text3); margin-top: 6px; }
/* Table */
.table-wrap { overflow-x: visible; }
table { width: 100%; border-collapse: collapse; }
thead th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); background: var(--surface2); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
.pill { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; display: inline-block; }
.pill-green { background: var(--accent-light); color: var(--accent); }
.pill-amber { background: var(--amber-light); color: var(--amber); }
.pill-yellow { background: var(--amber-light); color: var(--yellow); }
.pill-gray { background: var(--surface2); color: var(--text3); }
.pill-purple { background: var(--accent-light); color: var(--accent); }
.pill-red { background: var(--red-light); color: var(--red); }
.template-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.template-row:last-child { border-bottom: none; }


/* Report cards */
.report-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.report-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; transition: all 0.15s; }
.report-card:hover { border-color: var(--accent); }
.rc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rc-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.rc-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.rc-icon.green { background: var(--accent-light); color: var(--accent); }
.rc-icon.purple { background: var(--accent-light); color: var(--accent); }
.rc-icon.amber { background: var(--amber-light); color: var(--amber); }
.rc-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.rc-meta { font-size: 11px; color: var(--text3); }
.rc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.dl-btn { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--accent); cursor: pointer; }
.dl-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
/* Org cards */
.org-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; transition: all 0.15s; }
.org-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.org-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.org-avi { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
.org-name { font-size: 13px; font-weight: 600; }
.org-contact { font-size: 11px; color: var(--text3); }
.org-stats { display: flex; gap: 12px; }
.org-stat { font-size: 11px; color: var(--text2); }
.org-stat span { font-weight: 600; color: var(--text); }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border2); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: all 0.15s; }
.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone svg { width: 28px; height: 28px; stroke: var(--text3); fill: none; stroke-width: 1.5; margin-bottom: 8px; }
.upload-zone p { font-size: 13px; color: var(--text2); }
.upload-zone span { font-size: 11px; color: var(--text3); }
/* Visibility toggle */
.vis-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.vis-row:last-child { border-bottom: none; }
.vis-org { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.vis-avi { width: 26px; height: 26px; border-radius: 50%; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.toggle { width: 34px; height: 20px; border-radius: 10px; background: var(--border2); cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--accent); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: left 0.2s; }
.toggle.on::after { left: 17px; }
/* Form fields */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 11px; font-weight: 500; color: var(--text2); margin-bottom: 5px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--text);
  background: var(--bg); outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
/* Section label */
.section-label { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* Template cards (nonprofit) */
.template-grid { columns:2; column-gap: 14px;}
.template-card { padding: 0; }
.template-card .card-body { padding: 16px; }
/* Tabs */
.tabs { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px; }
.tab-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-pill { font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: 20px; background: var(--surface2); color: var(--text3); cursor: pointer; }
.tab-pill.active { background: var(--accent-light); color: var(--accent); }
.tab-org-empty { display: none; text-align: center; padding: 70px 20px; color: var(--text3); }
.tab-org-empty svg { width: 44px; height: 44px; stroke: var(--text3); margin-bottom: 14px; display: block; margin-inline: auto; }
.tab-org-empty h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--text2); }
.tab-org-empty p { font-size: 13px; line-height: 1.6; max-width: 300px; margin-inline: auto; }
@media (max-width: 900px) {
  .sidebar { position: relative; width: 100%; height: auto; }
  .main { margin-left: 0; }
  .two-col, .two-col-narrow, .two-col-templates, .two-col-ann, .three-col, .stats-grid.cols-4, .stats-grid.cols-3, .report-grid, .org-grid, .template-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Notification dropdown */
.notif-wrap { position: relative; }
.notif-dropdown {
  display: none;
  position: absolute;
  top: 44px; right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 150;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-dropdown-header h4 { font-size: 13px; font-weight: 600; }
.notif-mark-read { font-size: 11px; color: var(--accent); cursor: pointer; font-weight: 500; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--accent-light); }
.notif-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.notif-icon.msg { background: var(--accent-light); color: var(--accent); }
.notif-icon.submit { background: var(--purple-light); color: var(--purple); }
.notif-icon.deadline { background: var(--amber-light); color: var(--amber); }
.notif-text { flex: 1; min-width: 0; }
.notif-title { font-size: 12.5px; font-weight: 500; color: var(--text); }
.notif-desc { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.notif-time { font-size: 10.5px; color: var(--text3); margin-top: 4px; }
.notif-empty { padding: 30px 16px; text-align: center; font-size: 12px; color: var(--text3); }
.notif-dropdown-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.notif-dropdown-footer a { font-size: 12px; color: var(--accent); font-weight: 500; }














/* DASHBOARD */
.welcome-banner { background:  var(--accent); color: white; border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 5px; color: white; }
.welcome-banner h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.welcome-banner p { font-size: 12.5px; opacity: 0.8; }
.stat-chips { display: flex; gap: 20px; flex-wrap: wrap; }
.stat-chip { text-align: center; }
.stat-chip-num { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.stat-chip-lbl { font-size: 10px; opacity: 0.75; margin-top: 1px; }
/* --> Messages list */
.msg-list { display: flex; flex-direction: column; }
.msg-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; padding-right: 4px;}
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { opacity: 0.8; }
.msg-row.unread .msg-from { font-weight: 600; }
.msg-avi { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.msg-body { flex: 1; min-width: 0; }
.msg-from { font-size: 12px; color: var(--text); }
.msg-preview { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.msg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.msg-time { font-size: 10px; color: var(--text3); }
.unread-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
/* Manager-Specific */
/* --> Stat cards*/
.stats-grid { display: grid; gap: 12px; }
.stats-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.stats-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.green::before { background: var(--accent); }
.stat-card.purple::before { background: var(--accent); }
.stat-card.amber::before { background: var(--amber); }
.stat-card.red::before { background: var(--red); }
.stat-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.stat-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.stat-ico.green { background: var(--accent-light); color: var(--accent); }
.stat-ico.purple { background: var(--accent-light); color: var(--accent); }
.stat-ico.amber { background: var(--amber-light); color: var(--amber); }
.stat-ico.red { background: var(--red-light); color: var(--red); }
.stat-num { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; }
.stat-lbl { font-size: 11px; color: var(--text2); margin-top: 2px; }
.stat-trend { font-size: 10px; margin-top: 6px; }
.trend-pos { color: var(--accent); }
.trend-warn { color: var(--amber); }
.trend-neg { color: var(--red); }
/* --> Submission Bar Progress */
.prog-item { padding: 8px 10px; border-bottom: 1px; }
.prog-item:last-child { margin-bottom: 0; }
.prog-hdr { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; color: var(--text2); }
.prog-hdr span:last-child { font-weight: 600; color: var(--text); }
.prog-track { height: 6px; background: var(--surface2); border-radius: 10px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 10px; }
/* CE-Specific */
/* --> Template- Card */
.temp-item {  padding: 8px 10px; border-bottom: 1px solid var(--border); }
.temp-item:last-child { border-bottom: none; }
.temp-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.temp-mini-avi { width: 24px; height: 24px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.temp-item-author { font-size: 12px; font-weight: 600; }
.temp-item-time { font-size: 10.5px; color: var(--text3); margin-left: auto; }
.temp-item-message { font-size: 12px; color: var(--text2); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* CS/CE-Specific */
/* --> Report Cards */
.report-item { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.report-item:last-child { border-bottom: none; }
.report-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.report-mini-avi { width: 24px; height: 24px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.report-item-author { font-size: 12px; font-weight: 600; }
.report-item-time { font-size: 10.5px; color: var(--text3); margin-left: auto; }
.report-item-message { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SETTINGS */
.swatch-container { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 8px 12px 12px; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.1s; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: var(--text); }
.color-swatch[data-color="#3D2B6B"] { background-color: #3D2B6B; }
.color-swatch[data-color="#2D5016"] { background-color: #2D5016; }
.color-swatch[data-color="#B45309"] { background-color: #B45309; }
.color-swatch[data-color="#9B1C1C"] { background-color: #9B1C1C; }
.color-swatch[data-color="#0F766E"] { background-color: #0F766E; }
.color-swatch[data-color="#1D4ED8"] { background-color: #1D4ED8; }
.color-swatch[data-color="#BE185D"] { background-color: #BE185D; }

/* MESSAGES */
.chat-thread { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; max-height: 360px; overflow-y: auto; }
.chat-card { display: flex; flex-direction: column; overflow: hidden; }
.chat-thread--fill { flex: 1; overflow-y: auto; }
.chat-loading { text-align: center; padding: 40px; color: var(--text3); font-size: 13px; }
.info-label { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.info-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.user-avi--lg { width: 36px; height: 36px; font-size: 13px; }
.info-name { font-size: 13px; font-weight: 500; }
.info-role { font-size: 11px; color: var(--text3); }
.bubble { display: flex; gap: 8px; max-width: 60%}
.bubble.me { flex-direction: row-reverse; margin-left: auto}
.b-avi { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.b-content { max-width: 100%; }
.b-name { font-size: 10px; color: var(--text3); margin-bottom: 3px; }
.me .b-name { text-align: right; }
.b-text { background: var(--surface2); border-radius: 10px 10px 10px 2px; padding: 8px 11px; font-size: 12px; line-height: 1.5; display: inline-block; max-width: 100%; word-wrap: break-word; white-space: pre-wrap;}
.me .b-text { background: var(--accent); color: white; border-radius: 10px 10px 2px 10px; }
.mgr .me .b-text { background: var(--accent); }
.b-time { font-size: 10px; color: var(--text3); margin-top: 3px; }
.me .b-time { text-align: right; }
.chat-input-row { display: flex; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; padding: 8px 11px; border: 1px solid var(--border2); border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text); background: var(--bg); outline: none; }
.chat-input:focus { border-color: var(--accent); }
.send-btn { width: 34px; height: 34px; background: var(--accent); border: none; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.send-btn.mgr { background: var(--accent); }
.send-btn svg { width: 13px; height: 13px; stroke: white; fill: none; stroke-width: 2.5; }
.send-btn:hover { opacity: 0.9; }
/* Manager-Specific */
.two-col-messages { grid-template-columns: 260px 1fr; height: calc(100vh - 120px); }
.contacts-list--fill { flex: 1; }
.is-hidden { display: none; }

/* ANNOUNCEMENTS */
.ann-board { display: flex; flex-direction: column; gap: 12px; }
.two-col-ann { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
.ann-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; transition: box-shadow 0.15s; }
.ann-post:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.ann-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ann-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.ann-author { font-size: 13px; font-weight: 600; }
.ann-role-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.ann-time { font-size: 11px; color: var(--text3); margin-left: auto; }
.ann-message { font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.ann-delete { background: none; border: none; cursor: pointer; color: var(--text3); padding: 4px; border-radius: 6px; transition: all 0.15s; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.ann-delete:hover { color: var(--red); background: var(--red-light); }
.ann-delete svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.ann-empty { text-align: center; padding: 50px 20px; color: var(--text3); font-size: 13px; }
.ann-empty svg { width: 36px; height: 36px; stroke: var(--text3); fill: none; stroke-width: 1.5; margin-bottom: 10px; }
.char-count { font-size: 11px; color: var(--text3); text-align: right; }
.post-btn-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.video-upload-zone { border: 1.5px dashed var(--border2); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.15s; margin-top: 10px; }
.video-upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.video-upload-zone svg { width: 16px; height: 16px; stroke: var(--text3); fill: none; stroke-width: 2; flex-shrink: 0; }
.video-upload-zone:hover svg { stroke: var(--accent); }
.video-upload-zone span { font-size: 12px; color: var(--text2); }
.video-selected { font-size: 11.5px; color: var(--accent); margin-top: 6px; display: none; font-weight: 500; }
.video-selected.show { display: block; }
.video-size-warning { font-size: 11px; color: var(--text3); margin-top: 4px; }
.ann-video-attachment { margin-top: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.ann-video-attachment svg { width: 16px; height: 16px; stroke: var(--text2); fill: none; stroke-width: 2; flex-shrink: 0; }
.ann-video-attachment span { font-size: 12.5px; color: var(--text2); font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-video-attachment .btn { font-size: 11px; padding: 4px 10px; flex-shrink: 0; }
.attach-upload-zone { border: 1.5px dashed var(--border2); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.15s; margin-top: 8px; }
.attach-upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.attach-upload-zone svg { width: 16px; height: 16px; stroke: var(--text3); fill: none; stroke-width: 2; flex-shrink: 0; }
.attach-upload-zone:hover svg { stroke: var(--accent); }
.attach-upload-zone span { font-size: 12px; color: var(--text2); }
.attach-selected { font-size: 11.5px; color: var(--accent); margin-top: 4px; display: none; font-weight: 500; }
.attach-selected.show { display: block; }
.ann-file-attachment { margin-top: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.ann-file-attachment svg { width: 16px; height: 16px; stroke: var(--text2); fill: none; stroke-width: 2; flex-shrink: 0; }
.ann-file-attachment span { font-size: 12.5px; color: var(--text2); font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Manager-Specific */
.ann-audience-tag { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: var(--surface2); color: var(--text3); margin-top: 2px; display: inline-block; margin-left: 4px; }
.audience-selector { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.audience-radio-row { display: flex; gap: 6px; }
.audience-radio { flex: 1; }
.audience-radio input { display: none; }
.audience-radio label { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border-radius: var(--radius); border: 1.5px solid var(--border2); font-size: 12px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all 0.15s; text-align: center; }
.audience-radio input:checked+label { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.audience-radio label svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.org-checklist { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; max-height: 160px; overflow-y: auto; display: none; flex-direction: column; gap: 6px; margin-top: 4px; }
.org-checklist.show { display: flex; }
.org-check-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.org-check-item input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.select-all-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.select-all-row span { font-size: 11px; color: var(--accent); cursor: pointer; font-weight: 500; }

/* CALENDAR */ 
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); }
.cal-day-header { background: var(--surface); padding: 8px; font-size: 11px; font-weight: 600; color: var(--text3); text-align: center; }
.cal-day { background: var(--surface); min-height: 90px; padding: 6px; cursor: pointer; }
.cal-day.other-month { background: var(--bg); color: var(--text3); }
.cal-day-num { font-size: 12px; font-weight: 500; }
.cal-day.today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-event-pill { font-size: 10px; background: var(--accent-light); color: var(--accent); border-radius: 4px; padding: 2px 5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }

/* REPORTS */
.file-name-display { font-size: 12px; color: var(--accent); margin-top: 6px; font-weight: 500; display: none; }
.file-name-display.show { display: block; }
.tooltip-wrapper { position: relative; display: inline-block; }
.tooltip-trigger { cursor: default; }
.vis-list { max-height: 200px; overflow-y: auto; }



/* TEMPLATES */
.tc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); align-self: start; overflow: hidden; transition: box-shadow 0.15s; break-inside: avoid; margin-bottom: 14px; }
.tc:hover { box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08); }
.tc.status-approved { border-left: 4px solid var(--accent); }
.tc.status-rejected { border-left: 4px solid var(--red); }
.tc.status-pending { border-left: 4px solid var(--yellow); }
.tc.status-not-submitted { border-left: 4px solid var(--border2); }
.tc-header { padding: 14px 16px 10px; display: flex; align-items: flex-start; justify-content: space-between;gap: 10px; }
.tc-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tc-due { font-size: 11px; color: var(--text3); margin-top: 3px; }
.tc-file-row { padding: 0 16px 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.tc-file-row svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.tc-sub-row { padding: 8px 16px; background: var(--surface2); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.tc-sub-row svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.tc-sub-row .sub-file { font-weight: 500; color: var(--text); }
.tc-sub-row .sub-date { color: var(--text3); }
.tc-rejection { margin: 0 12px 10px; background: var(--red-light); border: 1.5px solid var(--red); border-radius: var(--radius); padding: 10px 12px; position: relative; }
.tc-rejection-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--red); margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.tc-rejection-label svg { width: 12px; height: 12px; stroke: var(--red); fill: none; stroke-width: 2.5; }
.tc-rejection-comment { font-size: 12.5px; color: var(--red); line-height: 1.5; }
.tc-rejection-no-comment { font-size: 12px; color: var(--red); opacity: 0.65; font-style: italic; }
.tc-actions { padding: 10px 16px 14px; display: flex; gap: 8px; }
.tc-actions .btn { flex: 1; justify-content: center; padding: 9px; font-size: 12px; }
.tc-actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text3); column-span: all; break-inside: avoid; }
.empty-state svg { width: 44px; height: 44px; stroke: var(--text3); fill: none; stroke-width: 1.5; margin-bottom: 14px; display: block; margin-inline: auto; }
.empty-state h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--text2); }
.empty-state p { font-size: 13px; line-height: 1.6; max-width: 300px; margin-inline: auto; }
.info-banner { background: var(--surface2); border-radius: var(--radius); padding: 4px 4px; font-size: 12.5px; color: var(--text2); display: flex; align-items: center; gap: 9px; }
.fsb-reviewer { font-size: 11px; color: var(--red); opacity: 0.75; margin-bottom: 4px; }
.info-banner svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.fill-field { margin-bottom: 14px; }
.fill-field label { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 5px; display: block; }
.fill-field .req { color: var(--red); margin-left: 3px; }
.fill-field textarea.form-input { min-height: 80px; resize: vertical; }
.form-submitted-banner { background: var(--accent-light); color: var(--accent); border-radius: var(--radius); padding: 10px 14px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-submitted-banner svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.form-submitted-banner-rejected { background: var(--red-light); border: 1.5px solid var(--red); flex-direction: column; align-items: flex-start; gap: 5px; }
.form-submitted-banner-rejected .fsb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--red); display: flex; align-items: center; gap: 5px; }
.form-submitted-banner-rejected .fsb-label svg { width: 12px; height: 12px; stroke: var(--red); fill: none; stroke-width: 2.5; }
.form-submitted-banner-rejected .fsb-comment { font-size: 12.5px; color: var(--red); line-height: 1.5; }
.form-submitted-banner-rejected .fsb-no-comment { font-size: 12px; color: var(--red); opacity: 0.65; font-style: italic; }
.field-saved-tag { font-size: 10px; font-weight: 600; color: var(--text3); background: var(--surface2); border-radius: 8px; padding: 1px 6px; margin-left: 6px; }
.fsb-draft-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--red); font-size: 12px; color: var(--red); opacity: 0.85; }
.fsb-draft-note svg { width: 13px; height: 13px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; }
/* Manager-Specific*/
.method-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.method-tab { flex: 1; padding: 8px; border-radius: var(--radius); border: 1.5px solid var(--border2); background: transparent; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s; }
.method-tab svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.method-tab.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.method-panel { display: none; }
.method-panel.active { display: block; }

.field-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.field-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 10px; }
.field-label-input { flex: 1; border: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 12.5px; color: var(--text); outline: none; min-width: 0; }
.field-label-input::placeholder { color: var(--text3); }
.field-type-select { border: 1px solid var(--border2); border-radius: 7px; background: var(--surface); font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text2); padding: 5px 6px; outline: none; flex-shrink: 0; }
.field-required-toggle { width: 28px; height: 17px; border-radius: 10px; background: var(--border2); cursor: pointer; position: relative; flex-shrink: 0; transition: background 0.2s; }
.field-required-toggle.on { background: var(--accent); }
.field-required-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: white; transition: left 0.2s; }
.field-required-toggle.on::after { left: 13px; }
.field-remove { background: none; border: none; cursor: pointer; color: var(--text3); padding: 3px; border-radius: 5px; display: flex; flex-shrink: 0; transition: all 0.15s; }
.field-remove:hover { color: var(--red); background: var(--red-light); }
.field-remove svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.add-field-btn { width: 100%; padding: 9px; border: 1.5px dashed var(--border2); border-radius: var(--radius); background: transparent; color: var(--text2);font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s; }
.add-field-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.add-field-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.field-empty-state { text-align: center; padding: 20px 12px; color: var(--text3); font-size: 12px; }

/* REPORTS, SUBMISSIONS, TEMPLATES */
.source-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.source-tag.live { background: var(--accent-light); color: var(--accent); }
.source-tag.demo { background: var(--surface2); color: var(--text3); }

/*REPORTS, TEMPLATES */
.saved-banner { background: var(--accent-light); color: var(--accent); font-size: 12.5px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; display: none; align-items: center; gap: 8px; }
.saved-banner.show { display: flex; }
.saved-banner svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.file-name-display { font-size: 12px; color: var(--accent); /*margin-top: 6px;*/ font-weight: 500; display: none; }
.file-name-display.show { display: block; }
.global-tooltip { display: none; position: fixed; background: var(--red); color: white; font-size: 11.5px; line-height: 1.5; padding: 8px 12px; border-radius: var(--radius); width: 260px; z-index: 9999; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); pointer-events: none; }
.global-tooltip::after { content: ''; position: absolute; top: 100%; left: 16px; border: 5px solid transparent; border-top-color: var(--red); }
.global-tooltip.neutral { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.global-tooltip.neutral::after { border-top-color: var(--border); }

/* SUBMISSIONS */
.drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.drawer.open { right: 0; }
.drawer-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; background: var(--bg); }
.drawer-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-header p { margin: 4px 0 0; font-size: 14px; color: var(--text2); }
.drawer-close { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text3); padding: 2px 6px; line-height: 1; border-radius: 6px; }
.drawer-close:hover { background: var(--surface2); }
.drawer-status-bar { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--surface2); }
.drawer-status-label { font-size: 11px; font-weight: 600; color: var(--text2); }
.drawer-body { padding: 18px 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;}
.drawer-file-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.drawer-file-icon { width: 38px; height: 38px; background: var(--accent-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drawer-file-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.drawer-actions { display: flex; flex-direction: column; gap: 1px; align-items: center; padding: 0 12px; margin: 16px; }
.drawer-actions .btn { justify-content: center; padding: 7px 8px; font-size: 12px; width: 85%; }
.action-divider { justify-content: center; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin: 2px 0 2px; }
.drawer-history-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 12px; background: var(--bg); }
.drawer-history-item:hover { background: var(--surface2); }
.drawer-history-item.active { border-color: var(--accent); background: var(--accent-light); }
.btn-approve { background: var(--accent); color: white; border-color: var(--accent); }
.btn-approve:hover { background: var(--accent-hover); }
.btn-reject { background: var(--red-light); color: var(--red); border-color: var(--red); }
.btn-reject:hover { background: var(--red); color: white; }
.btn-undo { background: var(--surface2); color: var(--text2); border-color: var(--border2); }
.btn-undo:hover { background: var(--border); }
.btn-reopen { background: var(--amber-light); color: var(--amber); border-color: var(--amber); }
.btn-reopen:hover { background: var(--amber); color: white; }
.rejection-comment-box { background: var(--red-light); border: 1px solid var(--red); border-radius: var(--radius); padding: 12px 14px; margin: 16px; }
.rejection-comment-box .rcb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); margin-bottom: 6px; }
.rejection-comment-box .rcb-text { font-size: 12.5px; color: var(--red); line-height: 1.5; white-space: pre-wrap; }
.rejection-comment-box .rcb-empty { font-size: 12px; color: var(--red); opacity: 0.6; font-style: italic; }
.sortable-col { cursor: pointer; user-select: none; }
.sortable-col:hover { color: var(--accent); }
.sortable-col.filter-active { color: var(--accent); font-weight: 700; }
.modal-body p { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }




