body {
    background: #f6f8fb;
}

.card-stat {
    border: 0;
    border-radius: 1rem;
}

.table thead th {
    white-space: nowrap;
}

.form-card,
.content-card {
    border: 0;
    border-radius: 1rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0d6efd 0%, #f6f8fb 50%);
}

.navbar-junta {
    background-color: #ffffff;
}

.navbar-junta .nav-link,
.navbar-junta .navbar-brand,
.navbar-junta .navbar-text {
    color: #000000 !important;
}

.navbar-junta .nav-link:hover,
.navbar-junta .navbar-brand:hover {
    color: #005711 !important;
}

.navbar-junta .btn-outline-light {
    border-color: #000000;
    color: #000000;
}

.navbar-junta .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.logo-navbar {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-navbar {
        height: 44px;
    }
}

.navbar-junta .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.35);
}

.navbar-junta .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-junta .nav-link.active {
    background-color: #00327e;
    color: #ffffff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.navbar-junta .nav-link.active:hover {
    color: #ffffff !important;
    background-color: #005711;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    border: 2px solid #000000;
    cursor: pointer;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: #005711;
    border-color: #005711;
}

.form-check-input:focus {
    border-color: #005711;
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 17, 0.2);
}

.form-check-label {
    margin-left: 0.35rem;
    font-weight: 500;
    cursor: pointer;
}

.service-grid .service-col {
    display: flex;
}

.service-option {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
}

.service-option .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.service-option .form-check-label {
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.user-topbar-info {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.user-topbar-info .container-fluid {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.user-meta-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    color: #495057;
    font-size: .95rem;
}

.user-main-meta {
    font-weight: 600;
}

.user-departments-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    width: 100%;
}

.user-departments-label {
    color: #6c757d;
    font-size: .88rem;
    font-weight: 600;
}

.user-departments-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.department-badge {
    display: inline-flex;
    align-items: center;
    padding: .32rem .7rem;
    border-radius: 999px;
    background: #e9f7ec;
    border: 1px solid #cfe9d5;
    color: #005711;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.navbar-junta .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

@media (min-width: 992px) {
    .user-topbar-info .container-fluid {
        display: flex;
        justify-content: flex-end;
    }

    .user-meta-line {
        max-width: min(980px, 100%);
        align-items: flex-end;
        text-align: right;
    }

    .user-departments-wrap {
        align-items: flex-end;
    }

    .user-departments-badges {
        justify-content: flex-end;
    }
}

.department-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #ced4da;
    border-radius: .5rem;
    padding: .85rem 1rem;
    cursor: pointer;
    background: #fff;
    transition: all .15s ease-in-out;
    min-height: 54px;
    margin: 0;
}

.department-card:hover {
    border-color: #86b7fe;
    background: #f8fbff;
}

.department-card .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}

.department-card span {
    font-weight: 500;
    color: #212529;
    line-height: 1.2;
}

:root {
    --bg-main: #eef3fb;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-strong: rgba(255, 255, 255, 0.92);
    --text-main: #0f172a;
    --text-soft: #5b6475;
    --line-soft: rgba(148, 163, 184, 0.22);

    --primary: #2563eb;
    --primary-2: #06b6d4;
    --primary-dark: #1d4ed8;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

html, body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-main) 100%);
    color: var(--text-main);
}

/* Navbar */
.navbar-junta {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar-junta .navbar-brand img.logo-navbar {
    max-height: 42px;
    width: auto;
}

.navbar-junta .nav-link {
    color: #1e293b !important;
    font-weight: 500;
    padding: .75rem 1rem !important;
    border-radius: 12px;
    transition: all .18s ease;
}

.navbar-junta .nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary) !important;
}

.navbar-junta .nav-link.active,
.navbar-junta .nav-link.active:hover,
.navbar-junta .nav-link.active:focus {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
    color: #0f172a !important;
    font-weight: 700;
}

.navbar-junta .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.16);
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: .5rem .9rem;
}

.navbar-junta .btn-outline-light:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

