/* CSS revisado: removidas regras de login não usadas nas páginas enviadas + mescladas regras duplicadas (mesmas declarações). */
:root {
    --bg: #edf2f7;
    --top: #143d70;
    --top2: #0f315a;
    --card: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, .10);
    --btn: #2d61a6;
    --btn-hover: #275897;
    --btnIcon: #3a6fb4;
    --text: #0f172a;
    --muted: #64748b;
    --line: #d7dee9:

    --admin: #f59e0b;
    --admin-hover: #e08e07;
    --adminIcon: #f7b44d;

    --danger: #ef4444;
    --danger-hover: #dc2626;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.icon_box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon_box img {
    width: 40px;
}

.topbar,
.nr_topbar {
    background: linear-gradient(0deg, var(--top2), var(--top));
    color: #fff;
    padding: 18px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
}

.topbar-inner,
.nr_topbar_inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.brand-badge,
.nr_brand_badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title,
.nr_brand_title {
    line-height: 1.1;
}

.brand-title strong,
.nr_brand_title strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.brand-title span,
.nr_brand_title span {
    display: block;
    font-size: 14px;
    opacity: .9;
    margin-top: 3px;
}

.userbox,
.nr_right {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
    white-space: nowrap;
}

.userbox .who strong,
.nr_user strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.userbox .who span,
.nr_user span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 2px;
}

