/* =========================================================================
   KOLOM interface stylesheet
   Self-hosted, no framework, no web fonts, no external requests - the CSP
   forbids them and a backup console should not depend on a CDN being up.
   ========================================================================= */

:root {
    color-scheme: light dark;

    --bg:            #f5f7fa;
    --bg-raised:     #ffffff;
    --bg-sunken:     #eef1f6;
    --bg-inset:      #f8fafc;
    --border:        #dde3ec;
    --border-strong: #c3ccd9;

    --text:          #16202e;
    --text-muted:    #5b6879;
    --text-faint:    #8996a8;
    --text-invert:   #ffffff;

    --accent:        #1d63c7;
    --accent-hover:  #17509f;
    --accent-soft:   #e7effb;

    --success:       #16794a;
    --success-soft:  #e2f5eb;
    --warning:       #9a6300;
    --warning-soft:  #fdf1dc;
    --danger:        #b3261e;
    --danger-soft:   #fdeceb;
    --info:          #0f6f87;
    --info-soft:     #e2f2f7;
    --neutral-soft:  #eceff4;

    --sidebar-bg:    #101c2e;
    --sidebar-text:  #b9c5d6;
    --sidebar-active:#ffffff;
    --sidebar-hover: #1b2b43;

    --radius:        8px;
    --radius-sm:     5px;
    --radius-lg:     12px;
    --shadow-sm:     0 1px 2px rgba(16, 28, 46, .08);
    --shadow:        0 2px 8px rgba(16, 28, 46, .10);
    --shadow-lg:     0 12px 32px rgba(16, 28, 46, .18);

    --sidebar-width: 244px;
    --topbar-height: 60px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --bg:            #0e1521;
        --bg-raised:     #16202f;
        --bg-sunken:     #111a27;
        --bg-inset:      #1b2637;
        --border:        #26344a;
        --border-strong: #354864;

        --text:          #e6edf6;
        --text-muted:    #9aa9bd;
        --text-faint:    #6d7d94;

        --accent:        #5b9bf5;
        --accent-hover:  #7cb0f7;
        --accent-soft:   #16273f;

        --success:       #58d19a;
        --success-soft:  #102a20;
        --warning:       #e8b054;
        --warning-soft:  #2c2313;
        --danger:        #f2837b;
        --danger-soft:   #2e1918;
        --info:          #62c2d9;
        --info-soft:     #10262d;
        --neutral-soft:  #1d2838;

        --sidebar-bg:    #0a1017;
        --shadow-sm:     0 1px 2px rgba(0, 0, 0, .4);
        --shadow:        0 2px 8px rgba(0, 0, 0, .45);
        --shadow-lg:     0 12px 32px rgba(0, 0, 0, .6);
    }
}

:root[data-theme="dark"] {
    --bg:            #0e1521;
    --bg-raised:     #16202f;
    --bg-sunken:     #111a27;
    --bg-inset:      #1b2637;
    --border:        #26344a;
    --border-strong: #354864;
    --text:          #e6edf6;
    --text-muted:    #9aa9bd;
    --text-faint:    #6d7d94;
    --accent:        #5b9bf5;
    --accent-hover:  #7cb0f7;
    --accent-soft:   #16273f;
    --success:       #58d19a;
    --success-soft:  #102a20;
    --warning:       #e8b054;
    --warning-soft:  #2c2313;
    --danger:        #f2837b;
    --danger-soft:   #2e1918;
    --info:          #62c2d9;
    --info-soft:     #10262d;
    --neutral-soft:  #1d2838;
    --sidebar-bg:    #0a1017;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p  { margin: 0 0 .75rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); font-size: .85em; }
pre {
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem;
    overflow-x: auto;
    margin: 0 0 1rem;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 200;
}
.skip-link:focus { left: 0; }

.muted  { color: var(--text-muted); }
.faint  { color: var(--text-faint); }
.small  { font-size: .82rem; }
.right  { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* -------------------------------------------------------------- sidebar */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 1rem;
    flex: 0 0 auto;
}

.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}

.sidebar-close { display: none; background: none; border: 0; color: var(--sidebar-text); font-size: 1.5rem; cursor: pointer; }

.sidebar-nav { padding: .5rem 0 2rem; }

.nav-section {
    padding: 1rem 1.15rem .35rem;
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6b7c95;
    font-weight: 600;
}

.nav-list { list-style: none; margin: 0; padding: 0; }

.nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .52rem 1.15rem;
    color: var(--sidebar-text);
    border-left: 3px solid transparent;
    font-size: .875rem;
}
.nav-link:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--sidebar-hover); color: var(--sidebar-active); border-left-color: var(--accent); font-weight: 600; }

.nav-icon {
    width: 16px; height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    opacity: .8;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(6, 12, 22, .55);
    z-index: 55;
}

