:root {
  --navy: #0b1f33;
  --navy-2: #122c47;
  --teal: #14b8a6;
  --teal-2: #0f9d8f;
  --ink: #14202b;
  --muted: #5b6b7a;
  --line: #dfe6ec;
  --bg: #f4f7fa;
  --card: #ffffff;
  --danger: #c0392b;
  --warn: #b7791f;
  --ok: #1f8a5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); margin: 0 0 0.6rem; line-height: 1.2; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
p { line-height: 1.55; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: linear-gradient(145deg, var(--navy), #0d3b52 60%, #0f6b63); color: #eaf6f4; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.login-brand .logo { font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.login-brand h1 { color: #fff; font-size: 2.6rem; margin-top: 1rem; }
.login-brand p { max-width: 34ch; opacity: 0.85; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { width: min(420px, 100%); background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfe0ea; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar .brand { color: #fff; font-weight: 700; font-size: 1.15rem; padding: 0.4rem 0.7rem 1.2rem; letter-spacing: 0.02em; }
.sidebar .brand span { color: var(--teal); }
.sidebar a { color: #cfe0ea; padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.95rem; }
.sidebar a:hover, .sidebar a.active { background: rgba(20, 184, 166, 0.16); color: #fff; text-decoration: none; }
.sidebar .spacer { flex: 1; }
.sidebar .userbox { font-size: 0.8rem; opacity: 0.75; padding: 0.6rem 0.8rem; border-top: 1px solid rgba(255,255,255,0.12); }

.main { padding: 2rem; max-width: 1200px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.topbar .sub { color: var(--muted); font-size: 0.9rem; }

.grid { display: grid; gap: 1rem; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 2px 8px rgba(11,31,51,0.04); }
.card h3 { font-size: 0.95rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat { font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat small { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-top: 0.3rem; }

.form { display: grid; gap: 0.9rem; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: grid; gap: 0.35rem; }
input, select, textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(20,184,166,0.35); border-color: var(--teal); }
textarea { min-height: 80px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--teal-2); color: #fff; border: 0; padding: 0.7rem 1.1rem; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--teal); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #e8eef3; color: var(--muted); }
.badge.ok { background: #e2f5ec; color: var(--ok); }
.badge.warn { background: #fdf1dc; color: var(--warn); }
.badge.danger { background: #fbe6e3; color: var(--danger); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.78rem; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.hidden { display: none !important; }
.alert { padding: 0.8rem 1rem; border-radius: 9px; margin: 0.8rem 0; font-size: 0.9rem; }
.alert.error { background: #fbe6e3; color: var(--danger); }
.alert.ok { background: #e2f5ec; color: var(--ok); }
.alert.info { background: #e8f1f8; color: var(--navy-2); }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

.sign-layout { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.sign-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; }
.consent input { width: auto; margin-top: 0.2rem; }

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 2rem; }
  .login-brand h1 { font-size: 1.9rem; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0.6rem; }
  .sidebar .brand { padding: 0.4rem 0.7rem; }
  .sidebar .spacer, .sidebar .userbox { display: none; }
  .main { padding: 1.1rem; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .table { font-size: 0.82rem; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}

.sidebar .brand h2 { color: inherit; }
.sidebar .brand p { font-size: .8rem; letter-spacing: normal; }
fieldset { border: 1px solid var(--line); border-radius: 8px; }

/* Keep long hashes, tables and form content within small viewports. */
.main, .card, .grid > *, .login-panel { min-width: 0; }
.card { overflow-x: auto; }
input[type="checkbox"] { width: auto; }
.sign-layout, .alert, .userbox { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .table { display: block; overflow-x: auto; }
  .table th:nth-child(3), .table td:nth-child(3) { display: table-cell; }
  .login-panel { padding: 1rem; }
  .login-card { padding: 1.25rem; }
}


/* SMART SIGN - DESIGN 03A */

.app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #0b1424;
    border-right: 1px solid #253449;
    padding: 24px 14px;
}

.sidebar .brand {
    font-size: 18px;
    padding-bottom: 24px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
}

.sidebar a.active {
    background: #123d43;
    color: #5eead4;
}

.nav-icon {
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    font-size: 21px;
}

.main {
    max-width: none;
    padding: 28px 32px;
}

.topbar {
    justify-content: flex-start;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar-collapsed .nav-label,
.sidebar-collapsed .userbox,
.sidebar-collapsed .sidebar .brand {
    display: none;
}

.sidebar-collapsed .sidebar a {
    justify-content: center;
    padding: 12px 4px;
}

#view > .card,
#view > .grid {
    margin-bottom: 20px;
}

@media (max-width: 760px) {
    .app-shell,
    .app-shell.sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 12px;
    }

    .sidebar-collapsed .sidebar {
        display: none;
    }

    .main {
        padding: 12px;
    }

    .topbar {
        padding: 12px;
    }
}

/* SMART SIGN - DESIGN 03B */

#view > .card {
    padding: 24px;
}

#view > .card > .form {
    max-width: 1000px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#view > .card > .form > .btn,
#view > .card > .form > fieldset {
    grid-column: 1 / -1;
}

#view .form > .btn {
    justify-self: start;
    min-width: 160px;
}

#view label {
    font-size: 14px;
}

#view input,
#view select,
#view textarea {
    font-size: 14px;
}

#view > .grid.cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#view article.card {
    margin-top: 16px;
}

#view article.card .subscription {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

#view fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

@media (max-width: 760px) {
    #view > .card > .form,
    #view article.card .subscription,
    #view > .grid.cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    #view > .card {
        padding: 16px;
    }
}


/* SMART SIGN - DESIGN 03C */

.ss-dashboard {
    display: grid;
    gap: 22px;
}

.ss-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ss-kpi {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
}

.ss-kpi-head {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.ss-kpi-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 22px;
}

.ss-kpi-icon.blue {
    color: #3b82f6;
    background: #3b82f619;
}

.ss-kpi-icon.green {
    color: #16a34a;
    background: #16a34a19;
}

.ss-kpi-icon.purple {
    color: #8b5cf6;
    background: #8b5cf619;
}

.ss-kpi-icon.gold {
    color: #d97706;
    background: #d9770619;
}

.ss-kpi-icon.red {
    color: #dc2626;
    background: #dc262619;
}

.ss-kpi > strong {
    font-size: 32px;
    color: var(--ink);
    font-weight: 700;
}

.ss-dashboard-columns {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    gap: 22px;
}

.ss-dashboard-right {
    display: grid;
    gap: 22px;
}

.ss-company-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-company-chart h2 {
    align-self: flex-start;
}

.ss-ring {
    position: relative;
    width: 200px;
    max-width: 100%;
    margin: 28px auto;
}

.ss-ring svg {
    display: block;
    width: 100%;
}

.ss-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-ring-center strong {
    font-size: 32px;
    color: var(--ink);
}

.ss-ring-center span {
    font-size: 14px;
    color: var(--muted);
}

.ss-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.ss-chart-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.green-dot { background: var(--ok); }
.red-dot { background: var(--danger); }

.ss-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ss-quick-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 95px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
}

.ss-quick-links a:hover {
    border-color: var(--teal);
    text-decoration: none;
}

.ss-quick-links strong {
    font-size: 25px;
}

.ss-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ss-section-header h2 {
    margin: 0;
}

.ss-section-header a {
    font-size: 14px;
    font-weight: 600;
}

.ss-event {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.ss-event:last-child {
    border-bottom: 0;
}

.ss-event-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--teal);
    margin-top: 6px;
}

.ss-event strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.ss-event small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
    font-size: 12px;
}

.ss-dashboard .table th {
    background: var(--bg);
    padding: 14px;
}

.ss-dashboard .table td {
    padding: 16px 14px;
}

@media (max-width: 1200px) {
    .ss-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ss-dashboard-columns,
    .ss-kpi-grid,
    .ss-quick-links {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* SMART SIGN - DESIGN 03D */

:root {
    --ss-sidebar: #0b1424;
    --ss-sidebar-text: #cbd5e1;
    --ss-sidebar-active: #123d43;
    --ss-sidebar-active-text: #5eead4;
    --ss-sidebar-border: #253449;
    --ss-input-bg: var(--card);
    --ss-input-text: var(--ink);
    --ss-table-header: var(--bg);
    --ss-table-hover: var(--bg);
    --ss-heading: var(--navy);
    --ss-button-text: #ffffff;
    --ss-focus: #14b8a6;
    --ss-card-shadow: 0 2px 6px rgba(15,23,42,.035);
}

body {
    font-size: 14px;
    line-height: 1.5;
}

.sidebar {
    background: var(--ss-sidebar);
    border-color: var(--ss-sidebar-border);
}

.sidebar a {
    color: var(--ss-sidebar-text);
}

.sidebar a.active {
    background: var(--ss-sidebar-active);
    color: var(--ss-sidebar-active-text);
}

.sidebar .brand {
    padding-left: 12px;
}

.sidebar .userbox {
    padding: 14px 12px;
    overflow-wrap: anywhere;
}

.main {
    padding: 24px;
}

.topbar {
    padding: 16px 20px;
    margin-bottom: 22px;
}

.topbar h1 {
    font-size: 25px;
    margin-bottom: 4px;
}

h1, h2, h3 {
    color: var(--ss-heading);
}

.card {
    border-radius: 12px;
    box-shadow: var(--ss-card-shadow);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.ss-dashboard {
    gap: 18px;
}

.ss-kpi-grid {
    gap: 16px;
}

#view .ss-kpi {
    min-height: 108px;
    margin-top: 0;
    padding: 16px 18px;
    gap: 12px;
}

.ss-kpi > strong {
    font-size: 29px;
    line-height: 1.2;
}

.ss-kpi-icon {
    width: 34px;
    height: 34px;
    font-size: 20px;
}

.ss-dashboard-columns {
    gap: 18px;
    align-items: start;
}

.ss-dashboard-right {
    gap: 18px;
    min-width: 0;
}

.ss-company-chart {
    justify-content: flex-start;
    min-height: 320px;
}

.ss-ring {
    width: 180px;
    margin: 18px auto;
}

.ss-quick-links a {
    min-height: 76px;
}

.ss-event {
    padding: 10px 0;
}

.table {
    font-size: 14px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: var(--ss-table-header);
    color: var(--muted);
    font-size: 12px;
    padding: 14px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 13px 12px;
    color: var(--ink);
    vertical-align: middle;
}

.table tbody tr:hover td {
    background: var(--ss-table-hover);
}

.table th:first-child {
    border-radius: 8px 0 0 0;
}

.table th:last-child {
    border-radius: 0 8px 0 0;
}

input, select, textarea {
    background: var(--ss-input-bg);
    color: var(--ss-input-text);
    border-color: var(--line);
    border-radius: 8px;
    min-height: 40px;
    font-size: 14px;
}

input[type="checkbox"],
input[type="radio"] {
    min-height: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--teal-2);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--ss-focus);
    outline-offset: 1px;
}

label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.btn {
    min-height: 40px;
    border-radius: 8px;
    color: var(--ss-button-text);
    font-size: 14px;
}

.btn.secondary {
    color: var(--ink);
    background: var(--card);
}

.btn.small {
    min-height: 32px;
    font-size: 12px;
}

.btn:focus-visible,
.sidebar a:focus-visible,
.sidebar-toggle:focus-visible {
    outline: 2px solid var(--ss-focus);
    outline-offset: 2px;
}

#view > .card > .form {
    max-width: 980px;
    gap: 18px;
}

#view > .card {
    padding: 22px;
}

#view article.card:not(.ss-kpi) {
    padding: 20px;
}

fieldset {
    padding: 16px;
    color: var(--ink);
}

.badge {
    font-size: 12px;
    padding: 5px 10px;
}

@media (max-width: 1100px) {
    .ss-dashboard-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    .topbar h1 {
        font-size: 21px;
    }

    #view > .card {
        padding: 16px;
    }

    .ss-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #view .ss-kpi {
        padding: 12px;
    }

    .ss-kpi-head {
        gap: 8px;
        font-size: 12px;
    }

    .ss-kpi > strong {
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .ss-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* SMART SIGN - DESIGN 03EFG */

.app-shell[data-ss-theme] {
    --bg: var(--ss-theme-bg);
    --card: var(--ss-theme-card);
    --ink: var(--ss-theme-text);
    --navy: var(--ss-theme-text);
    --muted: var(--ss-theme-muted);
    --line: var(--ss-theme-border);
    --teal: var(--ss-theme-accent);
    --teal-2: var(--ss-theme-accent);
    --ss-sidebar: var(--ss-theme-sidebar);
    --ss-sidebar-text: var(--ss-theme-sidebar-text);
    --ss-sidebar-active: var(--ss-theme-table);
    --ss-sidebar-active-text: var(--ss-theme-accent);
    --ss-sidebar-border: var(--ss-theme-border);
    --ss-heading: var(--ss-theme-text);
    --ss-input-bg: var(--ss-theme-input);
    --ss-input-text: var(--ss-theme-text);
    --ss-table-header: var(--ss-theme-table);
    --ss-table-hover: var(--ss-theme-table);
    --ss-button-text: var(--ss-theme-button-text);
    --ss-focus: var(--ss-theme-accent);
    background: var(--bg);
    color: var(--ink);
}

.app-shell[data-ss-mode="dark"] {
    color-scheme: dark;
    --ok: #4ade80;
    --warn: #fbbf24;
    --danger: #fb7185;
    --ss-card-shadow: none;
}

.app-shell[data-ss-mode="light"] {
    color-scheme: light;
}

.app-shell[data-ss-theme] .topbar {
    background: var(--ss-theme-header);
}

.app-shell[data-ss-theme] .sidebar .brand {
    color: var(--ss-theme-sidebar-text);
}

.app-shell[data-ss-theme] .sidebar a:hover,
.app-shell[data-ss-theme] .sidebar a.active {
    color: var(--ss-theme-sidebar-text);
    background: color-mix(in srgb,
        var(--ss-theme-accent) 18%, var(--ss-theme-sidebar));
}

.app-shell[data-ss-theme] .sidebar a.active {
    box-shadow: inset 3px 0 var(--ss-theme-accent);
}

.app-shell[data-ss-theme] .table {
    background: var(--card);
}

.app-shell[data-ss-theme] select option {
    background: var(--ss-input-bg);
    color: var(--ink);
}

.app-shell[data-ss-theme] .btn.danger {
    background: #b91c1c;
    color: white;
}

.app-shell[data-ss-mode="dark"] .badge,
.app-shell[data-ss-mode="dark"] .alert {
    background: var(--ss-theme-table);
    color: var(--ink);
}

.app-shell[data-ss-mode="dark"] .badge.ok,
.app-shell[data-ss-mode="dark"] .alert.ok {
    color: var(--ok);
}

.app-shell[data-ss-mode="dark"] .badge.warn {
    color: var(--warn);
}

.app-shell[data-ss-mode="dark"] .badge.danger,
.app-shell[data-ss-mode="dark"] .alert.error {
    color: var(--danger);
}

.app-shell[data-ss-mode="dark"] .ss-kpi-icon {
    color: var(--ss-theme-accent);
    background: var(--ss-theme-table);
}

.app-shell[data-ss-theme="black-gold"] .ss-kpi strong {
    color: var(--ss-theme-accent);
}

.ss-theme-control {
    margin-left: auto;
    min-width: 170px;
}

.ss-theme-control label {
    font-size: 12px;
    margin-bottom: 4px;
}

.ss-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(175px,1fr));
    gap: 14px;
}

