:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #718096;
    --border: #e5eaf1;
    --primary: #5b5ce2;
    --primary-dark: #4546c7;
    --cyan: #0ea5c6;
    --green: #18a874;
    --orange: #ef8f26;
    --red: #dc4c64;
    --sidebar: #18233b;
    --sidebar-soft: #233250;
    --sidebar-text: #c8d2e4;
    --shadow: 0 16px 40px rgba(25, 36, 61, 0.08);
    --radius: 16px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

code {
    padding: 3px 7px;
    border-radius: 7px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.9em;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 272px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 20% 0%, rgba(91, 92, 226, 0.28), transparent 32%),
        linear-gradient(180deg, #1b2742 0%, #141d31 100%);
    color: var(--sidebar-text);
    box-shadow: 10px 0 35px rgba(16, 24, 40, 0.08);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #7778ff, #39b7db);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(64, 112, 226, 0.35);
}

.brand-area strong,
.brand-area span {
    display: block;
}

.brand-area strong {
    color: #fff;
    font-size: 16px;
}

.brand-area span {
    margin-top: 2px;
    color: #91a4c5;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 16px 8px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 900;
}

.profile-copy {
    min-width: 0;
    flex: 1;
}

.profile-copy strong,
.profile-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: #fff;
    font-size: 13px;
}

.profile-copy span {
    margin-top: 2px;
    color: #91a4c5;
    font-size: 11px;
}

.online-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #32d296;
    box-shadow: 0 0 0 4px rgba(50, 210, 150, 0.12);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 14px 20px;
    overflow-y: auto;
}

.nav-label {
    margin: 18px 10px 8px;
    color: #6f82a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 4px 0;
    padding: 9px 12px;
    border-radius: 11px;
    color: #b9c5da;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition: 0.18s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(91, 92, 226, 0.95), rgba(71, 126, 219, 0.88));
    color: #fff;
    box-shadow: 0 8px 20px rgba(55, 72, 180, 0.3);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    width: 4px;
    height: 24px;
    border-radius: 0 5px 5px 0;
    background: #72e2ff;
}

.nav-item.disabled {
    opacity: 0.48;
    cursor: default;
}

.nav-item small {
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: currentColor;
    font-size: 10px;
    font-weight: 900;
}

.nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon svg rect,
.nav-icon svg circle {
    fill: none;
}

.nav-icon-accent {
    background: rgba(255, 255, 255, 0.07);
}

.root-context-chip {
    display: grid;
    gap: 3px;
    margin: 8px 0 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 205, 90, 0.24);
    border-radius: 11px;
    background: rgba(255, 190, 63, 0.09);
    color: #ffe5a1;
}

.root-context-chip strong {
    font-size: 10px;
    letter-spacing: 0.1em;
}

.root-context-chip span {
    color: #fff;
    font-size: 12px;
}

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-action {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbe5f5;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.root-return {
    border-color: rgba(255, 196, 74, 0.2);
    color: #ffe3a0;
}

.admin-main {
    width: calc(100% - 272px);
    min-width: 0;
    margin-left: 272px;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 30px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #eef2f8;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: #43506a;
}

.topbar-context {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.context-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(24, 168, 116, 0.1);
}

.topbar-context strong,
.topbar-context small {
    display: block;
}

.topbar-context strong {
    font-size: 13px;
}

.topbar-context small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #4a5568;
    font-size: 12px;
}

.role-badge,
.security-badge,
.status-pill,
.integrity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.role-badge {
    padding: 5px 8px;
    background: #eef0ff;
    color: #5556c7;
}

.role-root {
    background: #ffe9ed;
    color: #b82f49;
}

.admin-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
    padding: 30px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    border-top: 1px solid var(--border);
    color: #8a96a8;
    font-size: 11px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 3px 0 5px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.eyebrow,