/* User info bar */
.user-topbar-info {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.user-main-meta {
    color: var(--text-main);
    font-weight: 700;
}

.user-departments-label {
    color: var(--text-soft);
}

.department-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #0f766e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/* Cards */
.card,
.content-card,
.form-card,
.card-stat {
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--line-soft) !important;
    font-weight: 700;
    color: var(--text-main);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.card-body {
    color: var(--text-main);
}

/* Stat cards */
.card-stat .text-muted {
    color: var(--text-soft) !important;
    font-weight: 500;
}

.card-stat .display-6 {
    letter-spacing: -0.03em;
}

/* Titles */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.text-muted {
    color: var(--text-soft) !important;
}

/* Buttons */
.btn {
    border-radius: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: all .18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), #0891b2);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary);
    background: rgba(255,255,255,.55);
}

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

.btn-outline-secondary {
    border-color: rgba(15, 23, 42, 0.14);
    color: #334155;
    background: rgba(255,255,255,.55);
}

.btn-outline-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #e2e8f0;
}

.btn-outline-danger:hover,
.btn-outline-success:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .55rem;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text-main) !important;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 0 0 .24rem rgba(37, 99, 235, 0.12) !important;
    background: rgba(255,255,255,.96) !important;
}

.form-text {
    color: var(--text-soft) !important;
}

.form-check-input {
    border-radius: 8px !important;
    border-color: rgba(148, 163, 184, 0.5);
}

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

/* Department cards */
.department-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: .9rem 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.78);
    transition: all .18s ease;
    min-height: 58px;
    margin: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.department-card:hover {
    border-color: rgba(37, 99, 235, 0.30);
    background: rgba(239, 246, 255, 0.95);
    transform: translateY(-1px);
}

.department-card .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}

.department-card span {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.75);
    --bs-table-hover-bg: rgba(37, 99, 235, 0.05);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid var(--line-soft);
    color: #475569;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.6) !important;
}

.table td,
.table th {
    vertical-align: middle;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(148, 163, 184, 0.12);
}

.table-hover tbody tr {
    transition: background .16s ease;
}

/* Badges */
.badge {
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.10), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, #eaf1fb 100%);
    display: flex;
    align-items: center;
}

.login-wrapper .form-card {
    background: rgba(255,255,255,0.80) !important;
}

/* Map cards */
#mapa-pedido,
#mapa-pedido-create,
#mapa-geral-pedidos {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

/* Small polish */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.table-responsive {
    border-radius: 18px;
}

.content-card .table-responsive,
.form-card .table-responsive {
    overflow: hidden;
}

:root {
    --bg-main: #eef3fb;
    --bg-card: rgba(255, 255, 255, 0.78);
    --text-main: #0f172a;
    --text-soft: #5b6475;
    --line-soft: rgba(148, 163, 184, 0.22);

    --primary: #2563eb;
    --primary-2: #06b6d4;
    --primary-dark: #1d4ed8;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius-xl: 22px;
}

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

body {
    position: relative;
    background: #edf3fb;
    overflow-x: hidden;
    color: var(--text-main);
}

/* Fundo global */
.app-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.14), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(6, 182, 212, 0.12), transparent 26%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #edf3fb 45%, #e7eef8 100%);
    animation: bgShift 18s ease-in-out infinite alternate;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    opacity: 0.45;
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
    animation: orbFloat 14s ease-in-out infinite;
    transition: transform .25s ease-out;
}

.orb-1 {
    width: 360px;
    height: 360px;
    background: rgba(37, 99, 235, 0.18);
    top: 6%;
    left: -4%;
    animation-duration: 16s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.18);
    top: 18%;
    right: -5%;
    animation-duration: 19s;
}

.orb-3 {
    width: 340px;
    height: 340px;
    background: rgba(16, 185, 129, 0.14);
    bottom: -6%;
    left: 38%;
    animation-duration: 21s;
}

#bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.18);
    animation: particleFloat linear infinite;
    opacity: 0.55;
}

/* Navbar */
.navbar-junta {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar-junta .navbar-brand img.logo-navbar {
    max-height: 42px;
    width: auto;
}

.navbar-junta .nav-link {
    color: #1e293b !important;
    font-weight: 500;
    padding: .75rem 1rem !important;
    border-radius: 12px;
    transition: all .18s ease;
}

.navbar-junta .nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary) !important;
}

.navbar-junta .nav-link.active,
.navbar-junta .nav-link.active:hover,
.navbar-junta .nav-link.active:focus {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
    color: #0f172a !important;
    font-weight: 700;
}

.navbar-junta .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.16);
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: .5rem .9rem;
}