.logout,
.nr_logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.logout:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.wrap,
.nr_wrap {
    max-width: 860px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.welcome {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    max-width: 760px;
    margin: 0 auto 20px;
    text-align: left;
}

.welcome h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.welcome p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.menu {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--btn);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
    transition: .15s ease;
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn:hover,
.nr_btn:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.btn .ic {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn .txt strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.btn .txt span {
    display: block;
    font-size: 14px;
    opacity: .9;
}

.divider {
    max-width: 760px;
    margin: 22px auto 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #667085;
    font-weight: 600;
}

.divider .line {
    height: 1px;
    background: var(--line);
    flex: 1;
}

.btn.admin {
    background: var(--admin);
}

.btn.admin:hover {
    background: var(--admin-hover);
}

@media (max-width: 520px) {

    .brand-title strong,
    .btn .txt strong {
        font-size: 18px;
    }

    .welcome h2 {
        font-size: 20px;
    }

    .userbox .who {
        display: none;
    }
}

svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.nr_left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
}

.nr_back {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.nr_back:hover,
.nr_logout:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.nr_brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nr_card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.nr_field,
.mf_field {
    margin-bottom: 16px;
}

.nr_label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.nr_label small {
    color: #ef4444;
    margin-left: 4px;
}

.nr_input,
.nr_select,
.mf_input {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 14px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.nr_input:focus,
.nr_select:focus,
.rd_input:focus,
.rd_select:focus,
.mt_input:focus,
.mf_input:focus {
    border-color: #9bb7e6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.nr_hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.nr_photo_box {
    border: 2px dashed #b7c7e5;
    border-radius: 14px;
    background: #f3f6fb;
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    display: block;
}

.nr_photo_box:hover {
    background: #eef3fb;
}

.nr_photo_box input {
    display: none;
}

.nr_photo_preview {
    margin-top: 12px;
    display: none;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .10);
}

.nr_actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nr_btn {
    border: none;
    background: var(--btn);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.nr_btn_secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.nr_btn_secondary:hover {
    background: #d7dee9;
}

.nr_alert {
    max-width: 760px;
    margin: 0 auto 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.nr_alert_ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.nr_svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (max-width: 520px) {
    .nr_user {
        display: none;
    }
}

.rd_wrap,
.mt_wrap,
.mf_wrap {
    max-width: 1100px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.rd_filters_card,
.mt_filters_card {
    max-width: 1000px;
    margin: 0 auto 22px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.rd_filters_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

@media (max-width: 980px) {
    .rd_filters_grid {
        grid-template-columns: 1fr 1fr;
    }

    .rd_filters_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.rd_field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.rd_input,
.rd_select,
.mt_input {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 12px 12px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
}

.rd_filters_actions,
.mt_actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rd_btn {
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.rd_btn:hover,
.rd_eye:hover,
.mt_btn:hover,
.mt_edit:hover,
.mf_btn_back:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.rd_btn_primary {
    background: var(--btn);
    color: #fff;
}

.rd_btn_primary:hover,
.mt_btn_primary:hover {
    background: var(--btn-hover);
}

.rd_btn_icon,
.mt_btn_icon,
.mf_btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.rd_table_card,
.mt_table_card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rd_table_head,
.mt_table_head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.rd_table_head h2 {
    margin: 0;
    font-size: 18px;
}

.rd_table_head .rd_count {
    color: var(--muted);
    font-weight: 700;
}

table.rd_table {
    width: 100%;
    border-collapse: collapse;
}

.rd_table thead th {
    background: #1f2937;
    color: #fff;
    text-align: left;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 800;
}

.rd_table tbody td,
.mt_table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #e8eef7;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
}

.rd_table tbody tr:hover,
.mt_table tbody tr:hover {
    background: #f7fafc;
}

.rd_prefix {
    font-weight: 800;
    letter-spacing: .3px;
}

.rd_actions {
    display: flex;
    justify-content: center;
}

.rd_eye {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.rd_eye svg,
.mt_edit svg {
    width: 18px;
    height: 18px;
}

.rd_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.rd_modal {
    width: min(760px, 96vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.rd_modal_header {
    padding: 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e8eef7;
}

.rd_modal_header h3 {
    margin: 0;
    font-size: 20px;
}

.rd_modal_close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #94a3b8;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.rd_modal_close:hover {
    transform: translateY(-1px);
}

.rd_modal_body {
    padding: 18px;
}

.rd_modal_photo {
    width: 240px;
    height: 240px;
    border-radius: 18px;
    background: #f1f5f9;
    margin: 6px auto 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.rd_modal_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rd_modal_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .rd_modal_grid {
        grid-template-columns: 1fr;
    }
}

.rd_kv .k {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rd_kv .v {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}

.rd_modal_full {
    margin-top: 14px;
}

.rd_modal_full .k {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rd_modal_full .v {
    font-weight: 800;
    font-size: 16px;
}

.mt_filters_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

@media (max-width: 980px) {
    .mt_filters_grid {
        grid-template-columns: 1fr 1fr;
    }

    .mt_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.mt_field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.mt_btn {
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.mt_btn_primary {
    background: var(--btn);
    color: #fff;
}

.mt_table_head .left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 18px;
}

.mt_table_head .count {
    color: var(--muted);
    font-weight: 800;
}

table.mt_table {
    width: 100%;
    border-collapse: collapse;
}

.mt_table thead th {
    background: #1f2937;
    color: #fff;
    text-align: left;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 900;
}

.mt_name {
    font-weight: 900;
}

.mt_badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    color: #fff;
}

.mt_badge_on {
    background: #16a34a;
}

.mt_badge_off {
    background: #9ca3af;
}

.mt_edit {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    text-decoration: none;
    color: #0f172a;
}

.mf_card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.mf_field label {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text);
}

.mf_field label small {
    color: #64748b;
    font-weight: 800;
}

.mf_toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eef2f7;
    padding: 14px 14px;
    border-radius: 12px;
    font-weight: 900;
    color: #0f172a;
}

.mf_toggle input {
    width: 20px;
    height: 20px;
}

.mf_actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mf_btn {
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.mf_btn_back {
    background: #e2e8f0;
    color: #0f172a;
}

.mf_btn_save {
    background: #16a34a;
    color: #fff;
}

.mf_btn_save:hover {
    background: #15803d;
    transform: translateY(-1px);
}


/* ===== BLOCO LOGIN (mantido do original) ===== */
:root {
    --bg: #edf2f7;
    --top: #143d70;
    --top2: #0f315a;
    --card: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, .10);
    --btn: #2d61a6;
    --btn-hover: #275897;
    --btnIcon: #3a6fb4;
    --text: #0f172a;
    --muted: #64748b;
    --line: #d7dee9;

    --admin: #f59e0b;
    /* seção admin (laranja do print) */
    --admin-hover: #e08e07;
    --adminIcon: #f7b44d;

    --danger: #ef4444;
    --danger-hover: #dc2626;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    width: 100%;
    max-width: 420px;
    padding: 40px 20px;
    text-align: center;
}

/* TOPO */
.login_header {
    color: white;
    margin-bottom: 30px;
}

.icon_box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon_box img {
    width: 40px;
}

.login_header h1 {
    margin: 0;
    font-size: 28px;
}

.login_header p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* CARD LOGIN */
.login_card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login_card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* FORM */
.login_form {
    text-align: left;
}

.login_form label {
    font-size: 14px;
    font-weight: bold;
}

.login_form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
}

.login_form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #1f4f8f;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.login_form button:hover {
    background: #183f76;
}

/* INFO */
.login_info {
    margin-top: 20px;
    padding: 15px;
    background: #f2f4f6;
    border-radius: 12px;
    font-size: 13px;
    color: #333;
}

/* Topbar */
.topbar {
    background: linear-gradient(0deg, var(--top2), var(--top));
    color: #fff;
    padding: 18px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    line-height: 1.1;
}

.brand-title strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.brand-title span {
    display: block;
    font-size: 14px;
    opacity: .9;
    margin-top: 3px;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
    white-space: nowrap;
}

.userbox .who strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.userbox .who span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 2px;
}

.logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.logout:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

/* Main layout */
.wrap {
    max-width: 860px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.welcome {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    max-width: 760px;
    margin: 0 auto 20px;
    text-align: left;
}

.welcome h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.welcome p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.menu {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--btn);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
    transition: .15s ease;
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.btn .ic {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn .txt strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.btn .txt span {
    display: block;
    font-size: 14px;
    opacity: .9;
}

/* Admin section divider */
.divider {
    max-width: 760px;
    margin: 22px auto 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #667085;
    font-weight: 600;
}

.divider .line {
    height: 1px;
    background: var(--line);
    flex: 1;
}

/* Admin buttons (laranja) */
.btn.admin {
    background: var(--admin);
}

.btn.admin:hover {
    background: var(--admin-hover);
}

/* Responsive */
@media (max-width: 520px) {
    .brand-title strong {
        font-size: 18px;
    }

    .welcome h2 {
        font-size: 20px;
    }

    .btn .txt strong {
        font-size: 18px;
    }

    .userbox .who {
        display: none;
    }

    /* igual muitos apps no mobile */
}

/* Small SVG helpers */
svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

/* ====== NOVO REGISTRO (prefixo nr_) ====== */

.nr_topbar {
    background: linear-gradient(0deg, var(--top2), var(--top));
    color: #fff;
    padding: 18px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
}

.nr_topbar_inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nr_left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
}

.nr_back {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.nr_back:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.nr_brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nr_brand_badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nr_brand_title {
    line-height: 1.1;
}

.nr_brand_title strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.nr_brand_title span {
    display: block;
    font-size: 14px;
    opacity: .9;
    margin-top: 3px;
}

.nr_right {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
    white-space: nowrap;
}

.nr_user strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.nr_user span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 2px;
}

.nr_logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.nr_logout:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.nr_wrap {
    max-width: 860px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.nr_card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.nr_field {
    margin-bottom: 16px;
}

.nr_label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.nr_label small {
    color: #ef4444;
    margin-left: 4px;
}

.nr_input,
.nr_select {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 14px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.nr_input:focus,
.nr_select:focus {
    border-color: #9bb7e6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.nr_hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.nr_photo_box {
    border: 2px dashed #b7c7e5;
    border-radius: 14px;
    background: #f3f6fb;
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    display: block;
}

.nr_photo_box:hover {
    background: #eef3fb;
}

.nr_photo_box input {
    display: none;
}

.nr_photo_preview {
    margin-top: 12px;
    display: none;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .10);
}

.nr_actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nr_btn {
    border: none;
    background: var(--btn);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.nr_btn:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.nr_btn_secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.nr_btn_secondary:hover {
    background: #d7dee9;
}

.nr_alert {
    max-width: 760px;
    margin: 0 auto 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.nr_alert_ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.nr_svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (max-width: 520px) {
    .nr_user {
        display: none;
    }
}

.rd_wrap {
    max-width: 1100px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.rd_filters_card {
    max-width: 1000px;
    margin: 0 auto 22px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.rd_filters_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

@media (max-width: 980px) {
    .rd_filters_grid {
        grid-template-columns: 1fr 1fr;
    }

    .rd_filters_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.rd_field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.rd_input,
.rd_select {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 12px 12px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
}

.rd_input:focus,
.rd_select:focus {
    border-color: #9bb7e6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.rd_filters_actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rd_btn {
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.rd_btn:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.rd_btn_primary {
    background: var(--btn);
    color: #fff;
}

.rd_btn_primary:hover {
    background: var(--btn-hover);
}

.rd_btn_icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.rd_table_card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rd_table_head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.rd_table_head h2 {
    margin: 0;
    font-size: 18px;
}

.rd_table_head .rd_count {
    color: var(--muted);
    font-weight: 700;
}

table.rd_table {
    width: 100%;
    border-collapse: collapse;
}

.rd_table thead th {
    background: #1f2937;
    color: #fff;
    text-align: left;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 800;
}

.rd_table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #e8eef7;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
}

.rd_table tbody tr:hover {
    background: #f7fafc;
}

.rd_prefix {
    font-weight: 800;
    letter-spacing: .3px;
}

.rd_actions {
    display: flex;
    justify-content: center;
}

.rd_eye {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.rd_eye:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.rd_eye svg {
    width: 18px;
    height: 18px;
}

/* MODAL */
.rd_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.rd_modal {
    width: min(760px, 96vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.rd_modal_header {
    padding: 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e8eef7;
}

.rd_modal_header h3 {
    margin: 0;
    font-size: 20px;
}

.rd_modal_close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #94a3b8;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.rd_modal_close:hover {
    transform: translateY(-1px);
}

.rd_modal_body {
    padding: 18px;
}

.rd_modal_photo {
    width: 240px;
    height: 240px;
    border-radius: 18px;
    background: #f1f5f9;
    margin: 6px auto 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.rd_modal_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rd_modal_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .rd_modal_grid {
        grid-template-columns: 1fr;
    }
}

.rd_kv .k {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rd_kv .v {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}

.rd_modal_full {
    margin-top: 14px;
}

.rd_modal_full .k {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rd_modal_full .v {
    font-weight: 800;
    font-size: 16px;
}

/* Layout */
.mt_wrap {
    max-width: 1100px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.mt_filters_card {
    max-width: 1000px;
    margin: 0 auto 22px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.mt_filters_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

@media (max-width: 980px) {
    .mt_filters_grid {
        grid-template-columns: 1fr 1fr;
    }

    .mt_actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.mt_field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.mt_input {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 12px 12px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
}

.mt_input:focus {
    border-color: #9bb7e6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.mt_actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mt_btn {
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
    background: #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.mt_btn:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.mt_btn_primary {
    background: var(--btn);
    color: #fff;
}

.mt_btn_primary:hover {
    background: var(--btn-hover);
}

.mt_btn_icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Tabela */
.mt_table_card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mt_table_head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.mt_table_head .left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 18px;
}

.mt_table_head .count {
    color: var(--muted);
    font-weight: 800;
}

table.mt_table {
    width: 100%;
    border-collapse: collapse;
}

.mt_table thead th {
    background: #1f2937;
    color: #fff;
    text-align: left;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 900;
}

.mt_table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid #e8eef7;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
}

.mt_table tbody tr:hover {
    background: #f7fafc;
}

.mt_name {
    font-weight: 900;
}

.mt_badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    color: #fff;
}

.mt_badge_on {
    background: #16a34a;
}

.mt_badge_off {
    background: #9ca3af;
}

.mt_edit {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    text-decoration: none;
    color: #0f172a;
}

.mt_edit:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.mt_edit svg {
    width: 18px;
    height: 18px;
}

.mf_wrap {
    max-width: 1100px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.mf_card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.mf_field {
    margin-bottom: 16px;
}

.mf_field label {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text);
}

.mf_field label small {
    color: #64748b;
    font-weight: 800;
}

.mf_input {
    width: 100%;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    padding: 14px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.mf_input:focus {
    border-color: #9bb7e6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.mf_toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eef2f7;
    padding: 14px 14px;
    border-radius: 12px;
    font-weight: 900;
    color: #0f172a;
}

.mf_toggle input {
    width: 20px;
    height: 20px;
}

.mf_actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mf_btn {
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.mf_btn_back {
    background: #e2e8f0;
    color: #0f172a;
}

.mf_btn_back:hover {
    background: #d7dee9;
    transform: translateY(-1px);
}

.mf_btn_save {
    background: #16a34a;
    color: #fff;
}

.mf_btn_save:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.mf_btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ===== VEÍCULOS (badges + grid filtros) ===== */
.vl_filters_grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 220px auto auto;
  gap:14px;
  align-items:end;
}
@media (max-width: 980px){
  .vl_filters_grid{ grid-template-columns:1fr 1fr; }
  .vl_filters_grid .mt_actions{ grid-column:1 / -1; justify-content:flex-end; }
  .vl_check{ grid-column:1 / -1; justify-content:flex-end; }
}
.vl_check{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  font-weight:700;
  color: var(--muted);
  padding-bottom:8px;
  white-space:nowrap;
}
.vl_check input{ width:18px; height:18px; }

.vl_badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  color:#fff;
}
.vl_badge_green{ background:#16a34a; }
.vl_badge_orange{ background:#f97316; }
.vl_badge_yellow{ background:#f59e0b; }
.vl_badge_red{ background:#ef4444; }
.vl_badge_gray{ background:#9ca3af; }

/* ===== Select com bolinha (Status do Veículo) ===== */
.vl_selectwrap{ position: relative; }
.vl_select{ padding-left: 44px !important; }

.vl_dot{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:14px;height:14px;
  border-radius:999px;
  background:#f59e0b;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.vl_dot.g{ background:#22c55e; }
.vl_dot.y{ background:#f59e0b; }
.vl_dot.o{ background:#f97316; }
.vl_dot.r{ background:#ef4444; }

/* ===== Switch (Veículo Ativo) ===== */
.vl_toggle_row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  background:#f8fafc;
  border:1px solid #dbe3ef;
  border-radius:14px;
}
.vl_toggle_text strong{ font-weight:900; color: var(--text); }

.vl_switch{ position:relative; width:56px; height:30px; display:inline-block; }
.vl_switch input{ display:none; }

.vl_slider{
  position:absolute; inset:0;
  background:#cbd5e1;
  border-radius:999px;
  transition:.2s ease;
}
.vl_slider:before{
  content:"";
  position:absolute;
  width:24px;height:24px;
  left:3px; top:3px;
  background:#fff;
  border-radius:999px;
  transition:.2s ease;
  box-shadow: 0 6px 14px rgba(15,23,42,.18);
}
.vl_switch input:checked + .vl_slider{ background: var(--btn); }
.vl_switch input:checked + .vl_slider:before{ transform: translateX(26px); }

/* ===== Autocomplete (NR) ===== */
.nr_auto_wrap{ position: relative; }
.nr_lefticon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  opacity:.85;
  pointer-events:none;
}
.nr_auto_input{ padding-left:44px !important; }

.nr_suggest{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  background:#fff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  overflow:hidden;
  z-index: 9999;
}

.nr_suggest_item{
  padding: 12px 14px;
  cursor:pointer;
  border-bottom: 1px solid #eef2f7;
}
.nr_suggest_item:last-child{ border-bottom:none; }
.nr_suggest_item:hover{ background:#f8fafc; }

.nr_suggest_row{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ===== CARD VEÍCULO (registros) ===== */
.vr_card{
  margin-top: 12px;
  display:flex;
  gap:14px;
  align-items:center;
  background:#e9eef5;
  border:1px solid #b9cbe3;
  border-radius:14px;
  padding:16px;
}

.vr_left{ display:flex; align-items:center; }
.vr_icon{
  width:48px;height:48px;
  border-radius:999px;
  background:#cfd9e8;
  display:flex;align-items:center;justify-content:center;
  color:#1f4f8f;
}

.vr_mid{ flex:1; }
.vr_top{ display:flex; align-items:center; gap:12px; }
.vr_top strong{ font-size:18px; font-weight:900; color:#0f172a; }
.vr_sub{ margin-top:4px; color:#475569; font-weight:500; }

.vr_badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  color:#fff;
}
.vr_green{ background:#16a34a; }
.vr_yellow{ background:#eab308; }
.vr_orange{ background:#f97316; }
.vr_red{ background:#ef4444; }

.vr_warn{
  margin-top:8px;
  color:#ef4444;
  font-weight:700;
}

.vr_right{ display:flex; align-items:center; }
.vr_ok{
  width:34px;height:34px;
  border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  color:#16a34a;
}

/* ===== MODAL (igual prints) ===== */
.vr_modal_backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999;
}
.vr_modal{
  width:min(620px, 96vw);
  background:#fff;
  border-radius:16px;
  box-shadow:0 30px 70px rgba(0,0,0,.25);
  padding:22px 22px 18px;
  position:relative;
}
.vr_modal_x{
  position:absolute;
  right:14px;
  top:10px;
  border:none;
  background:transparent;
  font-size:26px;
  cursor:pointer;
  color:#64748b;
}
.vr_modal_head{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.vr_modal_icon{
  width:30px;height:30px;
  display:flex;align-items:center;justify-content:center;
  color:#f97316;
  font-weight:900;
}
.vr_modal_title{
  font-size:20px;
  font-weight:900;
  color:#f97316;
  margin-bottom:6px;
}
.vr_modal_msg{
  color:#475569;
  font-size:18px;
  font-weight:600;
}
.vr_modal_hint{
  margin-top:18px;
  color:#64748b;
  font-size:18px;
  font-weight:700;
}
.vr_modal_actions{
  margin-top:18px;
  display:flex;
  gap:14px;
  justify-content:center;
}
.vr_modal_btn{
  border:1px solid #dbe3ef;
  background:#fff;
  padding:12px 18px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}
.vr_modal_primary{
  background:#1f4f8f;
  border-color:#1f4f8f;
  color:#fff;
}

/* ===== SIDEBAR DASHBOARD (menu.php igual ao print) ===== */
.sb_body { background: #f3f6fb; }

.sb_layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sb_aside{
  background:#fff;
  border-right: 1px solid #e6edf7;
  display:flex;
  flex-direction:column;
  padding: 16px 14px;
  position: sticky;
  top:0;
  height: 100vh;
}

.sb_brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid #eef2f7;
}

.sb_logo{
  width:46px;height:46px;border-radius:14px;
  background:#123e7a;
  color:#fff;font-weight:900;
  display:flex;align-items:center;justify-content:center;
}

.sb_brand_txt strong{ display:block; font-size:16px; font-weight:900; color:#0f172a; }
.sb_brand_txt span{ display:block; font-size:13px; color:#64748b; margin-top:2px; }

.sb_collapse{
  margin-left:auto;
  border:none;
  width:36px;height:36px;
  border-radius:12px;
  background:#f1f5f9;
  cursor:pointer;
  font-size:18px;
  color:#64748b;
}
.sb_collapse:hover{ background:#e2e8f0; }

.sb_nav{ padding: 12px 6px; display:flex; flex-direction:column; gap:6px; }
.sb_div{
  margin: 14px 6px 6px;
  font-size:12px;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:800;
}

.sb_item{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  color:#0f172a;
  text-decoration:none;
  font-weight:800;
}
.sb_item:hover{ background:#f1f5f9; }
.sb_item.is_active{
  background:#1f4f8f;
  color:#fff;
}
.sb_item.is_active svg{ stroke:#fff; }

.sb_ic{
  width:36px;height:36px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:#f1f5f9;
}
.sb_item.is_active .sb_ic{ background: rgba(255,255,255,.18); }
.sb_ic svg{ width:20px;height:20px; }

.sb_footer{
  margin-top:auto;
  border-top: 1px solid #eef2f7;
  padding: 12px 6px 6px;
}
.sb_logout{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  color:#ef4444;
  text-decoration:none;
  font-weight:900;
}
.sb_logout:hover{ background:#fff1f2; }

.sb_main{ padding: 22px 26px; }
.sb_top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.sb_h1{ margin:0; font-size:28px; font-weight:900; color:#0f172a; }
.sb_p{ margin:6px 0 0; color:#64748b; font-weight:600; }

.sb_cards{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.sb_card{
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
  padding: 18px;
  position:relative;
  min-height: 92px;
}
.sb_card_k{ color:#64748b; font-weight:700; }
.sb_card_v{ margin-top:8px; font-size:28px; font-weight:900; }
.sb_card_icon{
  position:absolute;
  right:16px; top:16px;
  width:46px;height:46px;border-radius:14px;
  background:#eef2f7;
  display:flex;align-items:center;justify-content:center;
  color:#1f4f8f;
}
.sb_card_icon svg{ width:22px;height:22px; }

.sb_bigcard{
  margin-top: 18px;
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
  padding: 18px;
}
.sb_bigtitle{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  margin-bottom: 14px;
}
.sb_bigic{
  width:36px;height:36px;border-radius:12px;
  background:#eef2f7;
  display:flex;align-items:center;justify-content:center;
  color:#0f172a;
}
.sb_bigic svg{ width:20px;height:20px; }

.sb_statsgrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.sb_stat{
  padding: 14px 14px;
  border-radius: 14px;
  background:#f8fafc;
  display:flex;
  align-items:center;
  gap:12px;
}
.sb_stat .k{ color:#64748b; font-weight:700; font-size:13px; }
.sb_stat .v{ font-size:22px; font-weight:900; margin-top:2px; }

.sb_stat .dot{
  width:12px;height:12px;border-radius:999px;
  display:inline-block;
}
.sb_stat .dot.g{ background:#22c55e; }
.sb_stat .dot.y{ background:#eab308; }
.sb_stat .dot.o{ background:#f97316; }
.sb_stat .dot.r{ background:#ef4444; }

.sb_feed{
  background:#f8fafc;
  border-radius: 14px;
  padding: 12px;
}
.sb_feed_item{
  padding: 14px;
  border-radius: 12px;
  background:#fff;
  border: 1px solid #eef2f7;
  color:#64748b;
  font-weight:700;
}

/* responsivo */
@media (max-width: 1100px){
  .sb_cards{ grid-template-columns: 1fr; }
  .sb_statsgrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .sb_layout{ grid-template-columns: 1fr; }
  .sb_aside{ position:relative; height:auto; }
}

/* modo recolhido (opcional) */
.sb_layout.sb_collapsed{ grid-template-columns: 84px 1fr; }
.sb_layout.sb_collapsed .sb_brand_txt,
.sb_layout.sb_collapsed .sb_tx,
.sb_layout.sb_collapsed .sb_div,
.sb_layout.sb_collapsed .sb_logout span{ display:none; }
.sb_layout.sb_collapsed .sb_item{ justify-content:center; }
.sb_layout.sb_collapsed .sb_logout{ justify-content:center; }

/* =========================
   DASH / FEED / CHART
   (cole no final do styles.css)
   ========================= */

.sb_bigcard{
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  border:1px solid rgba(226,232,240,.75);
  padding:18px;
  margin-top:18px;
}

.sb_bigtitle{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:14px;
}

.sb_bigic{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;
  color:#0f172a;
}

.sb_bigtitle strong{
  font-size:18px;
  color:#0f172a;
}

.sb_statsgrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 1100px){
  .sb_statsgrid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .sb_statsgrid{ grid-template-columns:1fr; }
}

.sb_stat{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.9);
}

.sb_stat .k{ font-size:13px; color:#64748b; }
.sb_stat .v{ font-size:22px; font-weight:900; color:#0f172a; margin-top:3px; }

.dot{
  width:12px;
  height:12px;
  border-radius:99px;
  display:inline-block;
}
.dot.g{ background:#22c55e; }
.dot.y{ background:#eab308; }
.dot.o{ background:#f97316; }
.dot.r{ background:#ef4444; }

/* ===== CHART (últimos 7 dias) ===== */
.sb_chart{
  height:230px;
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:8px 6px 2px;
  border-radius:14px;
  background:#fff;
}

.sb_bar{
  flex:1;
  min-width:22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.sb_bar_col{
  width:100%;
  height:190px;
  border-radius:14px;
  background:#f1f5f9;
  border:1px solid rgba(226,232,240,.9);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}

.sb_bar_fill{
  width:100%;
  border-radius:14px;
  background:#1d4ed8; /* azul do print */
}

.sb_bar_label{
  font-size:13px;
  color:#64748b;
}

/* ===== SIDEBAR FIX (não esconder itens / rodapé) ===== */
.sb_layout{
  display:flex;
  min-height:100vh;
}

.sb_aside{
  width:280px;
  background:#fff;
  border-right:1px solid #e6edf6;
  display:flex;
  flex-direction:column;
  height:100vh;            /* importante */
  position:sticky;
  top:0;
}

.sb_nav{
  flex:1;                  /* empurra footer pra baixo */
  overflow:auto;           /* scroll se passar */
  padding-bottom:12px;
}

.sb_footer{
  padding:14px 18px;
  border-top:1px solid #e6edf6;
  background:#fff;
}

.sb_main{
  flex:1;
  min-width:0;
}

/* quando recolhe sidebar */
.sb_collapsed .sb_aside{ width:86px; }
.sb_collapsed .sb_tx{ display:none; }
.sb_collapsed .sb_brand_txt{ display:none; }

/* ===== FEED (atividades recentes) ===== */
.sb_feed{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sb_feed_row{
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.9);
  padding:12px 14px;
}

.sb_feed_left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.sb_badge{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.sb_badge_green{ background:#dcfce7; color:#166534; }
.sb_badge_blue{ background:#dbeafe; color:#1e40af; }
.sb_badge_purple{ background:#ede9fe; color:#5b21b6; }
.sb_badge_gray{ background:#e2e8f0; color:#334155; }

.sb_feed_action{
  font-weight:900;
  color:#0f172a;
}

.sb_feed_user{
  color:#64748b;
  font-weight:700;
}

.sb_feed_desc{
  color:#0f172a;
  font-weight:700;
}

.sb_feed_time{
  margin-top:6px;
  color:#64748b;
  font-size:13px;
}

/* ===== LOG SEGURANÇA ===== */
.lg_wrap{ max-width:1100px; margin:24px auto; padding:0 18px; }
.lg_head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.lg_title{ margin:0; font-size:26px; }
.lg_sub{ margin:6px 0 0; color:#64748b; }
.lg_total{ color:#64748b; font-size:13px; }

.lg_card{ background:#fff; border-radius:18px; box-shadow:0 14px 35px rgba(15,23,42,.08); padding:16px; }
.lg_filters{ display:grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr 1fr auto; gap:12px; align-items:end; }
.lg_field label{ display:block; font-size:13px; color:#0f172a; font-weight:700; margin:0 0 6px; }
.lg_input{ width:100%; padding:12px 12px; border:1px solid #dbe3ef; border-radius:12px; outline:none; background:#fff; }
.lg_actions{ display:flex; gap:10px; }
.lg_btn{ padding:11px 14px; border-radius:12px; border:none; cursor:pointer; font-weight:800; background:#1d4ed8; color:#fff; }
.lg_btn_outline{ background:#fff; color:#1d4ed8; border:1px solid #cfe0ff; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; font-weight:800; }

.lg_tablewrap{ margin-top:14px; overflow:auto; border-radius:14px; border:1px solid #e6edf6; }
.lg_table{ width:100%; border-collapse:separate; border-spacing:0; min-width:900px; }
.lg_table thead th{ text-align:left; font-size:12px; color:#64748b; padding:12px; background:#f8fafc; border-bottom:1px solid #e6edf6; }
.lg_table tbody td{ padding:12px; border-bottom:1px solid #eef2f7; color:#0f172a; }
.lg_empty{ padding:18px; color:#64748b; }
.lg_pager{ padding:12px; font-size:12px; color:#64748b; display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.lg_pg{ display:inline-flex; width:32px; height:32px; border-radius:10px; border:1px solid #dbe3ef; align-items:center; justify-content:center; text-decoration:none; color:#0f172a; }

/* ===== DASH 7 DIAS + FEED ===== */
.sb_days{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:14px;
  padding-top:14px;
}
.sb_day{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.sb_bar{
  width:100%;
  height:30%;
  min-height:60px;
  border-radius:16px;
  background:#f1f5f9;
  border:1px solid #e6edf6;
}
.sb_bar.is_today{
  background:#1d4ed8;
  border-color:#1d4ed8;
}
.sb_day_lbl{ font-size:13px; color:#334155; }

.sb_feed{ display:flex; flex-direction:column; gap:12px; padding-top:10px; }
.sb_feed_item{
  background:#fff;
  border:1px solid #e6edf6;
  border-radius:14px;
  padding:12px 14px;
}
.sb_feed_top{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.sb_tag{
  background:#f1f5f9;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:800;
}
.sb_act{ color:#64748b; font-size:12px; font-weight:700; }
.sb_desc{ font-weight:800; color:#0f172a; margin-bottom:4px; }
.sb_meta{ color:#64748b; font-size:12px; }

/* ===== DASH: GRAFICO 7 DIAS (igual ao print) + RESPONSIVO ===== */

.sb_days{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:14px;
  align-items:end;
  padding:18px 10px 10px;
  margin-top:8px;
  width:100%;
}

.sb_day{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  position:relative;
  min-width:0;
}

.sb_bar{
  width:100%;
  height:160px;
  background:#f3f6fb;
  border:1px solid #e2e8f0;
  border-radius:16px;
  position:relative;
  overflow:hidden;
}

.sb_bar::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  height: calc(var(--barH, 0) * 1%);
  background:#1d4ed8;
  border-radius:12px;
  transition:height .35s ease, filter .2s ease, transform .2s ease;
}

.sb_bar.is_today{
  background:#1d4ed8;
  border-color:#1d4ed8;
}
.sb_bar.is_today::after{
  background:#1d4ed8;
  left:0; right:0; bottom:0;
  border-radius:16px;
  height:100%;
}

.sb_day_lbl{
  font-size:13px;
  color:#0f172a;
  white-space:nowrap;
}

/* tablet */
@media (max-width: 1024px){
  .sb_days{ gap:10px; }
  .sb_bar{ height:140px; }
}

/* celular: quebra em 2 linhas (4 + 3) */
@media (max-width: 560px){
  .sb_days{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:10px;
  }
  .sb_bar{ height:110px; }
  .sb_day_lbl{ font-size:12px; }
}

/* ===== TOOLTIP BONITO ===== */
.sb_day[data-tip]::after{
  content: attr(data-tip);
  position:absolute;
  right:-10px;
  bottom:-8px;                  /* fica na base como no print */
  transform: translateY(100%);
  background:#ffffff;
  color:#0f172a;
  border:1px solid #e2e8f0;
  border-radius:10px;
  padding:8px 10px;
  font-size:12.5px;
  white-space:nowrap;
  box-shadow:0 12px 28px rgba(15,23,42,.14);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:50;
}

/* “setinha” do tooltip */
.sb_day[data-tip]::before{
  content:"";
  position:absolute;
  right:24px;
  bottom:-8px;
  transform: translateY(100%);
  width:10px;
  height:10px;
  background:#fff;
  border-left:1px solid #e2e8f0;
  border-top:1px solid #e2e8f0;
  transform: translateY(100%) rotate(45deg);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:51;
}

.sb_day:hover::after,
.sb_day:hover::before{
  opacity:1;
  transform: translateY(92%);
}

/* leve “highlight” quando passa o mouse */
.sb_day:hover .sb_bar{
  border-color:#cbd5e1;
}
.sb_day:hover .sb_bar::after{
  filter:brightness(1.03);
  transform: translateY(-1px);
}

/* ===== MENU HAMBURGER (mobile/tablet) ===== */
.sb_mtop{
  display:none;
  align-items:center;
  gap:12px;
  padding:14px 14px 0;
}

.sb_hamb{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}

.sb_mtop_txt{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.sb_mtop_txt strong{ font-size:16px; color:#0f172a; }
.sb_mtop_txt span{ font-size:13px; color:#64748b; }

/* overlay */
.sb_overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  z-index:60;
}

/* mobile/tablet breakpoint */
@media (max-width: 1024px){
  .sb_mtop{ display:flex; }

  /* sidebar vira off-canvas */
  .sb_aside{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:290px;
    z-index:70;
    transform:translateX(-110%);
    transition:transform .25s ease;
    box-shadow:0 30px 60px rgba(0,0,0,.25);
  }

  /* conteúdo ocupa tela toda */
  .sb_main{
    width:100%;
    margin-left:0 !important;
  }

  /* abre menu */
  .sb_layout.sb_menu_open .sb_aside{
    transform:translateX(0);
  }
  .sb_layout.sb_menu_open .sb_overlay{
    display:block;
  }

  /* o collapse do desktop pode sumir no mobile */
  .sb_collapse{ display:none; }

  /* evita scroll no body quando menu aberto */
  .sb_layout.sb_menu_open{
    overflow:hidden;
  }
}

.nr_labelrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.nr_check{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  color:#0f172a;
  user-select:none;
}

.nr_check input{
  width:18px;
  height:18px;
}

.nr_subcard{
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:14px;
  padding:14px;
}

.nr_subcard_title{
  font-weight:700;
  color:#0f172a;
}