.panel-kicker {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-actions,
.button-group,
.form-actions,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.page-actions form,
.button-group form {
    margin: 0;
}

.context-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid #f2d598;
    border-radius: 13px;
    background: linear-gradient(90deg, #fff9e9, #fffdf7);
    color: #735618;
}

.context-banner strong,
.context-banner span {
    display: block;
}

.context-banner strong {
    font-size: 12px;
}

.context-banner span {
    margin-top: 2px;
    font-size: 11px;
}

.stats-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.stats-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 6px 20px rgba(25, 36, 61, 0.045);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -35px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.05;
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.stat-card span,
.stat-card strong {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.stat-card strong {
    margin-top: 5px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.stat-indigo .stat-icon {
    background: linear-gradient(135deg, #696af0, #5051cb);
}

.stat-cyan .stat-icon {
    background: linear-gradient(135deg, #16b8d8, #0986aa);
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #2bc48a, #138b61);
}

.panel {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(25, 36, 61, 0.045);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 3px 0 0;
    font-size: 17px;
}

.security-badge {
    padding: 6px 9px;
    background: #ecfdf5;
    color: #14805b;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.content-grid-narrow {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    max-width: 1050px;
}

.content-grid-wide-form {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
}

.form-stack {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    gap: 15px;
}

.two-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group label {
    display: block;
    margin-bottom: 7px;
    color: #39465b;
    font-size: 12px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--text);
    transition: 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #8182ef;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.09);
}

.form-help {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.form-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #6566ed, #5051c9);
    color: #fff;
    box-shadow: 0 7px 18px rgba(80, 81, 201, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b5ce2, #4445bb);
}

.btn-soft {
    border-color: #dce2ec;
    background: #fff;
    color: #4c5a70;
}

.btn-danger {
    background: #d94b62;
    color: #fff;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #f9fbfd;
    cursor: pointer;
}

.toggle-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.toggle-ui {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: 0.16s ease;
}

.toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: 0.16s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.toggle-row input:checked + .toggle-ui {
    background: var(--primary);
}

.toggle-row input:checked + .toggle-ui::after {
    transform: translateX(16px);
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row strong {
    font-size: 12px;
}

.toggle-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b96a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e7ebf1;
}

.credential-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #ccefe1;
    border-radius: 11px;
    background: #f0fcf7;
    color: #1c7054;
    font-size: 11px;
}

.credential-note strong {
    flex: 0 0 auto;
}

.info-panel {
    background: linear-gradient(150deg, #fff, #f8faff);
}

.info-icon,
.security-visual {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6465e9, #2ca7cf);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.info-panel h3,
.security-panel h3 {
    margin: 0 0 8px;
}

.info-panel p,
.security-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #536176;
    font-size: 11px;
}

.check-list li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--green);
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: #7c8798;
    background: #fafbfd;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #fafbfe;
}

.table-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.status-pill,
.integrity-pill {
    padding: 5px 8px;
    background: #eef2f7;
    color: #526176;
}

.status-active,
.status-connected,
.status-success,
.integrity-pill.ok {
    background: #e9f9f2;
    color: #167153;
}

.status-disabled,
.status-suspended,
.status-failed,
.integrity-pill.bad {
    background: #fdecef;
    color: #a93249;
}

.status-unknown,
.status-archived {
    background: #f3f4f6;
    color: #687386;
}

.empty-cell {
    padding: 34px !important;
    color: var(--muted);
    text-align: center !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(115px, 0.45fr) minmax(0, 1.55fr);
    gap: 12px 16px;
    margin: 0;
}

.detail-grid dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.search-field {
    max-width: 460px;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    background: #fff;
}

.search-field input {
    border: 0;
    box-shadow: none;
}

.pagination {
    margin-top: 18px;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination li.active {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.pagination li.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
}

.alert-success {
    border-color: #bcebd9;
    background: #edf9f4;
    color: #176b50;
}

.alert-danger {
    border-color: #f2c7cf;
    background: #fdf0f2;
    color: #a23047;
}

.alert-warning {
    border-color: #f2d99e;
    background: #fff9e9;
    color: #7c5b16;
}

.action-details {
    position: relative;
}

.action-details summary {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.action-popover {
    display: grid;
    gap: 12px;
    min-width: 270px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafbfe;
}

.action-popover form {
    display: grid;
    gap: 8px;
}

.danger-zone {
    border-color: #f0d0d6;
}

.sidebar-overlay {
    display: none;
}

/* Login pages remain intentionally compact but use the same visual language. */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 10%, rgba(91, 92, 226, 0.14), transparent 30%),
        radial-gradient(circle at 88% 92%, rgba(14, 165, 198, 0.12), transparent 30%),
        #f4f7fb;
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.wide-card {
    width: min(100%, 560px);
}

.brand-mark {
    width: fit-content;
    min-width: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    padding: 9px 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6566ed, #3b9dc6);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.auth-card h1 {
    margin: 0 0 7px;
}

.auth-card label {
    display: block;
    margin: 16px 0 7px;
    font-size: 12px;
    font-weight: 800;
}

.auth-card button[type="submit"] {
    width: 100%;
    min-height: 44px;
    margin-top: 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #6566ed, #5051c9);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.muted {
    color: var(--muted);
}

.subtle-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .content-grid-narrow,
    .content-grid-wide-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-sidebar {
        transform: translateX(-102%);
        transition: transform 0.2s ease;
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(15, 23, 42, 0.45);
    }

    .admin-shell.sidebar-open .sidebar-overlay {
        display: block;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-topbar {
        padding: 0 18px;
    }

    .admin-content {
        padding: 22px 18px;
    }

    .topbar-user > span:first-child {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions form,
    .page-actions form button {
        width: 100%;
    }

    .two-fields {
        grid-template-columns: 1fr;
    }

    .admin-footer {
        flex-direction: column;
        padding: 16px 18px;
    }
}

@media (max-width: 520px) {
    .panel {
        padding: 17px;
        border-radius: 13px;
    }

    .admin-content {
        padding: 18px 12px;
    }

    .page-heading h1 {
        font-size: 25px;
    }

    .form-actions,
    .inline-form,
    .button-group,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .btn,
    .inline-form .btn,
    .button-group .btn,
    .filter-bar .btn {
        width: 100%;
    }
}

/* Module 04 - Monitoring MikroTik */
.stats-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-amber .stat-icon {
    background: linear-gradient(135deg, #f7b84b, #db8518);
}

.status-warning {
    background: #fff5dc;
    color: #95600d;
}

.status-muted {
    background: #eef1f5;
    color: #6e7888;
}

.monitor-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(230px, 0.75fr));
    gap: 18px;
    margin-bottom: 20px;
}

.monitor-primary-card,
.monitor-resource-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(25, 36, 61, 0.05);
}

.monitor-primary-card {
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #5659df, #6b6df0 48%, #358fbe);
}

.monitor-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.monitor-primary-card .panel-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.monitor-primary-card h2 {
    margin: 5px 0 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.live-chip {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.metric-progress {
    height: 8px;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.metric-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.metric-progress.compact {
    height: 6px;
    margin: 14px 0 0;
    background: #edf0f5;
}

.metric-progress.compact span {
    background: linear-gradient(90deg, #6366e9, #14a3c7);
}

.monitor-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.monitor-mini-grid div {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.monitor-mini-grid span,
.monitor-mini-grid strong {
    display: block;
}

.monitor-mini-grid span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
}

.monitor-mini-grid strong {
    margin-top: 4px;
    font-size: 14px;
}

.monitor-resource-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.monitor-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 13px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.memory-card .monitor-icon {
    background: linear-gradient(135deg, #13b8cf, #087eac);
}

.storage-card .monitor-icon {
    background: linear-gradient(135deg, #27bd85, #137d5e);
}

.metric-label,
.monitor-resource-card strong,
.monitor-resource-card small {
    display: block;
}

.metric-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.monitor-resource-card strong {
    margin-top: 5px;
    font-size: 28px;
    letter-spacing: -0.025em;
}

.monitor-resource-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.monitor-stats .stat-card {
    min-height: 104px;
}

.monitoring-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.compact-details {
    grid-template-columns: minmax(135px, 0.65fr) minmax(0, 1.35fr);
}

.mini-chart {
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 18px 10px 8px;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background:
        linear-gradient(to top, #f3f5f9 1px, transparent 1px) 0 0 / 100% 25%,
        #fbfcfe;
}

.mini-chart-column {
    min-width: 4px;
    height: 165px;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.mini-chart-column span {
    width: 100%;
    min-height: 4px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #696af0, #20a4c7);
    transition: height 0.2s ease;
}

.chart-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.warning-panel {
    border-color: #efdba8;
    background: linear-gradient(180deg, #fffdf7, #fffaf0);
}

.warning-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: #78591e;
    font-size: 11px;
}

.monitoring-empty {
    min-height: 260px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.monitoring-empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #696af0, #22a7c8);
    color: #fff;
    font-size: 32px;
    font-weight: 900;
}

.monitoring-empty h2 {
    margin: 4px 0 7px;
}

.monitoring-empty p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.interface-table code {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .monitor-hero {
        grid-template-columns: 1fr 1fr;
    }

    .monitor-primary-card {
        grid-column: 1 / -1;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .monitor-hero,
    .monitoring-grid,
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }

    .monitor-mini-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-empty {
        grid-template-columns: 1fr;
    }

    .monitoring-empty form,
    .monitoring-empty .btn {
        width: 100%;
    }
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-action-card {
    display: grid;
    gap: 4px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #fafbfe);
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(25, 36, 61, 0.08);
}

.quick-action-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #696af0, #20a4c7);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.quick-action-card strong {
    font-size: 13px;
}

.quick-action-card small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

/* FIX 005 - Theme refresh, profile menu, monitoring cards */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --cyan: #06b6d4;
    --green: #10b981;
    --orange: #f59e0b;
    --pink: #ec4899;
    --violet: #8b5cf6;
}

html,
body {
    background:
        radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.08), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.07), transparent 26%),
        #f5f7fb;
}

.admin-sidebar {
    background:
        radial-gradient(circle at 15% 0%, rgba(93, 234, 212, 0.16), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.2), transparent 34%),
        linear-gradient(180deg, #172554 0%, #1e1b4b 48%, #172033 100%);
}

.brand-logo {
    background: linear-gradient(135deg, #22d3ee, #6366f1 58%, #a855f7);
}

.admin-topbar {
    min-height: 74px;
    border-bottom-color: rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 28px rgba(30, 41, 59, 0.04);
}

.panel,
.stat-card,
.monitor-resource-card {
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 38px rgba(30, 41, 59, 0.06);
}

.panel:hover,
.stat-card:hover {
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.085);
}

.topbar-profile {
    position: relative;
    margin-left: auto;
}

.profile-trigger {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #e6eaf1;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);
}

.profile-trigger:hover {
    border-color: #cfd7e5;
    background: #fbfcff;
}

.topbar-avatar,
.dropdown-avatar {
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 900;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.topbar-profile-copy {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.topbar-profile-copy strong,
.topbar-profile-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-profile-copy strong {
    font-size: 12px;
}

.topbar-profile-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.profile-chevron {
    color: #94a3b8;
    font-size: 17px;
    transition: transform 0.18s ease;
}

.topbar-profile.open .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: min(320px, calc(100vw - 30px));
    padding: 12px;
    border: 1px solid #e6eaf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.18s ease;
}

.topbar-profile.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 3px 12px;
    border-bottom: 1px solid #eef2f7;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.profile-dropdown-head strong,
.profile-dropdown-head span {
    display: block;
}

.profile-dropdown-head strong {
    font-size: 13px;
}

.profile-dropdown-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.profile-status-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 3px;
    color: #64748b;
    font-size: 10px;
}

.profile-status-row .role-badge {
    margin-left: auto;
}

.profile-menu-links {
    display: grid;
    gap: 4px;
    padding: 4px 0 8px;
}

.profile-menu-links a,
.profile-logout {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.profile-menu-links a:hover {
    background: #f6f7ff;
    color: var(--primary-dark);
}

.profile-dropdown form {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}

.profile-logout {
    justify-content: center;
    background: #fff1f2;
    color: #be123c;
}

.profile-root-return {
    background: #fff7ed;
    color: #c2410c;
}

.monitor-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.monitor-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.08);
}

.monitor-summary-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.06;
}

.summary-violet {
    background: linear-gradient(145deg, #f4f0ff, #ffffff);
    color: #7c3aed;
}

.summary-green {
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
    color: #059669;
}

.summary-blue {
    background: linear-gradient(145deg, #ecfeff, #ffffff);
    color: #0891b2;
}

.summary-orange {
    background: linear-gradient(145deg, #fff7ed, #ffffff);
    color: #ea580c;
}

.summary-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: currentColor;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.summary-icon svg,
.monitor-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.monitor-summary-card span,
.monitor-summary-card strong,
.monitor-summary-card small {
    display: block;
}

.monitor-summary-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.monitor-summary-card strong {
    margin: 2px 0 4px;
    color: #172033;
    font-size: 29px;
    line-height: 1;
}

.monitor-summary-card small {
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.4;
}

.monitor-icon {
    font-size: 0;
}

.monitor-icon-memory {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.monitor-icon-storage {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.uptime-readable {
    max-width: 260px;
    color: #fff;
    line-height: 1.35;
}

.interface-panel {
    border-top: 4px solid #6366f1;
}

.interface-counter {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 10px;
}

.interface-counter strong {
    font-size: 12px;
}

.interface-table tbody tr:hover {
    background: #f8faff;
}

@media (max-width: 1180px) {
    .monitor-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .profile-trigger {
        min-width: 0;
    }

    .topbar-profile-copy,
    .profile-chevron {
        display: none;
    }

    .monitor-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* FIX 007 - Visual consistency for dashboard, router, tenant and audit pages */
.page-heading {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 86% 10%,
            rgba(99, 102, 241, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 12% 100%,
            rgba(6, 182, 212, 0.1),
            transparent 30%
        ),
        #fff;
    box-shadow: 0 15px 38px rgba(30, 41, 59, 0.06);
}

.page-heading::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -76px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    opacity: 0.055;
    pointer-events: none;
}

.page-heading > * {
    position: relative;
    z-index: 1;
}

.page-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.page-heading h1 {
    margin-top: 7px;
    font-size: clamp(23px, 2.3vw, 32px);
    letter-spacing: -0.035em;
}

.page-heading p {
    max-width: 760px;
    margin-bottom: 0;
    color: #718096;
}

.stats-grid {
    gap: 16px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 122px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -38px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.05;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-indigo {
    background: linear-gradient(145deg, #f0f1ff, #fff 74%);
    color: #6366f1;
}

.stat-cyan {
    background: linear-gradient(145deg, #ecfeff, #fff 74%);
    color: #0891b2;
}

.stat-green {
    background: linear-gradient(145deg, #ecfdf5, #fff 74%);
    color: #059669;
}

.stat-amber {
    background: linear-gradient(145deg, #fff7ed, #fff 74%);
    color: #ea580c;
}

.stat-red {
    background: linear-gradient(145deg, #fff1f2, #fff 74%);
    color: #e11d48;
}

.stat-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: currentColor;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.11);
}

.stat-card span {
    color: #718096;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.015em;
}

.stat-card strong {
    margin-top: 4px;
    color: #172033;
    font-size: 23px;
    line-height: 1.12;
}

.panel {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.panel-heading {
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f6;
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 0.98), #fff 70%);
}

.panel-kicker {
    color: #6366f1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin-top: 3px;
    letter-spacing: -0.02em;
}

.table-wrap {
    padding: 4px 0 0;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf5;
    background: #f8faff;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody td {
    border-bottom-color: #eef2f7;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: #fbfcff;
}

.table-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-weight: 800;
    text-decoration: none;
}

.table-link:hover {
    color: #3730a3;
}

.security-badge,
.status-pill,
.role-badge,
.integrity-pill {
    white-space: nowrap;
}

.btn {
    min-height: 40px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
}

.btn-soft {
    background: #f4f6fb;
    color: #475569;
}

.form-panel,
.info-panel,
.security-panel {
    border-top: 3px solid rgba(99, 102, 241, 0.86);
}

.field-group input,
.field-group select,
.field-group textarea,
.inline-form select,
.filter-bar input {
    border-radius: 11px;
    border-color: #dfe5ee;
    background: #fff;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.filter-bar input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.11);
    outline: 0;
}

.detail-grid dt {
    color: #718096;
    font-size: 10px;
}

.detail-grid dd {
    color: #263247;
    font-weight: 750;
}

.quick-action-card {
    border-color: #e7eaf3;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(99, 102, 241, 0.08),
            transparent 34%
        ),
        #fff;
}

.filter-bar {
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f6;
    background: #fbfcff;
}

.pagination {
    padding: 16px 18px;
    border-top: 1px solid #edf1f6;
}

.interface-panel .table-wrap {
    padding-top: 0;
}

.interface-table th:first-child,
.interface-table td:first-child {
    padding-left: 20px;
}

.interface-table th:last-child,
.interface-table td:last-child {
    padding-right: 20px;
}

.interface-empty-state {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 150px;
    padding: 24px;
    text-align: center;
}

.interface-empty-state strong {
    color: #334155;
    font-size: 13px;
}

.interface-empty-state span {
    max-width: 560px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .page-actions,
    .page-actions .button-group {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions form,
    .page-actions form .btn {
        width: 100%;
    }
}

/* FIX 008 - Unified premium workspace theme */
.page-heading-premium {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    align-items: center;
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.16), transparent 30%),
        radial-gradient(circle at 72% 105%, rgba(6, 182, 212, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.06);
}

.page-heading-premium::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

.page-heading-copy,
.page-heading-side {
    position: relative;
    z-index: 2;
}

.page-heading-copy {
    max-width: 780px;
}

.page-heading-premium .eyebrow {
    color: #6366f1;
}

.page-heading-premium h1 {
    margin-top: 6px;
    font-size: clamp(27px, 3vw, 36px);
}

.page-heading-premium p {
    max-width: 720px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

.page-heading-side {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.page-heading-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 56%, #06b6d4);
    color: #fff;
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.22);
}

.page-heading-icon svg,
.profile-link-icon svg,
.stat-icon svg,
.info-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-heading-orb {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

.page-heading-orb-one {
    width: 180px;
    height: 180px;
    right: 5%;
    top: -95px;
    background: rgba(99, 102, 241, 0.05);
}

.page-heading-orb-two {
    width: 120px;
    height: 120px;
    right: 20%;
    bottom: -82px;
    background: rgba(6, 182, 212, 0.06);
}

.profile-link-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f5ff;
    color: #6366f1;
}

.profile-link-icon svg {
    width: 16px;
    height: 16px;
}

.stats-grid {
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    min-height: 132px;
    padding: 20px;
    border-color: rgba(255, 255, 255, 0.82);
    border-radius: 19px;
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.1);
}

.stat-card::after {
    right: -30px;
    bottom: -42px;
    width: 122px;
    height: 122px;
    opacity: 0.055;
}

.stat-card .stat-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.stat-card .stat-icon svg {
    width: 27px;
    height: 27px;
}

.stat-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.stat-card strong {
    margin-top: 3px;
    color: #172033;
    font-size: 28px;
    line-height: 1.08;
}

.stat-indigo {
    background: linear-gradient(145deg, #f4f0ff, #ffffff);
    color: #7c3aed;
}

.stat-cyan {
    background: linear-gradient(145deg, #ecfeff, #ffffff);
    color: #0891b2;
}

.stat-green {
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
    color: #059669;
}

.stat-amber {
    background: linear-gradient(145deg, #fff7ed, #ffffff);
    color: #ea580c;
}

.stat-indigo .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.stat-cyan .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-amber .stat-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.panel {
    border-color: rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 36px rgba(30, 41, 59, 0.055);
}

.panel-heading {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f7;
}

.panel-heading h2 {
    margin-top: 5px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.panel-kicker {
    color: #6366f1;
}

.table-wrap {
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 15px;
    background: #fff;
}

.data-table {
    margin: 0;
}

.data-table th {
    padding: 13px 14px;
    border-bottom: 1px solid #e8edf4;
    background: linear-gradient(180deg, #fbfcff, #f7f9fd);
    color: #64748b;
    font-size: 10px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.data-table td {
    padding: 14px;
    border-bottom-color: #f0f3f7;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #f8faff;
}

.table-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.table-link:hover {
    background: #e0e7ff;
}

.filter-bar {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #edf1f6;
    border-radius: 15px;
    background: linear-gradient(145deg, #fbfcff, #f8fafc);
}

.search-field {
    border-radius: 11px;
    background: #fff;
}

.form-panel {
    position: relative;
    overflow: hidden;
}

.form-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

.field-group label {
    color: #334155;
}

input,
select,
textarea {
    min-height: 46px;
    border-color: #dbe2ec;
    border-radius: 12px;
    background: #fbfcfe;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
}

.btn {
    border-radius: 11px;
    font-weight: 850;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.17);
}

.btn-primary:hover {
    box-shadow: 0 13px 26px rgba(79, 70, 229, 0.23);
}

.btn-soft {
    border-color: #e2e8f0;
    background: #fff;
}

.info-panel,
.security-panel,
.router-help {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1), transparent 34%),
        linear-gradient(145deg, #ffffff, #f8faff);
}

.info-panel::after,
.security-panel::after,
.router-help::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
}

.info-icon,
.security-visual {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18);
}

.info-icon svg {
    width: 26px;
    height: 26px;
}

.quick-action-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.08), transparent 38%),
        linear-gradient(145deg, #ffffff, #f9fbff);
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.055);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 0;
}

.quick-action-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 15px;
    background: #fff;
}

.detail-grid dt,
.detail-grid dd {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f3f7;
}

.detail-grid dt {
    color: #64748b;
    background: #fafbfe;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.detail-grid dd {
    color: #1e293b;
    font-weight: 700;
}

.detail-grid dt:nth-last-of-type(1),
.detail-grid dd:last-child {
    border-bottom: 0;
}

.security-badge {
    border: 1px solid #d1fae5;
    background: #ecfdf5;
}

.status-pill,
.role-badge,
.integrity-pill {
    padding: 5px 8px;
}

.pagination {
    margin-top: 18px;
}

.pagination a,
.pagination strong {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    text-decoration: none;
}

.pagination strong {
    border-color: #6366f1;
    background: #6366f1;
    color: #fff;
}

@media (max-width: 900px) {
    .page-heading-premium {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .page-heading-side {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    .page-heading-icon {
        display: none;
    }

    .page-heading-side,
    .page-actions {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions form,
    .page-actions form .btn {
        width: 100%;
    }
}

/* Module 05 - Hotspot */
.hotspot-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid #e9edf5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(30, 41, 59, 0.045);
}

.hotspot-tab {
    min-width: max-content;
    padding: 10px 15px;
    border-radius: 11px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    transition: 0.18s ease;
}

.hotspot-tab:hover {
    background: #f1f5ff;
    color: #4f46e5;
}

.hotspot-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 9px 20px rgba(99, 102, 241, 0.2);
}

.hotspot-router-panel {
    min-height: 320px;
}

.hotspot-router-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.hotspot-router-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e9edf5;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.09), transparent 36%),
        linear-gradient(145deg, #ffffff, #f9fbff);
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.055);
}

.hotspot-router-card .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
}

.hotspot-router-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18);
}

.hotspot-router-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hotspot-router-copy {
    min-width: 0;
}

.hotspot-router-title {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.hotspot-router-copy strong,
.hotspot-router-copy span,
.hotspot-router-copy small {
    display: block;
}

.hotspot-router-copy strong {
    overflow: hidden;
    color: #172033;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotspot-router-copy > span {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
}

.hotspot-router-copy small {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
}

.hotspot-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #fafbfe;
    text-align: center;
}

.hotspot-empty.compact {
    min-height: 150px;
}

.hotspot-empty strong {
    color: #1e293b;
    font-size: 16px;
}

.hotspot-empty span {
    max-width: 460px;
    color: #64748b;
    font-size: 12px;
}

.hotspot-summary-grid .stat-icon,
.hotspot-compact-stats .stat-icon {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.hotspot-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hotspot-action-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 17px;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hotspot-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(30, 41, 59, 0.09);
}

.hotspot-action-card strong {
    font-size: 14px;
}

.hotspot-action-card span {
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.action-violet {
    background: linear-gradient(145deg, #f3efff, #ffffff);
}

.action-green {
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.action-cyan {
    background: linear-gradient(145deg, #ecfeff, #ffffff);
}

.action-orange {
    background: linear-gradient(145deg, #fff7ed, #ffffff);
}

.hotspot-server-list {
    display: grid;
    gap: 10px;
}

.hotspot-server-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    background: #fbfcff;
}

.hotspot-server-row strong,
.hotspot-server-row span {
    display: block;
}

.hotspot-server-row strong {
    color: #1e293b;
    font-size: 12px;
}

.hotspot-server-row div > span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.hotspot-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 150px 140px auto auto;
    gap: 10px;
    align-items: center;
}

.hotspot-filter select,
.hotspot-filter input {
    width: 100%;
}

.hotspot-table-wrap {
    overflow-x: auto;
}

.hotspot-user-table {
    min-width: 1180px;
}

.traffic-cell {
    min-width: 100px;
}

.traffic-cell span {
    display: block;
    color: #475569;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.55;
}

.comment-cell {
    max-width: 210px;
    color: #64748b;
    font-size: 11px;
    white-space: normal;
}

.table-actions {
    min-width: 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.table-actions form {
    display: inline-flex;
    margin: 0;
}

.table-action-btn {
    padding: 6px 9px;
    border: 0;
    border-radius: 9px;
    background: #eef2ff;
    color: #4f46e5;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
}

.table-action-btn:hover {
    background: #e0e7ff;
}

.table-action-btn.danger {
    background: #fff1f2;
    color: #e11d48;
}

.table-action-btn.danger:hover {
    background: #ffe4e6;
}

.hotspot-form-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.hotspot-security-note p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

.hotspot-note-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.hotspot-note-list span {
    padding: 9px 11px;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.status-warning {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

@media (max-width: 1100px) {
    .hotspot-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotspot-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hotspot-action-grid,
    .hotspot-filter {
        grid-template-columns: 1fr;
    }

    .hotspot-router-grid {
        grid-template-columns: 1fr;
    }
}


/* FIX 011 - Premium navigation, module identity, pagination and Hotspot workspace */
.page-header-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 6px 2px 18px;
    border-bottom: 1px solid #e8edf5;
}

.page-header-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 58%, #0ea5c6);
    color: #fff;
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.18);
}

.page-header-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-header-copy {
    min-width: 0;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-breadcrumb i {
    color: #cbd5e1;
    font-style: normal;
}

.page-breadcrumb strong {
    color: #6366f1;
}

.page-header-copy h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(23px, 2.3vw, 30px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.page-header-copy p {
    max-width: 760px;
    margin: 5px 0 0;
    color: #718096;
    font-size: 11px;
    line-height: 1.55;
}

.page-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-summary-grid,
.monitor-overview-stats,
.hotspot-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.module-summary-card,
.monitor-overview-stat,
.hotspot-metric {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(30, 41, 59, 0.06);
}

.module-summary-card::after,
.monitor-overview-stat::after,
.hotspot-metric::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.055;
}

.module-summary-icon,
.overview-stat-icon,
.hotspot-metric-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 11px 24px rgba(15, 23, 42, 0.1);
}

.module-summary-icon svg,
.overview-stat-icon svg,
.hotspot-metric-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.module-summary-card span,
.monitor-overview-stat span,
.hotspot-metric span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
}

.module-summary-card strong,
.monitor-overview-stat strong,
.hotspot-metric strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 27px;
    line-height: 1;
}

.summary-purple,
.stat-purple,
.metric-purple {
    color: #7c3aed;
    background: linear-gradient(145deg, #f5f3ff, #fff);
}

.summary-purple .module-summary-icon,
.stat-purple .overview-stat-icon,
.metric-purple .hotspot-metric-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.summary-emerald,
.stat-emerald,
.metric-green {
    color: #059669;
    background: linear-gradient(145deg, #ecfdf5, #fff);
}

.summary-emerald .module-summary-icon,
.stat-emerald .overview-stat-icon,
.metric-green .hotspot-metric-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-sky,
.stat-sky,
.metric-sky {
    color: #0891b2;
    background: linear-gradient(145deg, #ecfeff, #fff);
}

.summary-sky .module-summary-icon,
.stat-sky .overview-stat-icon,
.metric-sky .hotspot-metric-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.summary-orange,
.stat-coral,
.metric-orange {
    color: #ea580c;
    background: linear-gradient(145deg, #fff7ed, #fff);
}

.summary-orange .module-summary-icon,
.stat-coral .overview-stat-icon,
.metric-orange .hotspot-metric-icon {
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.panel-description {
    max-width: 720px;
    margin: 6px 0 0;
    color: #8491a5;
    font-size: 10px;
    line-height: 1.55;
}

.premium-list-panel {
    overflow: hidden;
}

.premium-table-wrap {
    border-radius: 16px;
}

.premium-data-table th {
    white-space: nowrap;
}

.table-primary-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-primary-cell strong,
.table-primary-cell small,
.table-subtext {
    display: block;
}

.table-primary-cell small,
.table-subtext {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.table-router-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px #ecfdf5;
}

.table-actions-heading {
    min-width: 150px;
}

.table-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.table-action {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
}

.table-action.primary {
    border-color: #e0e7ff;
    background: #eef2ff;
    color: #4f46e5;
}

.monitor-router-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.monitor-router-card {
    padding: 18px;
    border: 1px solid #e9edf5;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.08), transparent 35%),
        #fff;
    box-shadow: 0 14px 32px rgba(30, 41, 59, 0.06);
}

.monitor-router-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.router-health-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #6366f1, #0ea5c6);
    color: #fff;
}

.router-health-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.monitor-router-name {
    min-width: 0;
    flex: 1;
}

.monitor-router-name strong,
.monitor-router-name span {
    display: block;
}

.monitor-router-name strong {
    color: #1e293b;
    font-size: 13px;
}

.monitor-router-name span {
    margin-top: 2px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitor-router-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 17px;
}

.monitor-router-metrics div {
    padding: 11px;
    border-radius: 12px;
    background: #f8fafc;
}

.monitor-router-metrics span,
.monitor-router-metrics strong {
    display: block;
}

.monitor-router-metrics span {
    color: #94a3b8;
    font-size: 8px;
    font-weight: 800;
}

.monitor-router-metrics strong {
    margin-top: 4px;
    color: #1e293b;
    font-size: 18px;
}

.monitor-router-footnote {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 8px;
}

.monitor-router-actions,
.premium-router-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.monitor-no-snapshot {
    min-height: 94px;
    display: grid;
    align-content: center;
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
}

.monitor-no-snapshot strong,
.monitor-no-snapshot span {
    display: block;
}

.monitor-no-snapshot strong {
    color: #475569;
    font-size: 11px;
}

.monitor-no-snapshot span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.premium-empty-panel,
.premium-empty-state {
    display: grid;
    justify-items: center;
    gap: 9px;
    text-align: center;
}

.premium-empty-panel {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
}

.premium-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #0ea5c6);
    color: #fff;
}

.premium-empty-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.premium-empty-state {
    padding: 38px 20px;
}

.premium-empty-state strong {
    color: #334155;
    font-size: 14px;
}

.premium-empty-state p {
    max-width: 560px;
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}

.hotspot-center-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #5b5ce2, #7c3aed 54%, #0ea5c6);
    color: #fff;
    box-shadow: 0 20px 44px rgba(79, 70, 229, 0.16);
}

.hotspot-center-copy {
    position: relative;
    z-index: 2;
}

.hotspot-center-copy .panel-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.hotspot-center-copy h2 {
    max-width: 680px;
    margin: 7px 0 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hotspot-center-copy p {
    max-width: 700px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.65;
}

.hotspot-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hotspot-feature-chips span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.hotspot-center-visual {
    position: relative;
    min-height: 170px;
}

.hotspot-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.wave-one {
    width: 150px;
    height: 150px;
    opacity: 0.3;
}

.wave-two {
    width: 105px;
    height: 105px;
    opacity: 0.55;
}

.wave-three {
    width: 62px;
    height: 62px;
}

.hotspot-center-visual i {
    position: absolute;
    left: 50%;
    top: 68%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.13);
    transform: translate(-50%, -50%);
}

.hotspot-router-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-router-card {
    display: block;
    padding: 18px;
    border: 1px solid #e9edf5;
    border-radius: 19px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 198, 0.08), transparent 35%),
        #fff;
    box-shadow: 0 13px 30px rgba(30, 41, 59, 0.055);
}

.premium-router-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.premium-router-card .hotspot-router-copy {
    margin-top: 14px;
}

.premium-router-card .hotspot-router-copy strong,
.premium-router-card .hotspot-router-copy span,
.premium-router-card .hotspot-router-copy small {
    display: block;
}

.premium-router-card .hotspot-router-copy strong {
    color: #1e293b;
    font-size: 14px;
}

.premium-router-card .hotspot-router-copy span {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.premium-router-card .hotspot-router-copy small {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 9px;
}

.hotspot-module-nav {
    margin-bottom: 20px;
}

.hotspot-router-context {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid #e7ecf3;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(145deg, #fff, #f8faff);
}

.hotspot-context-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
}

.hotspot-context-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.hotspot-router-context > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.hotspot-router-context span,
.hotspot-router-context strong,
.hotspot-router-context small {
    display: block;
}

.hotspot-router-context span {
    color: #8b5cf6;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hotspot-router-context strong {
    margin-top: 2px;
    color: #1e293b;
    font-size: 14px;
}

.hotspot-router-context small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
}

.hotspot-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border: 1px solid #e7ecf3;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #e7ecf3;
    overflow: hidden;
}

.hotspot-nav-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    background: #fff;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.hotspot-nav-card:hover {
    background: #f8faff;
}

.hotspot-nav-card.active {
    background: linear-gradient(145deg, #eef2ff, #f5f3ff);
}

.hotspot-nav-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
}

.hotspot-nav-card.active .hotspot-nav-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.hotspot-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hotspot-nav-copy {
    min-width: 0;
}

.hotspot-nav-copy strong,
.hotspot-nav-copy small {
    display: block;
}

.hotspot-nav-copy strong {
    color: #334155;
    font-size: 10px;
}

.hotspot-nav-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotspot-nav-card.active .hotspot-nav-copy strong {
    color: #4f46e5;
}

.hotspot-dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
}

.premium-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-action-grid .hotspot-action-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    display: grid;
    align-content: end;
    gap: 5px;
    border: 0;
    border-radius: 17px;
}

.action-card-icon {
    position: absolute;
    right: 14px;
    top: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    font-weight: 900;
}

.premium-server-list {
    display: grid;
    gap: 9px;
}

.premium-server-list .hotspot-server-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    background: #fbfcff;
}

