:root {
    --syntech-navy: #0f172a;
    --syntech-navy-2: #172554;
    --syntech-blue: #2563eb;
    --syntech-indigo: #4f46e5;
    --syntech-purple: #7c3aed;
    --syntech-cyan: #06b6d4;
    --syntech-success: #10b981;
    --syntech-warning: #f59e0b;
    --syntech-danger: #ef4444;
    --syntech-bg: #f5f7fb;
    --syntech-card: #ffffff;
    --syntech-text: #0f172a;
    --syntech-muted: #64748b;
    --syntech-border: #e2e8f0;
    --sidebar-width: 272px;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(15, 23, 42, .06);
    --shadow-hover: 0 14px 35px rgba(15, 23, 42, .10);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--syntech-bg);
    color: var(--syntech-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--syntech-blue);
    text-decoration: none;
}

a:hover {
    color: var(--syntech-indigo);
}

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

/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, rgba(79,70,229,.32), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111c3c 55%, #172554 100%);
    box-shadow: 8px 0 35px rgba(15, 23, 42, .12);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px 8px 24px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--syntech-blue), var(--syntech-purple));
    box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}

.brand-mark.large {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 20px;
    font-size: 30px;
}

.brand-name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-subtitle {
    margin-top: 2px;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
}

.nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 13px;
    border-radius: 11px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 550;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
    text-decoration: none;
    transform: translateX(2px);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(79,70,229,.92));
    box-shadow: 0 7px 18px rgba(37, 99, 235, .24);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.user-box {
    padding: 0 9px 13px;
    color: #f8fafc;
    font-size: 13px;
}

.user-label {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.logout-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    color: #e2e8f0;
    background: rgba(255,255,255,.07);
    font-weight: 650;
    cursor: pointer;
    transition: .18s ease;
}

.logout-button:hover {
    color: #fff;
    background: rgba(239,68,68,.18);
    border-color: rgba(248,113,113,.28);
}

/* MAIN + TOPBAR */

.main {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.topbar {
    min-height: 92px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(226,232,240,.9);
    backdrop-filter: blur(14px);
}

.page-eyebrow {
    margin-bottom: 3px;
    color: var(--syntech-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--syntech-text);
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.environment-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.environment-badge.test-mode-badge {
    color: #fff;
    border-color: #ef4444;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(239,68,68,.09);
    animation: test-mode-pulse 2s ease-in-out infinite;
}

@keyframes test-mode-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .78; }
}

.content {
    width: 100%;
    max-width: 1600px;
    padding: 30px 32px 64px;
    margin: 0 auto;
}

/* CARDS */

.status-banner,
.stat-card,
.panel,
.integration-card {
    border: 1px solid var(--syntech-border);
    border-radius: var(--radius);
    background: var(--syntech-card);
    box-shadow: var(--shadow);
}

.status-banner {
    padding: 18px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

.status-subtitle {
    margin-top: 5px;
    color: var(--syntech-muted);
    font-size: 12.5px;
}

.status-device {
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--syntech-blue), var(--syntech-purple));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-label {
    color: var(--syntech-muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-value {
    margin: 7px 0 3px;
    color: var(--syntech-text);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.035em;
}

.stat-value.money {
    font-size: 25px;
}

.stat-meta {
    color: #94a3b8;
    font-size: 12px;
}

.mini-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.panel {
    padding: 21px;
    margin-bottom: 20px;
}

.integration-card {
    padding: 20px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.integration-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

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

.panel-title {
    color: var(--syntech-text);
    font-size: 15px;
    font-weight: 750;
}

.panel-subtitle {
    margin-top: 3px;
    color: var(--syntech-muted);
    font-size: 12px;
}

.metric-row,
.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.metric-row:last-child,
.detail-row:last-child {
    border-bottom: 0;
}

.metric-row span,
.detail-row span {
    color: var(--syntech-muted);
    font-size: 13px;
}

/* TABLES */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #334155;
    font-size: 13px;
}

.data-table th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--syntech-border);
    color: #64748b;
    background: #f8fafc;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background .15s ease;
}

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

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

/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
}

.badge-fiscalized,
.badge-ready,
.badge-success {
    color: #047857;
    background: #d1fae5;
}