/* --------------------------------------------------------------- layout */

.app-body {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 1.05rem; }
.topbar-subtitle { margin: 0; font-size: .8rem; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.sidebar-open { display: none; }

.main { flex: 1 1 auto; padding: 1.25rem; max-width: 1500px; width: 100%; }

.app-footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: .78rem;
}
.footer-spacer { flex: 1 1 auto; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- cards */

.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
}
.card-header h2 { margin: 0; font-size: .95rem; }
.card-header .spacer { flex: 1 1 auto; }

.card-body { padding: 1rem; }
.card-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); background: var(--bg-inset); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* --------------------------------------------------------- stat tiles */

.stat {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-note  { font-size: .78rem; color: var(--text-muted); }
.stat-success .stat-value { color: var(--success); }
.stat-danger  .stat-value { color: var(--danger); }
.stat-warning .stat-value { color: var(--warning); }

/* -------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
table.data th,
table.data td {
    padding: .55rem .7rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table.data thead th {
    background: var(--bg-inset);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
table.data tbody tr:hover { background: var(--bg-inset); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .row-actions { display: flex; gap: .35rem; justify-content: flex-end; }

.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); }
.empty-state h3 { color: var(--text); }

/* -------------------------------------------------------------- badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .12rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-neutral { background: var(--neutral-soft); color: var(--text-muted); }
.badge-muted   { background: transparent; color: var(--text-faint); border-color: var(--border); }

.badge-dot::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-running .badge-dot::before { animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .45rem .85rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-raised);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--bg-inset); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-inset); color: var(--text); }

.btn-sm { padding: .25rem .55rem; font-size: .78rem; }
.btn-block { width: 100%; }

.icon-button {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.icon-button:hover { background: var(--bg-inset); color: var(--text); }

/* --------------------------------------------------------------- forms */

.field { margin-bottom: .9rem; }
.field label, .form-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.field .hint { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.field .error { font-size: .78rem; color: var(--danger); margin-top: .2rem; }
.required::after { content: " *"; color: var(--danger); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], input[type="tel"], input[type="date"],
input[type="time"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: .45rem .6rem;
    font: inherit;
    font-size: .875rem;
    color: var(--text);
    background: var(--bg-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}
input:disabled, select:disabled, textarea:disabled { background: var(--bg-sunken); color: var(--text-faint); }
input[aria-invalid="true"], .has-error input, .has-error select { border-color: var(--danger); }
textarea { min-height: 90px; resize: vertical; }

.checkbox, .radio {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .4rem;
    font-size: .85rem;
}
.checkbox input, .radio input { width: auto; margin-top: .2rem; flex: 0 0 auto; }

.form-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; gap: .5rem; align-items: center; padding-top: .5rem; }
.form-actions .spacer { flex: 1 1 auto; }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
legend { padding: 0 .4rem; font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-end;
    padding: .85rem 1rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.filter-bar .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filter-bar .field label { font-size: .72rem; }

/* -------------------------------------------------------------- alerts */

.alert {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    padding: .7rem .85rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    margin-bottom: 1rem;
    font-size: .875rem;
}
.alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.alert-danger  { background: var(--danger-soft);  border-color: var(--danger);  color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.alert-info    { background: var(--info-soft);    border-color: var(--info);    color: var(--info); }
.alert-list { margin: .35rem 0 0; padding-left: 1.1rem; }
.alert-dismiss { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; line-height: 1; }

/* ------------------------------------------------------------ progress */

.progress {
    height: 7px;
    background: var(--bg-sunken);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.progress-bar.is-success { background: var(--success); }
.progress-bar.is-warning { background: var(--warning); }
.progress-bar.is-danger  { background: var(--danger); }

.meter-label { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-muted); margin-bottom: .2rem; }

/* --------------------------------------------------------------- menus */

.user-menu { position: relative; }
.user-button {
    display: flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid transparent; border-radius: var(--radius-sm);
    padding: .25rem .5rem; cursor: pointer; color: var(--text); font: inherit; font-size: .85rem;
}
.user-button:hover { background: var(--bg-inset); }
.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: grid; place-items: center; font-size: .8rem; font-weight: 600;
}
.user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-panel {
    position: absolute;
    right: 0; top: calc(100% + 6px);
    min-width: 230px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .3rem;
    z-index: 70;
}
.menu-header { padding: .6rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.menu-item {
    display: block; width: 100%; text-align: left;
    padding: .45rem .7rem; border: 0; background: none;
    color: var(--text); font: inherit; font-size: .85rem; border-radius: var(--radius-sm); cursor: pointer;
}
.menu-item:hover { background: var(--bg-inset); text-decoration: none; }
.menu-item-danger { color: var(--danger); }
.menu-form { margin: 0; }

/* -------------------------------------------------------------- modals */

.modal {
    position: fixed; inset: 0;
    background: rgba(6, 12, 22, .6);
    display: grid; place-items: center;
    padding: 1rem;
    z-index: 100;
}
.modal[hidden] { display: none; }
.modal-card {
    background: var(--bg-raised);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    max-width: 480px;
    width: 100%;
}
.modal-title { margin-bottom: .5rem; }
.modal-message { color: var(--text-muted); }
.modal-detail { font-size: .82rem; color: var(--text-muted); }
.modal-detail ul { margin: .4rem 0; padding-left: 1.1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.1rem; }

/* --------------------------------------------------------- pagination */

.pagination { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .75rem 0; }
.pagination a, .pagination span {
    padding: .3rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--text-muted);
}
.pagination a:hover { background: var(--bg-inset); text-decoration: none; color: var(--text); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .summary { border: 0; margin-right: auto; }

/* ----------------------------------------------------------- centered */

.centered-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--bg);
}

.auth-card, .error-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}
.error-card { max-width: 560px; text-align: center; }
.error-code { font-size: 2.75rem; font-weight: 700; color: var(--text-faint); margin: 0; line-height: 1; }
.error-title { margin: .35rem 0 .5rem; }
.error-message { color: var(--text-muted); }
.error-actions { display: flex; gap: .5rem; justify-content: center; margin: 1.25rem 0 .75rem; flex-wrap: wrap; }
.error-reference { font-size: .8rem; color: var(--text-faint); }
.debug-panel { text-align: left; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }

.auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.25rem; font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }

