/* Shared Azul Telecom interface */
:root {
  --bg: #f4f7fb; --card: #fff; --ink: #19304e; --ink-soft: #536982;
  --line: #d8e1eb; --line-soft: #e8edf4; --navy-600: #2158a2;
  --accent: #215ed8; --accent-dark: #184bb1; --tint: #eaf1fd;
  --radius: 8px; --shadow: 0 2px 5px rgba(28, 52, 86, .035);
}
[data-theme="dark"] { --accent: #83acff; --accent-dark: #a8c5ff; --tint: #20334b; }
body { font: 1rem/1.5 "Segoe UI", Arial, sans-serif; }
.shell { width: min(100%, 1510px); margin-inline: auto; padding-inline: clamp(16px, 3.4vw, 52px); }
.portal-header, .section-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row, .section-row, .header-tools, .identity, .account-link, .logout-button { display: flex; align-items: center; }
.header-row { min-height: 68px; gap: 20px; }
.identity { gap: 8px; text-decoration: none; color: var(--ink); font-size: 1.55rem; font-weight: 750; letter-spacing: -.07em; }
.identity:hover, .account-link:hover { text-decoration: none; }
.identity img { object-fit: contain; flex: none; }
.word-accent { color: #1857a2; }
[data-theme="dark"] .word-accent { color: #90b8ff; }
[data-theme="dark"] .portal-header .identity img { background: #edf4ff; border-radius: 7px; }
.brand-owner { border-left: 1px solid var(--line); padding-left: 18px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.header-tools { margin-left: auto; gap: 16px; }
.icon-action, .logout-button, .nav-more summary { cursor: pointer; color: var(--ink-soft); background: transparent; border: 0; font: inherit; }
.icon-action { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; }
.icon-action:hover, .logout-button:hover, .nav-more summary:hover { background: var(--tint); color: var(--navy-600); }
.account-link { gap: 9px; color: var(--ink); }
.avatar { width: 35px; height: 35px; border-radius: 50%; color: var(--navy-600); background: var(--tint); display: grid; place-items: center; }
.account-name { display: grid; line-height: 1.28; }
.account-name strong { font-size: .89rem; }
.account-name small { font-size: .76rem; color: var(--ink-soft); }
.logout-form { margin: 0; border-left: 1px solid var(--line); padding-left: 12px; }
.logout-button { gap: 6px; padding: 7px; border-radius: 5px; font-size: .875rem; }
.section-row { gap: 10px; min-width: 0; }
.section-nav { display: flex; align-items: stretch; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.section-nav a { display: inline-flex; gap: 8px; align-items: center; min-height: 45px; padding: 0 12px; color: var(--ink-soft); white-space: nowrap; border-bottom: 3px solid transparent; font-size: .9rem; font-weight: 600; }
.section-nav a:hover { color: var(--navy-600); text-decoration: none; background: var(--tint); }
.section-nav a[aria-current] { border-color: var(--accent); color: var(--navy-600); }
.nav-more { position: relative; margin-left: auto; flex: none; }
.nav-more summary { list-style: none; display: flex; align-items: center; gap: 7px; font-size: .87rem; font-weight: 600; padding: 7px; border-radius: 5px; }
.nav-more summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; z-index: 20; top: calc(100% + 5px); padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; width: 204px; box-shadow: 0 8px 20px #18365622; }
.more-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink); font-size: .9rem; border-radius: 5px; }
.more-menu a:hover { text-decoration: none; background: var(--tint); }
.more-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px; }
.content.shell { padding-block: clamp(18px, 2.4vw, 32px) 52px; }
h1 { font-size: clamp(1.6rem, 2.8vw, 2rem); line-height: 1.18; font-weight: 750; letter-spacing: -.038em; }
h2 { font-size: 1.12rem; letter-spacing: -.018em; }
h3 { font-size: 1rem; }
.page-head { align-items: center; margin-bottom: 20px; }
.page-head .titles > p { margin-top: 5px !important; font-size: .93rem; }
.btn { border-radius: 6px; min-height: 36px; font-size: .9rem; }
.btn.btn-sm { min-height: 30px; font-size: .825rem; }
.btn-primary, .btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
[data-theme="dark"] :is(.btn-primary,.btn-accent) { background: var(--accent); border-color: var(--accent); color: #10223c; }
:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid #4493df; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 100; top: 5px; left: 8px; transform: translateY(-160%); background: var(--card); padding: 8px; }
.skip-link:focus { transform: none; }
.field label { font-size: .89rem; color: var(--ink); }
.field :is(input:not([type="checkbox"]),select,textarea) { font-size: .94rem; }
.field :is(input:not([type="checkbox"]),select) { min-height: 40px; }
.field input[type="checkbox"] { width: auto; }
.filters { gap: 8px; }
.filters select, .filters input:not([type="hidden"]) { min-height: 36px; font-size: .89rem; }
th, td { padding: .64rem .8rem; }
.card { min-width: 0; }
.card > header { flex-wrap: wrap; }
.table-wrap { max-width: 100%; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.split > .grow { min-width: min(100%,320px); }
.kv { grid-template-columns: minmax(85px, .8fr) minmax(0, 1.5fr); }
.kv dd { overflow-wrap: anywhere; }
.empty-state { padding: 2rem 1rem; }
.empty-state strong { display: block; font-size: 1rem; color: var(--ink); }
.empty-state p, .quiet-empty { font-size: .92rem; color: var(--ink-soft); }
.empty-state p { margin: 5px 0 14px; }
.empty-icon, .doc-icon, .metric-icon, .login-lock { display: inline-grid; place-items: center; background: var(--tint); color: var(--navy-600); border-radius: 8px; flex: none; }
.empty-icon { height: 51px; width: 51px; margin-bottom: 12px; }
/* Panel */
.dashboard-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border-radius: 10px; background: linear-gradient(110deg,#122542 5%,#203c66 70%,#254b78); color: #fff; padding: clamp(24px,3vw,42px); }
.dashboard-hero::before { content: ""; position: absolute; inset: 0 0 0 54%; z-index: -1; background-image: linear-gradient(#7ba8dc16 1px,transparent 1px),linear-gradient(90deg,#7ba8dc16 1px,transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(90deg,transparent,#000); }
.hero-content { position: relative; z-index: 2; width: min(100%, 630px); }
.hero-content h1 { font-size: clamp(1.8rem,3.3vw,2.45rem); margin: 0; color: #fff; }
.hero-content p { color: #d3e0f0; margin: 7px 0 19px; font-size: .96rem; }
.global-search { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 13px; max-width: 536px; border: 1px solid #cad7e8; border-radius: 6px; background: #fff; color: #627890; }
.global-search input { flex: 1; width: 0; min-width: 0; padding: 8px 0; border: 0; background: transparent; font: inherit; font-size: .93rem; color: #19304e; }
.global-search button { border: 0; border-radius: 4px; padding: 8px 15px; background: #e7effb; color: #1a4b91; font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; }
.global-search button:hover { background: #d2e2f8; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0 24px; }
.metric { display: flex; align-items: center; gap: 14px; padding: 17px 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
a.metric:hover { border-color: #89a9d8; text-decoration: none; }
.metric-icon { width: 44px; height: 44px; }
.tint-teal { color: #196563; background: #e0f3ed; }
.tint-purple { color: #7453a1; background: #f1ebfb; }
.tint-slate { color: #495d73; background: #e9eef4; }
.metric small, .metric strong { display: block; }
.metric small { color: var(--ink-soft); font-size: .86rem; }
.metric strong { color: var(--ink); font-size: 1.72rem; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 18px; }
.dash-card > header { padding: 15px 18px; }
.text-action { color: var(--navy-600); font-size: .85rem; font-weight: 650; }
.doc-row, .access-links a { display: flex; align-items: center; gap: 11px; padding: 12px 17px; color: var(--ink); }
.doc-row + .doc-row, .access-links a + a, .activity-list li + li { border-top: 1px solid var(--line-soft); }
.doc-row:hover, .access-links a:hover { text-decoration: none; background: var(--bg); }
.doc-icon { width: 35px; height: 37px; border-radius: 6px; }
.doc-title { min-width: 0; flex: 1; }
.doc-title strong, .doc-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-title strong, .access-links strong { font-weight: 600; font-size: .94rem; }
.doc-title small, .doc-date, .activity-list small { font-size: .79rem; color: var(--ink-soft); }
.access-links a > .ic:last-child, .access-links .badge { margin-left: auto; }
.access-links .badge + .ic { margin-left: 0; }
.activity-list { list-style: none; padding: 0 18px; margin: 0; }
.activity-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.activity-icon { margin-top: 2px; color: var(--ink-soft); }
.activity-list li div { min-width: 0; }
.activity-list :is(strong,span:not(.activity-icon),small) { display: block; }
.activity-list strong { font-size: .88rem; font-weight: 600; }
.activity-list li div span { color: var(--ink-soft); font-size: .85rem; overflow-wrap: anywhere; }
.quiet-empty { margin: 0; }
.expiry-list { border-top: 1px solid var(--line-soft); }
.expiry-list p { margin: 5px 0; font-size: .84rem; }
.distribution { display: grid; grid-template-columns: minmax(90px,1fr) 2fr 36px; align-items: center; gap: 10px; font-size: .87rem; padding: 3px 0; }
.distribution meter { width: 100%; height: 10px; border: 0; }
.distribution meter::-webkit-meter-bar { background: var(--line-soft); border: 0; }
.distribution meter::-webkit-meter-optimum-value { background: #3588c4; }
.distribution meter::-moz-meter-bar { background: #3588c4; }
/* Illustration of a documented installation */
.technical-illustration { --sheet: #f9fcff; --sheet-line: #a2c2e8; --sheet-ink: #3974aa; position: relative; width: 294px; height: 202px; flex: none; pointer-events: none; }
.technical-sheet { position: absolute; width: 76%; height: 76%; left: 5%; top: 8%; border: 1px solid var(--sheet-line); border-radius: 8px; background: var(--sheet); transform: rotate(-6deg); }
.sheet-back { transform: translate(14%,13%) rotate(6deg); background: #cfdef1; }
.sheet-middle { transform: translate(8%,7%) rotate(0); background: #e8f1fb; }
.sheet-front { background-image: radial-gradient(#94b4d76b .65px,transparent .7px); background-size: 10px 10px; box-shadow: 0 7px 16px #12375b15; }
.sheet-heading { height: 18%; border-bottom: 1px solid var(--sheet-line); padding: 0 7%; display: flex; align-items: center; gap: 6px; }
.sheet-heading i, .sheet-heading b, .sheet-heading em { display: block; border-radius: 3px; background: var(--sheet-ink); opacity: .85; }
.sheet-heading i { width: 7px; height: 7px; } .sheet-heading b { width: 26%; height: 3px; } .sheet-heading em { margin-left: auto; width: 12%; height: 2px; opacity: .45; }
.sheet-network { width: 76%; height: 81%; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.diagram-node { width: 26%; height: 30px; max-width: 40px; display: grid; place-items: center; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 4px; color: var(--sheet-ink); }
.node-major { width: 29%; max-width: 47px; height: 35px; }
.diagram-node svg { width: 63%; height: 76%; stroke-width: 1.5; }
.diagram-branch { height: 20%; width: 75%; position: relative; background: linear-gradient(var(--sheet-line),var(--sheet-line)) center/1px 100% no-repeat; }
.diagram-branch::after { content: ""; position: absolute; inset: 50% 0 0; border: 1px solid var(--sheet-line); border-bottom: 0; border-radius: 3px 3px 0 0; }
.diagram-ends { display: flex; width: 100%; justify-content: space-between; }
.dashboard-hero .technical-illustration { width: 239px; height: 151px; margin: -7px 4% -7px 0; --sheet: #294a71; --sheet-line: #668db8; --sheet-ink: #a6cbea; opacity: .95; }
.dashboard-hero .sheet-back { background: #294465; }
.dashboard-hero .sheet-middle { background: #35567b; }
.dashboard-hero .sheet-front { background-image: radial-gradient(#91b6dc5c .6px,transparent .7px); }
.dashboard-hero .diagram-node { height: 22px; }
.dashboard-hero .node-major { height: 27px; }
/* Two-column application sign-in */
.access-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; color: #19304e; }
.access-identity { min-width: 0; display: flex; flex-direction: column; position: relative; background-color: #eff4fd; padding: clamp(30px,5vw,84px); border-right: 1px solid #dce5f1; overflow: hidden; }
.access-identity::after { content: ""; position: absolute; inset: 38% 0 0 15%; pointer-events: none; background-image: linear-gradient(#9bb7d832 1px,transparent 1px),linear-gradient(90deg,#9bb7d832 1px,transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 65% 70%,#000,transparent 68%); }
.access-brand, .access-owner, .access-brand-center { position: relative; z-index: 1; }
.access-brand { align-self: flex-start; font-size: 1.8rem; }
.access-brand-center { margin-block: auto; padding: 38px 0 16px; }
.access-brand-center h2 { color: #173b63; font-size: clamp(2rem,3.5vw,3.45rem); line-height: 1.09; font-weight: 720; letter-spacing: -.052em; margin: 0; }
.access-brand-center h2 span { color: #318cba; }
.access-brand-center .technical-illustration { margin: 22px 0 0 7%; width: min(100%,370px); height: clamp(160px,23vw,238px); }
.access-brand-center .diagram-node { height: 35px; } .access-brand-center .node-major { height: 40px; }
.access-owner { color: #4f6986; font-weight: 600; font-size: .9rem; }
.access-form-area { display: grid; place-items: center; padding: clamp(25px,5vw,70px); }
.access-form { width: min(100%,380px); }
.login-lock { width: 48px; height: 48px; background: #eaf1fd; color: #225da4; border: 1px solid #d7e6f8; margin-bottom: 20px; }
.access-form h1 { color: #173b63; font-size: clamp(1.85rem,3vw,2.4rem); margin: 0; }
.access-form > p { line-height: 1.58; color: #526984; margin: 9px 0 24px; }
.access-form form { display: grid; gap: 17px; }
.access-form .field { gap: 6px; }
.access-form .field :is(input,select) { color: #19304e; min-height: 44px; border: 1px solid #abbcd0; background: #fff; }
.access-form .field label { color: #19304e; }
.access-form .btn-primary { margin-top: 3px; min-height: 44px; font-weight: 650; }
.access-notice { display: flex; gap: 9px; align-items: center; border-top: 1px solid #dce5f1; margin-top: 25px; padding-top: 17px; color: #526984; font-size: .83rem; }
.access-notice .ic { flex: none; }
.access-form .auth-error { padding: 10px 12px; color: #9b2938; border-radius: 5px; background: #fff0f1; margin-bottom: 16px; }
@media (max-width: 840px) {
  .dashboard-hero .technical-illustration { width: 155px; height: 112px; margin-right: 0; }
  .metric { padding: 12px; gap: 8px; }
  .metric-icon { width: 34px; height: 34px; }
  .dashboard-columns { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 12px; }
}
@media (max-width: 690px) {
  .header-row { min-height: 57px; gap: 10px; } .header-row .identity { font-size: 1.35rem; gap: 5px; }
  .header-row .identity img { width: 35px; height: 35px; }
  .header-tools { gap: 7px; } .account-name,.brand-owner,.logout-button span { display: none; }
  .logout-form { padding-left: 5px; } .nav-more summary { gap: 4px; padding: 5px; }
  .nav-more summary > svg:last-child { display:none; }
  .section-nav { gap: 1px; } .section-nav a { padding-inline: 8px; font-size: .86rem; gap: 5px; }
  .section-row { gap: 4px; } .section-bar .shell { padding-inline: 8px; }
  .dashboard-hero { padding: 22px 18px; } .dashboard-hero .technical-illustration { display: none; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 17px; }
  .dashboard-columns { grid-template-columns: minmax(0,1fr); }
  .access-shell { display: flex; flex-direction: column; }
  .access-identity { padding: 16px 23px; border-right: 0; border-bottom: 1px solid #dce5f1; flex-direction: row; align-items: center; justify-content: space-between; }
  .access-brand-center { display: none; } .access-brand { font-size: 1.5rem; } .access-brand img { width: 36px; height: 36px; }
  .access-form-area { flex: 1; padding: 40px 25px; }
}
@media (max-width: 420px) {
  .metric small { font-size: .8rem; } .metric strong { font-size: 1.45rem; }
  .doc-date { display: none; } .nav-more summary span { display:none; }
  .page-head .actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.table-help { color: var(--ink-soft); font-size: .88rem; }
.table-help summary { cursor: pointer; width: fit-content; color: var(--navy-600); }
.table-help p { margin: .5rem 0; max-width: 84ch; }
.export-card .export-controls { margin: 0 0 12px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.access-form .btn-primary { justify-content: center; }
.more-menu .short-nav { display: none; }
.invite-grant { border-top: 1px solid var(--line-soft); font-size: .89rem; }
.invite-grant summary { color: var(--navy-600); cursor: pointer; font-weight: 600; }
.invite-grant .field { margin: 12px 0; }
@media (max-width: 690px) {
  .more-menu .short-nav { display: flex; }
  .nav-more summary { min-height: 40px; min-width: 34px; justify-content: center; }
}