.badge-failed,
.badge-blocked,
.badge-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.badge-unknown,
.badge-warning,
.badge-setup-required {
    color: #92400e;
    background: #fef3c7;
}

.badge-received {
    color: #1d4ed8;
    background: #dbeafe;
}

.badge-submitting,
.badge-fiscalizing {
    color: #6d28d9;
    background: #ede9fe;
}

.large-badge {
    padding: 8px 12px;
    font-size: 11px;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.success { background: var(--syntech-success); }
.dot.danger { background: var(--syntech-danger); }

/* BUTTONS */

.primary-button,
.secondary-button {
    min-height: 38px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.primary-button {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--syntech-blue), var(--syntech-indigo));
    box-shadow: 0 5px 14px rgba(37,99,235,.18);
}

.primary-button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}

.secondary-button {
    border: 1px solid var(--syntech-border);
    color: #334155;
    background: #fff;
}

.secondary-button:hover {
    color: var(--syntech-blue);
    background: #f8fafc;
    border-color: #bfdbfe;
    text-decoration: none;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.logout-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37,99,235,.20);
    outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* FORMS */

.form-group {
    margin-bottom: 17px;
}

.form-group label,
form label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--syntech-text);
    background: #fff;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #60a5fa;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--syntech-blue);
}

/* ACTIVE SWITCH
   Used for the "Active" toggle on Tax/Payment mapping forms. A plain
   checkbox styled with the generic .form-control input rules above
   collapses to a near-invisible sliver, so this renders it as a
   distinct, clearly visible Bootstrap switch instead. */

.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}

.form-check.form-switch .form-check-input {
    width: 2.75em;
    height: 1.5em;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check.form-switch .form-check-input:checked {
    background-color: var(--syntech-blue);
    border-color: var(--syntech-blue);
}

.form-check.form-switch .form-check-label {
    display: inline;
    margin: 0;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--syntech-text);
    cursor: pointer;
}

.helptext,
.help-text {
    display: block;
    margin-top: 5px;
    color: var(--syntech-muted);
    font-size: 11.5px;
}

/* ALERTS */

.alert {
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
}

.alert-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.test-mode-banner {
    border: 2px solid #ef4444;
    font-weight: 750;
    text-align: center;
}

/* TEXT HELPERS */

