/* Gembok-Simple / BarusNet — visual layer v1
 * Additive stylesheet: keeps existing PHP markup, IDs, JS hooks and workflows.
 */
:root {
  --gb-blue: #1268e8;
  --gb-blue-dark: #082b4f;
  --gb-ink: #14243a;
  --gb-muted: #66758a;
  --gb-surface: #ffffff;
  --gb-canvas: #f3f7fc;
  --gb-border: #e3ebf5;
  --gb-shadow: 0 8px 24px rgba(21, 55, 95, .08);
  --gb-radius: 16px;
}
body.portal-admin, body.portal-customer, body.portal-sales, body.portal-technician {
  background: var(--gb-canvas) !important;
  color: var(--gb-ink) !important;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
}
.portal-admin .sidebar, .portal-customer .sidebar, .portal-sales .sidebar, .portal-technician .sidebar {
  background: linear-gradient(180deg, #092b4d 0%, #061f3a 100%) !important;
  color: #fff !important;
  border-right: 0 !important;
  box-shadow: 8px 0 28px rgba(7, 34, 64, .10);
}
.portal-admin .sidebar-logo, .portal-customer .sidebar-logo, .portal-sales .sidebar-logo,
.portal-admin .sidebar-header, .portal-customer .sidebar-header, .portal-sales .sidebar-header {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}
.portal-admin .menu-item, .portal-customer .menu-item, .portal-sales .menu-item,
.portal-technician .menu-item {
  color: rgba(255,255,255,.88) !important;
  border-left: 0 !important;
  border-radius: 10px !important;
  margin: 4px 10px !important;
}
.portal-admin .menu-item:hover, .portal-admin .menu-item.active,
.portal-customer .menu-item:hover, .portal-customer .menu-item.active,
.portal-sales .menu-item:hover, .portal-sales .menu-item.active,
.portal-technician .menu-item:hover, .portal-technician .menu-item.active {
  color: #fff !important;
  background: #1268e8 !important;
  transform: none !important;
  border-left-color: transparent !important;
}
.portal-admin .main-content, .portal-customer .main-content, .portal-sales .main-content {
  background: transparent !important;
}
.portal-admin .header, .portal-customer .header, .portal-sales .header,
.portal-technician .header {
  background: var(--gb-surface) !important;
  border: 1px solid var(--gb-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--gb-shadow) !important;
  color: var(--gb-ink) !important;
}
.portal-admin .header-title h1, .portal-customer .header-title h1,
.portal-sales .header-title h1 { color: var(--gb-ink) !important; }
.portal-admin .card, .portal-customer .card, .portal-sales .card,
.portal-admin .isp-stat-card, .portal-admin .stat-card,
.portal-customer .stat-card, .portal-sales .stat-card,
.portal-technician .card, .portal-technician .stat-card {
  background: var(--gb-surface) !important;
  border: 1px solid var(--gb-border) !important;
  border-radius: var(--gb-radius) !important;
  box-shadow: var(--gb-shadow) !important;
  color: var(--gb-ink) !important;
}
.portal-admin .card-header, .portal-customer .card-header, .portal-sales .card-header {
  background: #f7faff !important;
  border-bottom: 1px solid var(--gb-border) !important;
  color: var(--gb-ink) !important;
}
.portal-admin table, .portal-customer table, .portal-sales table,
.portal-technician table { color: var(--gb-ink) !important; }
.portal-admin .data-table thead, .portal-customer .data-table thead,
.portal-sales .data-table thead, .portal-technician table thead {
  background: #edf4fd !important;
  color: #203a5b !important;
}
.portal-admin .data-table th, .portal-admin .data-table td,
.portal-customer .data-table th, .portal-customer .data-table td,
.portal-sales .data-table th, .portal-sales .data-table td {
  border-color: var(--gb-border) !important;
}
.portal-admin input, .portal-admin select, .portal-admin textarea,
.portal-customer input, .portal-customer select, .portal-customer textarea,
.portal-sales input, .portal-sales select, .portal-sales textarea {
  border-color: #d7e2f0 !important;
  border-radius: 9px !important;
}
.portal-admin .btn-primary, .portal-customer .btn-primary, .portal-sales .btn-primary,
.portal-technician .btn-primary { background: var(--gb-blue) !important; border-color: var(--gb-blue) !important; }
.portal-technician .container { max-width: 1500px; margin: 0 auto; }
.portal-technician .header { color: var(--gb-ink) !important; }
.portal-technician .header h2, .portal-technician .profile-info h2 { color: var(--gb-ink) !important; }
.portal-technician .header p, .portal-technician .profile-info p { color: var(--gb-muted) !important; }
@media (max-width: 768px) {
  .portal-admin .main-content, .portal-customer .main-content, .portal-sales .main-content { padding: 12px !important; }
  .portal-admin .header, .portal-customer .header, .portal-sales .header { padding: 12px 14px !important; }
  .portal-technician .container { padding: 12px !important; }
}

/* Finance-first Admin dashboard */
.portal-admin .gb-finance-dashboard { margin: 0 0 24px; color: var(--gb-ink); }
.portal-admin .gb-finance-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin: 4px 0 18px; }
.portal-admin .gb-finance-heading h2 { margin:0; color:var(--gb-ink); font-size:1.45rem; font-weight:800; }
.portal-admin .gb-finance-heading p { margin:5px 0 0; color:var(--gb-muted); font-size:.9rem; }
.portal-admin .gb-finance-link { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid #d7e5f6; border-radius:10px; color:var(--gb-blue); background:#fff; text-decoration:none; font-weight:700; }
.portal-admin .gb-finance-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.portal-admin .gb-finance-kpi { min-width:0; display:flex; align-items:center; gap:13px; padding:18px; background:#fff; border:1px solid var(--gb-border); border-radius:16px; box-shadow:var(--gb-shadow); }
.portal-admin .gb-kpi-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:13px; font-size:1.2rem; }
.portal-admin .gb-kpi-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.portal-admin .gb-kpi-copy span { color:#53647a; font-size:.83rem; font-weight:700; }
.portal-admin .gb-kpi-copy strong { color:#14243a; font-size:clamp(1.05rem,1.55vw,1.5rem); line-height:1.2; overflow-wrap:anywhere; }
.portal-admin .gb-kpi-copy small { color:#8491a3; font-size:.72rem; line-height:1.35; }
.portal-admin .gb-kpi-blue .gb-kpi-icon { background:#e8f1ff; color:#2378ed; }
.portal-admin .gb-kpi-green .gb-kpi-icon { background:#e8f8ef; color:#20a45c; }
.portal-admin .gb-kpi-orange .gb-kpi-icon { background:#fff4df; color:#e99512; }
.portal-admin .gb-kpi-red .gb-kpi-icon { background:#ffeded; color:#e34b4b; }
.portal-admin .gb-finance-panels { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr); gap:16px; }
.portal-admin .gb-finance-panel { min-width:0; padding:18px; background:#fff; border:1px solid var(--gb-border); border-radius:16px; box-shadow:var(--gb-shadow); }
.portal-admin .gb-panel-heading h3 { margin:0; color:var(--gb-ink); font-size:1rem; font-weight:800; }
.portal-admin .gb-panel-heading p { margin:4px 0 0; color:var(--gb-muted); font-size:.78rem; }
.portal-admin .gb-finance-chart-wrap { position:relative; height:245px; margin-top:14px; }
.portal-admin .gb-source-content { display:flex; align-items:center; gap:16px; margin-top:12px; }
.portal-admin .gb-source-chart-wrap { position:relative; width: min(46%,190px); height:175px; flex:0 0 min(46%,190px); }
.portal-admin .gb-source-legend { flex:1; min-width:0; display:grid; gap:13px; }
.portal-admin .gb-source-legend > div { display:grid; grid-template-columns:10px minmax(0,1fr); gap:4px 8px; align-items:center; font-size:.8rem; color:#596a80; }
.portal-admin .gb-source-legend strong { grid-column:2; color:#172b45; font-size:.85rem; overflow-wrap:anywhere; }
.portal-admin .gb-dot { width:9px; height:9px; border-radius:50%; grid-row:span 2; }
.portal-admin .gb-dot-blue { background:#2378ed; } .portal-admin .gb-dot-green { background:#28b76b; } .portal-admin .gb-dot-orange { background:#f59e0b; }
.portal-admin .gb-finance-note { margin:12px 0 0; padding-top:10px; border-top:1px solid #edf1f6; color:#8793a4; font-size:.72rem; line-height:1.45; }
@media (max-width:1100px) { .portal-admin .gb-finance-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .portal-admin .gb-finance-heading { align-items:flex-start; flex-direction:column; } .portal-admin .gb-finance-panels { grid-template-columns:1fr; } .portal-admin .gb-finance-kpi { padding:14px; } .portal-admin .gb-source-chart-wrap { width:42%; flex-basis:42%; } }
@media (max-width:420px) { .portal-admin .gb-finance-kpis { grid-template-columns:1fr; } .portal-admin .gb-finance-chart-wrap { height:210px; } }


/* Stage 4 — Customer portal dashboard polish (additive; preserves existing controls) */
.portal-customer .gb-customer-dashboard { max-width: 1480px !important; padding: 24px clamp(14px, 2vw, 30px) 36px !important; }
.portal-customer .gb-customer-welcome {
  background: linear-gradient(115deg, #ffffff 0%, #eef6ff 100%) !important;
  border: 1px solid #dce9f8 !important; border-radius: 20px !important;
  padding: 24px 26px !important; position: relative; overflow: hidden;
}
.portal-customer .gb-customer-welcome:after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -55px; top: -95px;
  border-radius: 50%; background: rgba(18,104,232,.07); pointer-events: none;
}
.portal-customer .gb-customer-welcome h2 { color: #102b4b !important; font-size: clamp(1.35rem, 2vw, 1.8rem) !important; font-weight: 800 !important; }
.portal-customer .gb-customer-welcome p { color: #62748a !important; }
.portal-customer .gb-customer-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; margin-top: 18px !important; }
.portal-customer .gb-package-summary-card, .portal-customer .gb-invoice-summary-card {
  min-height: 210px; padding: 22px !important; border-radius: 18px !important;
  background: #fff !important; border: 1px solid #e0eaf6 !important;
}
.portal-customer .gb-package-summary-card h3, .portal-customer .gb-invoice-summary-card h3,
.portal-customer .gb-onu-summary-card h3 { color: #1268e8 !important; font-weight: 750 !important; }
.portal-customer .gb-package-summary-card h2 { color: #14243a !important; font-size: 1.55rem !important; }
.portal-customer .gb-package-summary-card p, .portal-customer .gb-invoice-summary-card p { color: #52657d !important; }
.portal-customer .gb-invoice-summary-card .btn-primary { background: #1268e8 !important; border-color: #1268e8 !important; color: #fff !important; border-radius: 11px !important; font-weight: 700 !important; }
.portal-customer .gb-customer-dashboard > .card { padding: 22px !important; margin-bottom: 18px !important; border-radius: 18px !important; }
.portal-customer .gb-onu-summary-card { border-top: 3px solid #1268e8 !important; }
.portal-customer .gb-customer-dashboard .data-table th { color: #29415e !important; font-weight: 700 !important; }
.portal-customer .gb-customer-dashboard .data-table td { color: #334a64 !important; }
.portal-customer .gb-customer-dashboard .badge-success { background: #dcfce7 !important; color: #166534 !important; }
.portal-customer .gb-customer-dashboard .badge-warning { background: #fff2d6 !important; color: #9a5b00 !important; }
.portal-customer .gb-customer-dashboard .btn { border-radius: 10px !important; font-weight: 650 !important; }
@media (max-width: 760px) {
  .portal-customer .gb-customer-dashboard { padding: 14px 12px 28px !important; }
  .portal-customer .gb-customer-overview-grid { grid-template-columns: 1fr !important; }
  .portal-customer .gb-package-summary-card, .portal-customer .gb-invoice-summary-card { min-height: 0; padding: 18px !important; }
  .portal-customer .gb-customer-welcome { padding: 18px !important; }
}

/* Stage 5 — Sales Wallet and Sales dashboard */
.portal-sales .gb-sales-dashboard { max-width:1500px; margin:0 auto; padding:22px clamp(12px,2vw,28px) 36px; display:grid; gap:18px; }
.portal-sales .gb-sales-welcome { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px; border:1px solid #dce8f7; border-radius:18px; background:linear-gradient(115deg,#fff 0%,#edf5ff 100%); box-shadow:var(--gb-shadow); }
.portal-sales .gb-sales-eyebrow { color:#2378ed; font-size:.7rem; font-weight:800; letter-spacing:.12em; }
.portal-sales .gb-sales-welcome h2 { margin:5px 0 3px; color:#14243a; font-size:clamp(1.2rem,2vw,1.65rem); font-weight:800; }
.portal-sales .gb-sales-welcome p { margin:0; color:#687990; font-size:.88rem; }
.portal-sales .gb-sales-account-code { padding:9px 13px; border-radius:999px; background:#e3efff; color:#1763cb; font-weight:750; white-space:nowrap; }
.portal-sales .gb-sales-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.portal-sales .gb-sales-kpi { min-width:0; padding:18px; border:1px solid #e1eaf5; border-radius:17px; background:#fff; box-shadow:var(--gb-shadow); }
.portal-sales .gb-sales-kpi-top { display:flex; align-items:center; gap:11px; margin-bottom:13px; }
.portal-sales .gb-sales-icon { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; border-radius:13px; background:#e8f1ff; color:#2378ed; font-size:1.1rem; }
.portal-sales .gb-sales-kpi-label { color:#52647b; font-size:.82rem; font-weight:750; line-height:1.35; }
.portal-sales .gb-sales-kpi > strong { display:block; color:#14243a; font-size:clamp(1.15rem,1.7vw,1.65rem); font-weight:850; overflow-wrap:anywhere; }
.portal-sales .gb-sales-kpi > small { display:block; margin-top:6px; color:#8190a3; font-size:.76rem; }
.portal-sales .gb-sales-kpi-green .gb-sales-icon { background:#e5f8ed; color:#1ca45a; }
.portal-sales .gb-sales-kpi-purple .gb-sales-icon { background:#f0eaff; color:#7844d6; }
.portal-sales .gb-sales-kpi-orange .gb-sales-icon { background:#fff2df; color:#d88713; }
.portal-sales .gb-sales-kpi-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:12px; }
.portal-sales .gb-sales-kpi-actions small { color:#8190a3; }
.portal-sales .gb-sales-action-primary { padding:7px 10px; border-radius:9px; background:#1268e8; color:#fff !important; font-size:.75rem; font-weight:750; }
.portal-sales .gb-sales-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.portal-sales .gb-sales-shortcut { display:flex; align-items:center; gap:12px; min-width:0; padding:15px; border:1px solid #e1eaf5; border-radius:15px; background:#fff; box-shadow:var(--gb-shadow); color:#203752 !important; transition:transform .15s ease,box-shadow .15s ease; }
.portal-sales .gb-sales-shortcut:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(21,55,95,.12); }
.portal-sales .gb-sales-shortcut > span { width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; border-radius:12px; background:#e8f1ff; color:#2378ed; font-size:1.05rem; }
.portal-sales .gb-sales-shortcut b { flex:1; font-size:.84rem; line-height:1.35; }
.portal-sales .gb-sales-shortcut > i:last-child { color:#8b9ab0; font-size:.75rem; }
.portal-sales .gb-sales-shortcut-green > span { background:#e6f8ee; color:#1ca45a; }
.portal-sales .gb-sales-shortcut-purple > span { background:#f0eaff; color:#7844d6; }
.portal-sales .gb-sales-shortcut-orange > span { background:#fff2df; color:#d88713; }
.portal-sales .gb-sales-lower-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.85fr); gap:16px; align-items:start; }
.portal-sales .gb-sales-panel { min-width:0; padding:18px; border:1px solid #e1eaf5; border-radius:17px; background:#fff; box-shadow:var(--gb-shadow); }
.portal-sales .gb-sales-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:15px; }
.portal-sales .gb-sales-panel-heading h3,.portal-sales .gb-sales-info-panel h3 { margin:0; color:#172b45; font-size:1rem; font-weight:800; }
.portal-sales .gb-sales-panel-heading h3 i,.portal-sales .gb-sales-info-panel h3 i { margin-right:7px; color:#2378ed; }
.portal-sales .gb-sales-panel-heading p { margin:4px 0 0; color:#8190a3; font-size:.75rem; }
.portal-sales .gb-sales-panel-heading > a { color:#1768d8; font-size:.78rem; font-weight:750; white-space:nowrap; }
.portal-sales .gb-sales-table-wrap { overflow-x:auto; }
.portal-sales .gb-sales-table { width:100%; border-collapse:collapse; font-size:.79rem; }
.portal-sales .gb-sales-table th { padding:11px 9px; background:#edf4fd; color:#29415e; text-align:left; font-weight:800; white-space:nowrap; }
.portal-sales .gb-sales-table td { padding:12px 9px; border-bottom:1px solid #edf1f6; color:#43566f; vertical-align:middle; }
.portal-sales .gb-sales-tag { display:inline-block; padding:5px 8px; border-radius:999px; font-size:.69rem; font-weight:750; white-space:nowrap; }
.portal-sales .gb-sales-tag-green { background:#e5f8ed; color:#167a43; } .portal-sales .gb-sales-tag-purple { background:#f0eaff; color:#6840bb; } .portal-sales .gb-sales-tag-blue { background:#e5f0ff; color:#1763cb; } .portal-sales .gb-sales-tag-orange { background:#fff2df; color:#9b620b; }
.portal-sales .gb-sales-amount { white-space:nowrap; font-weight:800; } .portal-sales .gb-sales-amount.is-positive { color:#16834b; } .portal-sales .gb-sales-amount.is-negative { color:#42536a; }
.portal-sales .gb-sales-status { color:#16834b; font-size:.72rem; font-weight:750; white-space:nowrap; }
.portal-sales .gb-sales-side-column { display:grid; gap:16px; }
.portal-sales .gb-sales-summary-row,.portal-sales .gb-sales-balance-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid #edf1f6; color:#52647b; font-size:.83rem; }
.portal-sales .gb-sales-summary-row span i { margin-right:6px; color:#1ca45a; } .portal-sales .gb-sales-summary-row:nth-of-type(2) span i { color:#df8b19; }
.portal-sales .gb-sales-summary-row strong { color:#263b55; white-space:nowrap; }
.portal-sales .gb-sales-balance-row { margin-top:3px; border:0; color:#172b45; font-weight:800; }
.portal-sales .gb-sales-balance-row strong { color:#1268e8; font-size:1.2rem; }
.portal-sales .gb-sales-footnote { margin:8px 0 0; color:#8793a4; font-size:.72rem; line-height:1.5; }
.portal-sales .gb-sales-info-panel { background:linear-gradient(145deg,#fff 0%,#f0f7ff 100%); }
.portal-sales .gb-sales-info-panel ul { margin:12px 0 0; padding-left:19px; color:#53657c; font-size:.8rem; line-height:1.65; }
.portal-sales .gb-sales-empty { display:grid; justify-items:center; gap:6px; padding:35px 12px; color:#7b8ba1; text-align:center; }
.portal-sales .gb-sales-empty i { color:#9aabc0; font-size:1.8rem; }
@media(max-width:1100px) { .portal-sales .gb-sales-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .portal-sales .gb-sales-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); } .portal-sales .gb-sales-lower-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .portal-sales .gb-sales-dashboard { padding:14px 12px 28px; gap:13px; } .portal-sales .gb-sales-welcome { align-items:flex-start; flex-direction:column; padding:17px; } .portal-sales .gb-sales-kpis { gap:10px; } .portal-sales .gb-sales-kpi { padding:13px; } .portal-sales .gb-sales-kpi-top { align-items:flex-start; flex-direction:column; gap:7px; } .portal-sales .gb-sales-kpi-actions { align-items:flex-start; flex-direction:column; } .portal-sales .gb-sales-shortcuts { grid-template-columns:1fr 1fr; gap:9px; } .portal-sales .gb-sales-shortcut { align-items:flex-start; flex-direction:column; padding:12px; gap:8px; } .portal-sales .gb-sales-panel { padding:14px; } .portal-sales .gb-sales-table thead { display:none; } .portal-sales .gb-sales-table,.portal-sales .gb-sales-table tbody,.portal-sales .gb-sales-table tr,.portal-sales .gb-sales-table td { display:block; width:100%; } .portal-sales .gb-sales-table tr { padding:9px 0; border-bottom:1px solid #e8eef6; } .portal-sales .gb-sales-table td { display:flex; justify-content:space-between; gap:12px; padding:5px 2px; border:0; text-align:right; } .portal-sales .gb-sales-table td:before { content:attr(data-label); color:#8290a3; font-weight:700; text-align:left; } }

/* Stage 6 — Technician Field Operations portal */
.portal-technician { min-height:100vh; padding-bottom:88px !important; }
.portal-technician .tech-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px clamp(16px,3vw,36px); background:#fff; border-bottom:1px solid var(--gb-border); box-shadow:0 4px 18px rgba(21,55,95,.05); }
.portal-technician .tech-brand,.portal-technician .tech-header-actions { display:flex; align-items:center; gap:12px; }
.portal-technician .tech-brand-mark { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e8f1ff;color:#1768d8;font-size:1.15rem; }
.portal-technician .tech-brand strong { display:block;color:#14243a;font-size:1rem;font-weight:850; }
.portal-technician .tech-brand small { display:block;color:#7c8ba0;font-size:.72rem;margin-top:2px; }
.portal-technician .tech-role { color:#52647b;font-size:.8rem;font-weight:700; }
.portal-technician .tech-logout { width:38px;height:38px;display:grid;place-items:center;border:1px solid #e1eaf5;border-radius:11px;color:#d64b55;text-decoration:none; }
.portal-technician .tech-dashboard { max-width:1500px;margin:0 auto;padding:24px clamp(14px,2.2vw,32px);display:grid;gap:20px; }
.portal-technician .tech-welcome { display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 26px;border:1px solid #dce8f7;border-radius:19px;background:linear-gradient(115deg,#fff 0%,#edf5ff 100%);box-shadow:var(--gb-shadow); }
.portal-technician .tech-eyebrow { color:#2378ed;font-size:.68rem;font-weight:850;letter-spacing:.13em; }
.portal-technician .tech-welcome h1 { margin:6px 0 4px;color:#14243a;font-size:clamp(1.35rem,2.2vw,1.85rem);font-weight:850; }
.portal-technician .tech-welcome p,.portal-technician .tech-section-head p { margin:0;color:#718198;font-size:.86rem; }
.portal-technician .tech-date { padding:9px 12px;border:1px solid #dce8f7;border-radius:10px;background:#fff;color:#52647b;font-size:.78rem;font-weight:750;white-space:nowrap; }
.portal-technician .tech-date i { margin-right:6px;color:#2378ed; }
.portal-technician .tech-section-head { display:flex;justify-content:space-between;align-items:end;gap:12px; }
.portal-technician .tech-section-head h2 { margin:0 0 4px;color:#172b45;font-size:1.05rem;font-weight:850; }
.portal-technician .tech-section-head > a { color:#1768d8;font-size:.78rem;font-weight:800;text-decoration:none;white-space:nowrap; }
.portal-technician .tech-kpis { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.portal-technician .tech-kpi { display:flex;align-items:center;gap:14px;min-width:0;padding:19px;border:1px solid #e1eaf5;border-radius:17px;background:#fff;box-shadow:var(--gb-shadow); }
.portal-technician .tech-kpi-icon { width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:14px;background:#fff2df;color:#d88713;font-size:1.15rem; }
.portal-technician .tech-kpi-blue .tech-kpi-icon { background:#e8f1ff;color:#2378ed; }.portal-technician .tech-kpi-green .tech-kpi-icon { background:#e5f8ed;color:#20a45c; }
.portal-technician .tech-kpi span,.portal-technician .tech-kpi small { display:block;color:#718198;font-size:.76rem; }.portal-technician .tech-kpi strong { display:block;margin:3px 0;color:#172b45;font-size:1.65rem;line-height:1.1;font-weight:850; }.portal-technician .tech-kpi small { font-size:.68rem; }
.portal-technician .tech-shortcuts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.portal-technician .tech-shortcut { display:flex;align-items:center;gap:13px;min-width:0;padding:16px;border:1px solid #e1eaf5;border-radius:15px;background:#fff;box-shadow:var(--gb-shadow);color:inherit;text-decoration:none;transition:transform .15s,border-color .15s; }
.portal-technician .tech-shortcut:hover { transform:translateY(-2px);border-color:#b8d2f4; }
.portal-technician .tech-shortcut-icon { width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:12px;background:#e8f1ff;color:#2378ed;font-size:1.05rem; }.portal-technician .tech-shortcut-icon.orange { background:#fff2df;color:#d88713; }.portal-technician .tech-shortcut-icon.purple { background:#f0eaff;color:#7844d6; }.portal-technician .tech-shortcut-icon.green { background:#e5f8ed;color:#20a45c; }
.portal-technician .tech-shortcut span:nth-child(2) { flex:1;min-width:0; }.portal-technician .tech-shortcut strong { display:block;color:#203650;font-size:.86rem;font-weight:850; }.portal-technician .tech-shortcut small { display:block;margin-top:3px;color:#8190a3;font-size:.72rem; }.portal-technician .tech-shortcut > i { color:#9aa8b9;font-size:.75rem; }
.portal-technician .tech-info-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }.portal-technician .tech-info-card { display:flex;gap:12px;padding:17px;border:1px solid #e1eaf5;border-radius:15px;background:#fff; }.portal-technician .tech-info-icon { width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:#e8f1ff;color:#2378ed; }.portal-technician .tech-info-icon.green { background:#e5f8ed;color:#20a45c; }.portal-technician .tech-info-card h3 { margin:1px 0 4px;color:#203650;font-size:.83rem;font-weight:850; }.portal-technician .tech-info-card p { margin:0;color:#718198;font-size:.73rem;line-height:1.55; }
.portal-technician .bottom-nav { background:#fff !important;border-top:1px solid #e1eaf5 !important;box-shadow:0 -5px 20px rgba(17,24,39,.08) !important; }.portal-technician .nav-item { color:#8290a3 !important; }.portal-technician .nav-item.active { color:#1768d8 !important; }
@media(max-width:800px) { .portal-technician .tech-kpis { grid-template-columns:1fr 1fr; }.portal-technician .tech-kpi:last-child { grid-column:span 2; } }
@media(max-width:600px) { .portal-technician .tech-dashboard { padding:14px 12px 24px;gap:14px; }.portal-technician .tech-welcome { align-items:flex-start;flex-direction:column;padding:18px; }.portal-technician .tech-shortcuts,.portal-technician .tech-info-grid { grid-template-columns:1fr; }.portal-technician .tech-kpi { padding:14px;gap:10px; }.portal-technician .tech-kpi-icon { width:40px;height:40px;flex-basis:40px; }.portal-technician .tech-kpi strong { font-size:1.4rem; }.portal-technician .tech-header { padding:12px 14px; }.portal-technician .tech-role { display:none; } }

/* STAGE2 ADMIN SETTINGS FORM CONTRAST FIX */
/* Form markup retains legacy light-on-dark colors; the redesigned admin canvas is light. */
body.portal-admin .form-label,
body.portal-admin label.form-label,
body.portal-admin .form-group > label {
  color: #52647b !important;
  -webkit-text-fill-color: #52647b !important;
  opacity: 1 !important;
}

body.portal-admin .form-control,
body.portal-admin input.form-control,
body.portal-admin select.form-control,
body.portal-admin textarea.form-control {
  color: #26374d !important;
  -webkit-text-fill-color: #26374d !important;
  background-color: #ffffff !important;
  border-color: #d7e2f0 !important;
}

body.portal-admin .form-control::placeholder,
body.portal-admin input.form-control::placeholder,
body.portal-admin textarea.form-control::placeholder {
  color: #8290a3 !important;
  -webkit-text-fill-color: #8290a3 !important;
  opacity: 1 !important;
}

body.portal-admin select.form-control option {
  color: #26374d !important;
  background-color: #ffffff !important;
}
/* GEMBOK-SIMPLE VISUAL REFRESH STAGE 3 — calm contrast, readable tables and controls.
   Scoped to Admin so existing Customer, Sales and Technician soft themes remain intact. */

body.portal-admin {
  --gb-v3-canvas: #f3f5f7;
  --gb-v3-surface: #ffffff;
  --gb-v3-surface-soft: #f4f6f8;
  --gb-v3-ink: #28384a;
  --gb-v3-muted: #5c6d80;
  --gb-v3-subtle: #718196;
  --gb-v3-border: #e1e7ed;
  --gb-v3-blue: #4c6b88;
  --gb-v3-blue-hover: #3f5d79;
  --gb-v3-green: #3f765a;
  --gb-v3-amber: #805b25;
  --gb-v3-red: #944f54;
  --gb-v3-info: #4e6c85;

  --bg-primary: var(--gb-v3-canvas);
  --bg-secondary: var(--gb-v3-surface-soft);
  --bg-card: var(--gb-v3-surface);
  --bg-sidebar: #263b50;
  --bg-submenu: #30485f;
  --bg-input: #ffffff;
  --text-primary: var(--gb-v3-ink);
  --text-secondary: var(--gb-v3-muted);
  --text-muted: var(--gb-v3-subtle);
  --neon-cyan: var(--gb-v3-blue);
  --neon-purple: #687b91;
  --neon-pink: #98717a;
  --neon-green: #527d65;
  --neon-orange: #a77a43;
  --neon-red: #a45f64;
  --border-color: var(--gb-v3-border);
  --border-glow: rgba(76, 107, 136, .18);
  --gradient-primary: linear-gradient(135deg, #4c6b88, #617d98);
  --gradient-success: linear-gradient(135deg, #527d65, #688d78);
  --gradient-warning: linear-gradient(135deg, #a45f64, #b67878);
  --shadow-neon: 0 4px 14px rgba(40, 56, 74, .09);
  --shadow-card: 0 5px 18px rgba(40, 56, 74, .055);

  background: var(--gb-v3-canvas) !important;
  color: var(--gb-v3-ink) !important;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.portal-admin .main-content {
  color: var(--gb-v3-ink) !important;
}

body.portal-admin h1,
body.portal-admin h2,
body.portal-admin h3,
body.portal-admin h4,
body.portal-admin h5,
body.portal-admin .header-title h1,
body.portal-admin .card-title {
  color: #34495e !important;
  -webkit-text-fill-color: #34495e !important;
  letter-spacing: normal !important;
}

body.portal-admin .header,
body.portal-admin .card,
body.portal-admin .modal-content {
  background: var(--gb-v3-surface) !important;
  border: 1px solid var(--gb-v3-border) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--gb-v3-ink) !important;
}

body.portal-admin .card {
  border-radius: 14px !important;
}

body.portal-admin .card-header {
  background: #f4f6f8 !important;
  border-bottom: 1px solid #e1e7ed !important;
  color: #34495e !important;
}

body.portal-admin .card-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

body.portal-admin .card-title i,
body.portal-admin .card-header i {
  color: #607c96 !important;
}

/* Navigation: keep the navy identity, but soften the active-state blue. */
body.portal-admin .sidebar {
  background: linear-gradient(180deg, #2b435a 0%, #24394f 100%) !important;
  box-shadow: 5px 0 20px rgba(31, 49, 68, .08) !important;
}

body.portal-admin .menu-item {
  color: #e2e9ef !important;
}

body.portal-admin .menu-item:hover,
body.portal-admin .menu-item.active {
  background: #496781 !important;
  color: #ffffff !important;
  border-left-color: transparent !important;
}

body.portal-admin .submenu {
  background: #30485f !important;
}

/* Links and helper text: no highlighter-cyan or ultra-light text on white. */
body.portal-admin .main-content a:not(.btn),
body.portal-admin .main-content a:not(.btn):visited {
  color: #4c6b88;
}

body.portal-admin .main-content a:not(.btn):hover {
  color: #344f69;
}

body.portal-admin small,
body.portal-admin .text-muted,
body.portal-admin .pagination-info,
body.portal-admin .form-text {
  color: #68798c !important;
}

/* Form controls across Settings, Customers, Packages, Router and modals. */
body.portal-admin label,
body.portal-admin .form-label,
body.portal-admin .form-group > label {
  color: #526579 !important;
  -webkit-text-fill-color: #526579 !important;
  font-size: .86rem !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}

body.portal-admin input,
body.portal-admin select,
body.portal-admin textarea,
body.portal-admin .form-control {
  background: #ffffff !important;
  color: #28384a !important;
  -webkit-text-fill-color: #28384a !important;
  border: 1px solid #d6dfe7 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: .9rem !important;
}

body.portal-admin input::placeholder,
body.portal-admin textarea::placeholder,
body.portal-admin .form-control::placeholder {
  color: #8492a1 !important;
  -webkit-text-fill-color: #8492a1 !important;
  opacity: 1 !important;
}

body.portal-admin input:focus,
body.portal-admin select:focus,
body.portal-admin textarea:focus,
body.portal-admin .form-control:focus {
  border-color: #8ba1b5 !important;
  box-shadow: 0 0 0 3px rgba(76, 107, 136, .12) !important;
  outline: none !important;
}

body.portal-admin select option {
  background: #ffffff !important;
  color: #28384a !important;
}

/* Consistent button system. Inline legacy neon fills are toned down by variables above. */
body.portal-admin .btn {
  border-radius: 8px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease !important;
}

body.portal-admin .btn-primary {
  background: #4c6b88 !important;
  border-color: #4c6b88 !important;
  color: #ffffff !important;
}

body.portal-admin .btn-primary:hover,
body.portal-admin .btn-primary:focus {
  background: #3f5d79 !important;
  border-color: #3f5d79 !important;
}

body.portal-admin .btn-secondary {
  background: #f1f4f7 !important;
  border: 1px solid #dce3e9 !important;
  color: #43586d !important;
}

body.portal-admin .btn-secondary:hover {
  background: #e8edf2 !important;
  border-color: #cbd6df !important;
  color: #344b61 !important;
}

/* Invoice action buttons: preserve action meaning in softer, low-glare tones. */
body.portal-admin .data-table .btn-secondary[style*="--neon-purple"] {
  background: #edf0f5 !important; border-color: #d8e0e9 !important; color: #687b91 !important;
}
body.portal-admin .data-table .btn-secondary[style*="--neon-red"] {
  background: #f7ebec !important; border-color: #e9d2d4 !important; color: #944f54 !important;
}
body.portal-admin .data-table .btn-secondary[style*="--neon-cyan"] {
  background: #edf2f7 !important; border-color: #dce5ed !important; color: #4e6c85 !important;
}

body.portal-admin .btn-success {
  background: #527d65 !important;
  border-color: #527d65 !important;
  color: #ffffff !important;
}

body.portal-admin .btn-danger {
  background: #a45f64 !important;
  border-color: #a45f64 !important;
  color: #ffffff !important;
}

body.portal-admin .btn-warning {
  background: #a77a43 !important;
  border-color: #a77a43 !important;
  color: #ffffff !important;
}

body.portal-admin .btn:focus-visible,
body.portal-admin button:focus-visible,
body.portal-admin a:focus-visible {
  outline: 3px solid rgba(76, 107, 136, .28) !important;
  outline-offset: 2px !important;
}

/* Tables: readable header, comfortable row height, quiet separators and hover. */
body.portal-admin .table-responsive {
  border-radius: 10px !important;
}

body.portal-admin table,
body.portal-admin .data-table,
body.portal-admin .datatable-table {
  color: #34495e !important;
  background: #ffffff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: .88rem !important;
}

body.portal-admin .data-table thead,
body.portal-admin .data-table thead tr,
body.portal-admin .data-table thead th,
body.portal-admin .datatable-table thead,
body.portal-admin .datatable-table thead th {
  background: #edf1f5 !important;
  color: #455a70 !important;
  -webkit-text-fill-color: #455a70 !important;
  opacity: 1 !important;
}

body.portal-admin .data-table th,
body.portal-admin .datatable-table th {
  padding: 13px 12px !important;
  border-bottom: 1px solid #dce4eb !important;
  color: #455a70 !important;
  font-size: .76rem !important;
  font-weight: 750 !important;
  letter-spacing: .025em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

body.portal-admin .data-table td,
body.portal-admin .datatable-table td {
  padding: 13px 12px !important;
  border-bottom: 1px solid #e8edf1 !important;
  color: #34495e !important;
  font-size: .88rem !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
}

body.portal-admin .data-table tbody tr,
body.portal-admin .datatable-table tbody tr {
  background: #ffffff !important;
}

body.portal-admin .data-table tbody tr:nth-child(even),
body.portal-admin .datatable-table tbody tr:nth-child(even) {
  background: #fafbfd !important;
}

body.portal-admin .data-table tbody tr:hover,
body.portal-admin .datatable-table tbody tr:hover {
  background: #f1f5f8 !important;
}

body.portal-admin .data-table td strong,
body.portal-admin .datatable-table td strong {
  color: #2d4258 !important;
  font-weight: 700 !important;
}

body.portal-admin .data-table td code,
body.portal-admin .datatable-table td code {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f0f3f6 !important;
  color: #4c6b88 !important;
  -webkit-text-fill-color: #4c6b88 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

body.portal-admin .data-table td small,
body.portal-admin .datatable-table td small {
  color: #718196 !important;
  font-size: .78rem !important;
}

/* Status badges retain meaning without fluorescent red, green or yellow. */
body.portal-admin .badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

body.portal-admin .badge-success {
  background: #eaf3ed !important;
  border-color: #d2e4d8 !important;
  color: #3f765a !important;
  -webkit-text-fill-color: #3f765a !important;
}

body.portal-admin .badge-warning {
  background: #f8f1e6 !important;
  border-color: #eadcc4 !important;
  color: #805b25 !important;
  -webkit-text-fill-color: #805b25 !important;
}

body.portal-admin .badge-danger {
  background: #f7ebec !important;
  border-color: #e9d2d4 !important;
  color: #944f54 !important;
  -webkit-text-fill-color: #944f54 !important;
}

body.portal-admin .badge-info,
body.portal-admin .badge-secondary {
  background: #edf2f7 !important;
  border-color: #dce5ed !important;
  color: #4e6c85 !important;
  -webkit-text-fill-color: #4e6c85 !important;
}

/* Legacy inline status colors are superseded by the class-based badge palette above. */

/* Datatables controls and pagination. */
body.portal-admin .datatable-wrapper .datatable-top,
body.portal-admin .datatable-wrapper .datatable-bottom {
  color: #5c6d80 !important;
  font-size: .84rem !important;
}

body.portal-admin .datatable-wrapper .datatable-input,
body.portal-admin .datatable-wrapper .datatable-selector {
  background: #ffffff !important;
  color: #28384a !important;
  border: 1px solid #d6dfe7 !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
}

body.portal-admin .datatable-wrapper .datatable-pagination a {
  border-color: #dce4eb !important;
  background: #ffffff !important;
  color: #4c6b88 !important;
  border-radius: 7px !important;
}

body.portal-admin .datatable-wrapper .datatable-pagination .active a {
  background: #4c6b88 !important;
  border-color: #4c6b88 !important;
  color: #ffffff !important;
}

/* Alerts, modal copy and helper panels. */
body.portal-admin .alert-success {
  background: #edf5f0 !important;
  border: 1px solid #d2e4d8 !important;
  color: #3f765a !important;
}

body.portal-admin .alert-error,
body.portal-admin .alert-danger {
  background: #faf0f1 !important;
  border: 1px solid #e9d2d4 !important;
  color: #944f54 !important;
}

body.portal-admin .alert-info {
  background: #f0f4f8 !important;
  border: 1px solid #dce5ed !important;
  color: #4e6c85 !important;
}

body.portal-admin .modal-content {
  border-radius: 14px !important;
  color: #28384a !important;
}

body.portal-admin .modal-content h1,
body.portal-admin .modal-content h2,
body.portal-admin .modal-content h3,
body.portal-admin .modal-content h4 {
  color: #34495e !important;
}

body.portal-admin .modal-content label {
  color: #526579 !important;
}

body.portal-admin .modal-content input,
body.portal-admin .modal-content select,
body.portal-admin .modal-content textarea {
  color: #28384a !important;
  background: #ffffff !important;
}

/* Smaller devices: do not squeeze controls or table labels. */
@media (max-width: 768px) {
  body.portal-admin { font-size: 14px !important; }
  body.portal-admin .card { padding: 15px !important; }
  body.portal-admin .card-header { gap: 10px !important; }
  body.portal-admin .data-table th,
  body.portal-admin .data-table td { padding: 10px 9px !important; }
  body.portal-admin .data-table td { font-size: .84rem !important; }
  body.portal-admin .btn-sm { min-height: 31px; }
}


/* GEMBOK-SIMPLE PORTAL SOFT PROFESSIONAL STAGE 4
   Align Customer, Sales and Technician with the approved Admin Stage 3 palette. */
:root {
  --gb-soft-canvas: #f3f5f7;
  --gb-soft-surface: #ffffff;
  --gb-soft-ink: #28384a;
  --gb-soft-muted: #5c6d80;
  --gb-soft-subtle: #718196;
  --gb-soft-border: #e1e7ed;
  --gb-soft-blue: #4c6b88;
  --gb-soft-blue-hover: #3f5d79;
  --gb-soft-green: #3f765a;
  --gb-soft-amber: #805b25;
  --gb-soft-red: #944f54;
  --gb-soft-shadow: 0 5px 18px rgba(40,56,74,.055);
}

body.portal-customer,
body.portal-sales,
body.portal-technician {
  --bg-primary: var(--gb-soft-canvas);
  --bg-secondary: #f4f6f8;
  --bg-card: var(--gb-soft-surface);
  --bg-sidebar: #263b50;
  --text-primary: var(--gb-soft-ink);
  --text-secondary: var(--gb-soft-muted);
  --text-muted: var(--gb-soft-subtle);
  --neon-cyan: var(--gb-soft-blue);
  --neon-purple: #687b91;
  --neon-pink: #98717a;
  --neon-green: #527d65;
  --neon-orange: #a77a43;
  --neon-red: #a45f64;
  --primary: var(--gb-soft-blue) !important;
  --primary-dark: var(--gb-soft-blue-hover) !important;
  --success: var(--gb-soft-green) !important;
  --warning: var(--gb-soft-amber) !important;
  --danger: var(--gb-soft-red) !important;
  --border-color: var(--gb-soft-border);
  --shadow-card: var(--gb-soft-shadow);
  --shadow-neon: 0 4px 14px rgba(40,56,74,.09);
  background: var(--gb-soft-canvas) !important;
  color: var(--gb-soft-ink) !important;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.portal-customer .sidebar,
body.portal-sales .sidebar,
body.portal-technician .sidebar {
  background: linear-gradient(180deg,#2b435a 0%,#24394f 100%) !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 5px 0 20px rgba(31,49,68,.08) !important;
}
body.portal-customer .sidebar-header,
body.portal-sales .sidebar-header,
body.portal-technician .sidebar-header { border-bottom-color: rgba(255,255,255,.12) !important; }
body.portal-customer .sidebar-logo,
body.portal-sales .sidebar-logo,
body.portal-technician .sidebar-logo {
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}
body.portal-customer .sidebar-header > i,
body.portal-sales .sidebar-header > i,
body.portal-technician .sidebar-header > i { color: #d1dce6 !important; }
body.portal-customer .menu-item,
body.portal-sales .menu-item,
body.portal-technician .menu-item { color: #e2e9ef !important; }
body.portal-customer .menu-item:hover,
body.portal-customer .menu-item.active,
body.portal-sales .menu-item:hover,
body.portal-sales .menu-item.active,
body.portal-technician .menu-item:hover,
body.portal-technician .menu-item.active {
  background: #496781 !important;
  color: #fff !important;
  border-left-color: transparent !important;
}
body.portal-customer .submenu,
body.portal-sales .submenu,
body.portal-technician .submenu { background: #30485f !important; }

body.portal-customer .header,
body.portal-customer .card,
body.portal-customer .stat-card,
body.portal-sales .header,
body.portal-sales .card,
body.portal-sales .stat-card,
body.portal-technician .header,
body.portal-technician .card,
body.portal-technician .stat-card,
body.portal-technician .menu-card,
body.portal-technician .task-card,
body.portal-technician .result-card,
body.portal-technician .modal-card {
  background: var(--gb-soft-surface) !important;
  border: 1px solid var(--gb-soft-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--gb-soft-shadow) !important;
  color: var(--gb-soft-ink) !important;
}
body.portal-customer .header-title h1,
body.portal-customer .card-title,
body.portal-sales .header-title h1,
body.portal-sales .card-title,
body.portal-technician h1,
body.portal-technician h2,
body.portal-technician h3,
body.portal-technician h4,
body.portal-technician .section-title,
body.portal-technician .menu-title,
body.portal-technician .customer-name,
body.portal-technician .result-info h3 {
  color: #34495e !important;
  -webkit-text-fill-color: #34495e !important;
  letter-spacing: normal !important;
}
body.portal-customer .card-header,
body.portal-sales .card-header,
body.portal-technician .card-header {
  background: #f4f6f8 !important;
  border-bottom: 1px solid var(--gb-soft-border) !important;
  color: #34495e !important;
}
body.portal-customer p,
body.portal-customer small,
body.portal-customer .text-muted,
body.portal-sales p,
body.portal-sales small,
body.portal-sales .text-muted,
body.portal-technician .profile-info p,
body.portal-technician .stat-label,
body.portal-technician .label,
body.portal-technician .task-desc,
body.portal-technician .task-footer,
body.portal-technician .result-info p,
body.portal-technician .info-label {
  color: var(--gb-soft-muted);
}

body.portal-customer label,
body.portal-customer .form-label,
body.portal-sales label,
body.portal-sales .form-label,
body.portal-technician label,
body.portal-technician .form-label {
  color: #526579 !important;
  -webkit-text-fill-color: #526579 !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}
body.portal-customer input,
body.portal-customer select,
body.portal-customer textarea,
body.portal-customer .form-control,
body.portal-sales input,
body.portal-sales select,
body.portal-sales textarea,
body.portal-sales .form-control,
body.portal-technician input,
body.portal-technician select,
body.portal-technician textarea,
body.portal-technician .form-control {
  background: #fff !important;
  color: var(--gb-soft-ink) !important;
  -webkit-text-fill-color: var(--gb-soft-ink) !important;
  border: 1px solid #d6dfe7 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: .92rem !important;
}
body.portal-customer input::placeholder,
body.portal-customer textarea::placeholder,
body.portal-sales input::placeholder,
body.portal-sales textarea::placeholder,
body.portal-technician input::placeholder,
body.portal-technician textarea::placeholder {
  color: #8492a1 !important;
  -webkit-text-fill-color: #8492a1 !important;
  opacity: 1 !important;
}
body.portal-customer input:focus,
body.portal-customer select:focus,
body.portal-customer textarea:focus,
body.portal-sales input:focus,
body.portal-sales select:focus,
body.portal-sales textarea:focus,
body.portal-technician input:focus,
body.portal-technician select:focus,
body.portal-technician textarea:focus {
  border-color: #8ba1b5 !important;
  box-shadow: 0 0 0 3px rgba(76,107,136,.12) !important;
  outline: none !important;
}

body.portal-customer .btn,
body.portal-sales .btn,
body.portal-technician .btn,
body.portal-technician .btn-submit,
body.portal-technician .btn-search,
body.portal-technician .btn-login,
body.portal-technician .btn-primary {
  border-radius: 8px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
body.portal-customer .btn-primary,
body.portal-sales .btn-primary,
body.portal-sales .btn,
body.portal-technician .btn-submit,
body.portal-technician .btn-search,
body.portal-technician .btn-login,
body.portal-technician .btn-primary {
  background: var(--gb-soft-blue) !important;
  border-color: var(--gb-soft-blue) !important;
  color: #fff !important;
}
body.portal-customer .btn-primary:hover,
body.portal-sales .btn-primary:hover,
body.portal-sales .btn:hover,
body.portal-technician .btn-submit:hover,
body.portal-technician .btn-search:hover,
body.portal-technician .btn-login:hover,
body.portal-technician .btn-primary:hover {
  background: var(--gb-soft-blue-hover) !important;
  border-color: var(--gb-soft-blue-hover) !important;
}
body.portal-customer .btn-secondary,
body.portal-sales .btn-secondary,
body.portal-technician .map-btn {
  background: #f1f4f7 !important;
  border: 1px solid #dce3e9 !important;
  color: #43586d !important;
}

body.portal-customer table,
body.portal-customer .data-table,
body.portal-sales table,
body.portal-sales .data-table,
body.portal-technician table {
  color: #34495e !important;
  background: #fff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: .9rem !important;
}
body.portal-customer thead,
body.portal-customer .data-table thead,
body.portal-sales thead,
body.portal-sales .data-table thead,
body.portal-technician thead {
  background: #edf1f5 !important;
  color: #526579 !important;
}
body.portal-customer th,
body.portal-sales th,
body.portal-technician th { color: #526579 !important; font-weight: 700 !important; }
body.portal-customer td,
body.portal-sales td,
body.portal-technician td { color: #34495e !important; border-bottom-color: #e7ecf0 !important; }
body.portal-customer tbody tr:hover,
body.portal-sales tbody tr:hover,
body.portal-technician tbody tr:hover { background: #f7f9fb !important; }

body.portal-customer .badge-success,
body.portal-sales .badge-success,
body.portal-technician .status-resolved,
body.portal-technician .status-active { background: #eaf3ed !important; color: #3f765a !important; border: 1px solid #d5e5da !important; }
body.portal-customer .badge-warning,
body.portal-sales .badge-warning,
body.portal-technician .status-pending,
body.portal-technician .status-registered { background: #f8f1e7 !important; color: #805b25 !important; border: 1px solid #eadcc8 !important; }
body.portal-customer .badge-danger,
body.portal-sales .badge-danger,
body.portal-technician .status-cancelled { background: #f7ebec !important; color: #944f54 !important; border: 1px solid #e9d2d4 !important; }
body.portal-customer .badge-info,
body.portal-sales .badge-info,
body.portal-technician .status-in_progress { background: #edf2f7 !important; color: #4e6c85 !important; border: 1px solid #dce5ed !important; }

body.portal-customer .mobile-bottom-nav,
body.portal-sales .bottom-nav,
body.portal-technician .bottom-nav {
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid var(--gb-soft-border) !important;
  box-shadow: 0 -5px 18px rgba(40,56,74,.07) !important;
  backdrop-filter: blur(12px);
}
body.portal-customer .mobile-nav-item,
body.portal-sales .bottom-nav-item,
body.portal-technician .nav-item { color: #748395 !important; }
body.portal-customer .mobile-nav-item.active,
body.portal-sales .bottom-nav-item.active,
body.portal-technician .nav-item.active { color: var(--gb-soft-blue) !important; }
body.portal-technician .theme-toggle-fab {
  background: #fff !important; color: var(--gb-soft-blue) !important;
  border: 1px solid #dce4eb !important; box-shadow: 0 6px 18px rgba(40,56,74,.12) !important;
}

/* Standalone Customer service selector. */
body.portal-customer .container { color: var(--gb-soft-ink) !important; }
body.portal-customer .service,
body.portal-customer .detail { background: #fff !important; border: 1px solid var(--gb-soft-border) !important; color: var(--gb-soft-ink) !important; border-radius: 12px !important; box-shadow: var(--gb-soft-shadow) !important; }
body.portal-customer .header h1 { color: #34495e !important; }
body.portal-customer .muted { color: var(--gb-soft-muted) !important; }
body.portal-customer .logout { color: #4c6b88 !important; }

/* Standalone portal login pages. */
body.portal-customer .login-container,
body.portal-sales.login-page,
body.portal-technician.login-page {
  background: var(--gb-soft-canvas) !important;
  color: var(--gb-soft-ink) !important;
}
body.portal-customer .login-card,
body.portal-sales .login-card,
body.portal-technician .login-card {
  background: #fff !important; color: var(--gb-soft-ink) !important;
  border: 1px solid var(--gb-soft-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 40px rgba(40,56,74,.09) !important;
}
body.portal-customer .login-title,
body.portal-sales .brand h1,
body.portal-technician .login-card h1 {
  background: none !important; color: #30475d !important;
  -webkit-text-fill-color: #30475d !important;
}
body.portal-customer .login-header-icon,
body.portal-sales .brand i,
body.portal-technician .logo { color: #58748f !important; -webkit-text-fill-color: #58748f !important; }
body.portal-customer .login-subtitle,
body.portal-customer .login-footer,
body.portal-sales .brand p,
body.portal-sales .login-card p,
body.portal-technician .subtitle { color: #718295 !important; }
body.portal-customer .login-help { background: #f0f4f8 !important; border: 1px solid #dce5ed !important; color: #4e6c85 !important; }
body.portal-customer .phone-format-hint { color: #68798c !important; }
body.portal-customer .btn-login { background: #4c6b88 !important; color: #fff !important; box-shadow: none !important; }
body.portal-sales .login-card a { color: #4c6b88 !important; }
body.portal-sales .alert-error,
body.portal-technician .alert-error { background: #f7ebec !important; border: 1px solid #e9d2d4 !important; color: #944f54 !important; }
body.portal-sales .alert-success { background: #eaf3ed !important; border: 1px solid #d5e5da !important; color: #3f765a !important; }

@media (min-width: 769px) {
  body.portal-customer .main-content,
  body.portal-sales .main-content { color: var(--gb-soft-ink) !important; }
}
@media (max-width: 768px) {
  body.portal-customer .main-content,
  body.portal-sales .main-content { padding: 14px !important; }
  body.portal-customer .header,
  body.portal-sales .header { padding: 14px 16px !important; gap: 10px; }
  body.portal-customer .header-actions,
  body.portal-sales .header-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body.portal-technician .container { padding: 16px 14px 24px !important; }
  body.portal-technician .header { padding: 14px 16px !important; }
  body.portal-technician .stat-number { font-size: 1.7rem !important; }
  body.portal-technician .menu-card { padding: 21px 12px !important; }
  body.portal-technician .login-card { padding: 30px 22px !important; }
}

