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

/* ============================================================
   SISTEMA ADMIN
   ============================================================ */
.sw-sys-layout { display:flex; height:100vh; overflow:hidden; background:#f1f3f7; }
.sw-sys-sidebar { width:180px; min-width:180px; background:#0d1e3b; display:flex; flex-direction:column; }
.sw-sys-main { flex:1; overflow-y:auto; }
.sw-sys-nav-container { display:flex; flex-direction:column; height:100%; }
.sw-sys-brand { display:flex; align-items:center; gap:9px; padding:20px 14px 16px; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; font-weight:700; font-size:.82rem; letter-spacing:.5px; flex-shrink:0; }
.sw-sys-brand i { font-size:1.3rem; color:#4fc2f8; }
.sw-sys-nav { display:flex; flex-direction:column; gap:2px; padding:14px 8px; flex:1; }
.sw-sys-nav-item { display:flex; align-items:center; gap:8px; padding:9px 10px; border-radius:8px; color:rgba(255,255,255,.5); font-size:.8rem; text-decoration:none; transition:background .15s,color .15s; }
.sw-sys-nav-item i { font-size:1.1rem; color:#4fc2f8; opacity:.75; }
.sw-sys-nav-item:hover { background:rgba(255,255,255,.07); color:rgba(255,255,255,.85); }
.sw-sys-nav-item.active { background:rgba(79,194,248,.12); color:#4fc2f8; }
.sw-sys-nav-item.active i { opacity:1; }
.sw-sys-user { display:flex; align-items:center; gap:8px; padding:10px 14px; border-top:1px solid rgba(255,255,255,.07); flex-shrink:0; }
.sw-sys-user-avatar { width:28px; height:28px; border-radius:50%; background:#1565c0; color:#fff; font-size:.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sw-sys-user-name { font-size:.74rem; color:rgba(255,255,255,.6); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; }
.sw-sys-login-wrap { display:flex; flex-direction:column; align-items:center; padding-top:60px; }
.sw-sys-login-brand { display:flex; align-items:center; gap:10px; color:#fff; font-size:1.1rem; font-weight:700; margin-bottom:32px; }
.sw-sys-login-brand i { font-size:2rem; color:#4fc2f8; }
.sw-sys-input { background:rgba(255,255,255,.07) !important; border-color:rgba(255,255,255,.15) !important; color:#fff !important; }
.sw-sys-input::placeholder { color:rgba(255,255,255,.25) !important; }
.sw-sys-input:focus { border-color:#4fc2f8 !important; background:rgba(79,194,248,.08) !important; }
.sw-sys-page-header { display:flex; align-items:flex-start; justify-content:space-between; padding:24px 28px 0; gap:16px; flex-wrap:wrap; }
.sw-sys-page-title { font-size:1.1rem; font-weight:700; color:#1a2238; margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.sw-sys-page-title i { color:#2d5be3; }
.sw-sys-page-sub { font-size:.78rem; color:#aaa; margin:0; }
.sw-sys-toolbar { display:flex; align-items:center; gap:12px; padding:14px 28px 0; flex-wrap:wrap; }
.sw-sys-table-wrap { padding:12px 28px 0; }
.sw-sys-table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); font-size:.81rem; }
.sw-sys-table thead tr { border-bottom:2px solid #f1f3f7; }
.sw-sys-table th { padding:10px 16px; text-align:left; font-size:.68rem; font-weight:700; color:#bbb; letter-spacing:.5px; text-transform:uppercase; white-space:nowrap; }
.sw-sys-table td { padding:11px 16px; border-top:1px solid #f1f3f7; color:#444; vertical-align:middle; }
.sw-sys-table tbody tr:hover { background:#f7f9ff; }
.sw-sys-th-sort { cursor:pointer; user-select:none; }
.sw-sys-th-sort:hover { color:#2d5be3; }
.sw-sys-empty { text-align:center; padding:40px !important; color:#bbb; }
.sw-sys-loading { padding:40px; text-align:center; color:#aaa; font-size:1.8rem; }
.sw-sys-badge { padding:3px 9px; border-radius:12px; font-size:.71rem; font-weight:600; }
.sw-sys-badge.active   { background:#e8f5e9; color:#2e7d32; }
.sw-sys-badge.inactive { background:#fde8e8; color:#c62828; }
.sw-sys-avatar-sm { width:28px; height:28px; border-radius:50%; background:#2d5be3; color:#fff; font-size:.7rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sw-sys-toggle { width:40px; height:22px; border-radius:11px; border:none; cursor:pointer; padding:0; position:relative; transition:background .2s; display:inline-block; }
.sw-sys-toggle.enabled  { background:#43a047; }
.sw-sys-toggle.disabled { background:#e0e0e0; }
.sw-sys-toggle-dot { display:block; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); position:absolute; top:2px; transition:left .2s; }
.sw-sys-toggle.enabled  .sw-sys-toggle-dot { left:20px; }
.sw-sys-toggle.disabled .sw-sys-toggle-dot { left:2px; }
.sw-sys-pagination { display:flex; align-items:center; gap:4px; padding:14px 0 20px; justify-content:center; }
.sw-sys-page-btn { min-width:32px; height:32px; padding:0 8px; border:1px solid #e2e5ea; border-radius:6px; background:#fff; color:#555; font-size:.8rem; cursor:pointer; transition:background .12s,color .12s; }
.sw-sys-page-btn:hover:not(:disabled) { background:#e8ecf8; color:#2d5be3; border-color:#c5cae9; }
.sw-sys-page-btn.active { background:#2d5be3; color:#fff; border-color:#2d5be3; }
.sw-sys-page-btn:disabled { opacity:.4; cursor:default; }
.sw-sys-page-info { font-size:.75rem; color:#aaa; margin-left:8px; }

html, body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f1f3f7;
}

/* ============================================================
   LAYOUT — sidebar + main
   ============================================================ */
.sw-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sw-sidebar {
    width: 148px;
    min-width: 148px;
    background: #1a2238;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.sw-nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw-sidebar-logo {
    padding: 18px 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.sw-sidebar-logo img {
    width: 108px;
    height: auto;
    display: block;
}

.sw-nav {
    flex: 1;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sw-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

    .sw-nav-item:hover {
        background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.9);
    }

    .sw-nav-item.active {
        background: #2d5be3;
        color: #fff;
        font-weight: 500;
    }

    .sw-nav-item svg,
    .sw-nav-item i.mdi {
        flex-shrink: 0;
        opacity: 0.75;
        color: #4fc2f8;
    }

    .sw-nav-item.active svg,
    .sw-nav-item.active i.mdi {
        opacity: 1;
        color: #4fc2f8;
    }

/* Logoff — mesmo visual do nav-item mas como form/button */
.sw-nav-logoff {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

    .sw-nav-logoff:hover {
        background: rgba(229, 57, 53, 0.12);
        color: #ef9a9a;
    }

    .sw-nav-logoff i { font-size: 1.1rem; flex-shrink: 0; opacity: 0.75; }

    .sw-nav-item i.mdi {
        font-size: 1.1rem;
        flex-shrink: 0;
        opacity: 0.75;
    }

    .sw-nav-item.active i.mdi {
        opacity: 1;
    }

.sw-user {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sw-user-avatar {
    width: 30px;
    height: 30px;
    background: #2d5be3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sw-user-info { overflow: hidden; }

.sw-user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    margin-top: 1px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.sw-main {
    flex: 1;
    overflow-y: auto;
    background: #f1f3f7;
    display: flex;
    flex-direction: column;
}

.sw-page-header {
    padding: 22px 24px 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2238;
    flex-shrink: 0;
}

.sw-content {
    padding: 12px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.sw-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sw-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sw-stat-label {
    font-size: 0.73rem;
    color: #999;
    margin-bottom: 6px;
    font-weight: 400;
}

.sw-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a2238;
    letter-spacing: -0.5px;
}

    .sw-stat-value.danger  { color: #e53935; }
    .sw-stat-value.success { color: #2e7d32; }
    .sw-stat-value.info    { color: #1565c0; }

.sw-stat-sub {
    font-size: 0.71rem;
    color: #bbb;
    margin-top: 5px;
}

    .sw-stat-sub.up { color: #e53935; }

/* ============================================================
   ALERT BANNER
   ============================================================ */
.sw-alert-banner {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.sw-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #c62828;
}

.sw-alert-dot {
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
    flex-shrink: 0;
    animation: sw-pulse 1.6s ease-in-out infinite;
}

@@keyframes sw-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(1.5); }
}

.sw-alert-right {
    color: #999;
    font-size: 0.76rem;
}

/* ============================================================
   MIDDLE PANELS ROW
   ============================================================ */
.sw-panels-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 14px;
    align-items: start;
}

.sw-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sw-panel-header {
    padding: 14px 18px 8px;
    display: flex;
    align-items: baseline;
    gap: 7px;
    border-bottom: 1px solid #f3f4f6;
}

.sw-panel-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1a2238;
}

.sw-panel-sub {
    font-size: 0.73rem;
    color: #bbb;
}

/* ============================================================
   EVENTS TABLE
   ============================================================ */
.sw-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.81rem;
}

    .sw-events-table td {
        padding: 9px 18px;
        border-top: 1px solid #f3f4f6;
        color: #444;
        vertical-align: middle;
    }

    .sw-events-table tr:first-child td { border-top: none; }

.sw-plate {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.83rem;
    color: #1a2238;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.sw-speed {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

    .sw-speed.over { color: #e53935; }
    .sw-speed.ok   { color: #2e7d32; }

.sw-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.69rem;
    font-weight: 600;
    text-align: center;
    min-width: 58px;
}

    .sw-badge.infraction { background: #fde8e8; color: #c62828; }
    .sw-badge.ok-badge   { background: #e8f5e9; color: #2e7d32; }

/* ============================================================
   INFRACTIONS BY LOCATION
   ============================================================ */
.sw-location-list {
    padding: 10px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.sw-location-item-label {
    font-size: 0.79rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-location-count {
    font-weight: 700;
    color: #1a2238;
    font-size: 0.83rem;
}

.sw-bar-track {
    background: #f1f3f7;
    border-radius: 3px;
    height: 6px;
    width: 100%;
}

.sw-bar-fill {
    height: 6px;
    border-radius: 3px;
    background: #e53935;
    transition: width 0.4s ease;
}

/* ============================================================
   ACTIVITY CHART
   ============================================================ */
.sw-chart-area {
    padding: 4px 18px 14px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 110px;
}

.sw-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.sw-chart-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 3px;
}

    .sw-chart-bar.total       { background: #c5cae9; }
    .sw-chart-bar.infractions { background: #ef9a9a; }

.sw-chart-label {
    font-size: 0.62rem;
    color: #bbb;
    text-align: center;
    white-space: nowrap;
}

/* ============================================================
   ADMIN / PROVISIONAMENTO
   ============================================================ */
.sw-admin-layout {
    min-height: 100vh;
    background: #0f1520;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

.sw-admin-card {
    background: #1a2238;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    color: #fff;
}

.sw-admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.sw-admin-icon {
    width: 40px;
    height: 40px;
    background: rgba(45,91,227,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #2d5be3;
    flex-shrink: 0;
}

.sw-admin-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.sw-admin-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin: 0 0 28px;
    padding-left: 52px;
}

.sw-admin-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 20px 0;
}

.sw-admin-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

.sw-admin-field {
    margin-bottom: 14px;
}

.sw-admin-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .sw-admin-label span.optional {
        font-size: 0.68rem;
        font-weight: 400;
        color: rgba(255,255,255,0.25);
    }

.sw-admin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sw-admin-input-icon {
    position: absolute;
    left: 11px;
    font-size: 1rem;
    color: rgba(255,255,255,0.25);
    pointer-events: none;
}

.sw-admin-input {
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0 38px 0 36px;
    font-size: 0.84rem;
    color: #fff;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

    .sw-admin-input::placeholder { color: rgba(255,255,255,0.2); }

    .sw-admin-input:focus {
        border-color: #2d5be3;
        background: rgba(45,91,227,0.08);
    }

.sw-admin-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

    .sw-admin-eye:hover { color: rgba(255,255,255,0.7); }

.sw-admin-btn {
    width: 100%;
    height: 44px;
    background: #2d5be3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: background 0.15s, transform 0.1s;
}

    .sw-admin-btn:hover    { background: #2450c8; }
    .sw-admin-btn:active   { transform: scale(0.99); }
    .sw-admin-btn:disabled { opacity: 0.5; cursor: default; }

/* Resultado */
.sw-admin-result {
    margin-top: 20px;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid;
    animation: sw-modal-in 0.2s ease;
}

    .sw-admin-result.success {
        background: rgba(46,125,50,0.12);
        border-color: rgba(46,125,50,0.3);
    }

    .sw-admin-result.error {
        background: rgba(229,57,53,0.1);
        border-color: rgba(229,57,53,0.3);
    }

.sw-admin-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
}

    .sw-admin-result.success .sw-admin-result-title { color: #81c784; }
    .sw-admin-result.error   .sw-admin-result-title { color: #ef9a9a; }

.sw-admin-result-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

    .sw-admin-result-row:last-child { margin-bottom: 0; }

.sw-admin-result-key {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.sw-admin-result-val {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    word-break: break-all;
}

.sw-admin-invite-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 9px 12px;
    margin-top: 4px;
}

    .sw-admin-invite-link span {
        flex: 1;
        font-size: 0.76rem;
        color: #90caf9;
        word-break: break-all;
    }

    .sw-admin-invite-link button {
        background: none;
        border: none;
        cursor: pointer;
        color: rgba(255,255,255,0.4);
        font-size: 1rem;
        padding: 2px;
        transition: color 0.15s;
        flex-shrink: 0;
    }

    .sw-admin-invite-link button:hover { color: #fff; }

.sw-admin-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sw-admin-error-list li {
        font-size: 0.82rem;
        color: #ef9a9a;
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .sw-admin-error-list i { margin-top: 1px; flex-shrink: 0; }

/* ============================================================
   DISPOSITIVOS
   ============================================================ */
.sw-dev-status-filters { display: flex; gap: 8px; padding: 10px 24px 0; }

.sw-dev-status-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 20px; border: 1px solid transparent;
    font-size: 0.78rem; font-weight: 500; cursor: pointer;
    background: transparent; color: #888;
    transition: background 0.15s, color 0.15s;
}
.sw-dev-status-btn:hover        { background: #eef0f4; color: #444; }
.sw-dev-status-btn.active-online  { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.sw-dev-status-btn.active-offline { background: #fde8e8; border-color: #ffc9c9; color: #c62828; }

.sw-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.sw-dot.online  { background: #43a047; }
.sw-dot.offline { background: #e53935; }

.sw-dev-table-wrap { padding: 10px 24px 0; }

.sw-dev-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); font-size: 0.81rem;
}
.sw-dev-table thead tr { border-bottom: 2px solid #f1f3f7; }
.sw-dev-table th {
    padding: 10px 16px; text-align: left; font-size: 0.68rem;
    font-weight: 700; color: #bbb; letter-spacing: 0.5px;
    text-transform: uppercase; white-space: nowrap;
}
.sw-dev-table td { padding: 11px 16px; border-top: 1px solid #f1f3f7; color: #444; vertical-align: middle; }
.sw-dev-table tbody tr { transition: background 0.1s; }
.sw-dev-table tbody tr:hover { background: #f7f9ff; }

.sw-dev-name  { font-size: 0.84rem; font-weight: 600; color: #1a2238; }
.sw-dev-brand { font-size: 0.82rem; font-weight: 600; color: #1a2238; }
.sw-dev-model { font-size: 0.74rem; color: #aaa; margin-top: 1px; }

.sw-status-cell { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; white-space: nowrap; }
.sw-status-cell.online  { color: #2e7d32; }
.sw-status-cell.offline { color: #e53935; }

.sw-dev-actions { display: flex; gap: 6px; align-items: center; }
.sw-action-btn { background: none; border: none; cursor: pointer; padding: 5px; border-radius: 5px; font-size: 1.05rem; line-height: 1; transition: background 0.12s, color 0.12s; }
.sw-action-btn.edit       { color: #90a4d4; }
.sw-action-btn.edit:hover { background: #e8ecf8; color: #2d5be3; }
.sw-action-btn.del        { color: #ef9a9a; }
.sw-action-btn.del:hover  { background: #fde8e8; color: #e53935; }
.sw-action-btn.delete        { color: #ef9a9a; }
.sw-action-btn.delete:hover  { background: #fde8e8; color: #e53935; }

/* Chips de filtro rápido (ex: Todos / Habilitados / Desabilitados / Excluídos) */
.sw-filter-chip { padding: 4px 12px; border-radius: 20px; border: 1px solid #dde2ef; background: #f5f7fb; color: #555; font-size: .75rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.sw-filter-chip:hover  { background: #e8ecf8; border-color: #b0bde8; color: #2d5be3; }
.sw-filter-chip.active { background: #2d5be3; border-color: #2d5be3; color: #fff; }

/* Modal de edição */
.sw-dev-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 6px 22px 20px; }
.sw-dev-form .full { grid-column: 1 / -1; }
.sw-dev-label { font-size: 0.76rem; font-weight: 600; color: #555; margin-bottom: 5px; display: block; }

.sw-dev-input,
.sw-dev-select {
    width: 100%; height: 38px; border: 1px solid #e2e5ea; border-radius: 7px;
    padding: 0 10px; font-size: 0.84rem; color: #1a2238; background: #fff;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none; -webkit-appearance: none;
}
.sw-dev-input:focus,
.sw-dev-select:focus          { border-color: #2d5be3; box-shadow: 0 0 0 3px rgba(45,91,227,0.1); }
.sw-dev-input.invalid         { border-color: #e53935; }
.sw-dev-input.invalid:focus   { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,0.1); }
.sw-dev-select:disabled       { background: #f5f6fa; color: #bbb; cursor: not-allowed; }

.sw-dev-select-wrap { position: relative; }
.sw-dev-select-wrap::after {
    content: ''; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); border: 4px solid transparent;
    border-top: 5px solid #aaa; pointer-events: none;
}
.sw-dev-select-wrap .sw-dev-select { padding-right: 30px; }

.sw-dev-input-hint         { font-size: 0.68rem; color: #aaa; margin-top: 3px; }
.sw-dev-input-hint.invalid { color: #e53935; }

/* ============================================================
   AUTH LAYOUT
   ============================================================ */
.sw-auth-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2238 0%, #0f1520 60%, #1a2238 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sw-auth-card {
    background: #fff;
    border-radius: 14px;
    padding: 40px 44px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    position: relative;
}

.sw-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

    .sw-auth-logo img {
        height: 52px;
        width: auto;
        /* Logo branca — inverter para ficar visível em fundo branco */
        filter: invert(1) hue-rotate(180deg) saturate(3) brightness(0.6);
    }

.sw-auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2238;
    margin: 0 0 6px;
    text-align: center;
}

.sw-auth-subtitle {
    font-size: 0.82rem;
    color: #aaa;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Alerta de erro / sucesso */
.sw-auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fde8e8;
    color: #c62828;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

    .sw-auth-alert.success {
        background: #e8f5e9;
        color: #2e7d32;
        border-color: #c8e6c9;
    }

    .sw-auth-alert i { font-size: 1rem; flex-shrink: 0; }

/* Formulário */
.sw-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sw-auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
}

.sw-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sw-auth-input-icon {
    position: absolute;
    left: 11px;
    color: #bbb;
    font-size: 1rem;
    pointer-events: none;
}

.sw-auth-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 0 40px 0 36px;
    font-size: 0.85rem;
    color: #1a2238;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .sw-auth-input:focus {
        border-color: #2d5be3;
        box-shadow: 0 0 0 3px rgba(45,91,227,0.12);
        background: #fff;
    }

.sw-auth-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 1rem;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

    .sw-auth-eye:hover { color: #555; }

/* Link "Esqueci minha senha" */
.sw-auth-forgot {
    text-align: right;
    margin-top: -6px;
}

    .sw-auth-forgot a {
        font-size: 0.78rem;
        color: #2d5be3;
        text-decoration: none;
    }

    .sw-auth-forgot a:hover { text-decoration: underline; }

/* Botão principal */
.sw-auth-btn {
    height: 44px;
    background: #2d5be3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}

    .sw-auth-btn:hover  { background: #2450c8; }
    .sw-auth-btn:active { transform: scale(0.99); }

/* Link voltar */
.sw-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.79rem;
    color: #888;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s;
}

    .sw-auth-back:hover { color: #1a2238; }

/* Ícone grande (sucesso/erro) */
.sw-auth-icon-big {
    text-align: center;
    margin-bottom: 16px;
}

    .sw-auth-icon-big i { font-size: 3rem; }
    .sw-auth-icon-big.success i { color: #2e7d32; }
    .sw-auth-icon-big.error i   { color: #e53935; }

/* Regras de senha */
.sw-auth-password-rules {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.74rem;
    color: #bbb;
}

    .sw-auth-password-rules span { display: flex; align-items: center; gap: 5px; }
    .sw-auth-password-rules i    { font-size: 0.78rem; color: #c5cae9; }

/* ============================================================
   HISTÓRICO — filtros, tabela, paginação, modal
   ============================================================ */

/* Toolbar de filtros */
.sw-hist-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px 0;
    flex-wrap: wrap;
}

.sw-hist-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 0 10px;
    height: 34px;
    min-width: 200px;
    font-size: 0.82rem;
    color: #555;
}

    .sw-hist-search input {
        border: none;
        outline: none;
        font-size: 0.82rem;
        color: #333;
        width: 100%;
        background: transparent;
    }

    .sw-hist-search i { color: #aaa; font-size: 1rem; }

.sw-hist-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 0 10px;
    height: 34px;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}

    .sw-hist-tags i { font-size: 1rem; color: #aaa; }

.sw-hist-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #555;
}

    .sw-hist-date input[type=date] {
        border: 1px solid #e2e5ea;
        border-radius: 6px;
        padding: 0 8px;
        height: 34px;
        font-size: 0.82rem;
        color: #333;
        background: #fff;
        outline: none;
        cursor: pointer;
    }

    .sw-hist-date span { color: #aaa; font-size: 0.78rem; }

.sw-hist-status-group {
    display: flex;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    overflow: hidden;
}

.sw-hist-status-btn {
    padding: 0 14px;
    height: 34px;
    background: #fff;
    border: none;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    border-right: 1px solid #e2e5ea;
    transition: background 0.15s, color 0.15s;
}

    .sw-hist-status-btn:last-child { border-right: none; }

    .sw-hist-status-btn.active {
        background: #2d5be3;
        color: #fff;
        font-weight: 600;
    }

    .sw-hist-status-btn:hover:not(.active) { background: #f5f6fa; }

.sw-hist-export {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

    .sw-hist-export:hover { background: #f5f6fa; }
    .sw-hist-export i { font-size: 1rem; color: #555; }

/* Tabela */
.sw-hist-table-wrap {
    padding: 14px 24px 0;
}

.sw-hist-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 0.81rem;
}

    .sw-hist-table thead tr {
        background: #fff;
        border-bottom: 2px solid #f1f3f7;
    }

    .sw-hist-table th {
        padding: 10px 14px;
        text-align: left;
        font-size: 0.7rem;
        font-weight: 700;
        color: #aaa;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .sw-hist-table td {
        padding: 10px 14px;
        border-top: 1px solid #f1f3f7;
        color: #444;
        vertical-align: middle;
    }

    .sw-hist-table tbody tr {
        cursor: pointer;
        transition: background 0.12s;
    }

    .sw-hist-table tbody tr:hover { background: #f7f9ff; }

/* Miniaturas de fotos */
.sw-thumb-group {
    display: flex;
    gap: 5px;
}

.sw-thumb {
    width: 44px;
    height: 34px;
    border-radius: 4px;
    background: #eef0f4;
    border: 1px solid #e2e5ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    overflow: hidden;
}

    .sw-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 3px;
    }

    .sw-thumb i { font-size: 0.9rem; color: #c0c4cc; }

    .sw-thumb span {
        font-size: 0.5rem;
        color: #bbb;
        line-height: 1;
    }

/* Placa */
.sw-hist-plate {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    color: #1a2238;
}

/* Tags do radar */
.sw-tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

.sw-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    background: #e8ecf8;
    color: #2d5be3;
    white-space: nowrap;
}

/* Velocidade */
.sw-hist-speed { font-weight: 600; }
    .sw-hist-speed.over { color: #e53935; }
    .sw-hist-speed.ok   { color: #2e7d32; }

/* Paginação */
.sw-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 14px 24px;
    font-size: 0.8rem;
    color: #aaa;
}

.sw-page-info { margin-right: 8px; }

.sw-page-btn {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid #e2e5ea;
    background: #fff;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

    .sw-page-btn.active {
        background: #2d5be3;
        color: #fff;
        border-color: #2d5be3;
        font-weight: 700;
    }

    .sw-page-btn:hover:not(.active):not(:disabled) { background: #f5f6fa; }
    .sw-page-btn:disabled { opacity: 0.35; cursor: default; }

/* ============================================================
   MODAL DE DETALHE
   ============================================================ */
.sw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-modal {
    background: #fff;
    border-radius: 12px;
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    animation: sw-modal-in 0.18s ease;
}

@@keyframes sw-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.sw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 10px;
}

.sw-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2238;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.sw-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

    .sw-modal-close:hover { color: #555; background: #f1f3f7; }

/* Fotos do modal */
.sw-modal-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 4px 22px 16px;
}

.sw-modal-photo-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sw-modal-photo-box {
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: #eef0f4;
    border: 1px solid #e2e5ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

    .sw-modal-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sw-modal-photo-box i { font-size: 1.8rem; color: #c5cad3; }

    .sw-modal-photo-box span { font-size: 0.72rem; color: #bbb; }

/* Grid de detalhes */
.sw-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f1f3f7;
    margin: 0 22px;
    border-radius: 8px;
    overflow: hidden;
}

.sw-modal-detail-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f7;
    border-right: 1px solid #f1f3f7;
}

    .sw-modal-detail-item:nth-child(2n) { border-right: none; }
    .sw-modal-detail-item:nth-last-child(-n+2) { border-bottom: none; }

.sw-modal-detail-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 4px;
}

    .sw-modal-detail-label i { font-size: 0.85rem; }

.sw-modal-detail-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a2238;
}

    .sw-modal-detail-value.over   { color: #e53935; }
    .sw-modal-detail-value.ok     { color: #2e7d32; }
    .sw-modal-detail-value.normal { color: #555; font-weight: 400; }

.sw-modal-footer { height: 18px; }

/* ============================================================
   CONFIGURAÇÕES
   ============================================================ */
.sw-cfg-page {
    padding: 0 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-cfg-section {
    border-bottom: 1px solid #edf0f4;
    padding: 28px 0 20px;
}

    .sw-cfg-section:last-child { border-bottom: none; }

.sw-cfg-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a2238;
    margin-bottom: 18px;
}

/* Linha de configuração */
.sw-cfg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 24px;
    min-height: 52px;
}

.sw-cfg-label { flex: 1; }

.sw-cfg-label-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a2238;
}

.sw-cfg-label-sub {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2px;
}

/* Input numérico com sufixo */
.sw-cfg-number-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .sw-cfg-number-wrap input[type=number] {
        width: 64px;
        height: 34px;
        border: 1px solid #e2e5ea;
        border-radius: 6px;
        padding: 0 10px;
        font-size: 0.85rem;
        text-align: center;
        color: #1a2238;
        outline: none;
    }

    .sw-cfg-number-wrap input[type=number]:focus { border-color: #2d5be3; }

    .sw-cfg-number-wrap span {
        font-size: 0.78rem;
        color: #888;
    }

/* Toggle switch */
.sw-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .sw-toggle input { display: none; }

    .sw-toggle-track {
        position: absolute;
        inset: 0;
        border-radius: 12px;
        background: #d1d5db;
        cursor: pointer;
        transition: background 0.2s;
    }

    .sw-toggle input:checked + .sw-toggle-track { background: #2e7d32; }

    .sw-toggle-track::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        transition: transform 0.2s;
    }

    .sw-toggle input:checked + .sw-toggle-track::after { transform: translateX(20px); }

/* Select nativo estilizado */
.sw-cfg-select {
    height: 34px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 0 28px 0 10px;
    font-size: 0.82rem;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}

    .sw-cfg-select:focus { border-color: #2d5be3; }

/* ?? Chips de e-mail ?? */
.sw-chips-wrap {
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    background: #fff;
    min-height: 40px;
    max-width: 500px;
    width: 100%;
    cursor: text;
}

    .sw-chips-wrap:focus-within { border-color: #2d5be3; }

.sw-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8ecf8;
    color: #2d5be3;
    border-radius: 14px;
    padding: 2px 8px 2px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.sw-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #2d5be3;
    padding: 0;
    line-height: 1;
    font-size: 0.85rem;
    opacity: 0.65;
    display: flex;
    align-items: center;
}

    .sw-chip-remove:hover { opacity: 1; }

.sw-chip-input {
    border: none;
    outline: none;
    font-size: 0.82rem;
    color: #333;
    flex: 1;
    min-width: 180px;
    background: transparent;
}

/* ?? Lista de usuários ?? */
.sw-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sw-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f7;
}

    .sw-user-row:last-child { border-bottom: none; }

.sw-user-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2d5be3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sw-user-row-info { flex: 1; overflow: hidden; }

.sw-user-row-name {
    font-size: 0.84rem;
    font-weight: 500;
    color: #1a2238;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-user-row-email {
    font-size: 0.74rem;
    color: #aaa;
}

.sw-user-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sw-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

    .sw-btn-icon:hover { color: #e53935; background: #fde8e8; }

/* Botão principal azul */
.sw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #2d5be3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

    .sw-btn-primary:hover { background: #2450c8; }

/* Botão salvar fixo no rodapé */
.sw-cfg-footer {
    position: fixed;
    bottom: 0;
    left: 148px;
    right: 0;
    background: #fff;
    border-top: 1px solid #edf0f4;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.sw-btn-save {
    height: 38px;
    padding: 0 22px;
    background: #2d5be3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .sw-btn-save:hover { background: #2450c8; }
    .sw-btn-save:disabled { opacity: 0.6; cursor: default; }

.sw-cfg-feedback {
    font-size: 0.82rem;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .sw-cfg-feedback.error { color: #e53935; }

/* ?? Modal de convite ?? */
.sw-invite-field {
    margin-bottom: 16px;
}

.sw-invite-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.sw-invite-input {
    width: 100%;
    height: 36px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.84rem;
    color: #333;
    outline: none;
}

    .sw-invite-input:focus { border-color: #2d5be3; }

.sw-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f7;
}

.sw-btn-cancel {
    height: 34px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
}

    .sw-btn-cancel:hover { background: #f5f6fa; }

/* ============================================================
   BLAZOR DEFAULTS (manter)
   ============================================================ */
#blazor-error-ui {
    background: #ffcc44;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after { content: "Ocorreu um erro inesperado." }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid                             { outline: 1px solid #e50000; }
.validation-message                  { color: #e50000; font-size: 0.8rem; }
