/* ALMER v5.0.121 — dashboard HP/tablet, scoped to actual roles and screens.
   Loaded after existing themes; no payment, invoice, or isolation logic changed. */
.noc-dashboard, .noc-dashboard-content, .noc-network-grid, .noc-network-grid > *,
.noc-dashboard .stack, .noc-dashboard .card { min-width:0; max-width:100%; }
.noc-dashboard .page-intro .noc-intro-copy { min-width:0; flex:1 1 auto; }
.noc-dashboard .noc-primary-actions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px; }
.noc-dashboard .noc-primary-actions .btn {display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:48px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:anywhere;padding:11px 12px;text-decoration:none;}
.noc-dashboard .noc-tools-more { border:1px solid var(--border);border-radius:16px;background:var(--surface);margin:0 0 18px;overflow:hidden; }
.noc-dashboard .noc-tools-more > summary {display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;padding:12px 16px;min-height:46px;color:var(--text);font-size:12px;font-weight:700;cursor:pointer;}
.noc-dashboard .noc-tools-more > summary::-webkit-details-marker {display:none;}
.noc-dashboard .noc-tools-more > summary span {transition:transform .15s;}
.noc-dashboard .noc-tools-more[open] > summary span {transform:rotate(180deg);}
.noc-dashboard .noc-tools-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px 14px;}
.noc-dashboard .noc-tools-links a {display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:43px;border:1px solid var(--border);border-radius:11px;padding:9px 11px;color:var(--text);background:var(--soft);font-size:12px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;text-decoration:none;}
.noc-dashboard .noc-network-grid {align-items:start;}
.noc-dashboard .noc-traffic-card .chart {display:block;max-width:100%;width:100%;height:auto;aspect-ratio:650/210;min-height:155px;}
.noc-dashboard .noc-rates {display:flex;flex-wrap:wrap;gap:8px 12px;margin:12px 0;}
.noc-dashboard .noc-rates > span {min-width:0;display:flex;align-items:baseline;gap:6px;background:var(--soft);padding:7px 11px;border-radius:10px;}
.noc-dashboard .noc-rates strong {font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.noc-dashboard .noc-router-card .noc-router-item {min-width:0;border:1px solid var(--border);border-radius:14px;padding:12px;margin:0 0 12px!important;}
.noc-dashboard .noc-router-card .noc-router-item:last-child {margin-bottom:0!important;}
.noc-dashboard .noc-router-heading {display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;}
.noc-dashboard .noc-router-heading > strong {min-width:0;max-width:100%;overflow-wrap:anywhere;}
.noc-dashboard .noc-router-heading > button {flex:0 0 auto;}
.noc-dashboard .noc-router-item .small {overflow-wrap:anywhere;}
.noc-dashboard .noc-web-health > .inline {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.noc-dashboard .noc-web-health > .inline h2 {margin:0;}
.noc-dashboard .noc-sessions-table {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.noc-dashboard .noc-sessions-table table {width:max-content;min-width:100%;}
.noc-dashboard .noc-sessions-table th, .noc-dashboard .noc-sessions-table td {white-space:normal;min-width:94px;}
.noc-dashboard .noc-sessions-table th:first-child, .noc-dashboard .noc-sessions-table td:first-child {min-width:135px;}
.noc-dashboard .noc-sessions-table .table-sort {min-height:36px;text-align:left;white-space:normal;}

/* Portal pelanggan, teknisi — no changes to payment behavior or button handlers. */
.mobile-app .app-content .app-hero,
.mobile-app .app-content .app-section-heading,
.mobile-app .app-content .app-service-heading,
.mobile-app .app-content .app-quick-actions,
.mobile-app .app-content .technician-hero-actions {min-width:0;max-width:100%;}
.mobile-app .app-content .app-section-heading > div,
.mobile-app .app-content .app-service-heading > div {min-width:0;}
.mobile-app .app-content .app-quick-actions a {min-width:0;max-width:100%;overflow-wrap:anywhere;}
.mobile-app .app-content .technician-search-card .search-query {min-width:0;max-width:100%;}
.mobile-app .app-content .technician-search-card .search-query input {min-width:0;}
.mobile-app .app-content .card details, .mobile-app .app-content .card form {min-width:0;max-width:100%;}
.mobile-app .app-content .card .grid2 > * {min-width:0;}
.mobile-app .app-content .card :is(.table-wrap,.table-responsive) {max-width:100%;overflow-x:auto;}

/* Agen voucher — independent layout, preserve panels, forms and anchors. */
.agent-dashboard .agent-panel,.agent-dashboard .agent-page,.agent-dashboard .agent-page main,
.agent-dashboard .agent-card,.agent-dashboard .agent-hero {min-width:0;max-width:100%;}
.agent-dashboard .agent-card :is(input,select,textarea,button) {min-width:0;max-width:100%;}
.agent-dashboard .agent-panel :is(.agent-shortcut,.agent-device-row,.agent-topbar-title) {min-width:0;overflow-wrap:anywhere;}
.agent-dashboard .agent-panel :is(.table-wrap,.agent-table-wrap) {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}

@media(max-width:1000px){
  .noc-dashboard .noc-network-grid {display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px;}
  .noc-dashboard .noc-network-grid > section {min-width:0;}
  .noc-dashboard .noc-tools-links {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  /* Admin NOC: a fixed-height header would truncate a long company name. */
  .shell > .sidebar .brand {display:flex;align-items:center;min-width:0;max-width:100%;gap:7px;}
  .shell > .sidebar .brand .brand-name {display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .shell > .sidebar .sidebar-header {display:flex;align-items:center;justify-content:space-between;min-width:0;gap:10px;}
  .shell > .sidebar .sidebar-header > div {min-width:0;flex:1;}
  .shell > .sidebar .mobile-menu-toggle {flex:0 0 auto;}
  .shell > main {min-width:0;max-width:100%;padding-inline:13px;}
  .shell > main > .topbar {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:space-between;min-width:0;gap:10px;margin-bottom:16px;}
  .shell > main > .topbar .topbar-tools {display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:7px;max-width:none;width:auto;}
  .shell > main > .topbar h1 {font-size:clamp(19px,5.7vw,25px);max-width:100%;}
  .shell > main .topbar > div:first-child {min-width:0;overflow-wrap:anywhere;}
  .shell > main .topbar .eyebrow {line-height:1.35;}
  .shell .mobile-dock a span {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;overflow-wrap:normal;}
  .noc-dashboard .noc-intro {display:flex;align-items:flex-start;gap:5px;padding:18px 16px;margin-bottom:12px;}
  .noc-dashboard .noc-intro h2 {font-size:clamp(22px,6.7vw,29px);line-height:1.16;margin:9px 0;}
  .noc-dashboard .noc-intro p {font-size:12px;line-height:1.55;margin-top:6px;}
  .noc-dashboard .noc-intro .intro-number {position:absolute;right:13px;top:12px;font-size:9px;}
  .noc-dashboard .noc-primary-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;}
  .noc-dashboard .noc-primary-actions .btn {min-height:48px;padding:11px 8px;font-size:12px;}
  .noc-dashboard .noc-primary-actions .btn:last-child {grid-column:1/-1;}
  .noc-dashboard .noc-tools-more {margin-bottom:14px;border-radius:13px;}
  .noc-dashboard .noc-tools-more > summary {min-height:45px;padding:10px 13px;}
  .noc-dashboard .noc-tools-links {gap:7px;padding:0 10px 10px;}
  .noc-dashboard .noc-tools-links a {font-size:11px;padding:10px;min-height:44px;}
  .noc-dashboard .noc-dashboard-content .card {padding:15px;border-radius:16px;}
  .noc-dashboard .noc-dashboard-content .stack > * + * {margin-top:13px;}
  .noc-dashboard .noc-traffic-card .chart {min-height:115px;}
  .noc-dashboard .noc-router-heading {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
  .noc-dashboard .noc-router-heading > strong {grid-column:1/-1;font-size:13px;}
  .noc-dashboard .noc-router-heading > .badge {justify-self:start;}
  .noc-dashboard .noc-router-heading > button {justify-self:end;min-height:42px;padding:9px 12px;font-size:12px;}
  .noc-dashboard .noc-web-health > .inline {display:flex;flex-direction:column;align-items:stretch;gap:10px;}
  .noc-dashboard .noc-web-health > .inline button {width:100%;min-height:44px;}
  .noc-dashboard .noc-sessions-card .form-grid {display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px;}
  .noc-dashboard .noc-sessions-table {margin-inline:0;}
  .noc-dashboard .noc-sessions-card .inline > button {min-height:44px;}
  /* Customer + technician: readable two-column shortcuts, one-column forms. */
  .mobile-app .app-content .app-hero {padding:18px!important;}
  .mobile-app .app-content .app-hero .app-section-heading {display:flex;gap:8px;align-items:flex-start;}
  .mobile-app .app-content .app-hero .app-hero-icon {flex:0 0 auto;max-width:54px;}
  .mobile-app .app-content .app-hero .app-hero-title {font-size:clamp(22px,6vw,29px);line-height:1.19;}
  .mobile-app .app-content .app-quick-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  .mobile-app .app-content .app-quick-actions a {display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:5px;min-height:78px;padding:10px 7px;font-size:12px;line-height:1.35;}
  .mobile-app .app-content .technician-hero-actions {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px;}
  .mobile-app .app-content .technician-hero-actions .btn {display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;margin:0;padding:10px 12px;}
  .mobile-app .app-content .technician-search-card .search-query {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
  .mobile-app .app-content .technician-search-card .search-query button {width:100%;min-height:44px;}
  .mobile-app .app-content .app-service-heading {display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;}
  .mobile-app .app-content .app-service-heading > div {flex:1 1 180px;}
  .mobile-app .app-content .card .grid2 {grid-template-columns:minmax(0,1fr)!important;gap:9px;}
  .mobile-app .app-content .card .grid2 form > button {width:100%;min-height:44px;}
  /* Agent voucher: prevent oversized account names and multi-column overflow. */
  .agent-dashboard .agent-page main {padding-inline:13px;}
  .agent-dashboard .agent-hero {padding:18px;border-radius:18px;}
  .agent-dashboard .agent-hero h1 {font-size:clamp(21px,6vw,28px);line-height:1.2;overflow-wrap:anywhere;}
  .agent-dashboard .agent-shortcuts,.agent-dashboard .agent-content-grid {display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px;}
  .agent-dashboard .agent-card {padding:15px;}
  .agent-dashboard .agent-device-row {display:flex;flex-wrap:wrap;gap:8px;}
  .agent-dashboard .agent-device-row button {min-height:44px;}
  .agent-dashboard .agent-bottom-nav a {min-width:0;overflow:hidden;text-align:center;overflow-wrap:anywhere;}
  .agent-dashboard .agent-bottom-nav a > span {line-height:1.1;}
}
@media(max-width:380px){
  .noc-dashboard .noc-tools-links {grid-template-columns:minmax(0,1fr);}
  .noc-dashboard .noc-rates {display:grid;grid-template-columns:minmax(0,1fr);}
  .noc-dashboard .noc-rates > span {justify-content:space-between;}
  .noc-dashboard .noc-router-heading {grid-template-columns:minmax(0,1fr);}
  .noc-dashboard .noc-router-heading > .badge,.noc-dashboard .noc-router-heading > button {justify-self:stretch;}
  .noc-dashboard .noc-router-heading > .badge {width:max-content;max-width:100%;}
  .noc-dashboard .noc-primary-actions .btn {font-size:11px;}
  .mobile-app .app-content .app-hero .app-hero-icon {display:none;}
  .agent-dashboard .agent-topbar {padding-inline:10px;}
}
@media(prefers-reduced-motion:reduce){
  .noc-dashboard .noc-tools-more > summary span {transition:none;}
}
@media print{
  .noc-dashboard .noc-tools-more {display:none;}
  .noc-dashboard .noc-primary-actions {display:none;}
}