.success-text { color: #059669; }
.danger-text { color: #dc2626; }
.warning-text { color: #d97706; }
.muted { color: var(--syntech-muted); }

code {
    padding: 2px 5px;
    border-radius: 5px;
    color: #4338ca;
    background: #eef2ff;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(37,99,235,.30), transparent 30%),
        radial-gradient(circle at 90% 85%, rgba(124,58,237,.26), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 52%, #312e81 100%);
}

.login-card {
    width: min(100%, 430px);
    padding: 38px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 70px rgba(2,6,23,.32);
}

.login-brand {
    margin-bottom: 28px;
    text-align: center;
}

.login-brand h1 {
    margin: 0;
    color: var(--syntech-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.login-brand p {
    margin: 6px 0 0;
    color: var(--syntech-muted);
    font-size: 13px;
}

.login-footer {
    margin-top: 25px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.full {
    width: 100%;
}

/* RESPONSIVE */

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

@media (max-width: 820px) {
    :root {
        --sidebar-width: 230px;
    }

    .content,
    .topbar {
        padding-left: 20px;
        padding-right: 20px;
    }

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

@media (max-width: 700px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        max-height: none;
    }

    .app-shell {
        display: block;
    }

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

    .topbar {
        position: relative;
        min-height: 78px;
    }

    .content {
        padding: 20px 14px 45px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .status-banner,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title {
        font-size: 21px;
    }

    .login-card {
        padding: 28px 22px;
    }
}

/* =========================================================
   SynTech VMS Navigation Enhancements
   ========================================================= */

.nav-item .bi {
    width: 21px;
    margin-right: 10px;
    flex: 0 0 21px;
    color: #94a3b8;
    font-size: 16px;
    text-align: center;
    transition: color .18s ease, transform .18s ease;
}

.nav-item:hover .bi,
.nav-item.active .bi {
    color: #fff;
}

.nav-item:hover .bi {
    transform: scale(1.06);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--syntech-border);
    border-radius: 11px;
    color: #334155;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(15,23,42,.05);
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        width: 280px;
        min-height: 100vh;
        max-height: 100vh;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 16px 0 45px rgba(2,6,23,.25);
    }

    body.sidebar-open {
        overflow: hidden;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1025;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(15,23,42,.48);
        backdrop-filter: blur(2px);
        transition: opacity .22s ease, visibility .22s ease;
    }

    body.sidebar-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .topbar {
        position: sticky;
        padding-left: 18px;
        padding-right: 18px;
        justify-content: flex-start;
    }

    .topbar > :last-child {
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .environment-badge {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ------------------------------------------------------------------
   Client section tabs (Overview / Branches / Integrations / ...)
   ------------------------------------------------------------------ */
.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 20px;
    padding: 4px;
    background: var(--syntech-card);
    border: 1px solid var(--syntech-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: fit-content;
    max-width: 100%;
}

.section-tabs a {
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--syntech-muted);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.section-tabs a:hover {
    background: var(--syntech-bg);
    color: var(--syntech-text);
}

.section-tabs a.active {
    background: linear-gradient(135deg, var(--syntech-blue), var(--syntech-indigo));
    color: #fff;
}

/* Buttons that sit side by side */
.button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------
   Shared portal classes used by templates but previously unstyled
   ------------------------------------------------------------------ */
.small-muted {
    color: var(--syntech-muted);
    font-size: .875rem;
}

.top-space {
    margin-top: 20px;
}

.mono,
.code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-block {
    display: block;
    padding: 12px 14px;
    background: var(--syntech-bg);
    border: 1px solid var(--syntech-border);
    border-radius: 10px;
    overflow-x: auto;
    white-space: pre;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--syntech-muted);
    font-size: .9rem;
}

.breadcrumbs a {
    color: var(--syntech-blue);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: var(--syntech-muted);
    border: 1px dashed var(--syntech-border);
    border-radius: 12px;
    background: var(--syntech-bg);
}

.empty-state strong {
    display: block;
    color: var(--syntech-text);
    margin-bottom: 4px;
}

.empty-state p {
    margin: 0;
}

.form-panel {
    max-width: 760px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--syntech-danger);
    background: #fff;
    color: var(--syntech-danger);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.danger-button:hover {
    background: var(--syntech-danger);
    color: #fff;
}

/* Forms */
.management-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.management-form select,
.management-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--syntech-border);
    border-radius: 10px;
    background: #fff;
    color: var(--syntech-text);
    font: inherit;
}

.management-form input:focus,
.management-form select:focus,
.management-form textarea:focus {
    outline: none;
    border-color: var(--syntech-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.inline-form,
.compact-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-form input:not([type="hidden"]),
.compact-form input:not([type="hidden"]) {
    flex: 1 1 160px;
    width: auto !important;
    min-width: 0;
}

.inline-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--syntech-border);
}

.compact-form {
    margin-top: 12px;
}

.compact-form input:not([type="hidden"]) {
    flex-basis: 110px;
    padding: 7px 10px !important;
    font-size: .9rem;
}

.empty-state .primary-button,
.empty-state .secondary-button {
    margin-top: 12px;
}

/* Client page */
.client-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.branch-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--syntech-border);
    border-radius: 12px;
    background: var(--syntech-bg);
}

.branch-card > strong {
    font-size: 1.02rem;
}

.branch-card .small-muted strong {
    color: var(--syntech-text);
    font-weight: 600;
}

.branch-card > span {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--syntech-border);
    color: var(--syntech-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    letter-spacing: .02em;
}

/* Clients list toolbar: search on the left, actions on the right */
.client-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-search {
    display: flex;
    flex: 1 1 320px;
    max-width: 520px;
    gap: 8px;
}

.client-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--syntech-border);
    border-radius: 10px;
    font: inherit;
}

.client-search input[type="search"]:focus {
    outline: none;
    border-color: var(--syntech-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Software version, verifiable for FRCS accreditation */
.bridge-version {
    margin: 10px 0;
    font-size: .75rem;
    opacity: .65;
    letter-spacing: .02em;
}
