/* Company dashboard follows the Laravel reference; owner portal is unchanged. */
.brand-mark:has(img){background:white;padding:4px}.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:8px}.company-portal .brand>span:last-child{min-width:0;overflow-wrap:anywhere}
.settings-tabs{display:flex;gap:6px;overflow-x:auto;padding:5px 2px 14px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.settings-tabs a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 13px;border-radius:10px;color:#56627a;font-size:12px;font-weight:650}
.settings-tabs a:hover{background:#eae7ff;text-decoration:none}.settings-tabs a.selected{background:#6554dd;color:white;box-shadow:0 3px 0 #4536a5}
.company-portal .sidebar{background:linear-gradient(165deg,#151c36,#0d142c);gap:22px}
.company-portal .nav-caption{margin-top:12px}
.company-portal .sidebar nav a{border:1px solid #414d73;background:linear-gradient(#303d61,#1b2544);box-shadow:0 3px 0 #080e21,inset 0 1px 0 #ffffff12;padding:10px 12px}
.company-portal .sidebar nav a.active{color:white;border-color:#978aff;background:linear-gradient(#8a7bf3,#5540c8);box-shadow:0 3px 0 #33258a}
.company-portal .sidebar nav a:hover{border-color:#9c90f4;color:white}
.company-portal .page-content:has(.company-dashboard){padding-top:18px}
.dashboard-title h1{font-size:23px;letter-spacing:-.6px}
.dashboard-title .eyebrow{font-size:9px;margin-bottom:3px}
.dashboard-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:24px}
.dashboard-actions a,.dashboard-actions button{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #cfd6e6;border-radius:15px;background:white;color:var(--ink);font-size:13px;font-weight:700;text-align:left;justify-content:flex-start;box-shadow:0 4px 0 #d3d9e5;min-height:65px}
.dashboard-actions a:hover{border-color:var(--accent);text-decoration:none}
.dashboard-actions .app-icon{flex-shrink:0;color:var(--accent)}
.dashboard-actions button:disabled{opacity:1;background:#f8f9fd;color:#657087;cursor:not-allowed;box-shadow:0 3px 0 #e0e4ec}
.dashboard-actions small{display:block;font-size:10px;font-weight:500;color:#657087}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.dashboard-metric{position:relative;display:flex;align-items:center;gap:15px;padding:21px 18px;min-height:128px;margin:0}
.dashboard-metric h2{font-size:12px;letter-spacing:0;color:#52617a;margin:0 0 3px;font-weight:650}
.dashboard-metric strong{display:block;font-size:28px;line-height:1.4;font-variant-numeric:tabular-nums}
.dashboard-metric small{font-size:11px;color:#68758d}
.dashboard-stat-icon{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:16px;background:#eeebff;color:#6a54d9}
.dashboard-stat-icon .app-icon{width:25px;height:25px}
.dashboard-stat-icon.teal{background:#e4f8f7;color:#20847f}.dashboard-stat-icon.blue{background:#eaf2ff;color:#4f75a9}.dashboard-stat-icon.slate{background:#edf0f6;color:#637087}.dashboard-stat-icon.green{background:#e6f6ee;color:#29866b}.dashboard-stat-icon.orange{background:#fff2e5;color:#a86b29}.dashboard-stat-icon.red{background:#fcedf1;color:#b04765}
.metric-link{position:absolute;inset:0;border-radius:16px}.dashboard-metric:has(a):hover{border-color:#9d8cee}
.dashboard-preview-note{font-size:12px;line-height:1.6;color:#58677f;margin:16px 0}
.dashboard-charts{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:18px}
.dashboard-panel-heading{padding:20px 22px 0}.dashboard-panel-heading h2{font-size:17px;margin-bottom:3px}.dashboard-panel-heading p{font-size:12px;margin:0}
.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:172px;padding:22px;gap:8px;color:#65738b}
.dashboard-empty>.app-icon{width:32px;height:32px;color:#9a8bd6}.dashboard-empty strong{font-size:13px;font-weight:600}.dashboard-empty p{margin:0;font-size:12px;max-width:290px}.dashboard-empty.compact{min-height:95px}
.dashboard-tables{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-charts .panel,.dashboard-tables .panel{margin-bottom:18px}
.dashboard-catalog-link{display:inline-flex;align-items:center;gap:8px;font-size:12px}
@media(min-width:721px){.company-portal .sidebar{position:sticky;top:0;height:100vh;overflow-y:auto}.company-portal .topbar{flex-wrap:wrap}}
@media(max-width:1200px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-charts{grid-template-columns:1fr 1fr}.dashboard-charts>section:first-child{grid-column:1/-1}}
@media(max-width:720px){.company-portal .sidebar nav{overflow-x:auto;padding-bottom:5px}.company-portal .sidebar nav a{white-space:nowrap;flex-shrink:0}.company-portal .topbar{flex-wrap:wrap;gap:10px}.company-portal .header-actions{margin-left:auto}.dashboard-title h1{font-size:20px}.dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics{gap:12px}.dashboard-metric{padding:16px 12px;gap:10px;min-height:115px;flex-wrap:wrap}.dashboard-stat-icon{width:36px;height:36px;border-radius:11px}.dashboard-metric strong{font-size:24px}.dashboard-charts,.dashboard-tables{grid-template-columns:1fr}.dashboard-charts>section:first-child{grid-column:auto}}
@media(max-width:360px){.dashboard-metrics{grid-template-columns:1fr}}
