:root {
    --green: #123f2a;
    --green-2: #1e6b3a;
    --gold: #b9972f;
    --graphite: #33383b;
    --soft: #f5f7f2;
}

body {
    background: #fbfcf9;
    color: var(--graphite);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-nav {
    background: linear-gradient(90deg, var(--green), #0f2d20);
    box-shadow: 0 8px 24px rgba(18, 63, 42, .12);
}

.navbar-brand span,
.text-gold {
    color: var(--gold);
}

.brand-logo {
    display: block;
    width: clamp(135px, 30vw, 285px);
    height: auto;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.brand-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(185, 151, 47, .38);
    border-radius: 8px;
    padding: .35rem .65rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
    min-width: 0;
}

.dashboard-topbar .brand-logo {
    width: clamp(130px, 28vw, 245px);
    max-height: 48px;
}

.btn-logout {
    color: var(--green);
    border-color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.btn-logout:hover {
    color: var(--green);
    background: #f5f7f2;
    border-color: #f5f7f2;
}

.dashboard-menu {
    background: #0f2d20;
    color: #fff;
}

.dashboard-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.menu-logo {
    width: min(250px, 78vw);
    max-width: 100%;
    height: auto;
}

.dashboard-menu .accordion-item,
.dashboard-menu .accordion-button,
.dashboard-menu .accordion-body {
    background: transparent;
    color: #fff;
}

.dashboard-menu .accordion-item {
    border-color: rgba(255, 255, 255, .12);
}

.dashboard-menu .accordion-button {
    box-shadow: none;
    font-weight: 700;
}

.dashboard-menu .accordion-button::after {
    filter: invert(1);
}

.dashboard-menu .nav-link {
    color: rgba(255, 255, 255, .78);
    border-radius: 8px;
    padding: .55rem .75rem;
}

.dashboard-menu .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #17251d;
    font-weight: 700;
}

.btn-gold:hover {
    background: #c9a83e;
    border-color: #c9a83e;
    color: #17251d;
}

.btn-green {
    background: var(--green-2);
    border-color: var(--green-2);
    color: #fff;
}

.btn-green:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.hero {
    background:
        linear-gradient(110deg, rgba(18, 63, 42, .94), rgba(18, 63, 42, .72)),
        url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1600&q=80");
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.hero-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(760px, 100%);
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(185, 151, 47, .32);
    border-radius: 8px;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

@media (max-width: 575.98px) {
    .site-nav .container,
    .dashboard-topbar .container {
        gap: .75rem;
    }

    .brand-logo,
    .dashboard-topbar .brand-logo {
        width: min(44vw, 175px);
        max-height: 38px;
    }

    .brand-card {
        padding: .28rem .45rem;
    }

    .btn-logout {
        padding: .42rem .58rem;
        font-size: .86rem;
    }

    .hero {
        min-height: 560px;
    }

    .hero-logo {
        max-height: 150px;
    }

    .hero-logo-card {
        width: 100%;
        padding: .9rem;
    }
}

.feature-band {
    background: var(--soft);
}

.metric {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.card-clean {
    border: 1px solid rgba(51, 56, 59, .1);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(18, 63, 42, .07);
}

.profile-photo {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.badge-selo {
    background: rgba(185, 151, 47, .12);
    border: 1px solid rgba(185, 151, 47, .4);
    color: #5c4610;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(51, 56, 59, .12);
    padding: .9rem 0;
}

.contact-row:first-of-type {
    border-top: 0;
}

.contact-label {
    display: block;
    color: #6c757d;
    font-size: .86rem;
    font-weight: 700;
}

.product-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .5rem;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(51, 56, 59, .12);
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
}

.product-picker-compact {
    grid-template-columns: 1fr;
    max-height: 420px;
}

.product-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(51, 56, 59, .1);
    border-radius: 8px;
    padding: .55rem .65rem;
    min-width: 0;
}

.product-option span {
    overflow-wrap: anywhere;
}

.product-public-card {
    border: 1px solid rgba(51, 56, 59, .12);
    border-radius: 8px;
    padding: .9rem;
    height: 100%;
    background: #fff;
}

.product-public-card > span {
    display: block;
    color: #6c757d;
    font-size: .9rem;
}

.product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .55rem;
}

.product-flags small {
    background: rgba(30, 107, 58, .1);
    border: 1px solid rgba(30, 107, 58, .25);
    border-radius: 999px;
    color: var(--green);
    font-weight: 700;
    padding: .15rem .45rem;
}

.admin-grid {
    table-layout: fixed;
    min-width: 0;
}

.admin-grid th,
.admin-grid td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-actions-col {
    width: 128px;
}

.admin-grid .btn-sm {
    padding: .28rem .45rem;
}

.check-all-cell {
    cursor: pointer;
    user-select: none;
}

.dashboard-jump {
    transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(18, 63, 42, .12);
}

.supplier-product-card {
    border: 1px solid rgba(51, 56, 59, .12);
    border-radius: 8px;
    background: #fff;
    height: 100%;
    padding: .9rem;
}

.supplier-product-card strong,
.supplier-product-card span {
    display: block;
}

.supplier-product-card span {
    color: #6c757d;
    font-size: .9rem;
}

.supplier-product-card p {
    border-top: 1px solid rgba(51, 56, 59, .1);
    margin: .65rem 0 0;
    padding-top: .65rem;
}

.quote-card {
    border: 1px solid rgba(185, 151, 47, .34);
    border-radius: 8px;
    background: #fffdf5;
    padding: 1rem;
    margin-top: 1rem;
}

.quote-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(51, 56, 59, .1);
    border-radius: 8px;
    background: #fff;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
}

.quote-item-row span {
    display: block;
    color: #6c757d;
    font-size: .9rem;
}

.password-field .btn {
    min-width: 48px;
}

.delete-square {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.lgpd-box {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border: 1px solid rgba(30, 107, 58, .22);
    border-radius: 8px;
    background: rgba(30, 107, 58, .06);
    padding: .9rem;
}

.lgpd-box input {
    margin-top: .25rem;
    flex: 0 0 auto;
}

.public-header {
    background:
        linear-gradient(135deg, rgba(18, 63, 42, .96), rgba(30, 107, 58, .86)),
        url("https://images.unsplash.com/photo-1592982537447-7440770cbfc9?auto=format&fit=crop&w=1600&q=80");
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 5rem 0;
}

.rating-panel {
    width: min(270px, 100%);
    background: rgba(255, 255, 255, .96);
    color: var(--graphite);
    border: 1px solid rgba(185, 151, 47, .42);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.rating-summary {
    display: grid;
    gap: .15rem;
    margin-bottom: .65rem;
}

.rating-stars-display {
    color: var(--gold);
    letter-spacing: 0;
}

.rating-help {
    color: #56605a;
    font-size: .88rem;
    line-height: 1.35;
}

.rating-form {
    border-top: 1px solid rgba(51, 56, 59, .12);
    margin-top: .75rem;
    padding-top: .75rem;
}

.rating-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: .2rem;
    margin-bottom: .75rem;
}

.rating-picker input {
    position: absolute;
    opacity: 0;
}

.rating-picker label {
    color: #c5c8c3;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.rating-picker label:hover,
.rating-picker label:hover ~ label,
.rating-picker input:checked ~ label {
    color: var(--gold);
}

.site-footer {
    background: #0f2d20;
    color: #fff;
    padding: 2rem 0;
}

.form-label {
    font-weight: 700;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}