.navbar-junta .btn-outline-light:hover {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}

/* User info */
.user-topbar-info {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.user-topbar-info .container-fluid {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.user-meta-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    color: #495057;
    font-size: .95rem;
}

.user-main-meta {
    font-weight: 700;
    color: var(--text-main);
}

.user-departments-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    width: 100%;
}

.user-departments-label {
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 600;
}

.user-departments-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.department-badge {
    display: inline-flex;
    align-items: center;
    padding: .32rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #0f766e;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/* Cards */
.card,
.content-card,
.form-card,
.card-stat {
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--line-soft) !important;
    font-weight: 700;
    color: var(--text-main);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Títulos */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.text-muted {
    color: var(--text-soft) !important;
}

/* Botões */
.btn {
    border-radius: 14px;
    font-weight: 600;
    transition: all .18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), #0891b2);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary);
    background: rgba(255,255,255,.55);
}

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

.btn-outline-secondary {
    border-color: rgba(15, 23, 42, 0.14);
    color: #334155;
    background: rgba(255,255,255,.55);
}

.btn-outline-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #e2e8f0;
}

/* Formulários */
.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .55rem;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text-main) !important;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

textarea.form-control {
    min-height: 110px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 0 0 .24rem rgba(37, 99, 235, 0.12) !important;
    background: rgba(255,255,255,.96) !important;
}

.form-text {
    color: var(--text-soft) !important;
}

.form-check-input {
    border-radius: 8px !important;
    border-color: rgba(148, 163, 184, 0.5);
}

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

/* Cards de departamentos */
.department-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: .9rem 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.78);
    transition: all .18s ease;
    min-height: 58px;
    margin: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.department-card:hover {
    border-color: rgba(37, 99, 235, 0.30);
    background: rgba(239, 246, 255, 0.95);
    transform: translateY(-1px);
}

.department-card .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}

.department-card span {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

/* Tabelas */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 250, 252, 0.75);
    --bs-table-hover-bg: rgba(37, 99, 235, 0.05);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid var(--line-soft);
    color: #475569;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    background: rgba(248, 250, 252, 0.6) !important;
}

.table td,
.table th {
    vertical-align: middle;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(148, 163, 184, 0.12);
}

.badge {
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.alert {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.10), transparent 25%),
        linear-gradient(180deg, #f8fbff 0%, #eaf1fb 100%);
    display: flex;
    align-items: center;
}

.login-wrapper .form-card {
    background: rgba(255,255,255,0.80) !important;
}

/* Mapas */
#mapa-pedido,
#mapa-pedido-create,
#mapa-geral-pedidos {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.table-responsive {
    border-radius: 18px;
}

.content-card .table-responsive,
.form-card .table-responsive {
    overflow: hidden;
}

/* Z-index */
.navbar,
.user-topbar-info,
main,
.card,
.content-card,
.form-card,
.card-stat {
    position: relative;
    z-index: 1;
}

/* Responsivo */
@media (min-width: 992px) {
    .user-topbar-info .container-fluid {
        display: flex;
        justify-content: flex-end;
    }

    .user-meta-line {
        max-width: min(980px, 100%);
        align-items: flex-end;
        text-align: right;
    }

    .user-departments-wrap {
        align-items: flex-end;
    }

    .user-departments-badges {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .bg-grid {
        opacity: 0.22;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(55px);
    }
}

/* Animações */
@keyframes bgShift {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.04) translate3d(0, -8px, 0);
    }
}

@keyframes orbFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -18px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-10px, 10px, 0) scale(0.98);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.9);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) translateX(18px) scale(1.15);
        opacity: 0;
    }
}


.mobile-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-table-scroll table {
    min-width: 900px;
    margin-bottom: 0;
}

.mobile-table-scroll th,
.mobile-table-scroll td {
    white-space: nowrap;
    vertical-align: middle;
}

.mobile-table-scroll .text-wrap-mobile {
    white-space: normal;
    min-width: 220px;
}

.mobile-table-hint {
    display: none;
}

@media (max-width: 768px) {
    .mobile-table-scroll {
        border: 1px solid #dee2e6;
        border-radius: .75rem;
    }

    .mobile-table-hint {
        display: block;
        font-size: .85rem;
        color: #6c757d;
        margin-bottom: .5rem;
    }
}