.server-state-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.server-state-dot.on {
    background: #10b981;
    box-shadow: 0 0 0 5px #ecfdf5;
}

.server-state-dot.off {
    background: #94a3b8;
    box-shadow: 0 0 0 5px #f1f5f9;
}

.pagination-premium {
    margin-top: 0;
    padding: 17px 18px 2px;
    border-top: 0;
}

.premium-pager {
    width: 100%;
}

.premium-pager-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.pager-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pager-button {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #e3e8f1;
    border-radius: 11px;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(30, 41, 59, 0.035);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.pager-button:hover:not(.disabled) {
    border-color: #c7d2fe;
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}

.pager-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 9px 18px rgba(99, 102, 241, 0.22);
}

.pager-button.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    cursor: not-allowed;
    box-shadow: none;
}

.pager-wide {
    min-width: 92px;
}

.pager-edge {
    width: 38px;
    padding: 0;
}

.manual-pager {
    padding-top: 17px;
}

@media (max-width: 1100px) {
    .module-summary-grid,
    .monitor-overview-stats,
    .hotspot-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monitor-router-grid,
    .hotspot-router-grid-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotspot-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hotspot-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-header-pro {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header-actions,
    .page-header-actions .btn,
    .page-header-actions form {
        width: 100%;
    }

    .hotspot-center-hero {
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .hotspot-center-visual {
        display: none;
    }

    .hotspot-router-context {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hotspot-router-context .btn {
        width: 100%;
    }

    .hotspot-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-empty-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .monitor-router-footnote {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .module-summary-grid,
    .monitor-overview-stats,
    .hotspot-metric-grid,
    .monitor-router-grid,
    .hotspot-router-grid-premium,
    .premium-action-grid {
        grid-template-columns: 1fr;
    }

    .hotspot-nav-grid {
        grid-template-columns: 1fr;
    }

    .page-header-main {
        align-items: flex-start;
    }

    .page-header-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .premium-pager-track {
        justify-content: flex-start;
    }

    .pager-wide {
        min-width: auto;
    }
}

.dashboard-premium-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.premium-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.root-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .dashboard-premium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .premium-dashboard-actions,
    .root-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * Router-centric workspace
 * ======================================================= */
.sidebar-router-card,
.sidebar-router-empty {
    display: block;
    margin: 14px 12px 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.sidebar-router-card > strong,
.sidebar-router-empty > strong {
    display: block;
    margin-top: 7px;
    font-size: 0.96rem;
    line-height: 1.3;
}

.sidebar-router-card > small,
.sidebar-router-empty > span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.sidebar-router-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.sidebar-router-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #49dc9a;
    box-shadow: 0 0 0 4px rgba(73, 220, 154, 0.14);
}

.sidebar-router-meta {
    display: flex;
    gap: 6px;
    margin-top: 9px;
    flex-wrap: wrap;
}

.sidebar-router-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.67rem;
    font-weight: 700;
}

.sidebar-router-card form {
    margin-top: 11px;
}

.sidebar-router-card button {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.sidebar-router-card button:hover,
.sidebar-router-empty:hover {
    background: rgba(255, 255, 255, 0.13);
}

.sidebar-menu-group {
    margin: 4px 8px;
    border-radius: 13px;
}

.sidebar-menu-group summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.83rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sidebar-menu-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-menu-group summary:hover,
.sidebar-menu-group[open] > summary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-menu-group summary i {
    font-style: normal;
    font-size: 0.8rem;
    transition: transform 0.18s ease;
}

.sidebar-menu-group[open] summary i {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: grid;
    gap: 2px;
    padding: 3px 6px 8px 40px;
}

.sidebar-submenu a,
.sidebar-submenu > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    text-decoration: none;
}

.sidebar-submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-submenu > span {
    cursor: default;
    opacity: 0.62;
}

.sidebar-submenu small {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.58rem;
    font-weight: 800;
}

.workspace-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 20px;
    padding: 0 2px 16px;
    border-bottom: 1px solid #e9edf5;
}

.workspace-breadcrumb {
    margin-bottom: 5px;
    color: #8a93a6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-page-head h1 {
    margin: 0;
    color: #182134;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.workspace-page-head p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #778196;
    font-size: 0.88rem;
}

.workspace-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.router-picker-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid #e8eaf5;
    border-radius: 22px;
    background: linear-gradient(135deg, #f9f8ff 0%, #f5fbff 52%, #fff9f4 100%);
    box-shadow: 0 13px 34px rgba(46, 55, 94, 0.06);
}

.router-picker-intro h2 {
    margin: 3px 0 6px;
    color: #1e2840;
    font-size: 1.35rem;
}

.router-picker-intro p {
    max-width: 690px;
    margin: 0;
    color: #738096;
    font-size: 0.86rem;
}

.router-picker-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    gap: 8px;
    min-width: min(410px, 46%);
}

.router-picker-summary span {
    display: grid;
    gap: 1px;
    padding: 10px 12px;
    border: 1px solid rgba(102, 82, 204, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #80899b;
    font-size: 0.67rem;
    text-align: center;
}

.router-picker-summary strong {
    color: #252d43;
    font-size: 1.2rem;
}

.router-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.router-picker-card {
    position: relative;
    overflow: hidden;
    padding: 19px;
    border: 1px solid #e8eaf3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(44, 53, 81, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.router-picker-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #7357dd, #48b6e9, #58d3a1);
    opacity: 0.35;
}

.router-picker-card:hover {
    transform: translateY(-2px);
    border-color: #dcdcf0;
    box-shadow: 0 16px 38px rgba(44, 53, 81, 0.09);
}

.router-picker-card.is-active {
    border-color: #cfc7f6;
    box-shadow: 0 16px 38px rgba(104, 82, 202, 0.11);
}

.router-picker-card-head,
.router-picker-identity,
.router-card-badges,
.router-picker-actions {
    display: flex;
    align-items: center;
}

.router-picker-card-head {
    justify-content: space-between;
    gap: 12px;
}

.router-picker-identity {
    min-width: 0;
    gap: 11px;
}

.router-device-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #745bdb, #9b83ed);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(104, 82, 202, 0.21);
}

.router-picker-identity strong,
.router-picker-identity small {
    display: block;
}

.router-picker-identity strong {
    overflow: hidden;
    color: #20283c;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.router-picker-identity small {
    margin-top: 2px;
    color: #929aac;
    font-size: 0.72rem;
}

.router-card-badges {
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.router-picker-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
}

.router-picker-facts div {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 13px;
    background: #f8f9fc;
}

.router-picker-facts span,
.router-picker-facts strong {
    display: block;
}

.router-picker-facts span {
    margin-bottom: 3px;
    color: #9aa2b2;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.router-picker-facts strong {
    overflow: hidden;
    color: #364057;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.router-card-error {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #fee1df;
    border-radius: 11px;
    background: #fff7f6;
    color: #b85a55;
    font-size: 0.72rem;
}

.router-picker-actions {
    gap: 7px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.router-picker-actions form {
    margin: 0;
}

.btn-danger-soft {
    border-color: #f4d9d7;
    background: #fff6f5;
    color: #bd554f;
}

.btn-danger-soft:hover {
    border-color: #ebc3c0;
    background: #ffefed;
}

.active-router-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 17px;
    padding: 22px 24px;
    border: 1px solid #e8eaf5;
    border-radius: 23px;
    background: linear-gradient(125deg, #f7f5ff 0%, #f7fbff 48%, #f4fff9 100%);
    box-shadow: 0 12px 30px rgba(48, 57, 88, 0.055);
}

.active-router-hero h2 {
    margin: 3px 0 5px;
    color: #1f2940;
    font-size: 1.45rem;
}

.active-router-hero p {
    margin: 0;
    color: #758097;
    font-size: 0.84rem;
}

.router-meta-chips {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.router-meta-chips span {
    padding: 5px 9px;
    border: 1px solid rgba(102, 82, 204, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.83);
    color: #5f6980;
    font-size: 0.68rem;
    font-weight: 700;
}

.active-router-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-router-hero-actions form {
    margin: 0;
}

.router-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.router-module-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 17px;
    border: 1px solid #e8eaf2;
    border-radius: 17px;
    background: #fff;
    color: #273149;
    text-decoration: none;
    transition: transform 0.17s ease, box-shadow 0.17s ease;
}

.router-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(47, 56, 86, 0.08);
}

.router-module-card strong {
    font-size: 0.94rem;
}

.router-module-card span {
    color: #858ea1;
    font-size: 0.75rem;
    line-height: 1.5;
}

.router-module-card.module-monitoring {
    background: linear-gradient(135deg, #f6f3ff, #fbfaff);
}

.router-module-card.module-hotspot {
    background: linear-gradient(135deg, #effcf7, #f9fffc);
}

.router-module-card.upcoming,
.router-module-card.disabled {
    background: #fafbfc;
    opacity: 0.72;
    cursor: default;
}

.module-context-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
    padding: 12px 15px;
    border: 1px solid #e8eaf2;
    border-radius: 16px;
    background: #fff;
}

.module-context-device {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.module-context-device strong,
.module-context-device span {
    display: block;
}

.module-context-device strong {
    overflow: hidden;
    color: #2a3349;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-context-device span {
    margin-top: 2px;
    color: #9199aa;
    font-size: 0.68rem;
}

.module-context-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.module-tabbar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e8eaf2;
    border-radius: 15px;
    background: #f8f9fc;
    scrollbar-width: thin;
}

.module-tab {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
    color: #667188;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.module-tab:hover {
    background: #fff;
    color: #40345e;
}

.module-tab.active {
    background: #fff;
    color: #5945aa;
    box-shadow: 0 4px 12px rgba(64, 52, 94, 0.08);
}

@media (max-width: 1050px) {
    .router-picker-grid {
        grid-template-columns: 1fr;
    }

    .router-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .router-picker-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .router-picker-summary {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .workspace-page-head,
    .active-router-hero,
    .module-context-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-page-actions,
    .active-router-hero-actions,
    .module-context-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .router-picker-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .router-module-grid,
    .router-picker-facts {
        grid-template-columns: 1fr;
    }

    .router-picker-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .router-card-badges {
        justify-content: flex-start;
    }
}

/* PATCH 015: router-centric premium navigation */
.brand-area-compact {
    min-height: 74px;
    padding: 16px 20px;
}

.sidebar-profile,
.sidebar-footer,
.sidebar-router-card {
    display: none !important;
}

.sidebar-nav {
    padding-top: 14px;
}

.root-context-compact {
    margin: 0 2px 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.active-router-mini {
    margin: 6px 0 16px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.active-router-main {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.router-mini-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #69e3ff, #7677ff);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(87, 117, 255, 0.28);
}

.router-mini-copy {
    min-width: 0;
    display: block;
}

.router-mini-copy strong,
.router-mini-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.router-mini-copy strong {
    max-width: 168px;
    color: #fff;
    font-size: 13px;
}

.router-mini-copy small {
    max-width: 168px;
    margin-top: 2px;
    color: #9fb2d4;
    font-size: 11px;
}

.router-mini-meta {
    display: flex;
    gap: 6px;
    margin: 10px 0 9px;
}

.router-mini-meta span {
    min-width: 0;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd8f0;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.router-mini-switch {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.router-mini-switch:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sidebar-menu-group {
    margin: 6px 0;
    border-radius: 14px;
}

.sidebar-menu-group summary {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
}

.sidebar-menu-group[open] summary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-submenu {
    margin: 5px 0 10px 44px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-submenu a,
.sidebar-submenu span {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 9px;
}

.sidebar-submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-topbar {
    min-height: 72px;
    gap: 14px;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
}

.topbar-context-premium {
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    box-shadow: 0 10px 24px rgba(40, 54, 84, 0.06);
}

.premium-profile .profile-trigger {
    gap: 10px;
    min-height: 46px;
    padding: 6px 8px 6px 6px;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 26px rgba(42, 58, 88, 0.08);
}

.premium-profile .profile-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(42, 58, 88, 0.12);
}

.topbar-avatar,
.dropdown-avatar {
    background: linear-gradient(135deg, #6667f2, #21b8d5);
    color: #fff;
}

.premium-profile-dropdown {
    width: 310px;
    padding: 12px;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(18, 29, 53, 0.18);
}

.profile-router-chip {
    margin: 10px 0;
    padding: 11px 12px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f7ff, #eefcff);
}

.profile-router-chip span,
.profile-router-chip small,
.profile-router-chip strong {
    display: block;
}

.profile-router-chip span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-router-chip strong {
    margin-top: 3px;
    color: #172033;
}

.profile-router-chip small {
    margin-top: 2px;
    color: #64748b;
}

.profile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-menu-grid a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 1px solid #e8edf5;
    border-radius: 13px;
    background: #f8fafc;
    color: #26324a;
    font-weight: 800;
    text-align: center;
}

.profile-menu-grid a:hover {
    background: #eef4ff;
    color: var(--primary);
}

.compact-workspace-head {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 92, 226, 0.11), transparent 32%),
        linear-gradient(135deg, #ffffff, #f7fbff);
    box-shadow: 0 14px 38px rgba(30, 45, 75, 0.07);
}

.compact-workspace-head h1 {
    margin: 5px 0 0;
    font-size: clamp(23px, 3vw, 32px);
}

.compact-workspace-head p {
    max-width: 760px;
    margin-top: 6px;
}

.monitor-primary-card .monitor-mini-grid {
    align-items: stretch;
}

.uptime-compact-main {
    display: block;
    color: #172033;
    font-size: 18px;
    line-height: 1.05;
    white-space: nowrap;
}

.uptime-compact-sub {
    display: block;
    margin-top: 4px;
    color: #72809a;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.module-summary-card {
    position: relative;
    overflow: hidden;
}

.module-summary-card::before {
    content: "";
    position: absolute;
    inset: 16px 16px auto auto;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.28);
}

.module-summary-card::after {
    position: absolute;
    top: 24px;
    right: 29px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 900;
}

.summary-purple::after {
    content: "CPU";
    right: 22px;
    font-size: 12px;
}

.summary-emerald::after {
    content: "✓";
}

.summary-sky::after {
    content: "◎";
}

.summary-orange::after {
    content: "⏱";
}

.router-module-card::before {
    width: 42px;
    height: 42px;
    border-radius: 16px;
}

#status-sistem,
#interface-router {
    scroll-margin-top: 96px;
}

@media (max-width: 760px) {
    .admin-topbar {
        padding: 12px 14px;
    }

    .topbar-context-premium {
        display: none;
    }

    .premium-profile-dropdown {
        right: 10px;
        width: calc(100vw - 28px);
    }

    .topbar-profile-copy {
        display: none;
    }

    .compact-workspace-head {
        padding: 16px;
    }
}

/* FIX 016 - Router workspace UX refinement */
.nav-item[href$="/monitoring"],
.nav-item[href$="/hotspot"] {
    margin: 6px 0;
}

.router-mini-slim {
    margin-bottom: 12px;
    padding: 9px;
}

.router-mini-slim .active-router-main {
    margin-bottom: 8px;
}

.router-mini-slim .router-mini-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
    font-size: 12px;
}

.router-mini-slim .router-mini-copy strong {
    max-width: 154px;
    font-size: 12px;
}

.router-mini-slim .router-mini-copy small {
    max-width: 154px;
    font-size: 10px;
}

.router-mini-slim .router-mini-switch {
    min-height: 28px;
    font-size: 11px;
}

.cpu-progress {
    position: relative;
}

.cpu-progress span.is-zero {
    opacity: 0.62;
}

.cpu-progress em {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.mini-chart.is-all-zero {
    position: relative;
}

.mini-chart-column.is-zero span {
    background: linear-gradient(180deg, #a9b5c9, #7d8aa2);
    opacity: 0.82;
}

.mini-chart-zero-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #536175;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
}

.monitor-primary-card .uptime-compact-main {
    color: #fff;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.monitor-primary-card .uptime-compact-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
}

.router-test-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.router-test-chip.is-ok {
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.hotspot-dashboard-fast {
    align-items: stretch;
}

.hotspot-quick-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 92, 226, 0.11), transparent 34%),
        linear-gradient(145deg, #ffffff, #f8fcff);
}

.hotspot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 14px;
}

.hotspot-quick-actions form {
    margin: 0;
}

.warning-panel {
    display: none !important;
}

button.is-busy {
    cursor: wait;
    opacity: 0.72;
}

/* FIX 017: workspace header, Hotspot workspace dan live monitoring. */
.workspace-page-head {
    align-items: center;
}

.workspace-page-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.workspace-head-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 8px;
}

.workspace-head-stat {
    min-width: 88px;
    padding: 9px 12px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    text-align: left;
}

.workspace-head-stat span {
    display: block;
    color: #7c8799;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workspace-head-stat strong {
    display: block;
    margin-top: 2px;
    color: #1f2a44;
    font-size: 19px;
    line-height: 1.1;
}

.workspace-head-stat.stat-indigo {
    background: linear-gradient(145deg, #f6f5ff, #eeefff);
}

.workspace-head-stat.stat-green {
    background: linear-gradient(145deg, #f1fbf6, #e8f8f0);
}

.workspace-head-stat.stat-blue {
    background: linear-gradient(145deg, #eff8ff, #e8f4ff);
}

.workspace-head-stat.stat-orange {
    background: linear-gradient(145deg, #fff8ed, #fff1dd);
}

.router-picker-grid {
    margin-top: 4px;
}

.account-password-wrap {
    max-width: 760px;
}

.account-password-wrap .form-panel {
    width: 100%;
}

.hotspot-module-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.hotspot-module-link {
    display: flex;
    gap: 11px;
    align-items: center;
    min-height: 76px;
    padding: 12px 14px;
    color: #4c5970;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hotspot-module-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.hotspot-module-link.active {
    border-color: rgba(99, 102, 241, 0.26);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);
}

.hotspot-module-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
}

.hotspot-module-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hotspot-module-link strong,
.hotspot-module-link small {
    display: block;
}

.hotspot-module-link strong {
    color: #26324a;
    font-size: 14px;
}

.hotspot-module-link small {
    margin-top: 2px;
    color: #8a94a6;
    font-size: 11px;
}

.hotspot-module-link.tab-violet .hotspot-module-icon {
    color: #6d5ee8;
    background: #efedff;
}

.hotspot-module-link.tab-blue .hotspot-module-icon {
    color: #3382d8;
    background: #e9f4ff;
}

.hotspot-module-link.tab-green .hotspot-module-icon {
    color: #25966a;
    background: #eaf9f1;
}

.hotspot-module-link.tab-cyan .hotspot-module-icon {
    color: #168ca6;
    background: #e8f9fc;
}

.hotspot-module-link.tab-orange .hotspot-module-icon {
    color: #d18127;
    background: #fff4e5;
}

.hotspot-summary-grid {
    margin-bottom: 18px;
}

.hotspot-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hotspot-resource-card {
    position: relative;
    min-height: 128px;
    color: inherit;
    text-decoration: none;
    grid-template-columns: auto 1fr auto;
}

.hotspot-resource-card .monitor-icon {
    align-self: flex-start;
}

.hotspot-resource-card.resource-violet {
    background: linear-gradient(145deg, #f8f6ff, #f0efff);
}

.hotspot-resource-card.resource-green {
    background: linear-gradient(145deg, #f1fbf6, #eaf8f1);
}

.hotspot-resource-card.resource-blue {
    background: linear-gradient(145deg, #f0f8ff, #e9f5ff);
}

.hotspot-resource-card.resource-orange {
    background: linear-gradient(145deg, #fff9ee, #fff2df);
}

.resource-arrow {
    align-self: center;
    color: #778298;
    font-size: 25px;
    font-weight: 500;
}

.hotspot-snapshot-note {
    margin: 14px 2px 0;
    color: #8b95a6;
    font-size: 12px;
}

.traffic-panel-heading {
    align-items: flex-end;
}

.traffic-interface-select {
    display: grid;
    gap: 4px;
    min-width: 150px;
}

.traffic-interface-select span {
    color: #8a94a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.traffic-interface-select select {
    min-height: 38px;
    padding: 7px 34px 7px 11px;
    color: #34415a;
    border: 1px solid #dfe5ef;
    border-radius: 11px;
    background: #fff;
    font-weight: 700;
}

.traffic-live-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 14px;
}

.traffic-value {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.traffic-value span,
.traffic-value small {
    display: block;
}

.traffic-value span {
    color: #8993a5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.traffic-value strong {
    display: block;
    margin: 3px 0 1px;
    color: #26324a;
    font-size: 16px;
}

.traffic-value small {
    color: #8b95a6;
    font-size: 11px;
}

.rx-value {
    background: #eef8ff;
}

.tx-value {
    background: #f5efff;
}

.traffic-status-value {
    background: #f2faf5;
}

.traffic-chart-wrap {
    position: relative;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff, #f7f9fc);
}

.traffic-chart {
    display: block;
    width: 100%;
    height: 178px;
}

.traffic-grid-lines line {
    stroke: #e8edf4;
    stroke-width: 1;
}

.traffic-chart polyline {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.traffic-chart [data-traffic-rx-line] {
    stroke: #2f9ce6;
}

.traffic-chart [data-traffic-tx-line] {
    stroke: #8565e8;
}

.traffic-legend {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding: 0 7px 5px;
    color: #798497;
    font-size: 11px;
    font-weight: 700;
}

.traffic-legend span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.traffic-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-rx {
    background: #2f9ce6;
}

.legend-tx {
    background: #8565e8;
}

.hotspot-log-panel {
    margin-top: 18px;
}

.log-live-chip {
    color: #24865f;
    background: #eaf8f0;
}

.hotspot-log-table td:first-child {
    width: 145px;
    white-space: nowrap;
}

.hotspot-log-table td:nth-child(2) {
    width: 190px;
}

.hotspot-log-topic {
    display: inline-flex;
    padding: 5px 8px;
    color: #5d6780;
    border-radius: 8px;
    background: #f1f4f8;
    font-size: 11px;
    font-weight: 700;
}

.table-loading-state,
.table-empty-state,
.table-error-state {
    padding: 20px;
    color: #8b95a6;
    text-align: center;
}

.table-error-state {
    color: #b55454;
}

@media (max-width: 1180px) {
    .workspace-page-side {
        width: 100%;
        align-items: stretch;
    }

    .workspace-head-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .hotspot-module-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .workspace-head-stats,
    .hotspot-resource-grid,
    .traffic-live-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotspot-module-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotspot-module-link {
        min-height: 68px;
    }
}

@media (max-width: 480px) {
    .workspace-head-stats,
    .hotspot-resource-grid,
    .traffic-live-values,
    .hotspot-module-nav {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * FIX 018 - Account password + Hotspot premium navigation
 * ======================================================= */
.account-password-premium {
    width: min(100%, 680px);
    margin: 0 auto;
}

.account-password-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.account-password-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(145deg, #fbfcff 0%, #f5f7ff 100%);
}

.account-password-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    color: #5b55d9;
    background: linear-gradient(145deg, #eeecff, #e5e8ff);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.account-password-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-password-head h2,
.account-password-head p {
    margin: 0;
}

.account-password-head h2 {
    margin-top: 3px;
    color: #202b3d;
    font-size: 1.22rem;
}

.account-password-head p {
    margin-top: 5px;
    color: #8490a3;
    font-size: 0.82rem;
    line-height: 1.55;
}

.account-password-alert {
    margin: 20px 26px 0;
}

.account-password-form {
    padding: 24px 26px 26px;
}

.account-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-password-help {
    margin: -2px 0 0;
    padding: 11px 13px;
    border-radius: 12px;
    color: #68758a;
    background: #f7f9fc;
}

.account-password-actions {
    justify-content: flex-end;
    margin-top: 2px;
}

.account-password-actions .btn {
    min-width: 190px;
}

.hotspot-module-nav-premium {
    gap: 10px;
    margin-bottom: 22px;
}

.hotspot-module-nav-premium .hotspot-module-link {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    padding: 13px 14px;
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 9px 28px rgba(15, 23, 42, 0.045);
}

.hotspot-module-nav-premium .hotspot-module-link::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: transparent;
    content: "";
}

.hotspot-module-nav-premium .hotspot-module-link.active {
    transform: translateY(-2px);
    border-color: transparent;
    background: linear-gradient(145deg, #ffffff, #f8f8ff);
    box-shadow: 0 16px 38px rgba(79, 70, 229, 0.12);
}

.hotspot-module-nav-premium .hotspot-module-link.active::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.hotspot-module-nav-premium .tab-blue.active::before {
    background: linear-gradient(90deg, #3182ce, #60a5fa);
}

.hotspot-module-nav-premium .tab-green.active::before {
    background: linear-gradient(90deg, #1f9d6c, #52c98d);
}

.hotspot-module-nav-premium .tab-cyan.active::before {
    background: linear-gradient(90deg, #168ca6, #4cc9df);
}

.hotspot-module-nav-premium .tab-orange.active::before {
    background: linear-gradient(90deg, #d18127, #f5ad4e);
}

.hotspot-module-copy {
    min-width: 0;
}

.hotspot-active-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #5b55d9;
    background: #efedff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.tab-blue .hotspot-active-pill {
    color: #2374bd;
    background: #e7f3ff;
}

.tab-green .hotspot-active-pill {
    color: #23845f;
    background: #e7f8ef;
}

.tab-cyan .hotspot-active-pill {
    color: #147f95;
    background: #e5f8fb;
}

.tab-orange .hotspot-active-pill {
    color: #b96b18;
    background: #fff1de;
}

.hotspot-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.hotspot-command-card {
    position: relative;
    display: flex;
    min-height: 210px;
    overflow: hidden;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    color: #26324a;
    text-decoration: none;
    box-shadow: 0 13px 35px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hotspot-command-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
}

.hotspot-command-violet {
    background: linear-gradient(145deg, #f8f6ff 0%, #efefff 100%);
}

.hotspot-command-green {
    background: linear-gradient(145deg, #f1fbf6 0%, #e6f8ee 100%);
}

.hotspot-command-blue {
    background: linear-gradient(145deg, #f0f8ff 0%, #e6f3ff 100%);
}

.hotspot-command-orange {
    background: linear-gradient(145deg, #fff9ef 0%, #fff0da 100%);
}

.hotspot-command-glow {
    position: absolute;
    top: -50px;
    right: -42px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.hotspot-command-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hotspot-command-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hotspot-command-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hotspot-command-violet .hotspot-command-icon,
.hotspot-command-violet .hotspot-command-count {
    color: #6657df;
}

.hotspot-command-green .hotspot-command-icon,
.hotspot-command-green .hotspot-command-count {
    color: #238a62;
}

.hotspot-command-blue .hotspot-command-icon,
.hotspot-command-blue .hotspot-command-count {
    color: #2b7cc5;
}

.hotspot-command-orange .hotspot-command-icon,
.hotspot-command-orange .hotspot-command-count {
    color: #c97820;
}

.hotspot-command-count {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.hotspot-command-copy {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.hotspot-command-copy strong {
    display: block;
    color: #253149;
    font-size: 1rem;
}

.hotspot-command-copy p {
    min-height: 42px;
    margin: 7px 0 0;
    color: #748096;
    font-size: 0.76rem;
    line-height: 1.5;
}

.hotspot-command-open {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    color: #57647a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hotspot-command-open > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

.hotspot-snapshot-note-centered {
    text-align: center;
}

@media (max-width: 1180px) {
    .hotspot-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .hotspot-module-nav-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-password-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hotspot-command-grid,
    .hotspot-module-nav-premium {
        grid-template-columns: 1fr;
    }

    .account-password-head,
    .account-password-form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .account-password-actions .btn {
        width: 100%;
    }
}

/* Module 06 - Profil Hotspot */
.sidebar-submenu-links a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px 7px 42px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-submenu-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.hotspot-module-link.tab-purple .hotspot-module-icon {
    color: #7c3aed;
    background: #ede9fe;
}

.hotspot-module-nav-premium .tab-purple.active::before {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.profile-summary-card {
    min-height: 132px;
}

.profile-summary-blue {
    background: linear-gradient(145deg, #eff6ff, #fff);
}

.profile-summary-green {
    background: linear-gradient(145deg, #ecfdf5, #fff);
}

.profile-summary-violet {
    background: linear-gradient(145deg, #f5f3ff, #fff);
}

.table-subline {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.76rem;
}

.status-pill.is-warning {
    color: #9a6700;
    background: #fff7d6;
}

.status-pill.is-muted {
    color: #64748b;
    background: #f1f5f9;
}

.hotspot-profile-form-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
    align-items: start;
}

.form-divider {
    position: relative;
    margin: 4px 0 2px;
    color: #7c3aed;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-divider::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 9px;
    background: linear-gradient(90deg, #ddd6fe, transparent);
}

.profile-automation-card {
    overflow: hidden;
    padding: 28px;
    border: 1px solid #e9d5ff;
    background:
        radial-gradient(circle at 100% 0, rgba(168, 85, 247, 0.16), transparent 38%),
        linear-gradient(155deg, #faf5ff, #fff);
}

.profile-automation-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.2);
    color: #fff;
    font-size: 1.45rem;
}

.profile-automation-card h3 {
    margin: 6px 0 10px;
    color: #312e81;
}

.profile-automation-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.profile-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.profile-feature-list span {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 650;
}

@media (max-width: 980px) {
    .profile-summary-grid,
    .hotspot-profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix 019 - Validasi field dan acuan validity profile. */
.field-group input.is-invalid,
.field-group select.is-invalid,
.field-group textarea.is-invalid {
    border-color: #ef4444;
    background: #fff7f7;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    margin: 6px 0 0;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.field-optional {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.profile-validity-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 11px;
    overflow-x: auto;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: linear-gradient(135deg, #f8fbff, #eff6ff);
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.profile-validity-hint[hidden] {
    display: none;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-meta-item strong {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
}

.profile-meta-item strong.is-active {
    color: #059669;
}

.profile-meta-separator {
    color: #cbd5e1;
    font-weight: 800;
}

.profile-meta-link {
    appearance: none;
    padding: 2px 7px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    line-height: 1.25;
    transition: 0.18s ease;
}

.profile-meta-link:hover {
    border-color: #60a5fa;
    background: #dbeafe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.profile-meta-link:focus-visible {
    outline: 3px solid rgb(59 130 246 / 20%);
    outline-offset: 2px;
}

.profile-meta-link[hidden] {
    display: none;
}

#limit_uptime.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgb(34 197 94 / 12%);
}

@media (max-width: 640px) {
    .profile-validity-hint {
        scrollbar-width: thin;
    }
}


/* Module 07 - metadata profile frameless + Voucher Center. */
.profile-validity-hint {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-inline-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    min-height: 22px;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.profile-inline-meta[hidden] {
    display: none;
}

.profile-inline-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-inline-meta > i {
    color: #cbd5e1;
    font-style: normal;
}

.profile-inline-meta strong {
    color: #334155;
    font-size: inherit;
    font-weight: 800;
}

.profile-inline-meta button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-weight: 850;
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.profile-inline-meta button:hover {
    color: #1d4ed8;
}

.profile-inline-meta button:focus-visible {
    outline: 2px solid rgb(37 99 235 / 20%);
    outline-offset: 3px;
    border-radius: 3px;
}

.profile-inline-meta button[hidden] {
    display: none;
}

.voucher-summary-grid {
    margin-bottom: 18px;
}

.voucher-generator-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
    align-items: start;
}

.voucher-generator-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voucher-generator-side {
    position: sticky;
    top: 92px;
}

.voucher-security-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 0 2px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.voucher-security-note span::first-letter {
    color: #16a34a;
}

.voucher-comment-preview {
    margin-top: 7px;
}

.voucher-comment-preview code,
.voucher-batch-table code,
.voucher-code {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.voucher-code {
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.voucher-status-complete {
    color: #047857;
    background: #ecfdf5;
}

.voucher-status-partial {
    color: #b45309;
    background: #fffbeb;
}

.voucher-status-failed,
.voucher-status-deleted {
    color: #b91c1c;
    background: #fef2f2;
}

.voucher-status-processing {
    color: #1d4ed8;
    background: #eff6ff;
}

.voucher-summary-text {
    font-size: clamp(1.05rem, 2vw, 1.5rem) !important;
    overflow-wrap: anywhere;
}

.voucher-batch-heading {
    gap: 18px;
}

.voucher-batch-heading .panel-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .voucher-generator-grid {
        grid-template-columns: 1fr;
    }

    .voucher-generator-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .voucher-generator-row {
        grid-template-columns: 1fr;
    }

    .profile-inline-meta {
        padding-bottom: 3px;
    }
}

/* PATCH FIX 023 - premium voucher user mode */
.voucher-user-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.voucher-user-mode-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.voucher-user-mode-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.voucher-user-mode-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 13px;
    align-items: center;
    min-height: 86px;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 26px rgb(15 23 42 / 5%);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.voucher-user-mode-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: transparent;
    transition: background 160ms ease;
}

.voucher-user-mode-option:hover .voucher-user-mode-card {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgb(15 23 42 / 8%);
}

.voucher-user-mode-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #475569;
    background: #f1f5f9;
}

.voucher-user-mode-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voucher-user-mode-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.voucher-user-mode-copy strong {
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 850;
}

.voucher-user-mode-copy small {
    color: #64748b;
    font-size: 0.77rem;
    font-weight: 650;
    line-height: 1.45;
}

.voucher-user-mode-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.voucher-user-mode-option > input:checked + .voucher-user-mode-card {
    border-color: #93c5fd;
    background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 14px 34px rgb(37 99 235 / 12%);
}

.voucher-user-mode-option > input:checked + .voucher-user-mode-card::before {
    background: #2563eb;
}

.voucher-user-mode-option > input:checked + .voucher-user-mode-card .voucher-user-mode-icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.voucher-user-mode-option > input:checked + .voucher-user-mode-card .voucher-user-mode-check {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
}

.voucher-user-mode-option > input:focus-visible + .voucher-user-mode-card {
    outline: 3px solid rgb(37 99 235 / 18%);
    outline-offset: 3px;
}

.voucher-mode-help {
    min-height: 18px;
    margin-top: 7px;
}

.voucher-user-mode-pill {
    white-space: nowrap;
}

.voucher-batch-mode {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.78rem;
}

.voucher-batch-mode strong {
    color: #1e293b;
}

@media (max-width: 720px) {
    .voucher-user-mode-grid {
        grid-template-columns: 1fr;
    }
}

/* PATCH FIX 025 - premium voucher sync dan batch monitoring */
.voucher-sync-card,
.voucher-batch-live-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.voucher-sync-copy,
.voucher-batch-live-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.voucher-sync-copy > strong,
.voucher-batch-live-copy > strong {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 850;
}

.voucher-sync-copy > small,
.voucher-batch-live-copy > small {
    max-width: 780px;
    color: #64748b;
    line-height: 1.55;
}

.voucher-sync-time {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 750;
}

.voucher-sync-icon,
.voucher-live-icon {
    color: #2563eb;
    background: #eff6ff;
}

.voucher-sync-action {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 12px 28px rgb(37 99 235 / 22%);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.voucher-sync-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgb(37 99 235 / 28%);
}

.voucher-sync-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voucher-mode-code {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.voucher-mode-up {
    color: #1d4ed8;
    background: #eff6ff;
}

.voucher-mode-vc {
    color: #7c3aed;
    background: #f5f3ff;
}

.voucher-monitor-table {
    overflow: hidden;
}

.voucher-batch-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.76rem;
}

.voucher-batch-inline-meta span {
    position: relative;
}

.voucher-batch-inline-meta span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    content: "";
    transform: translateY(-50%);
}

.voucher-batch-inline-meta b {
    margin-right: 4px;
    color: #334155;
    font-weight: 800;
}

.voucher-router-check {
    white-space: nowrap;
}

.voucher-router-check.is-checking {
    color: #475569;
    background: #f1f5f9;
}

.voucher-router-check.is-present {
    color: #047857;
    background: #ecfdf5;
}

.voucher-router-check.is-missing,
.voucher-router-check.is-error {
    color: #b45309;
    background: #fffbeb;
}

@media (max-width: 820px) {
    .voucher-sync-card,
    .voucher-batch-live-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .voucher-sync-card form,
    .voucher-batch-live-card > button {
        grid-column: 1 / -1;
    }

    .voucher-sync-action {
        width: 100%;
    }
}

/* PATCH FIX 026 - premium voucher workspace dan detail batch */
.voucher-create-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgb(79 70 229 / 12%);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    box-shadow: 0 11px 24px rgb(79 70 229 / 20%);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.voucher-create-action:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgb(79 70 229 / 26%);
}

.voucher-create-action svg,
.voucher-refresh-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voucher-overview-grid .monitor-summary-card {
    min-height: 128px;
}

.voucher-sync-premium {
    position: relative;
    overflow: hidden;
    border-color: rgb(191 219 254 / 80%);
    background:
        radial-gradient(circle at 95% 10%, rgb(99 102 241 / 10%), transparent 34%),
        linear-gradient(145deg, #fff, #f8fbff);
}

.voucher-sync-premium::after {
    position: absolute;
    right: -52px;
    bottom: -72px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgb(37 99 235 / 5%);
    content: "";
    pointer-events: none;
}

.voucher-sync-premium > * {
    position: relative;
    z-index: 1;
}

.voucher-sync-time b {
    color: #475569;
    font-weight: 800;
}

.voucher-batch-history-panel,
.voucher-code-panel {
    border-top: 3px solid #6366f1;
}

.voucher-table-heading {
    gap: 18px;
    align-items: center;
}

.voucher-table-heading p {
    max-width: 680px;
    margin-bottom: 0;
}

.voucher-mode-legend {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-left: auto;
}

.voucher-mode-legend span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.voucher-mode-legend b {
    color: #4338ca;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.voucher-batch-table tbody tr,
.voucher-code-table tbody tr {
    transition: background 140ms ease;
}

.voucher-batch-table tbody tr:hover,
.voucher-code-table tbody tr:hover {
    background: #f8faff;
}

.voucher-batch-code,
.voucher-table-profile {
    color: #1e293b;
    font-weight: 820;
}

.voucher-table-profile {
    display: inline-block;
    max-width: 230px;
    overflow-wrap: anywhere;
}

.voucher-profile-summary {
    align-items: center;
}

.voucher-profile-summary-copy {
    min-width: 0;
}

.voucher-profile-summary .voucher-profile-name {
    max-width: 100%;
    margin: 4px 0 6px;
    overflow: hidden;
    color: #0f172a;
    font-size: clamp(0.95rem, 1.35vw, 1.12rem);
    font-weight: 880;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-profile-summary small {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 720;
}

.voucher-profile-summary small i {
    color: #cbd5e1;
    font-style: normal;
}

.voucher-price-summary .voucher-summary-currency {
    font-size: clamp(1.02rem, 1.55vw, 1.3rem);
    line-height: 1.15;
    white-space: nowrap;
}

.voucher-batch-live-premium {
    border-color: rgb(196 181 253 / 65%);
    background:
        radial-gradient(circle at 92% 0%, rgb(139 92 246 / 8%), transparent 32%),
        #fff;
}

.voucher-refresh-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #c7d2fe;
    border-radius: 11px;
    color: #4338ca;
    background: #eef2ff;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 820;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.voucher-refresh-action:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgb(79 70 229 / 12%);
}

@media (max-width: 1050px) {
    .voucher-profile-summary .voucher-profile-name {
        white-space: normal;
    }
}

@media (max-width: 820px) {
    .voucher-table-heading {
        align-items: flex-start;
    }

    .voucher-mode-legend {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .voucher-refresh-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .voucher-mode-legend span {
        flex: 1 1 auto;
        justify-content: center;
    }

    .voucher-create-action {
        width: 100%;
        justify-content: center;
    }
}

/* Module 08 - Template Voucher & Quick Print */
.voucher-template-summary-grid,
.voucher-print-select-summary {
    margin-bottom: 18px;
}

.voucher-template-workflow-card {
    margin-bottom: 18px;
}

.voucher-template-workflow-card .btn {
    margin-left: auto;
    white-space: nowrap;
}

.voucher-template-panel {
    overflow: hidden;
    margin-bottom: 18px;
}

.voucher-template-heading {
    align-items: flex-start;
}

.voucher-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.voucher-template-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.voucher-template-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.voucher-template-card.is-system {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.voucher-template-card-top,
.voucher-template-actions,
.voucher-editor-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voucher-template-type,
.voucher-template-default,
.voucher-template-owned {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.voucher-template-type {
    background: #eff6ff;
    color: #2563eb;
}

.voucher-template-default {
    background: #ecfdf5;
    color: #047857;
}

.voucher-template-owned {
    background: #f5f3ff;
    color: #7c3aed;
}

.voucher-template-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 128px;
    margin: 13px 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background:
        radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(135deg, #f8fbff, #fff);
}

.voucher-template-visual::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border: 5px solid #0f172a;
    background:
        linear-gradient(90deg, #0f172a 25%, transparent 25% 50%, #0f172a 50% 75%, transparent 75%),
        linear-gradient(#0f172a 25%, transparent 25% 50%, #0f172a 50% 75%, transparent 75%);
    background-size: 12px 12px;
    opacity: 0.9;
}

.voucher-template-visual-compact {
    min-height: 96px;
}

.voucher-template-visual-thermal {
    width: 62%;
    min-height: 160px;
    margin-right: auto;
    margin-left: auto;
}

.voucher-template-mock-brand {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.voucher-template-visual strong {
    max-width: calc(100% - 60px);
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.voucher-template-visual small {
    max-width: calc(100% - 60px);
    margin-top: 6px;
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-template-card-copy {
    flex: 1;
}

.voucher-template-card-copy h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.voucher-template-card-copy p {
    min-height: 38px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.voucher-template-actions {
    justify-content: flex-start;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.voucher-template-actions form {
    margin: 0;
}

.voucher-template-empty {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 22px;
    color: #64748b;
    text-align: center;
}

.voucher-template-empty strong {
    color: #0f172a;
}

.voucher-template-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.voucher-template-editor-main {
    overflow: hidden;
}

.voucher-template-form {
    padding: 18px;
}

.voucher-template-form textarea {
    width: 100%;
    min-height: 430px;
    padding: 14px;
    resize: vertical;
    border: 1px solid #d9e2ee;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.55;
}

.voucher-editor-label-row span {
    color: #94a3b8;
    font-size: 11px;
}

.voucher-template-help {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 82px;
}

.voucher-template-help-card {
    margin: 0;
}

.voucher-placeholder-panel,
.voucher-editor-rules {
    padding: 14px;
}

.voucher-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.voucher-placeholder-list code {
    padding: 5px 7px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 10px;
}

.voucher-editor-rules strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 12px;
}

.voucher-editor-rules p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.voucher-print-template-panel {
    overflow: hidden;
}

.voucher-print-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.voucher-print-template-choice {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.voucher-print-template-choice:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.voucher-print-template-choice .voucher-template-visual {
    min-height: 76px;
    margin: 0;
    padding: 8px;
}

.voucher-print-template-choice .voucher-template-visual::after {
    right: 7px;
    bottom: 7px;
    width: 28px;
    height: 28px;
    border-width: 3px;
    background-size: 8px 8px;
}

.voucher-print-template-choice .voucher-template-visual strong {
    font-size: 14px;
}

.voucher-print-template-choice > div:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.voucher-print-template-choice > div:nth-child(2) strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-print-template-choice > div:nth-child(2) span {
    color: #64748b;
    font-size: 10px;
}

.voucher-print-template-choice > i {
    color: #2563eb;
    font-size: 18px;
    font-style: normal;
}

.voucher-print-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 1100px) {
    .voucher-template-grid,
    .voucher-print-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voucher-template-editor-layout {
        grid-template-columns: 1fr;
    }

    .voucher-template-help {
        position: static;
    }
}

@media (max-width: 720px) {
    .voucher-template-grid,
    .voucher-print-template-grid {
        grid-template-columns: 1fr;
    }

    .voucher-template-visual-thermal {
        width: 78%;
    }

    .voucher-template-workflow-card {
        align-items: flex-start;
    }

    .voucher-template-workflow-card .btn {
        margin-left: 0;
    }

    .voucher-print-template-choice {
        grid-template-columns: 92px minmax(0, 1fr) auto;
    }
}

.voucher-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.voucher-row-actions form {
    margin: 0;
}

/* PATCH FIX 027 - global premium table patron */
.ros-table-panel {
    overflow: hidden;
    border-top: 3px solid #6366f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(15 23 42 / 6%);
}

.ros-table-panel > .ros-table-heading {
    gap: 18px;
    align-items: center;
    min-height: 78px;
    padding: 17px 20px;
    background:
        radial-gradient(circle at 96% 0, rgb(99 102 241 / 8%), transparent 34%),
        linear-gradient(90deg, #f8faff, #fff 72%);
}

.ros-table-panel > .ros-table-heading h2 {
    color: #172033;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.ros-table-panel > .ros-table-heading p,
.ros-table-panel > .ros-table-heading .panel-description {
    max-width: 720px;
    margin: 5px 0 0;
    color: #8491a5;
    font-size: 0.72rem;
    line-height: 1.55;
}

.ros-table-panel > .filter-bar {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #edf1f6;
    background:
        radial-gradient(circle at 96% 0, rgb(99 102 241 / 7%), transparent 34%),
        linear-gradient(90deg, #f8faff, #fff 72%);
}

.ros-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-top: 0;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.ros-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.ros-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: #cbd5e1;
}

.ros-data-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ros-data-table thead th {
    padding: 12px 15px;
    border-top: 0;
    border-bottom: 1px solid #e7ecf4;
    color: #64748b;
    background: #f8faff;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ros-data-table tbody td {
    padding: 13px 15px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
    vertical-align: middle;
    transition: background 140ms ease, box-shadow 140ms ease;
}

.ros-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.ros-data-table tbody tr:hover td {
    background: #f8faff;
}

.ros-data-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 #6366f1;
}

.ros-data-table td strong {
    color: #1e293b;
    font-weight: 820;
}

.ros-data-table code {
    display: inline-flex;
    max-width: 260px;
    padding: 3px 7px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #475569;
    background: #f8fafc;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ros-data-table .table-subline,
.ros-data-table .table-subtext {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.66rem;
    line-height: 1.4;
}

.ros-data-table .traffic-cell {
    min-width: 112px;
}

.ros-data-table .traffic-cell span {
    white-space: nowrap;
}

.ros-data-table .comment-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ros-table-panel .empty-cell {
    padding: 34px 20px;
    color: #94a3b8;
    text-align: center;
}

.ros-table-panel > .pagination,
.ros-table-panel > .pagination-premium {
    margin: 0;
    padding: 14px 18px 16px;
    border-top: 1px solid #eef2f7;
    background: #fbfcff;
}

@media (max-width: 760px) {
    .ros-table-panel > .ros-table-heading {
        align-items: flex-start;
        min-height: 0;
        padding: 15px 16px;
    }

    .ros-table-panel > .filter-bar {
        padding: 14px 16px;
    }

    .ros-data-table thead th,
    .ros-data-table tbody td {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* PATCH 028: premium icon sidebar + Quick Print LIVE */
.admin-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(77, 110, 255, 0.34), transparent 30%),
        linear-gradient(180deg, #16223a 0%, #111a2d 52%, #0d1526 100%);
    box-shadow: 16px 0 44px rgba(15, 23, 42, 0.16);
}

.brand-logo svg,
.router-mini-icon svg,
.sidebar-premium-icon svg,
.sidebar-sub-icon svg,
.sidebar-group-chevron svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-logo svg {
    width: 22px;
    height: 22px;
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.nav-label {
    margin-top: 20px;
    color: #6f86aa;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.nav-item,
.sidebar-menu-group summary {
    border: 1px solid transparent;
}

.nav-item:hover,
.sidebar-menu-group summary:hover {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.065);
}

.sidebar-premium-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    color: #aebfe0;
    transition: 0.18s ease;
}

.nav-item:hover .sidebar-premium-icon,
.sidebar-menu-group summary:hover .sidebar-premium-icon,
.sidebar-menu-group[open] summary .sidebar-premium-icon {
    border-color: rgba(121, 177, 255, 0.26);
    background: rgba(93, 124, 255, 0.16);
    color: #dce9ff;
}

.nav-item.active .sidebar-premium-icon,
.sidebar-menu-group summary.active .sidebar-premium-icon {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.nav-item.active {
    border-color: rgba(132, 180, 255, 0.28);
    background: linear-gradient(100deg, rgba(79, 91, 213, 0.98), rgba(65, 132, 221, 0.9));
    box-shadow: 0 10px 26px rgba(42, 60, 160, 0.28);
}

.sidebar-menu-group summary {
    gap: 10px;
    color: #b9c6dc;
    font-weight: 700;
}

.sidebar-group-chevron {
    width: 20px;
    height: 20px;
    margin-left: auto;
    display: grid;
    place-items: center;
    color: #7186aa;
    transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar-group-chevron svg {
    width: 14px;
    height: 14px;
}

.sidebar-menu-group[open] .sidebar-group-chevron {
    transform: rotate(90deg);
    color: #cfe1ff;
}

.sidebar-submenu-links {
    margin-left: 17px;
    padding: 7px 0 7px 26px;
}

.sidebar-submenu-links a {
    position: relative;
    min-height: 34px;
    padding: 7px 10px;
}

.sidebar-submenu-links > a:not(.sidebar-quickprint-link)::before {
    content: "";
    position: absolute;
    left: -17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #536988;
}

.sidebar-submenu-links a.active {
    background: linear-gradient(90deg, rgba(89, 112, 241, 0.18), rgba(89, 112, 241, 0.04));
    color: #fff;
}

.sidebar-submenu-links a.active::before {
    background: #74d6ff;
    box-shadow: 0 0 0 4px rgba(116, 214, 255, 0.12);
}

.sidebar-quickprint-link {
    display: flex !important;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
    border: 1px solid rgba(73, 211, 154, 0.16);
    background: rgba(47, 194, 137, 0.07);
}

.sidebar-quickprint-link:hover,
.sidebar-quickprint-link.active {
    border-color: rgba(73, 211, 154, 0.3);
    background: rgba(47, 194, 137, 0.14) !important;
}

.sidebar-sub-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #72dfb6;
}

.sidebar-sub-icon svg {
    width: 15px;
    height: 15px;
}

.sidebar-quickprint-link small {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(75, 222, 166, 0.12);
    color: #95eacb;
    font-size: 9px;
    font-weight: 800;
}

.router-mini-icon svg {
    width: 19px;
    height: 19px;
}

.quick-print-summary-grid {
    margin-bottom: 18px;
}

.quick-print-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.quick-print-settings-panel,
.quick-print-profile-panel {
    overflow: hidden;
    border: 1px solid #e6edf6;
    border-top: 3px solid #6576f5;
    box-shadow: 0 14px 34px rgba(36, 52, 84, 0.07);
}

.quick-print-panel-heading {
    padding-bottom: 14px;
}

.quick-print-settings-form {
    padding: 0 22px 22px;
}

.quick-print-toggle-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #fff);
    cursor: pointer;
}

.quick-print-toggle-row input {
    margin-top: 3px;
}

.quick-print-toggle-row span,
.quick-print-toggle-row strong,
.quick-print-toggle-row small {
    display: block;
}

.quick-print-toggle-row strong {
    color: #24324b;
    font-size: 13px;
}

.quick-print-toggle-row small {
    margin-top: 3px;
    color: #70809b;
    line-height: 1.45;
}

.quick-print-settings-actions {
    padding-bottom: 0;
}

.quick-print-template-card {
    min-height: 100%;
    align-items: flex-start;
    background: linear-gradient(145deg, #eef7ff, #fff);
}

.quick-print-template-copy {
    min-width: 0;
    flex: 1;
}

.quick-print-template-copy strong,
.quick-print-template-copy small {
    display: block;
}

.quick-print-template-copy > strong {
    margin-top: 4px;
    color: #1f2a44;
    font-size: 18px;
}

.quick-print-template-copy > small {
    margin-top: 5px;
    color: #71809b;
}

.quick-print-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.quick-print-profile-panel .panel-heading {
    border-bottom: 1px solid #edf1f7;
}

.quick-print-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.quick-print-profile-card {
    display: flex;
    min-width: 0;
    min-height: 210px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(39, 56, 88, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-print-profile-card.is-ready:hover {
    transform: translateY(-3px);
    border-color: #cbd8ff;
    box-shadow: 0 16px 32px rgba(58, 79, 145, 0.1);
}

.quick-print-profile-card.is-disabled {
    background: #f8fafc;
    opacity: 0.78;
}

.quick-print-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quick-print-profile-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eef3ff;
    color: #5567df;
}

.quick-print-profile-icon svg,
.quick-print-action-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-print-ready-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eafaf3;
    color: #17855e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.is-disabled .quick-print-ready-badge {
    background: #fff3df;
    color: #a86800;
}

.quick-print-profile-copy {
    flex: 1;
    padding: 15px 0 14px;
}

.quick-print-profile-copy > strong {
    display: block;
    overflow: hidden;
    color: #202c45;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-print-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
    color: #75839b;
    font-size: 11px;
}

.quick-print-profile-meta b {
    color: #3d4c67;
}

.quick-print-profile-meta i {
    color: #c3ccda;
    font-style: normal;
}

.quick-print-action {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 9px 11px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #5869e8, #427fd9);
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 22px rgba(73, 94, 208, 0.2);
}

.quick-print-action:hover {
    filter: brightness(1.04);
}

.quick-print-action-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.quick-print-action span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.quick-print-action strong,
.quick-print-action small {
    display: block;
}

.quick-print-action strong {
    font-size: 12px;
}

.quick-print-action small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
}

.quick-print-action > i {
    font-style: normal;
    font-size: 17px;
}

.quick-print-fix-link {
    display: block;
    padding: 11px;
    border-radius: 12px;
    background: #fff7e8;
    color: #9b6807;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.quick-print-browser-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e3e9f2;
    border-radius: 16px;
    background: #f8fafc;
}

.quick-print-browser-note strong,
.quick-print-browser-note span {
    display: block;
}

.quick-print-browser-note strong {
    color: #2d3b55;
    font-size: 12px;
}

.quick-print-browser-note span {
    margin-top: 3px;
    color: #728098;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .quick-print-workspace-grid {
        grid-template-columns: 1fr;
    }

    .quick-print-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .quick-print-profile-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }
}

.voucher-template-workflow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

/* FIX 031 - Quick Print LIVE compact monitoring workspace */
.quick-print-summary-grid .monitor-summary-card {
    min-height: 106px;
    padding: 15px 16px;
}

.quick-print-summary-grid .summary-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
}

.quick-print-summary-grid .summary-icon svg {
    width: 20px;
    height: 20px;
}

.quick-print-summary-grid .monitor-summary-card span {
    font-size: 10px;
}

.quick-print-summary-grid .monitor-summary-card strong {
    margin-top: 2px;
    font-size: 17px;
    line-height: 1.2;
}

.quick-print-summary-grid .monitor-summary-card small {
    margin-top: 3px;
    font-size: 10px;
}

.quick-print-workspace-compact {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
    align-items: stretch;
}

.quick-print-workspace-compact .quick-print-settings-panel,
.quick-print-workspace-compact .quick-print-ready-card {
    min-height: 100%;
}

.quick-print-panel-heading {
    margin-bottom: 14px;
    padding: 16px 18px 12px;
}

.quick-print-panel-heading .panel-kicker {
    font-size: 9px;
    letter-spacing: 0.08em;
}

.quick-print-panel-heading h2 {
    margin-top: 3px;
    font-size: 16px;
}

.quick-print-panel-heading p {
    margin-top: 4px;
    color: #748198;
    font-size: 10.5px;
    line-height: 1.45;
}

.quick-print-settings-form-compact {
    padding: 0 18px 18px;
}

.quick-print-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
}

.quick-print-settings-grid .field-group {
    margin: 0;
}

.quick-print-settings-grid .field-group > label,
.quick-print-auto-label,
.quick-print-field-label label {
    color: #334155;
    font-size: 10.5px;
    font-weight: 850;
}

.quick-print-settings-grid input,
.quick-print-settings-grid select {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 10px;
    font-size: 11px;
}

.quick-print-field-label {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.quick-print-field-label label {
    margin: 0;
}

.quick-print-field-label span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.quick-print-auto-field {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.quick-print-auto-control {
    min-height: 54px;
    width: 100%;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: linear-gradient(145deg, #fbfcfe, #ffffff);
}

.quick-print-auto-copy {
    min-width: 0;
}

.quick-print-auto-title-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.quick-print-auto-label {
    margin: 0;
}

.quick-print-auto-copy > small {
    display: block;
    margin-top: 3px;
    color: #8793a8;
    font-size: 9px;
    line-height: 1.35;
}

.quick-print-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.quick-print-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.quick-print-switch-status {
    min-width: 32px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.055em;
    transition: all 0.18s ease;
}

.quick-print-switch-on {
    display: none;
}

.quick-print-switch-track {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
}

.quick-print-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.quick-print-switch input:checked ~ .quick-print-switch-status {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
}

.quick-print-switch input:checked ~ .quick-print-switch-status .quick-print-switch-off {
    display: none;
}

.quick-print-switch input:checked ~ .quick-print-switch-status .quick-print-switch-on {
    display: inline;
}

.quick-print-switch input:checked ~ .quick-print-switch-track {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #4f83e8);
}

.quick-print-switch input:checked ~ .quick-print-switch-track::after {
    transform: translateX(16px);
}

.quick-print-switch input:focus-visible ~ .quick-print-switch-track {
    outline: 3px solid rgba(99, 102, 241, 0.18);
    outline-offset: 2px;
}

.quick-print-help {
    position: relative;
    margin-left: auto;
}

.quick-print-help summary {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe3ef;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    list-style: none;
}

.quick-print-help summary::-webkit-details-marker {
    display: none;
}

.quick-print-help summary svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-print-help[open] summary {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
}

.quick-print-help-popover {
    position: absolute;
    z-index: 30;
    top: 34px;
    right: 0;
    width: min(330px, 78vw);
    padding: 13px 14px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(30, 41, 59, 0.16);
}

.quick-print-help-popover::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 9px;
    width: 9px;
    height: 9px;
    border-top: 1px solid #e0e7f0;
    border-left: 1px solid #e0e7f0;
    background: #fff;
    transform: rotate(45deg);
}

.quick-print-help-popover strong {
    display: block;
    color: #26344f;
    font-size: 11px;
}

.quick-print-help-popover ol {
    margin: 8px 0 0 17px;
    padding: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.quick-print-help-popover code {
    padding: 1px 4px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #4338ca;
    font-size: 9px;
}

.quick-print-help-popover small {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
    color: #8491a6;
    font-size: 9px;
    line-height: 1.45;
}

.quick-print-settings-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #edf1f6;
}

.quick-print-source-hint {
    max-width: 540px;
    color: #7a879d;
    font-size: 9.5px;
    line-height: 1.45;
}

.quick-print-inline-alert {
    margin: 0 18px 18px;
    padding: 13px 14px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fffaf2;
}

.quick-print-inline-alert strong,
.quick-print-inline-alert span,
.quick-print-inline-alert a {
    display: block;
}

.quick-print-inline-alert strong {
    color: #9a5d09;
    font-size: 11px;
}

.quick-print-inline-alert span {
    margin-top: 3px;
    color: #8a7354;
    font-size: 10px;
    line-height: 1.45;
}

.quick-print-inline-alert a {
    margin-top: 7px;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.quick-print-ready-card {
    padding: 18px;
    align-items: flex-start;
    border-top: 3px solid #6576f5;
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.09), transparent 35%),
        linear-gradient(145deg, #f7f9ff, #fff);
}

.quick-print-ready-card.is-warning {
    border-top-color: #f59e0b;
}

.quick-print-ready-copy {
    min-width: 0;
    flex: 1;
}

.quick-print-ready-copy > strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #1f2a44;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-print-ready-copy > small {
    display: block;
    margin-top: 5px;
    color: #71809b;
    font-size: 10px;
    line-height: 1.45;
}

.quick-print-ready-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    color: #71809b;
    font-size: 10px;
}

.quick-print-ready-meta b {
    color: #36445f;
}

.quick-print-ready-meta i {
    color: #c3ccda;
    font-style: normal;
}

.quick-print-ready-actions {
    margin-top: 17px;
}

.quick-print-ready-actions form {
    margin: 0;
}

.quick-print-action-primary {
    min-height: 46px;
    border-radius: 12px;
}

.quick-print-action-primary strong {
    font-size: 11.5px;
}

.quick-print-action-primary small {
    font-size: 9.5px;
}

.quick-print-ready-template-actions {
    margin-top: 11px;
}

@media (max-width: 1100px) {
    .quick-print-workspace-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .quick-print-settings-grid {
        grid-template-columns: 1fr;
    }

    .quick-print-settings-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-print-settings-footer .btn {
        width: 100%;
    }

    .quick-print-help-popover {
        position: fixed;
        top: 50%;
        right: 18px;
        left: 18px;
        width: auto;
        transform: translateY(-50%);
    }

    .quick-print-help-popover::before {
        display: none;
    }
}

/* PATCH FIX 032 - Quick Print Auto Print control alignment */
@media (max-width: 520px) {
    .quick-print-auto-control {
        gap: 10px;
    }

    .quick-print-auto-copy > small {
        max-width: 185px;
    }
}

/* PATCH FIX 033 - integrated Auto Print toggle */
.quick-print-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.quick-print-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.quick-print-switch-ui {
    position: relative;
    width: 72px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #eef2f7;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quick-print-switch-state {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    transition: opacity 0.16s ease, color 0.16s ease;
}

.quick-print-switch-off {
    right: 10px;
    color: #64748b;
}

.quick-print-switch-on {
    left: 11px;
    display: block;
    color: #fff;
    opacity: 0;
}

.quick-print-switch-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-print-switch input:checked + .quick-print-switch-ui {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #4f83e8);
    box-shadow: 0 5px 12px rgba(79, 70, 229, 0.2);
}

.quick-print-switch input:checked + .quick-print-switch-ui .quick-print-switch-off {
    opacity: 0;
}

.quick-print-switch input:checked + .quick-print-switch-ui .quick-print-switch-on {
    opacity: 1;
}

.quick-print-switch input:checked + .quick-print-switch-ui .quick-print-switch-knob {
    transform: translateX(42px);
    border-color: rgba(255, 255, 255, 0.72);
}

.quick-print-switch input:focus-visible + .quick-print-switch-ui {
    outline: 3px solid rgba(99, 102, 241, 0.18);
    outline-offset: 2px;
}

.quick-print-switch:hover .quick-print-switch-ui {
    border-color: #94a3b8;
}

.quick-print-switch input:checked + .quick-print-switch-ui:hover {
    border-color: #4f46e5;
}

@media (max-width: 520px) {
    .quick-print-switch-ui {
        width: 68px;
    }

    .quick-print-switch input:checked + .quick-print-switch-ui .quick-print-switch-knob {
        transform: translateX(38px);
    }
}

/* PATCH-FIX-034: Thermal template switching */
.voucher-template-card.is-quick-active {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.11);
}

.voucher-template-quick-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
    white-space: nowrap;
}

.voucher-template-actions form {
    margin: 0;
}

.voucher-template-actions button:disabled {
    cursor: default;
    opacity: 1;
}

.quick-print-template-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted, #64748b);
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .voucher-template-quick-badge {
        font-size: 9px;
    }
}

.voucher-template-actions .is-template-active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

/* PATCH-M09 + Template action polish */
.voucher-template-card-top {
    flex-wrap: wrap;
}

.voucher-template-card {
    min-height: 100%;
}

.template-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    justify-content: stretch;
}

.template-action-form {
    display: flex;
    min-width: 0;
    margin: 0;
}

.template-action-use-form {
    grid-column: 1 / -1;
    grid-row: 1;
}

.template-action-delete-form {
    grid-column: 1 / -1;
}

.template-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.template-action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.template-action-preview {
    border-color: #dbeafe;
    background: #f8fbff;
    color: #1d4ed8;
}

.template-action-preview:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.1);
}

.template-action-use {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
    box-shadow: 0 7px 18px rgba(79, 70, 229, 0.18);
}

.template-action-use:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.24);
}

.template-action-use.is-active,
.template-action-use:disabled {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
    box-shadow: none;
}

.template-action-copy {
    border-color: #ede9fe;
    background: #faf8ff;
    color: #6d28d9;
}

.template-action-copy:hover {
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.template-action-edit {
    border-color: #cffafe;
    background: #f4feff;
    color: #0e7490;
}

.template-action-edit:hover {
    border-color: #a5f3fc;
    background: #ecfeff;
}

.template-action-delete {
    border-color: #fee2e2;
    background: #fff8f8;
    color: #b91c1c;
}

.template-action-delete:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.network-module-nav-premium {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.network-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.network-nav-item:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.network-nav-item.active {
    border-color: rgba(79, 70, 229, 0.32);
    background:
        radial-gradient(circle at 95% 10%, rgba(99, 102, 241, 0.12), transparent 34%),
        linear-gradient(135deg, #fff, #f8f9ff);
    color: #312e81;
    box-shadow: 0 10px 26px rgba(79, 70, 229, 0.09);
}

.network-nav-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f1f5f9;
    color: #475569;
}

.network-nav-item.active .network-nav-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.network-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.network-nav-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.network-nav-item strong {
    color: #0f172a;
    font-size: 13px;
}

.network-nav-item small {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-summary-grid {
    margin-bottom: 18px;
}

.network-table-panel {
    overflow: hidden;
}

.network-table-heading {
    gap: 16px;
    align-items: flex-end;
}

.network-table-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.network-table-filter input,
.network-table-filter select {
    min-height: 36px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 12px;
}

.network-table-filter input {
    width: min(260px, 42vw);
    padding: 7px 11px;
}

.network-table-filter select {
    padding: 7px 30px 7px 10px;
}

.network-data-table .table-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

.network-type-pill,
.network-lease-pill,
.network-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.network-type-pill.is-regular,
.network-status-pill {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.network-type-pill.is-bypassed,
.network-status-pill.is-bound,
.network-lease-pill.is-static {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.network-type-pill.is-blocked,
.network-status-pill.is-declined {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.network-lease-pill.is-dynamic,
.network-status-pill.is-waiting,
.network-status-pill.is-offered {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.network-form-intro {
    margin-bottom: 16px;
}

.network-form-panel {
    overflow: hidden;
    padding: 18px;
}

.network-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.network-form-grid .form-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.network-form-grid .form-field > span,
.network-toggle-field strong {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.network-form-grid .form-field input,
.network-form-grid .form-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
}

.network-form-grid .form-field input:focus,
.network-form-grid .form-field select:focus {
    border-color: #818cf8;
    outline: 3px solid rgba(99, 102, 241, 0.1);
}

.network-form-grid .form-field small,
.network-toggle-field small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.network-form-wide {
    grid-column: 1 / -1;
}

.network-toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.network-toggle-field > span {
    display: grid;
    gap: 3px;
}

.network-toggle-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
}

.network-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}

@media (max-width: 900px) {
    .network-table-heading {
        align-items: stretch;
    }

    .network-table-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .template-card-actions,
    .network-module-nav-premium,
    .network-form-grid {
        grid-template-columns: 1fr;
    }

    .template-action-use-form,
    .template-action-delete-form,
    .network-form-wide {
        grid-column: 1;
    }

    .network-table-filter input {
        width: 100%;
    }

    .network-table-filter select,
    .network-table-filter .btn {
        flex: 1 1 auto;
    }
}

/* PATCH 036 - IP Binding diagnostics + PPP/PPPoE workspace */
.network-binding-guide {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.network-binding-guide.is-ready {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.network-binding-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.network-binding-guide-head > div:first-child {
    display: grid;
    gap: 3px;
}

.network-binding-guide-head strong {
    color: #0f172a;
    font-size: 13px;
}

.network-help-popover {
    position: relative;
}

.network-help-popover summary {
    display: grid;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    place-items: center;
    list-style: none;
}

.network-help-popover summary::-webkit-details-marker {
    display: none;
}

.network-help-popover > div {
    position: absolute;
    z-index: 20;
    top: 36px;
    right: 0;
    width: min(340px, 80vw);
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.network-help-popover p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.network-binding-checks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.network-binding-checks span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.network-binding-checks i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.network-binding-checks .is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

.network-binding-checks .is-ok i {
    background: #10b981;
}

.network-binding-checks .is-bad {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.network-binding-checks .is-bad i {
    background: #ef4444;
}

.network-binding-guide > small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.ppp-module-nav-premium {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.ppp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    transition: 0.18s ease;
}

.ppp-nav-item:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08);
}

.ppp-nav-item.active {
    border-color: #a5b4fc;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    color: #312e81;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
}

.ppp-nav-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    box-shadow: 0 0 0 4px #f1f5f9;
}

.ppp-nav-item.active .ppp-nav-dot {
    background: #4f46e5;
    box-shadow: 0 0 0 4px #e0e7ff;
}

.ppp-nav-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.ppp-nav-item strong {
    color: inherit;
    font-size: 12px;
}

.ppp-nav-item small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppp-summary-grid {
    margin-bottom: 18px;
}

.ppp-table-panel {
    overflow: hidden;
}

.ppp-table-heading {
    gap: 14px;
    align-items: flex-end;
}

.ppp-table-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ppp-table-filter input {
    width: min(280px, 44vw);
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 12px;
}

.ppp-pill,
.ppp-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.ppp-pill.is-live,
.ppp-status.is-on {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.ppp-status.is-off {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.ppp-form-intro,
.ppp-aaa-intro {
    margin-bottom: 16px;
}

.ppp-form-panel {
    overflow: hidden;
    padding: 18px;
}

.ppp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ppp-form-grid .form-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.ppp-form-grid .form-field > span,
.ppp-toggle-field strong,
.ppp-auth-field legend {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.ppp-form-grid .form-field input,
.ppp-form-grid .form-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
}

.ppp-form-grid .form-field input:focus,
.ppp-form-grid .form-field select:focus {
    border-color: #818cf8;
    outline: 3px solid rgba(99, 102, 241, 0.1);
}

.ppp-form-grid .form-field small,
.ppp-toggle-field small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.ppp-form-wide {
    grid-column: 1 / -1;
}

.ppp-toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ppp-toggle-field > span {
    display: grid;
    gap: 3px;
}

.ppp-toggle-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
}

.ppp-auth-field {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ppp-auth-field legend {
    padding: 0 4px;
}

.ppp-auth-field > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ppp-auth-field label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.ppp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}

.table-muted {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .ppp-module-nav-premium {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .network-binding-guide-head,
    .ppp-table-heading {
        align-items: flex-start;
    }

    .ppp-module-nav-premium,
    .ppp-form-grid {
        grid-template-columns: 1fr;
    }

    .ppp-form-wide {
        grid-column: 1;
    }

    .ppp-table-filter {
        justify-content: flex-start;
    }

    .ppp-table-filter input {
        width: 100%;
    }
}

/* PATCH FIX 035 - Network read state */
.network-read-state {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.network-read-state-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 800;
}

.network-read-state > div:nth-child(2) {
    min-width: 0;
}

.network-read-state .metric-label,
.network-read-state strong,
.network-read-state small {
    display: block;
}

.network-read-state strong {
    margin-top: 2px;
    color: #172033;
    font-size: 0.92rem;
    line-height: 1.35;
}

.network-read-state small {
    margin-top: 3px;
    color: #64748b;
    line-height: 1.45;
}

.network-read-state.is-error {
    border-color: rgba(220, 38, 38, 0.16);
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.network-read-state.is-error .network-read-state-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.network-read-state.is-empty {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

@media (max-width: 720px) {
    .network-read-state {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .network-read-state > .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}