/* ---------------------------------------------------------- utilities */

.stack > * + * { margin-top: .75rem; }
.inline { display: inline-flex; align-items: center; gap: .4rem; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .35rem 1rem; font-size: .85rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }
.chart-legend .key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: .3rem; }

.log-output {
    background: #0c1220;
    color: #cfe0f5;
    font-family: var(--mono);
    font-size: .78rem;
    line-height: 1.55;
    padding: .85rem;
    border-radius: var(--radius-sm);
    max-height: 460px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-field { display: flex; gap: .35rem; align-items: center; }
.copy-field input { font-family: var(--mono); font-size: .8rem; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform .18s ease; }
    .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-close, .sidebar-open { display: grid; }
    .app-body { margin-left: 0; }
}

@media (max-width: 640px) {
    .main { padding: .85rem; }
    .topbar { padding: 0 .85rem; }
    .user-name { display: none; }
    .kv { grid-template-columns: 1fr; gap: 0 0; }
    .kv dt { margin-top: .5rem; font-size: .78rem; }
    table.data thead { position: static; }
    .filter-bar .field { flex-basis: 100%; }
}

/* -------------------------------------------------------------- icons
   Inline SVG masks so icons inherit currentColor and cost no extra request.
   Stroke-based, 24x24 grid, matching weights. */

.icon-menu, .icon-theme {
    width: 18px; height: 18px;
    display: inline-block;
    background: currentColor;
    mask-repeat: no-repeat; mask-position: center; mask-size: contain;
    -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}

.icon-grid     { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }

.icon-play     { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E"); }

.icon-layers   { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E"); }

.icon-clock    { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

.icon-database { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E"); }

.icon-cloud    { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E"); }

.icon-archive  { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='21 8 21 21 3 21 3 8'/%3E%3Crect x='1' y='3' width='22' height='5'/%3E%3Cline x1='10' y1='12' x2='14' y2='12'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='21 8 21 21 3 21 3 8'/%3E%3Crect x='1' y='3' width='22' height='5'/%3E%3Cline x1='10' y1='12' x2='14' y2='12'/%3E%3C/svg%3E"); }

.icon-rotate   { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3C/svg%3E"); }

.icon-chart    { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); }

.icon-bell     { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }

.icon-users    { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }

.icon-shield   { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }

.icon-sliders  { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E"); }

.icon-menu     { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E"); }

.icon-theme    { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.2' y1='4.2' x2='5.6' y2='5.6'/%3E%3Cline x1='18.4' y1='18.4' x2='19.8' y2='19.8'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.2' y1='19.8' x2='5.6' y2='18.4'/%3E%3Cline x1='18.4' y1='5.6' x2='19.8' y2='4.2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.2' y1='4.2' x2='5.6' y2='5.6'/%3E%3Cline x1='18.4' y1='18.4' x2='19.8' y2='19.8'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.2' y1='19.8' x2='5.6' y2='18.4'/%3E%3Cline x1='18.4' y1='5.6' x2='19.8' y2='4.2'/%3E%3C/svg%3E"); }

@media print {
    .sidebar, .topbar, .toolbar, .app-footer, .pagination, .btn, .icon-button { display: none !important; }
    .app-body { margin-left: 0; }
    .card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
    body { background: #fff; color: #000; font-size: 11pt; }
}
