/* GetBeyondOps.com ("Get Beyond Operations") - Enterprise Visual Work OS, Smart CRM, HR Payslips & Document Vault */
:root { --client-accent: #3b82f6; }
.gbo-shell { padding: 20px 0 64px; }
.gbo-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; padding: 2px; display: none; }
.gbo-brand-logo.has-logo { display: inline-block; }
.gbo-tagline { font-size: 0.72rem; color: var(--teal); font-weight: 600; display: block; line-height: 1.1; }

/* Module Bar */
.module-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
  padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.mod-btn {
  flex: 1 1 160px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted);
  padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; cursor: pointer; text-align: center;
}
.mod-btn.active { background: var(--client-accent); border-color: var(--client-accent); color: #fff; }

/* Top Bar & Drop-Box */
.erp-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.erp-topbar h1 { margin: 0 0 4px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.erp-topbar p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.erp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dropbox-zone {
  border: 2px dashed var(--teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(59, 130, 246, 0.06));
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px;
}
.dropbox-zone.drag-over { border-color: var(--client-accent); background: rgba(59, 130, 246, 0.16); }
.dropbox-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.dropbox-head h2 { margin: 0; font-size: 1.04rem; }
.dropbox-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.dropbox-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.pii-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.dropbox-progress { display: none; margin-top: 10px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.dropbox-progress.active { display: block; }
.progress-track { height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--client-accent)); transition: width 0.2s; }

/* KPI Strip */
.erp-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.erp-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; }
.erp-kpi-label { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.erp-kpi-val { font-size: 1.4rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.erp-kpi-sub { font-size: 0.74rem; color: var(--text-dim); margin-top: 2px; }

/* Toolbar, Tables, Pills */
.erp-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 14px;
}
.erp-view-tabs, .erp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.erp-tab { border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted); padding: 7px 12px; border-radius: 8px; font-size: 0.83rem; font-weight: 600; cursor: pointer; }
.erp-tab.active { background: var(--client-accent); border-color: var(--client-accent); color: #fff; }
.erp-filters .input-control, .erp-filters .select-control { padding: 7px 10px; font-size: 0.83rem; min-height: 36px; }

.erp-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.erp-group-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-left: 5px solid var(--client-accent); background: rgba(59, 130, 246, 0.07); cursor: pointer; user-select: none; }
.erp-group-head h3 { margin: 0; font-size: 0.94rem; display: flex; align-items: center; gap: 8px; }
.erp-table-wrap { width: 100%; overflow-x: auto; }
.erp-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 0.85rem; }
.erp-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding: 9px 10px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.erp-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.erp-inline-input { width: 100%; background: transparent; border: 1px solid transparent; color: var(--text); padding: 4px 6px; border-radius: 6px; font-size: 0.84rem; }
.erp-inline-input:focus { outline: none; border-color: var(--client-accent); background: var(--bg-input); }

.status-select, .prio-select { border: none; border-radius: 6px; padding: 5px 8px; font-size: 0.77rem; font-weight: 700; color: #fff; cursor: pointer; width: 100%; min-width: 112px; }
.st-done { background: #16a34a; }
.st-working { background: #d97706; }
.st-stuck { background: #dc2626; }
.st-expiring { background: #9333ea; }
.st-pending { background: #475569; }
.pr-critical { background: #b91c1c; }
.pr-high { background: #ea580c; }
.pr-medium { background: #2563eb; }
.pr-low { background: #0f766e; }

.due-badge { display: inline-block; font-size: 0.71rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; margin-top: 3px; }
.due-overdue { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.due-soon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.due-ok { background: rgba(34, 197, 94, 0.16); color: #4ade80; }

/* Kanban & CRM Pipeline */
.kanban-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.kanban-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 240px; }
.kanban-col.drop-target { border-color: var(--teal); background: rgba(20, 184, 166, 0.08); }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 7px; color: #fff; font-weight: 700; font-size: 0.83rem; margin-bottom: 10px; }
.kanban-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: grab; }
.kanban-card h4 { margin: 0 0 6px; font-size: 0.87rem; }
.kanban-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; }

/* Timeline & Panels */
.timeline-list { display: grid; gap: 10px; }
.timeline-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; display: grid; grid-template-columns: 240px 1fr 110px; gap: 12px; align-items: center; }
.timeline-bar-wrap { height: 18px; background: var(--bg-input); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.timeline-bar { height: 100%; border-radius: 99px; }

.erp-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.erp-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.erp-panel h3 { margin: 0 0 10px; font-size: 1rem; }
.anomaly-item { padding: 8px 10px; border-radius: 8px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); font-size: 0.83rem; margin-bottom: 8px; }
.briefing-box { background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; max-height: 360px; overflow-y: auto; }
#briefingMeta { white-space: normal; max-width: 100%; line-height: 1.35; }

/* Split-Screen Document Viewer Drawer */
.doc-viewer-body { max-height: 68vh; overflow: auto; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.doc-viewer-body img, .doc-viewer-body iframe { width: 100%; border: none; border-radius: 6px; }

/* Storage & Pricing Cards */
.storage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.storage-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }

.erp-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.8rem; color: var(--text-dim); }
.hidden { display: none !important; }

@media (max-width: 780px) {
  .timeline-row { grid-template-columns: 1fr; }
  .erp-topbar { align-items: flex-start; }
}