.ss-theme-choice {
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ss-theme-choice[aria-pressed="true"] {
    border-color: var(--teal);
    outline: 1px solid var(--teal);
}

.ss-theme-name {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.ss-theme-swatches {
    display: flex;
    gap: 6px;
}

.ss-theme-swatches i {
    height: 25px;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.ss-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 14px;
}

.ss-color-field {
    background: var(--bg);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ss-color-field input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.ss-appearance-actions {
    margin-top: 22px;
}

#ss-theme-message {
    padding-top: 12px;
    color: var(--muted);
}

.app-shell[data-ss-theme] .grid > *,
.app-shell[data-ss-theme] .ss-dashboard > * {
    min-width: 0;
}

@media (max-width: 1100px) {
    .app-shell[data-ss-theme] .ss-kpi-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .app-shell[data-ss-theme] {
        grid-template-columns: minmax(0,1fr);
    }

    .app-shell[data-ss-theme] .sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .app-shell.sidebar-collapsed[data-ss-theme] .sidebar {
        display: none;
    }

    .app-shell[data-ss-theme] .topbar {
        flex-wrap: wrap;
    }

    .ss-theme-control {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

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

    .ss-color-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .ss-appearance-actions .btn {
        width: 100%;
    }

    .app-shell[data-ss-theme] .table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 380px) {
    .app-shell[data-ss-theme] .ss-kpi-grid {
        grid-template-columns: minmax(0,1fr);
    }
}



/* SMART SIGN - DESIGN 03WL */

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app {
    flex: 1;
    min-width: 0;
}

#ss-platform-credit {
    display: block;
    padding: 10px 18px;
    text-align: right;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .3px;
    color: #64748b;
    background: #f4f7fa;
    overflow-wrap: anywhere;
}

body:has(.app-shell[data-ss-mode="dark"]) {
    background: #0b0b0c;
}

body:has(.app-shell[data-ss-mode="dark"])
#ss-platform-credit {
    background: #0b0b0c;
    color: #a8a29e;
}

.app-shell,
.login-shell {
    min-height: calc(100vh - 35px);
}

.sidebar {
    height: calc(100vh - 35px);
}

.app-shell[data-ss-theme="black-gold"] .sidebar .brand,
.app-shell[data-ss-theme="black-gold"] .nav-icon {
    color: var(--teal);
}

.sidebar .brand img {
    display: block;
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
}

.sidebar .brand h2 {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.sidebar .brand p {
    font-size: 12px;
    font-weight: 400;
}

.sign-header .brand img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

@media (min-width: 1450px) {
    .ss-theme-grid {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .sidebar {
        height: auto;
    }

    #ss-platform-credit {
        font-size: 8px;
        padding: 12px;
    }

    .sign-header {
        flex-wrap: wrap;
    }

    .sidebar .brand img {
        max-height: 48px;
    }
}



/* TASK 03WL - Identidade global */

.ss-platform-assets {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.ss-platform-assets form {
    border:1px solid var(--line);
    border-radius:10px;
    padding:16px;
    background:var(--bg);
}

.ss-asset-preview {
    min-height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed var(--line);
    border-radius:8px;
    margin-bottom:16px;
    padding:12px;
}

.ss-asset-preview img {
    max-width:100%;
    max-height:100px;
    object-fit:contain;
}

.ss-global-logo {
    max-width:100%;
    max-height:70px;
    object-fit:contain;
}

.ss-asset-preview [hidden] {
    display:none !important;
}

@media(max-width:760px) {
    .ss-platform-assets {
        grid-template-columns:minmax(0,1fr);
    }
}



/* TASK 03WL - Acoes de documentos */

.ss-document-actions {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.ss-document-actions .btn {
    white-space:nowrap;
}

@media(max-width:760px) {
    .ss-document-actions {
        flex-direction:column;
        align-items:stretch;
    }
}



/* SMART SIGN - Especificacoes de imagens */

.ss-image-specs {
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}

.ss-image-specs strong {
    display: block;
    color: var(--teal);
    margin-bottom: 5px;
}

.ss-image-specs b {
    color: var(--ink);
}

.ss-image-specs small {
    font-size: 11px;
}



/* SMART SIGN - Logotipo no login */

.ss-login-logo {
    display: block;
    width: auto;
    max-width: 300px;
    max-height: 120px;
    object-fit: contain;
}

@media(max-width:760px) {
    .ss-login-logo {
        max-width: 220px;
        max-height: 90px;
    }
}



/* SMART SIGN - Exportacao de relatorios */

.ss-report-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:18px;
}

@media(max-width:760px) {
    .ss-report-toolbar .btn {
        width:100%;
        text-align:center;
    }
}



/* TASK 03TEST - Regras de senha */

.ss-password-feedback {
    margin:8px 0;
    font-size:12px;
    line-height:1.8;
}

.ss-password-feedback .valid {
    color:var(--ok);
}

.ss-password-feedback .invalid {
    color:var(--muted);
}

.ss-password-rules {
    font-size:12px;
    color:var(--muted);
}

