/* ═══════════════════════════════════════════
   GUVNA — Global Styles
═══════════════════════════════════════════ */
:root {
  --green: #7ABF2E;
  --green-dark: #5A9020;
  --green-light: #F0F8E4;
  --dark: #111111;
  --dark2: #1A1A1A;
  --dark3: #242424;
  --mid: #4A4A4A;
  --muted: #888888;
  --border: #E4E4E4;
  --bg: #F5F5F3;
  --white: #FFFFFF;
  --red: #E53935;
  --amber: #FF9800;
  --blue: #2196F3;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--dark); font-size: 15px; overflow: hidden; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ── SCREENS ── */
.screen { position: fixed; inset: 0; }

/* ── ROLE SELECTOR ── */
.role-screen {
  background: var(--dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.role-logo { text-align: center; margin-bottom: 48px; }
.role-logo-mark {
  width: 72px; height: 72px; background: var(--green);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 900; color: var(--dark);
  margin: 0 auto 12px;
}
.role-logo-text { font-size: 32px; font-weight: 900; color: white; letter-spacing: 4px; }
.role-logo-sub { font-size: 12px; color: #555; margin-top: 6px; letter-spacing: 0.5px; }

.role-cards { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.role-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--dark2); border: 1px solid #2A2A2A;
  border-radius: var(--radius); padding: 16px 20px;
  color: white; text-align: left; transition: all 0.15s;
  width: 100%;
}
.role-card:hover { border-color: var(--green); background: #1A2A10; }
.role-card:active { transform: scale(0.98); }
.role-card-manager { border-color: #333; }
.role-card-manager:hover { border-color: var(--green); }
.role-card-icon { font-size: 24px; width: 40px; text-align: center; flex-shrink: 0; }
.role-card-body { flex: 1; }
.role-card-title { font-size: 15px; font-weight: 600; }
.role-card-desc { font-size: 12px; color: #666; margin-top: 2px; }
.role-card-arrow { font-size: 20px; color: #444; }
.role-footer { margin-top: 40px; font-size: 11px; color: #333; letter-spacing: 1px; }

/* ── PIN SCREEN ── */
.pin-screen {
  background: var(--dark); height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
}
.pin-back {
  position: absolute; top: 24px; left: 24px;
  background: none; border: none; color: #555; font-size: 14px; cursor: pointer;
}
.pin-back:hover { color: white; }
.pin-logo { font-size: 28px; font-weight: 900; color: var(--green); letter-spacing: 4px; margin-bottom: 6px; }
.pin-subtitle { font-size: 13px; color: #555; margin-bottom: 32px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #333; background: transparent; transition: all 0.15s; }
.pin-dot.filled { background: var(--green); border-color: var(--green); }
.pin-dot.error { background: var(--red); border-color: var(--red); }
.pin-error { font-size: 13px; color: var(--red); height: 20px; margin-bottom: 20px; }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 280px; }
.pin-key { height: 64px; border-radius: 50%; border: 1px solid #2A2A2A; background: #1A1A1A; color: white; font-size: 22px; font-weight: 500; transition: all 0.1s; }
.pin-key:active { background: var(--green); color: var(--dark); transform: scale(0.94); }
.pin-blank { background: transparent !important; border: none !important; pointer-events: none; }
.pin-del { font-size: 18px; color: #666; }

/* ── APP SHELL ── */
.screen-app { display: flex; flex-direction: column; height: 100%; }

/* ── TOPBAR ── */
.topbar {
  background: var(--dark); color: white;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 56px; flex-shrink: 0;
  position: relative; z-index: 100;
}
.topbar-menu {
  background: none; border: none; color: white;
  display: flex; flex-direction: column; gap: 5px;
  padding: 6px; width: 36px; flex-shrink: 0;
}
.topbar-menu span { display: block; height: 2px; background: white; border-radius: 1px; }
.topbar-home { background: none; border: none; color: white; font-size: 18px; padding: 4px 6px; }
.topbar-title { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: white; }
.topbar-actions { display: flex; gap: 6px; align-items: center; }
.topbar-role { font-size: 10px; color: #fff; font-family: monospace; letter-spacing: 0.08em; font-weight: 700; padding: 4px 10px; background: #2A2A2A; border-radius: 10px; border: 1px solid #3A3A3A; }
.topbar-role.manager { color: #111; background: var(--green); border-color: var(--green); }
.topbar-role.foreman { color: var(--green); background: #1A2A10; border-color: var(--green); }
.topbar-role.operative { color: #fff; background: #1A1A2E; border-color: #4A4A8A; }
.topbar-btn { background: var(--green); color: var(--dark); border: none; padding: 7px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 700; }
.topbar-btn-ghost { background: #2A2A2A; color: #AAA; border: none; padding: 7px 12px; border-radius: var(--radius); font-size: 13px; }
.topbar-btn-ghost:hover { color: white; }

/* ── SIDEBAR ── */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; backdrop-filter: blur(2px); }
.sidebar {
  position: fixed; top: 0; left: 0; width: 280px; height: 100vh;
  background: var(--dark2); z-index: 200;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #2A2A2A; }
.sidebar-logo { font-size: 20px; font-weight: 900; color: var(--green); letter-spacing: 3px; }
.sidebar-close { background: none; border: none; color: #555; font-size: 24px; line-height: 1; }
.sidebar-close:hover { color: white; }

/* Company branding in sidebar */
.sidebar-company { padding: 16px; border-bottom: 1px solid #2A2A2A; display: flex; align-items: center; gap: 12px; }
.company-logo-wrap { width: 44px; height: 44px; flex-shrink: 0; }
.company-logo-placeholder { width: 44px; height: 44px; border: 1px dashed #333; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #444; font-size: 10px; transition: all 0.15s; }
.company-logo-placeholder:hover { border-color: var(--green); color: var(--green); }
.company-logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; cursor: pointer; }
.company-name { font-size: 13px; font-weight: 600; color: white; }

.sidebar-section-label { font-size: 10px; color: #444; letter-spacing: 1.5px; text-transform: uppercase; padding: 16px 16px 8px; }
.project-list { flex: 1; overflow-y: auto; padding: 0 8px; }
.project-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); cursor: pointer; color: #888; font-size: 14px; margin-bottom: 2px; transition: all 0.15s; }
.project-item:hover { background: #2A2A2A; color: white; }
.project-item.active { background: #2A2A2A; color: white; }
.project-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.project-item-name { flex: 1; font-weight: 500; }
.project-item-client { font-size: 10px; color: #555; }

.sidebar-bottom { padding: 12px 8px; border-top: 1px solid #2A2A2A; display: flex; flex-direction: column; gap: 6px; }
.sidebar-btn { width: 100%; padding: 11px 14px; background: transparent; border: 1px solid #2A2A2A; color: #888; border-radius: var(--radius); font-size: 13px; text-align: left; transition: all 0.15s; }
.sidebar-btn:hover { border-color: #444; color: white; }
.sidebar-btn-green { background: #1A2A10; border-color: #3A5A20; color: var(--green); font-weight: 700; }
.sidebar-btn-green:hover { background: #243816; }

/* ── MAIN CONTENT ── */
.main { height: calc(100vh - 56px) !important; overflow-y: scroll !important; -webkit-overflow-scrolling: touch; background: #0E0E0E; flex: none !important; }

/* ── HOME SCREEN ── */
.home-screen { padding: 28px 24px; max-width: 900px; margin: 0 auto; }
.home-welcome { margin-bottom: 28px; }
.home-welcome-title { font-size: 28px; font-weight: 700; color: white; margin-bottom: 4px; }
.home-welcome-sub { font-size: 13px; color: #555; }

/* PROJECT CARDS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all 0.18s; }
.project-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.project-card-top { height: 6px; }
.project-card-body { padding: 16px; }
.project-card-name { font-size: 17px; font-weight: 700; color: white; margin-bottom: 2px; }
.project-card-client { font-size: 12px; color: #555; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.project-card-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.section-chip { padding: 8px 4px; border: 1px solid #2A2A2A; border-radius: 6px; text-align: center; font-size: 10px; color: #555; background: #111; transition: all 0.15s; font-weight: 600; }
.project-card:hover .section-chip { border-color: #3A5A20; color: var(--green); background: #1A2A10; }
.section-chip-icon { font-size: 16px; display: block; margin-bottom: 2px; }

/* ── PROJECT DASHBOARD ── */
.project-dashboard { padding: 20px; max-width: 800px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb-link { color: var(--green); cursor: pointer; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { color: #CCC; }
.project-dashboard-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; color: white; }
.project-dashboard-client { font-size: 13px; color: #555; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.section-card { background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: var(--radius); padding: 20px 16px; text-align: center; cursor: pointer; transition: all 0.18s; }
.section-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); background: #1A2A10; }
.section-card-icon { font-size: 28px; margin-bottom: 8px; }
.section-card-name { font-size: 13px; font-weight: 600; color: white; }
.section-card-desc { font-size: 11px; color: #555; margin-top: 2px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 80px 40px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-size: 18px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: #BBB; line-height: 1.5; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal { background: var(--white); width: 100%; max-width: 500px; border-radius: 16px 16px 0 0; max-height: 90vh; display: flex; flex-direction: column; animation: slideUp 0.25s ease; }
@media (min-width: 600px) { .modal { border-radius: 12px; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.btn-cancel { flex: 1; padding: 13px; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius); font-size: 15px; color: var(--mid); font-weight: 500; }
.btn-confirm { flex: 2; padding: 13px; border: none; background: var(--green); color: var(--dark); border-radius: var(--radius); font-size: 15px; font-weight: 700; }
.btn-confirm:hover { background: var(--green-dark); color: white; }

/* ── FORMS ── */
.field-group { margin-bottom: 16px; }
.field-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.field-input { width: 100%; border: 1px solid var(--border); background: var(--white); padding: 11px 13px; font-size: 15px; color: var(--dark); outline: none; border-radius: var(--radius); transition: border-color 0.2s; -webkit-appearance: none; }
.field-input:focus { border-color: var(--green); }

/* ── COLOUR PICKER ── */
.colour-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.colour-opt { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.15s; }
.colour-opt.active { border-color: var(--dark); transform: scale(1.15); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 12px 20px; border-radius: 24px; font-size: 14px; font-weight: 500; z-index: 500; white-space: nowrap; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── LOADING ── */
.loading { text-align: center; padding: 60px; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (min-width: 768px) {
  .sections-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TASKS ── */
.tasks-view { padding: 20px; max-width: 800px; margin: 0 auto; }
.progress-block { margin: 0 0 16px; }
.progress-bar-wrap { height: 8px; background: #EBEBEB; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width 0.6s ease; }
.progress-stats { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pstat { font-size: 12px; font-weight: 600; }
.pstat-complete { color: #4CAF50; }
.pstat-inprogress { color: var(--blue); }
.pstat-issue { color: var(--red); }
.pstat-pct { color: var(--muted); margin-left: auto; }

.folders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.folder-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all 0.15s; position: relative; }
.folder-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.folder-card-top { height: 4px; }
.folder-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: #DDD; font-size: 16px; opacity: 0; transition: opacity 0.15s; padding: 2px 6px; }
.folder-card:hover .folder-del { opacity: 1; }
.folder-del:hover { color: var(--red); }
.folder-icon { font-size: 24px; padding: 12px 12px 4px; }
.folder-name { font-size: 14px; font-weight: 600; padding: 0 12px 4px; }
.folder-count { font-size: 11px; color: var(--muted); padding: 0 12px 8px; }
.folder-mini-progress { height: 3px; background: #EBEBEB; margin: 0 12px 8px; border-radius: 2px; overflow: hidden; }
.folder-mini-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.folder-stats { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 12px 8px; }
.folder-stat { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; }
.stat-todo { background: #F0F0F0; color: #888; }
.stat-inprogress { background: #E3F2FD; color: var(--blue); }
.stat-issue { background: #FBE9E7; color: var(--red); }
.stat-complete { background: #E8F5E9; color: #4CAF50; }
.folder-link-btn { display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 5px 8px; border: 1px dashed #DDD; background: #FAFAFA; border-radius: 4px; font-size: 11px; color: #AAA; cursor: pointer; text-align: center; transition: all 0.15s; }
.folder-link-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }

.task-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--white); color: var(--muted); cursor: pointer; transition: all 0.15s; }
.filter-btn.active { background: var(--dark); color: white; border-color: var(--dark); }

.task-list-container { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }
.task-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.task-card:hover { box-shadow: var(--shadow); }
.task-inprogress { border-left: 3px solid var(--blue); }
.task-issue { border-left: 3px solid var(--red); }
.task-complete { border-left: 3px solid #4CAF50; opacity: 0.75; }
.task-card-inner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.task-status-dot { margin-top: 2px; font-size: 16px; flex-shrink: 0; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; line-height: 1.3; }
.task-struck { text-decoration: line-through; color: var(--muted); }
.task-location { font-size: 11px; color: var(--muted); font-family: monospace; margin-bottom: 4px; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.task-badge-todo { background: #F0F0F0; color: #888; }
.task-badge-inprogress { background: #E3F2FD; color: var(--blue); }
.task-badge-complete { background: #E8F5E9; color: #4CAF50; }
.task-badge-issue { background: #FBE9E7; color: var(--red); }
.task-assignee { font-size: 11px; color: var(--muted); }
.task-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

.inline-add-btn { width: 100%; padding: 14px; border: 2px dashed #C8E6A0; background: var(--green-light); color: var(--green-dark); border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; transition: all 0.15s; margin-top: 4px; }
.inline-add-btn:hover { background: #DFF0C0; border-color: var(--green); }

.detail-row { margin-bottom: 14px; }
.detail-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; font-weight: 600; }
.detail-val { font-size: 14px; color: var(--dark); line-height: 1.5; }
.issue-box { background: #FBE9E7; border: 1px solid #FFCCBC; border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.issue-box-label { font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 4px; }
.issue-box-text { font-size: 14px; color: #BF360C; line-height: 1.5; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-opt { padding: 10px; border-radius: var(--radius); border: 2px solid transparent; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; transition: all 0.15s; background: #F5F5F5; color: #888; }
.status-opt-active-todo { background: #F0F0F0; color: #555; border-color: #CCC; }
.status-opt-active-inprogress { background: #E3F2FD; color: var(--blue); border-color: var(--blue); }
.status-opt-active-complete { background: #E8F5E9; color: #4CAF50; border-color: #4CAF50; }
.status-opt-active-issue { background: #FBE9E7; color: var(--red); border-color: var(--red); }

.btn-photo { flex: 1; padding: 10px; border: 1px dashed var(--border); background: #FAFAFA; border-radius: var(--radius); font-size: 13px; color: var(--mid); cursor: pointer; transition: all 0.15s; }
.btn-photo:hover { border-color: var(--green); color: var(--green-dark); }
.modal-large { max-height: 95vh; }

/* ── TIMESHEET ── */
.ts-shell { display: flex; flex-direction: column; height: calc(100vh - 56px); }
.ts-period-bar { background: var(--dark2); padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #2A2A2A; flex-shrink: 0; }
.ts-period-btn { background: none; border: 1px solid #333; color: #888; font-size: 16px; padding: 4px 12px; border-radius: 4px; }
.ts-period-btn:hover { color: white; border-color: #666; }
.ts-period-label { flex: 1; text-align: center; font-size: 13px; font-family: monospace; color: var(--green); font-weight: 600; }
.ts-summary-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #2A2A2A; border-bottom: 1px solid #2A2A2A; flex-shrink: 0; }
.ts-sum-card { background: var(--dark2); padding: 10px; text-align: center; }
.ts-sum-val { font-size: 18px; font-weight: 700; color: var(--green); font-family: monospace; }
.ts-sum-val.green { color: var(--green); }
.ts-sum-label { font-size: 9px; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.ts-tabs { display: flex; background: var(--dark2); border-bottom: 1px solid #2A2A2A; flex-shrink: 0; }
.ts-tab { flex: 1; padding: 10px; text-align: center; font-size: 12px; font-weight: 600; color: white; border: none; background: none; border-bottom: 3px solid transparent; }
.ts-tab.active { color: var(--green); border-bottom-color: var(--green); }
.ts-content { padding: 16px; overflow-y: auto; flex: 1; }
.ts-actions { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ts-btn-dark { background: var(--dark) !important; color: white !important; border: none !important; border-radius: 8px !important; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ts-btn-dark:hover { background: #333 !important; }
.btn.btn-green.btn-sm { background: var(--dark); color: white; border: none; border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.btn.btn-green.btn-sm:hover { background: #333; }

.ts-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
.ts-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 13px; background: white; }
.ts-table th { background: var(--dark); color: white; padding: 7px 5px; text-align: center; font-size: 10px; font-weight: 700; white-space: nowrap; border-right: 1px solid #2A2A2A; }
.ts-name-col { text-align: left !important; padding-left: 12px !important; min-width: 150px; }
.ts-week-hdr { background: #1A2A10 !important; color: var(--green) !important; font-size: 11px !important; }
.ts-day-hdr { min-width: 52px; }
.ts-weekend { background: var(--dark) !important; color: white !important; }
.ts-today { background: #1A2A10 !important; color: var(--green) !important; }
.ts-table td { padding: 4px 3px; border-bottom: 1px solid #F0F0F0; border-right: 1px solid #F5F5F5; text-align: center; vertical-align: middle; background: white; }
.ts-name-cell { padding: 8px 12px !important; text-align: left !important; border-right: 2px solid var(--border) !important; }
.ts-op-name { font-weight: 600; font-size: 13px; }
.ts-op-rate { font-size: 10px; color: var(--muted); font-family: monospace; }
.ts-total-cell { background: #F8F8F8 !important; font-weight: 700; font-family: monospace; font-size: 12px; padding: 6px !important; }
.ts-pay-cell { background: #F0F8E4 !important; font-weight: 700; font-family: monospace; font-size: 12px; padding: 6px !important; color: var(--green-dark); }
.ts-today-cell { background: #FFFDE7 !important; }
.ts-weekend-cell {  }

.ts-att-btn { width: 48px; height: 28px; border: 1px solid var(--border); border-radius: 3px; font-size: 10px; font-weight: 700; background: #F5F5F5; color: #CCC; cursor: pointer; transition: all 0.1s; }
.ts-att-btn:active { transform: scale(0.92); }

.ts-pw-select { border: 1px solid var(--border); border-radius: 3px; padding: 5px 6px; font-size: 12px; width: 100%; outline: none; background: white; }
.ts-pw-input { border: 1px solid var(--border); border-radius: 3px; padding: 5px 8px; font-size: 13px; width: 100%; outline: none; }
.ts-pw-input:focus { border-color: var(--green); }
.ts-pw-total { font-weight: 700; font-family: monospace; color: var(--green-dark); text-align: center; }
.ts-pw-del { background: none; border: none; color: #CCC; font-size: 18px; padding: 2px 6px; cursor: pointer; }
.ts-pw-del:hover { color: var(--red); }

.ts-op-row { display: grid; gap: 8px; align-items: center; margin-bottom: 8px; }
.ts-op-row-mgr { grid-template-columns: 1fr 90px 90px 36px; }
.ts-op-row-sup { grid-template-columns: 1fr 36px; }
.ts-op-row-hdr { display: grid; gap: 8px; margin-bottom: 6px; }
.ts-op-hdr-label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.btn-del-op { background: none; border: none; color: #DDD; font-size: 20px; cursor: pointer; }
.btn-del-op:hover { color: var(--red); }

.ts-sum-table { width: 100%; border-collapse: collapse; font-size: 13px; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ts-sum-table th { background: var(--dark); color: white; padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; }
.ts-sum-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ts-sum-table tfoot td { background: #F0F8E4; font-weight: 700; }

.ts-submit-card { background: var(--dark2); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.ts-submit-title { color: white; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ts-submit-desc { color: #666; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }

.ts-settings-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.ts-settings-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }

.ts-setup { max-width: 500px; margin: 40px auto; padding: 0 20px; text-align: center; }
.ts-setup-icon { font-size: 48px; margin-bottom: 12px; }
.ts-setup-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.ts-setup-desc { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.ts-setup-form { text-align: left; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* Accounts email config */
.ts-accounts-email { display: none; }

@media(max-width:600px) { .ts-summary-strip { grid-template-columns: repeat(2,1fr); } }
.att-blank { background: #F0F0F0; border-color: #E0E0E0; color: transparent; }
.att-weekend-blank { background: #E8E8E8 !important; border-color: #DCDCDC !important; }
.att-day { background: #E8F5E9; border-color: #66BB6A; color: #1B5E20; font-weight: 800; }
.att-absent { background: #FBE9E7; border-color: #EF9A9A; color: #C62828; font-weight: 800; }
.att-half { background: #FFF8E1; border-color: #FFC107; color: #E65100; font-weight: 800; }
.att-price { background: #E3F2FD; border-color: #42A5F5; color: #0D47A1; font-weight: 800; }

/* ── HOME SCREEN OVERRIDE ── */
body, .app { background: #0E0E0E; }
.main { height: calc(100vh - 56px) !important; overflow-y: scroll !important; background: #0E0E0E !important; flex: none !important; }
.home-screen { background: #0E0E0E; padding: 32px 24px; }
.home-welcome-title { color: white !important; }
.home-welcome-sub { color: #555 !important; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.project-card { background: #1A1A1A !important; border: 1px solid #2A2A2A !important; border-radius: 12px !important; overflow: hidden; cursor: pointer; transition: all 0.18s; display: flex; align-items: stretch; }
.project-card:hover { border-color: var(--green) !important; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.5); }
.project-card-accent { width: 5px; flex-shrink: 0; }
.project-card-body { padding: 18px 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.project-card-name { font-size: 16px; font-weight: 700; color: white !important; margin-bottom: 4px; }
.project-card-client { font-size: 11px; color: #555 !important; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0; }
.project-card-arrow { font-size: 16px; color: #333; margin-top: 12px; transition: color 0.15s; }
.project-card:hover .project-card-arrow { color: var(--green); }

/* ── PROJECT CARD REFRESH ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.project-card { background: #1C1C1C !important; border: 1px solid #2E2E2E !important; border-radius: 14px !important; overflow: hidden; cursor: pointer; transition: all 0.2s; display: flex !important; align-items: stretch; min-height: 110px; }
.project-card:hover { border-color: var(--green) !important; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.6); }
.project-card-accent { width: 6px; flex-shrink: 0; }
.project-card-body { padding: 20px 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.project-card-name { font-size: 18px; font-weight: 700; color: white !important; letter-spacing: -0.3px; }
.project-card-client { font-size: 11px; color: #555 !important; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }
.project-card-arrow { display: none; }
.project-card-meta { font-size: 10px; color: #3A3A3A; margin-top: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.project-card:hover .project-card-meta { color: #4A7A20; }

/* ── PROJECT MENU ── */
.home-section-title { font-size: 11px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.project-card-top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.project-menu-btn { background: none; border: none; color: #555; font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; transition: color 0.15s; flex-shrink: 0; }
.project-menu-btn:hover { color: white; }
.project-dropdown { position: absolute; right: 12px; top: 40px; background: #222; border: 1px solid #333; border-radius: 8px; overflow: hidden; z-index: 100; min-width: 140px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.project-dropdown button { display: block; width: 100%; padding: 11px 16px; text-align: left; background: none; border: none; color: white; font-size: 13px; cursor: pointer; }
.project-dropdown button:hover { background: #333; }
.project-card { position: relative; }

/* ── TIMESHEET WHITE BACKGROUND FIX ── */
.ts-content { background: white; padding: 16px; overflow-y: auto; flex: 1; }
.ts-table-wrap { background: white; }
.ts-sum-table { background: white; }
.ts-settings-card { background: white; }
.ts-submit-card { background: var(--dark2); }

/* ── SECTION CARDS WHITE TEXT ── */
.section-card-name { color: white !important; }
.section-card-desc { color: #AAA !important; }
.section-card:hover .section-card-desc { color: #CCC !important; }

/* ── HOME SCREEN TEXT ── */
.home-welcome-sub { color: #888 !important; }
.project-card-client { color: #AAA !important; }
.project-card-meta { color: #555 !important; }
.project-card:hover .project-card-meta { color: var(--green) !important; }

/* ── NO GREY ANYWHERE ── */
.section-card-icon { font-size: 32px; margin-bottom: 10px; color: var(--green); }
.section-card-name { font-size: 14px; font-weight: 700; color: white !important; }
.section-card-desc { font-size: 12px; color: white !important; opacity: 0.6; margin-top: 3px; }
.section-card:hover .section-card-desc { opacity: 1; color: var(--green) !important; }
.section-card:hover .section-card-icon { color: var(--green); }

/* ── PRICE WORK WHITE BG ── */
#ts-tab-content { background: white; }
.ts-shell { background: #0E0E0E; }

/* ── SECTION CARD ICON TEXT STYLE ── */
.section-card-icon { font-size: 36px; margin-bottom: 10px; color: var(--green) !important; font-weight: 300; line-height: 1; }

/* ── MATERIALS ── */
.mat-view { padding: 20px; max-width: 800px; margin: 0 auto; }
.mat-orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; }
.mat-order-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all 0.15s; }
.mat-order-card:hover { box-shadow: var(--shadow); border-color: var(--green); }
.mat-order-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.mat-order-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.mat-order-notes { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mat-order-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.mat-order-del { background: none; border: none; color: #DDD; font-size: 18px; cursor: pointer; padding: 0; }
.mat-order-del:hover { color: var(--red); }
.mat-order-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.mat-share-btn { background: none; border: 1px dashed #DDD; border-radius: 4px; font-size: 11px; color: #AAA; padding: 4px 8px; cursor: pointer; }
.mat-share-btn:hover { border-color: var(--green); color: var(--green-dark); }
.mat-order-date { font-size: 10px; color: #CCC; }
.mat-progress-wrap { height: 4px; background: #EBEBEB; border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.mat-progress-wrap.large { height: 8px; border-radius: 4px; margin-bottom: 8px; }
.mat-progress-fill { height: 100%; background: var(--green); border-radius: inherit; transition: width 0.4s ease; }
.mat-progress-block { margin-bottom: 16px; }
.mat-progress-stats { display: flex; gap: 12px; font-size: 12px; font-weight: 600; }

.mat-items-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }
.mat-item-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.15s; }
.mat-item-picked { border-left: 3px solid #4CAF50; opacity: 0.75; }
.mat-item-issue { border-left: 3px solid #E53935; }
.mat-item-inner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.mat-status-btn { width: 36px; height: 36px; border: 2px solid #DDD; border-radius: 8px; background: white; font-size: 16px; cursor: pointer; flex-shrink: 0; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.mat-status-btn:active { transform: scale(0.9); }
.supplier-status-btn { width: 48px; height: 48px; font-size: 20px; }
.mat-item-body { flex: 1; min-width: 0; }
.mat-item-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.mat-struck { text-decoration: line-through; color: var(--muted); }
.mat-item-qty { font-size: 12px; color: var(--muted); font-family: monospace; margin-bottom: 2px; }
.mat-item-notes { font-size: 12px; color: #888; }
.mat-issue-note { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 4px; }
.mat-del-btn { background: none; border: none; color: #DDD; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.mat-del-btn:hover { color: var(--red); }

/* Supplier view */
.supplier-view { max-width: 600px; }
.supplier-header { text-align: center; padding: 20px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.supplier-order-name { font-size: 20px; font-weight: 700; color: var(--dark); margin-top: 8px; }
.supplier-order-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── MATERIALS RETRO TERMINAL STYLE ── */
.mat-item-card { background: #0E0E0E !important; border: 1px solid #7ABF2E !important; border-radius: 6px !important; font-family: 'Courier New', monospace; }
.mat-item-card.mat-item-picked { border-color: #7ABF2E !important; opacity: 0.6; }
.mat-item-card.mat-item-issue { border-color: #E53935 !important; }
.mat-item-inner { padding: 14px 16px; }
.mat-item-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.mat-tick-btn, .mat-cross-btn { width: 36px; height: 36px; border: 2px solid #7ABF2E; border-radius: 6px; background: transparent; color: #7ABF2E; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: monospace; display: flex; align-items: center; justify-content: center; }
.mat-cross-btn { border-color: #555; color: #555; }
.mat-tick-btn:hover { background: #7ABF2E; color: #000; }
.mat-cross-btn:hover { border-color: #E53935; color: #E53935; }
.mat-tick-btn.mat-btn-active { background: #7ABF2E; color: #000; border-color: #7ABF2E; }
.mat-cross-btn.mat-btn-active.mat-btn-issue { background: #E53935; color: white; border-color: #E53935; }
.mat-item-name { font-size: 14px; font-weight: 700; color: #7ABF2E !important; margin-bottom: 4px; font-family: 'Courier New', monospace; }
.mat-struck { text-decoration: line-through; opacity: 0.5; }
.mat-item-qty { font-size: 12px; color: #7ABF2E !important; opacity: 0.7; font-family: 'Courier New', monospace; }
.mat-item-notes { font-size: 12px; color: #7ABF2E; opacity: 0.6; }
.mat-issue-note { font-size: 12px; color: #E53935 !important; font-weight: 700; margin-top: 6px; font-family: monospace; }
.mat-del-btn { color: #333 !important; font-size: 20px; }
.mat-del-btn:hover { color: #E53935 !important; }

/* Order cards also get terminal feel */
.mat-order-card { background: #0E0E0E !important; border: 1px solid #7ABF2E !important; }
.mat-order-name { color: #7ABF2E !important; font-family: 'Courier New', monospace; }
.mat-order-notes { color: #7ABF2E !important; opacity: 0.6; font-family: monospace; }
.mat-order-meta { color: #7ABF2E !important; opacity: 0.5; font-family: monospace; }
.mat-order-date { color: #555 !important; }
.mat-order-del { color: #333 !important; }
.mat-order-del:hover { color: #E53935 !important; }
.mat-share-btn { border-color: #333 !important; color: #7ABF2E !important; background: transparent !important; font-family: monospace; }
.mat-share-btn:hover { border-color: #7ABF2E !important; }
.mat-progress-fill { background: #7ABF2E !important; }
.mat-progress-wrap { background: #1A1A1A !important; }

/* Supplier view terminal */
.supplier-header { border-bottom-color: #2A2A2A !important; }
.supplier-order-name { color: #7ABF2E !important; font-family: 'Courier New', monospace; }
.supplier-order-sub { color: #555 !important; font-family: monospace; }

/* ── MATERIALS TEXT SIZE FIX ── */
.mat-item-name { font-size: 18px !important; font-weight: 900 !important; color: #7ABF2E !important; letter-spacing: 0.5px; margin-bottom: 6px; }
.mat-item-qty { font-size: 13px !important; font-weight: 700 !important; color: #7ABF2E !important; opacity: 0.8; letter-spacing: 0.3px; }
.mat-item-card { padding: 0 !important; }
.mat-item-inner { padding: 16px !important; gap: 14px !important; }
.mat-item-btns { gap: 8px !important; }
.mat-tick-btn, .mat-cross-btn { width: 42px !important; height: 42px !important; font-size: 20px !important; }

/* Fix Add Item button to terminal style */
.mat-view .inline-add-btn { background: #0E0E0E !important; border: 2px dashed #7ABF2E !important; color: #7ABF2E !important; font-family: 'Courier New', monospace !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: 1px; }
.mat-view .inline-add-btn:hover { background: #1A2A10 !important; border-style: solid !important; }

/* Progress stats terminal */
.mat-progress-stats span { font-family: monospace; font-weight: 700; font-size: 13px; }

/* ═══════════════════════════════════════════
   FRIDAY PACK
═══════════════════════════════════════════ */
.fp-shell { display:flex; flex-direction:column; height:100%; overflow:hidden; }
.fp-stepper { display:flex; background:#0A0A0A; overflow-x:auto; scrollbar-width:none; flex-shrink:0; }
.fp-stepper::-webkit-scrollbar{display:none;}
.fp-step-btn { flex:1; min-width:46px; padding:8px 2px 7px; background:none; border:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:3px; border-bottom:3px solid transparent; transition:border-color 0.2s; }
.fp-step-btn.active { border-bottom-color:var(--green); }
.fp-step-btn.done .fp-step-num { background:var(--green); color:#111; }
.fp-step-num { width:20px; height:20px; border-radius:50%; background:#2A2A2A; color:#666; font-size:10px; display:flex; align-items:center; justify-content:center; }
.fp-step-btn.active .fp-step-num { background:var(--green); color:#111; font-weight:700; }
.fp-step-label { font-size:8px; color:#555; text-align:center; font-family:monospace; text-transform:uppercase; line-height:1.2; }
.fp-step-btn.active .fp-step-label { color:#bbb; }
.fp-body { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:20px; padding-bottom:80px; }
.fp-section-tag { font-size:10px; font-family:monospace; color:var(--green); letter-spacing:1px; text-transform:uppercase; margin-bottom:4px; }
.fp-section-title { font-size:20px; font-weight:400; color:#fff; margin-bottom:18px; line-height:1.2; }
.fp-field-group { margin-bottom:16px; }
.fp-field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.fp-label { display:block; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px; }
.fp-input { width:100%; border:1px solid #2A2A2A; background:#1A1A1A; padding:12px 14px; font-size:15px; font-family:inherit; color:#fff; outline:none; border-radius:var(--radius); transition:border-color 0.2s; -webkit-appearance:none; }
.fp-input:focus { border-color:var(--green); }
.fp-divider { border:none; border-top:1px solid #2A2A2A; margin:20px 0; }
.fp-table { width:100%; border-collapse:collapse; }
.fp-table th { text-align:left; font-size:10px; font-family:monospace; color:var(--muted); text-transform:uppercase; padding:0 0 8px; border-bottom:1px solid #2A2A2A; }
.fp-table td { padding:8px 0; border-bottom:1px solid #1E1E1E; vertical-align:middle; }
.fp-day-tag { font-size:10px; font-family:monospace; color:var(--green); background:#1A2A10; padding:2px 8px; display:inline-block; font-weight:700; }
.fp-activity-input { border:none; border-bottom:1px solid #2A2A2A; background:transparent; font-size:14px; font-family:inherit; color:#fff; width:100%; padding:4px 0; outline:none; }
.fp-activity-input:focus { border-bottom-color:var(--green); }
.fp-item-row { border:1px solid #2A2A2A; background:#1A1A1A; padding:12px 14px; margin-bottom:8px; border-radius:var(--radius); }
.fp-item-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.fp-item-num { font-size:10px; font-family:monospace; color:var(--green); font-weight:700; letter-spacing:0.5px; }
.fp-item-del { background:none; border:none; color:var(--muted); cursor:pointer; font-size:20px; line-height:1; padding:0 4px; }
.fp-status-btn { padding:5px 12px; font-size:11px; font-family:monospace; border:1px solid #2A2A2A; background:#111; color:#666; cursor:pointer; border-radius:2px; transition:all 0.15s; font-weight:600; }
.fp-status-btn.ok.active { background:#1A2A10; border-color:var(--green); color:var(--green); }
.fp-status-btn.defect.active { background:#2A1008; border-color:#E8500A; color:#E8500A; }
.fp-tbt-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.fp-topic-btn { border:1px solid #2A2A2A; background:#1A1A1A; padding:10px 12px; font-size:13px; font-family:inherit; cursor:pointer; text-align:left; border-radius:var(--radius); transition:all 0.15s; color:#888; }
.fp-topic-btn.active { border-color:var(--green); background:#1A2A10; color:var(--green); font-weight:600; }
.fp-upload-area { border:1px dashed #2A2A2A; background:#111; padding:18px; border-radius:var(--radius); text-align:center; cursor:pointer; }
.fp-upload-area:hover { border-color:var(--green); }
.fp-upload-label { font-size:13px; font-family:monospace; color:#555; line-height:1.7; }
.fp-sig-area { border:1px dashed #2A2A2A; height:70px; margin-top:8px; position:relative; background:#F9F9F9; border-radius:var(--radius); overflow:hidden; cursor:crosshair; }
.fp-sig-area canvas { display:block; width:100%; height:100%; touch-action:none; }
.fp-sig-hint { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:11px; color:#CCC; font-family:monospace; pointer-events:none; }
.fp-sig-clear { position:absolute; top:4px; right:6px; font-size:10px; color:var(--muted); cursor:pointer; font-family:monospace; text-transform:uppercase; z-index:2; background:rgba(255,255,255,0.9); padding:2px 4px; }
.fp-nav { display:flex; gap:10px; margin-top:24px; }
.fp-btn-back { flex:1; background:#1A1A1A; border:1px solid #2A2A2A; color:#888; padding:13px; font-size:14px; font-family:monospace; cursor:pointer; border-radius:var(--radius); }
.fp-btn-next { flex:2; background:var(--green); color:#111; border:none; padding:13px; font-size:14px; font-family:monospace; font-weight:700; cursor:pointer; border-radius:var(--radius); }
.fp-btn-primary { width:100%; background:var(--green); color:#111; border:none; padding:15px; font-size:15px; font-family:monospace; font-weight:700; cursor:pointer; border-radius:var(--radius); margin-top:20px; }
.fp-btn-add { width:100%; border:1px dashed #3A5A20; background:#1A2A10; color:var(--green); padding:11px; font-size:13px; font-family:monospace; cursor:pointer; border-radius:var(--radius); margin-top:4px; }
.fp-summary-card { background:#1A1A1A; border:1px solid #2A2A2A; padding:16px; margin-bottom:12px; border-radius:var(--radius); }
.fp-summary-title { font-size:11px; font-family:monospace; color:var(--green); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:10px; font-weight:700; }
.fp-summary-row { display:flex; justify-content:space-between; font-size:13px; padding:4px 0; border-bottom:1px solid #222; color:#ccc; }
.fp-summary-row:last-child { border-bottom:none; }
.fp-summary-key { color:var(--muted); }
.fp-check-item { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:13px; color:#ccc; }
.fp-check-box { width:18px; height:18px; border:1px solid var(--green); background:#1A2A10; display:flex; align-items:center; justify-content:center; color:var(--green); font-size:12px; flex-shrink:0; }
.fp-check-box.missing { border-color:#E8500A; background:#2A1008; color:#E8500A; }
.fp-generate-section { background:#0A0A0A; color:white; padding:20px; margin:24px -20px -60px; border-top:1px solid #2A2A2A; }
.fp-gen-label { font-size:10px; font-family:monospace; color:#555; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px; }
.fp-btn-generate { width:100%; background:var(--green); color:#111; border:none; padding:15px; font-size:15px; font-family:monospace; font-weight:700; cursor:pointer; text-transform:uppercase; border-radius:var(--radius); margin-bottom:4px; }
.fp-btn-print { width:100%; background:#1A1A1A; color:#888; border:1px solid #2A2A2A; padding:11px; font-size:12px; font-family:monospace; cursor:pointer; border-radius:var(--radius); margin-bottom:5px; text-align:left; }
.fp-btn-print:hover { border-color:var(--green); color:white; }

/* ── HIDE SCROLLBARS ── */
.main::-webkit-scrollbar { width: 0; }
.main::-webkit-scrollbar { width: 0 !important; background: transparent; }

/* ── SWITCH ROLE BUTTON ── */
.topbar-switch-btn {
  background: none;
  border: 1px solid #3A3A3A;
  color: #666;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.topbar-switch-btn:hover { border-color: var(--green); color: var(--green); }
.ob-preview-btn { background: #1A1A1A; color: #aaa; border: 1px solid #3A3A3A; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.ob-preview-btn:hover { border-color: var(--green); color: var(--green); }

/* ═══════════════════════════════════════════
   ONBOARDING
═══════════════════════════════════════════ */
.ob-view { padding: 20px 20px 60px; }
.ob-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: #1A1A1A; border-radius: 10px; padding: 4px; }
.ob-tab { flex: 1; padding: 9px; background: none; border: none; color: #666; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.ob-tab.active { background: #2A2A2A; color: #fff; }

.ob-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.ob-section-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ob-section-sub { font-size: 12px; color: var(--muted); }
.ob-header-btns { display: flex; gap: 8px; flex-shrink: 0; }

.ob-copy-btn { background: var(--green); color: #111; border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ob-copy-btn:hover { opacity: 0.88; }
.ob-preview-btn { background: #1A1A1A; color: #aaa; border: 1px solid #3A3A3A; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ob-preview-btn:hover { border-color: var(--green); color: var(--green); }

.ob-pending-banner { background: #2A1A08; border: 1px solid #FF9800; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #FF9800; margin-bottom: 14px; }
.ob-card { background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s; }
.ob-card:hover { border-color: #3A3A3A; }
.ob-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ob-card-name { font-size: 15px; font-weight: 700; color: #fff; }
.ob-card-status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ob-status-pending { color: #FF9800; background: #2A1A08; }
.ob-status-approved { color: var(--green); background: #1A2A10; }
.ob-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ob-card-date { font-size: 11px; color: #444; }
.ob-card-edit { background: none; border: 1px solid #3A3A3A; color: #888; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.ob-card-edit:hover { border-color: var(--green); color: var(--green); }
.ob-card-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #222; flex-wrap: wrap; }
.ob-link-btn { background: #222; border: 1px solid #333; color: #aaa; border-radius: 6px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.ob-link-btn:hover { border-color: var(--green); color: var(--green); }
.ob-del-btn { background: none; border: 1px solid #333; color: #666; border-radius: 6px; padding: 6px 12px; font-size: 12px; cursor: pointer; margin-left: auto; }
.ob-del-btn:hover { border-color: #E53935; color: #E53935; }
.ob-q-row { display: flex; align-items: center; justify-content: space-between; background: #222; border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
.ob-q-text { font-size: 13px; color: #ccc; }
.ob-q-type { font-size: 10px; color: var(--muted); font-family: monospace; margin-left: 8px; text-transform: uppercase; }
