:root {
    --bg: #eefbf2;
    --bg-2: #dff6e6;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-2: rgba(248, 252, 247, 0.94);
    --surface-border: rgba(21, 104, 64, 0.12);
    --text: #14201a;
    --muted: #61746a;
    --primary: #0f8a5f;
    --primary-2: #33c27f;
    --primary-3: #0b5e41;
    --accent: #ffbf47;
    --accent-2: #ef7c3f;
    --sidebar-bg: linear-gradient(180deg, #071c14 0%, #0e3a2a 54%, #0a241a 100%);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: rgba(255, 255, 255, 0.95);
    --sidebar-muted: rgba(255, 255, 255, 0.70);
    --success: #16a765;
    --danger: #d94f5a;
    --gold: #cc9b2f;
    --shadow: 0 18px 48px rgba(12, 39, 26, 0.12);
    --shadow-strong: 0 34px 84px rgba(6, 28, 18, 0.20);
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(51, 194, 127, 0.20), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.16), transparent 22%),
        radial-gradient(circle at bottom right, rgba(13, 138, 95, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fef9 0%, #ecf8ef 52%, #dff1e3 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: .48;
    z-index: -1;
}

body::before {
    width: 420px;
    height: 420px;
    background: rgba(51, 194, 127, 0.18);
    top: -140px;
    right: -140px;
}

body::after {
    width: 340px;
    height: 340px;
    background: rgba(255, 191, 71, 0.14);
    bottom: -120px;
    left: -120px;
}

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

.sidebar {
    width: 290px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 16px 0 56px rgba(4, 22, 13, 0.30);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 22%),
        radial-gradient(circle at 20% 20%, rgba(51, 194, 127, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 191, 71, 0.10), transparent 20%);
    pointer-events: none;
}

.sidebar-brand,
.sidebar-footer {
    padding-bottom: 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark,
.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #44d18a, #0f8a5f 58%, #ffbf47 135%);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
    margin-bottom: 14px;
}

.site-logo,
.login-logo {
    display: block;
    object-fit: contain;
}

.site-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    flex: 0 0 auto;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.site-logo-sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.login-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    margin-bottom: 18px;
    box-shadow: 0 18px 34px rgba(21, 52, 31, 0.20);
}

.login-logo-large {
    width: 122px;
    height: 122px;
}

.brand-title {
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.03em;
}

.sidebar .text-muted,
.sidebar small {
    color: var(--sidebar-muted) !important;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sidebar-group-label {
    margin: 16px 6px 4px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.58);
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(231, 250, 239, 0.96));
    color: #12301d;
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(5, 23, 12, 0.22);
    transform: translateX(4px);
}

.sidebar-nav .nav-link i {
    font-size: 1.05rem;
}

.sidebar-nav .nav-link span {
    line-height: 1.2;
}

.sidebar-footer {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sidebar-text);
}

.sidebar-footer .fw-semibold {
    color: #fff;
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-left: 290px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(242, 250, 244, 0.92), rgba(242, 250, 244, 0.70));
    border-bottom: 1px solid rgba(21, 104, 64, 0.08);
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-hero {
    padding: 0;
    border-radius: 32px;
    overflow: hidden;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    padding: 32px;
}

.dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 8px 8px 8px 4px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #116343;
}

.eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary-2));
    box-shadow: 0 0 0 6px rgba(255, 191, 71, 0.12);
}

.dashboard-hero-title {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
    max-width: 12ch;
}

.dashboard-hero-text {
    font-size: 1.03rem;
    line-height: 1.7;
    color: #4a6054;
    max-width: 58ch;
    margin: 0;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 99, 67, 0.10);
    color: #275a42;
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.06);
}

.meta-chip i {
    color: var(--primary);
}

.dashboard-hero-stats {
    display: grid;
    gap: 14px;
    align-content: center;
}

.dashboard-summary {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.97), rgba(243, 251, 245, 0.95));
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.dashboard-summary-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.dashboard-summary-stats {
    display: grid;
    gap: 16px;
    align-content: center;
}

.dashboard-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(21, 104, 64, 0.10);
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.16), transparent 34%),
        rgba(255,255,255,0.84);
    box-shadow: 0 18px 34px rgba(12, 39, 26, 0.08);
}

.dashboard-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 30px rgba(15, 138, 95, 0.20);
    flex: 0 0 auto;
}

.dashboard-profile-copy {
    min-width: 0;
}

.dashboard-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-pill,
.dashboard-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 138, 95, 0.08);
    color: #24533b;
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-panel-badge {
    background: linear-gradient(135deg, rgba(15, 138, 95, 0.10), rgba(51, 194, 127, 0.14));
}

.dashboard-panel-badge-soft {
    background: rgba(15, 138, 95, 0.08);
}

.dashboard-summary-stat-row {
    display: grid;
    gap: 14px;
}

.dashboard-panel-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-medium-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.dashboard-medium-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(21, 104, 64, 0.10);
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.12), transparent 30%),
        rgba(255,255,255,0.84);
    box-shadow: 0 18px 34px rgba(12, 39, 26, 0.06);
}

.dashboard-medium-photo {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(15, 138, 95, 0.12), rgba(51, 194, 127, 0.16));
    border: 1px solid rgba(21, 104, 64, 0.12);
    box-shadow: 0 18px 30px rgba(15, 138, 95, 0.14);
}

.dashboard-medium-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 3rem;
}

.dashboard-medium-name {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.dashboard-medium-empty {
    flex: 1 1 auto;
    min-height: 220px;
    border-radius: 24px;
    border: 1px dashed rgba(47, 89, 55, 0.16);
    background: rgba(255,255,255,0.62);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-panel-stack {
    display: grid;
    gap: 18px;
}

.dashboard-info-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241, 250, 244, 0.96));
    border: 1px solid rgba(21, 104, 64, 0.08);
    box-shadow: 0 12px 24px rgba(12, 39, 26, 0.05);
}

.dashboard-info-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 28px rgba(15, 138, 95, 0.18);
    flex: 0 0 auto;
}

.dashboard-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-action-strip .btn {
    flex: 1 1 170px;
}

.dashboard-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.calendar-frame-agenda iframe {
    min-height: 760px;
}

.calendar-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(47, 89, 55, 0.16);
    background: rgba(255,255,255,0.72);
    padding: 32px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(21, 104, 64, 0.10);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 34px rgba(12, 39, 26, 0.08);
}

.hero-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 30px rgba(15, 138, 95, 0.18);
}

.hero-stat-label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #668173;
    margin-bottom: 4px;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-stat-primary .hero-stat-icon {
    background: linear-gradient(135deg, #0f8a5f, #33c27f);
}

.hero-stat-success .hero-stat-icon {
    background: linear-gradient(135deg, #16a765, #46d58c);
}

.hero-stat-gold .hero-stat-icon {
    background: linear-gradient(135deg, #f0b83b, #ffcd63);
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dashboard-action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 250px;
}

.action-badge,
.support-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.10);
    background: linear-gradient(135deg, #0f8a5f, #33c27f);
}

.action-badge-primary,
.support-icon-mediuns {
    background: linear-gradient(135deg, #0f8a5f, #33c27f);
}

.action-badge-success,
.support-icon-orixas {
    background: linear-gradient(135deg, #16a765, #46d58c);
}

.action-badge-gold,
.support-icon-financeiro,
.support-icon-situacao_onibus_praia,
.support-icon-doacoes {
    background: linear-gradient(135deg, #f0b83b, #ffcd63);
}

.action-badge-danger,
.support-icon-familias {
    background: linear-gradient(135deg, #d94f5a, #f06b6e);
}

.support-icon-novos_mediuns,
.support-icon-pontos_cantados {
    background: linear-gradient(135deg, #6b5cff, #8f7bff);
}

.support-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-section {
    margin-top: 4px;
}

.panel-card,
.metric-card,
.login-card,
.login-hero {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.panel-card {
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.panel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 194, 127, 0.06), transparent 36%);
    pointer-events: none;
}

.metric-card {
    border-radius: 22px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

.metric-card-paid {
    background: linear-gradient(135deg, rgba(220, 250, 233, 0.98), rgba(242, 255, 248, 0.94));
    border-color: rgba(22, 167, 101, 0.18);
}

.metric-card-open {
    background: linear-gradient(135deg, rgba(255, 239, 233, 0.98), rgba(255, 248, 244, 0.94));
    border-color: rgba(217, 79, 90, 0.18);
}

.metric-card-open-total {
    background: linear-gradient(135deg, rgba(234, 241, 250, 0.98), rgba(247, 250, 255, 0.94));
    border-color: rgba(36, 58, 40, 0.12);
}

.metric-icon-paid {
    background: linear-gradient(135deg, rgba(22, 167, 101, 0.18), rgba(15, 138, 95, 0.24));
    color: #0b5e41;
}

.metric-icon-open {
    background: linear-gradient(135deg, rgba(217, 79, 90, 0.16), rgba(239, 124, 63, 0.20));
    color: #8f3030;
}

.metric-icon-open-total {
    background: linear-gradient(135deg, rgba(36, 58, 40, 0.12), rgba(15, 138, 95, 0.14));
    color: #23412f;
}

.metric-label {
    color: var(--muted);
    font-size: .92rem;
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

.panel-header h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5d7161;
    margin: 0;
}

.topbar .btn-link {
    color: #0d7b53 !important;
    border-radius: 14px;
    text-decoration: none;
}

.topbar .btn-link:hover {
    background: rgba(13, 123, 83, 0.10);
}

.mediun-tabs .nav-link {
    color: #4d6355;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 700;
}

.mediun-tabs .nav-link.active {
    color: #173a24;
    background: transparent;
    border-bottom-color: var(--primary);
}

.table {
    color: var(--text);
}

.table thead th {
    color: #375646;
    border-color: rgba(35, 58, 41, 0.10);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(241, 251, 244, 0.98), rgba(226, 244, 232, 0.98));
    position: sticky;
    top: 0;
    z-index: 1;
}

.table td {
    border-color: rgba(35, 58, 41, 0.08);
}

.table tbody tr {
    transition: background-color .16s ease, transform .16s ease;
}

.table tbody tr:hover {
    background-color: rgba(51, 194, 127, 0.06);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(67, 179, 109, 0.03);
    color: var(--text);
}

.form-control,
.form-select,
textarea.form-control {
    background-color: #fbfdf9;
    color: var(--text);
    border: 1px solid rgba(47, 89, 55, 0.14);
    border-radius: 14px;
    padding: 0.8rem 1rem;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #92a394;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: #fff;
    color: var(--text);
    border-color: rgba(15, 138, 95, 0.70);
    box-shadow: 0 0 0 .2rem rgba(15, 138, 95, 0.16);
}

.input-group-text {
    background: linear-gradient(180deg, #f0fbf4, #e5f6eb);
    color: #2d5d3f;
    border-color: rgba(47, 89, 55, 0.14);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    box-shadow: 0 10px 24px rgba(15, 138, 95, 0.22);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #36b66d);
    border: none;
    box-shadow: 0 10px 22px rgba(22, 167, 101, 0.18);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-light {
    border-color: rgba(47, 89, 55, 0.16);
    color: #2f5941;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-light:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-3), var(--primary));
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(15, 138, 95, 0.20);
}

.sidebar-footer .btn-outline-success {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-footer .btn-outline-success:hover {
    color: #113321;
    background: #ffffff;
    border-color: #ffffff;
}

.badge {
    border-radius: 999px;
    padding: .58rem .8rem;
    text-transform: capitalize;
}

.status-ativo { background: rgba(31, 157, 89, 0.14); color: #14613a; }
.status-afastado { background: rgba(168, 138, 60, 0.16); color: #7d6524; }
.status-inativo { background: rgba(200, 79, 79, 0.14); color: #8f3030; }

.bg-primary-soft { background: rgba(47, 143, 87, 0.12); color: #1f6a40; }
.bg-success-soft { background: rgba(22, 167, 101, 0.12); color: #14613a; }
.bg-danger-soft { background: rgba(217, 79, 90, 0.12); color: #8f3030; }
.bg-dark-soft { background: rgba(36, 58, 40, 0.08); color: #23412f; }

.info-card,
.orixa-chip,
.stack-card {
    background: var(--surface-2);
    border: 1px solid rgba(47, 89, 55, 0.10);
}

.mediun-thumb,
.detail-photo,
.photo-preview,
.catalog-thumb,
.catalog-preview,
.orixa-chip,
.stack-card {
    border-radius: 18px;
}

.mediun-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f4faf1;
}

.mediun-thumb-placeholder {
    display: grid;
    place-items: center;
    color: #4f6a58;
    font-size: 1.25rem;
}

.photo-preview {
    width: 100%;
    max-width: 240px;
    overflow: hidden;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f7fbf4;
}

.photo-preview img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-photo {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f7fbf4;
}

.catalog-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f7fbf4;
}

.catalog-preview {
    width: 100%;
    max-width: 260px;
    object-fit: cover;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f7fbf4;
}

.food-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: stretch;
}

.food-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242, 250, 245, 0.98));
    border: 1px solid rgba(47, 89, 55, 0.10);
    box-shadow: 0 18px 38px rgba(12, 39, 26, 0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.food-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 138, 95, 0.24);
    box-shadow: 0 28px 54px rgba(12, 39, 26, 0.14);
}

.food-card-media {
    display: block;
    position: relative;
    aspect-ratio: 1.15 / 1;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255,191,71,0.15), rgba(51,194,127,0.08));
}

.food-card-image,
.food-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orixa-gallery-card .food-card-media {
    aspect-ratio: 1 / 1.08;
}

.orixa-gallery-card .food-card-body {
    padding: 15px 14px 16px;
    gap: 10px;
    text-align: center;
}

.orixa-gallery-card .food-card-title {
    font-size: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.orixa-gallery-card .food-card-title a {
    display: inline-block;
    width: 100%;
}

.food-card-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #1c5a3a;
    font-size: 3rem;
    background:
        radial-gradient(circle at top, rgba(255, 191, 71, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(240, 251, 244, 0.98), rgba(223, 242, 230, 0.98));
}

.food-detail-placeholder {
    min-height: 340px;
    border-radius: 24px;
}

.orixa-detail-image-wrap {
    max-width: 430px;
    flex: 0 0 430px;
}

.orixa-detail-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(47, 89, 55, 0.12);
    box-shadow: 0 24px 46px rgba(12, 39, 26, 0.14);
}

.orixa-detail-placeholder {
    min-height: 520px;
    border-radius: 28px;
    box-shadow: 0 24px 46px rgba(12, 39, 26, 0.12);
}

.orixa-detail-info .info-card {
    min-height: 100%;
}

.orixa-detail-info .info-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
}

.orixa-detail-info .info-value {
    font-size: 1rem;
    line-height: 1.55;
}

.orixa-detail-info h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    letter-spacing: -0.04em;
}

.food-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 20px;
    flex: 1 1 auto;
}

.food-card-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0;
}

.food-card-title a {
    color: var(--text);
    text-decoration: none;
}

.food-card-title a:hover {
    color: var(--primary);
}

.food-card-orixa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #35604a;
    font-size: .92rem;
}

.food-card-orixa i {
    color: var(--primary);
}

.food-card-footer {
    margin-top: auto;
}

.food-detail-hero {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(240, 251, 244, 0.98), rgba(223, 242, 230, 0.98));
    border: 1px solid rgba(47, 89, 55, 0.10);
}

.food-detail-image {
    min-height: 340px;
    object-fit: cover;
}

.food-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 10px;
}

.food-gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(47, 89, 55, 0.12);
    background: #f7fbf4;
}

.food-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.calendar-frame {
    border: 1px solid rgba(47, 89, 55, 0.10);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 38px rgba(12, 39, 26, 0.08);
}

.calendar-frame iframe {
    display: block;
    width: 100%;
    min-height: 78vh;
    border: 0;
    background: #fff;
}

@media (min-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .food-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1800px) {
    .food-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.detail-photo-placeholder {
    display: grid;
    place-items: center;
    color: #5b7161;
}

.info-card {
    border-radius: 18px;
    padding: 16px;
    height: 100%;
    box-shadow: 0 12px 24px rgba(22, 44, 28, 0.05);
}

.info-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #728378;
    margin-bottom: 6px;
}

.info-value {
    font-weight: 700;
    color: #183020;
    word-break: break-word;
}

.orixa-chip {
    min-height: 96px;
    padding: 16px;
}

.dashboard-quick-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-stack {
    display: grid;
    gap: 12px;
}

.stack-card {
    padding: 16px;
}

.family-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.24), transparent 26%),
        radial-gradient(circle at bottom left, rgba(51, 194, 127, 0.20), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243, 251, 245, 0.94));
    border: 1px solid rgba(47, 89, 55, 0.10);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 46px rgba(12, 39, 26, 0.08);
}

.family-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
}

.family-hero-copy {
    color: #4d6552;
    max-width: 60ch;
    margin: 0;
}

.family-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.family-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(47, 89, 55, 0.10);
    color: #29513b;
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.05);
}

.family-member-card {
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(47, 89, 55, 0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(243, 250, 244, 0.96));
    box-shadow: 0 14px 30px rgba(12, 39, 26, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}

.family-member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 194, 127, 0.08), transparent 34%);
    pointer-events: none;
}

.family-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(12, 39, 26, 0.10);
}

.family-member-card .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .15rem;
    border-radius: .4rem;
    border-color: rgba(47, 89, 55, 0.26);
}

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

.family-member-card .member-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-2), var(--accent));
    box-shadow: 0 0 0 6px rgba(51, 194, 127, 0.08);
    flex: 0 0 auto;
}

.family-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.family-stat {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(47, 89, 55, 0.10);
    background: rgba(255,255,255,0.75);
}

.family-stat .label {
    display: block;
    color: #6e8075;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin-bottom: 4px;
}

.family-stat .value {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #183020;
}

.family-detail-grid {
    display: grid;
    gap: 14px;
}

.family-detail-card {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(242, 250, 245, 0.95));
    border: 1px solid rgba(47, 89, 55, 0.10);
    box-shadow: 0 14px 28px rgba(12, 39, 26, 0.06);
}

.family-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.family-detail-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.family-empty {
    border: 1px dashed rgba(47, 89, 55, 0.18);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,0.6);
    color: #5f7267;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 1180px;
}

.login-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 80vh;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-strong);
}

.login-hero {
    padding: 48px;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.20), transparent 24%),
        radial-gradient(circle at bottom left, rgba(51, 194, 127, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(247, 254, 250, 0.98), rgba(226, 244, 232, 0.98));
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.login-hero-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.98;
    display: flex;
    flex-direction: column;
    gap: 0.12em;
    margin-bottom: 0.25rem;
}

.login-hero-title-line {
    display: block;
}

.login-hero p {
    max-width: 42ch;
    color: #4d6552;
}

.login-card {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card h2 {
    font-weight: 800;
}

.alert {
    border-radius: 16px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(22, 167, 101, 0.10), rgba(51, 194, 127, 0.12));
    color: #124128;
    border-color: rgba(22, 167, 101, 0.20);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(194, 75, 75, 0.10), rgba(225, 115, 115, 0.12));
    color: #7c2525;
    border-color: rgba(194, 75, 75, 0.20);
}

.offcanvas {
    background: var(--sidebar-bg);
    color: #fff;
}

.mobile-menu-header {
    padding: 22px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.offcanvas .nav-link {
    color: var(--sidebar-text);
}

.offcanvas .nav-link.active,
.offcanvas .nav-link:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #163524;
}

.offcanvas .text-muted,
.offcanvas small {
    color: var(--sidebar-muted) !important;
}

.mobile-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    background: transparent;
    padding: 14px 16px 18px;
}

.dashboard-links-grid .info-card {
    border-radius: 20px;
}

.hero-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(245, 252, 247, 0.94));
}

.hero-icon,
.page-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 30px rgba(15, 138, 95, 0.18);
    flex: 0 0 auto;
}

.page-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    margin-bottom: 0;
}

.dashboard-quick-card,
.info-card {
    position: relative;
    overflow: hidden;
}

.dashboard-quick-card::after,
.info-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -42% auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,191,71,0.18), transparent 66%);
    pointer-events: none;
}

.cantina-shell {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(380px, 1.08fr) minmax(320px, 0.94fr);
    gap: 14px;
    align-items: start;
}

.cantina-left {
    display: grid;
    gap: 14px;
}

.cantina-center {
    display: grid;
    gap: 14px;
}

.cantina-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(33, 74, 52, 0.10);
    margin-bottom: 14px;
}

.cantina-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.cantina-product {
    border: 1px solid rgba(33, 74, 52, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245, 251, 246, 0.98));
    border-radius: 20px;
    padding: 12px;
    min-height: 184px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    align-items: stretch;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.06);
    overflow: hidden;
    position: relative;
}

.cantina-product:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 112, 57, 0.38);
    box-shadow: 0 18px 34px rgba(21, 69, 38, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(240, 249, 243, 0.98));
}

.cantina-product-media {
    width: 100%;
    display: grid;
    place-items: center;
    min-height: 112px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 138, 95, 0.08), rgba(255,255,255,0.72));
    border: 1px solid rgba(33, 74, 52, 0.08);
    overflow: hidden;
}

.cantina-product-media img,
.cantina-product-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: grid;
    place-items: center;
    color: var(--primary);
}

.cantina-product-placeholder i {
    font-size: 1.9rem;
    opacity: 0.9;
}

.cantina-product-body {
    display: grid;
    gap: 8px;
}

.cantina-product-category {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 191, 71, 0.18);
    color: #8a5b00;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cantina-product-name {
    font-size: 0.96rem;
    line-height: 1.28;
    min-height: 40px;
    overflow: hidden;
    color: #173324;
    font-weight: 700;
}

.cantina-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cantina-product-meta strong {
    color: #b31b1b;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.cantina-product-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 138, 95, 0.10);
    color: var(--primary-3);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cantina-sale-list {
    min-height: 300px;
    display: grid;
    gap: 10px;
}

.cantina-empty {
    min-height: 220px;
    color: var(--muted);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.cantina-empty i {
    font-size: 2rem;
    color: var(--primary);
}

.cantina-sale-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 106px auto 36px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(33, 74, 52, 0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.05);
}

.cantina-sale-media img,
.cantina-line-placeholder {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(25, 135, 84, 0.07);
    border-radius: 8px;
}

.cantina-sale-main {
    min-width: 0;
}

.cantina-sale-main strong,
.cantina-sale-main span {
    display: block;
}

.cantina-sale-main span {
    color: var(--muted);
    font-size: 0.86rem;
}

.cantina-qty {
    display: grid;
    grid-template-columns: 28px 44px 28px;
    gap: 4px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 138, 95, 0.06);
    border: 1px solid rgba(33, 74, 52, 0.08);
}

.cantina-qty button,
.cantina-remove {
    border: 1px solid rgba(33, 74, 52, 0.14);
    background: #fff;
    border-radius: 8px;
    height: 32px;
    display: grid;
    place-items: center;
}

.cantina-remove {
    color: #b42318;
}

.cantina-qty input {
    height: 32px;
    border: 1px solid rgba(33, 74, 52, 0.14);
    border-radius: 8px;
    text-align: center;
    background: #fff;
    font-weight: 700;
}

.cantina-sale-amount {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 92px;
}

.cantina-sale-amount span {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cantina-subtotal,
.cantina-total {
    color: #c40000;
}

.cantina-total {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 14px 0 26px;
    letter-spacing: -0.05em;
}

.cantina-toggle,
.cantina-payment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cantina-payment {
    grid-template-columns: repeat(5, 1fr);
}

.cantina-toggle .btn,
.cantina-payment .btn {
    border-radius: 14px;
    min-height: 44px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(12, 39, 26, 0.04);
}

.cantina-summary {
    display: grid;
    gap: 10px;
}

.cantina-summary div,
.cantina-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 74, 52, 0.08);
}

.cantina-summary span,
.cantina-launch span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.cantina-launch-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.cantina-launch {
    padding: 12px 0;
}

.cantina-launch:last-child,
.cantina-summary div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cantina-launch strong {
    letter-spacing: -0.02em;
}

.cantina-person {
    display: grid;
    gap: 12px;
}

.cantina-person-form .form-select {
    min-width: 0;
}

.cantina-person-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cantina-person-summary div {
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(243, 250, 245, 0.95));
    border: 1px solid rgba(33, 74, 52, 0.08);
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.05);
}

.cantina-person-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 6px;
}

.cantina-person-summary strong {
    display: block;
    color: #173324;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.cantina-person-list {
    display: grid;
    gap: 8px;
}

.cantina-person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(33, 74, 52, 0.08);
    box-shadow: 0 10px 22px rgba(12, 39, 26, 0.05);
}

.cantina-person-item strong,
.cantina-person-item span {
    display: block;
}

.cantina-person-item span {
    color: var(--muted);
    font-size: 0.84rem;
}

.product-detail-shell {
    display: grid;
    gap: 18px;
}

.product-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241, 250, 244, 0.96));
}

.product-media-box {
    display: flex;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(47, 89, 55, 0.10);
    box-shadow: 0 24px 46px rgba(12, 39, 26, 0.14);
    background: #f7fbf4;
}

.product-detail-placeholder {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(15, 138, 95, 0.10), rgba(255, 191, 71, 0.12));
}

.product-detail-title {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.product-detail-copy {
    color: #4d6552;
    max-width: 52ch;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-chart-card {
    min-height: 320px;
}

.product-chart-card canvas {
    width: 100% !important;
    min-height: 240px;
}

.product-sales-card {
    overflow: hidden;
}

.product-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.product-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .dashboard-hero-grid {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-medium-profile {
        width: 100%;
    }
    .dashboard-medium-photo {
        width: 120px;
        height: 120px;
    }
    .product-stat-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-hero-title {
        max-width: none;
    }
    .login-panel {
        grid-template-columns: 1fr;
    }
    .login-hero {
        min-height: 300px;
    }
    .orixa-detail-image-wrap {
        max-width: none;
        flex-basis: auto;
    }
    .orixa-detail-placeholder {
        min-height: 360px;
    }
    .cantina-shell {
        grid-template-columns: 1fr;
    }
    .cantina-left {
        gap: 10px;
    }
    .cantina-sale-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .cantina-qty,
    .cantina-subtotal,
    .cantina-remove {
        grid-column: 2;
    }
    .cantina-sale-amount {
        grid-column: 2;
        justify-items: start;
        min-width: 0;
    }
    .cantina-payment {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .topbar {
        padding: 18px 18px 0;
    }
    .dashboard-hero-grid {
        padding: 18px;
    }
    .dashboard-hero-actions {
        flex-direction: column;
    }
    .dashboard-info-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-hero-actions .btn {
        width: 100%;
    }
    .dashboard-action-strip .btn {
        flex-basis: 100%;
    }
    .section-title-row {
        align-items: start;
        flex-direction: column;
    }
    .panel-card,
    .metric-card,
    .login-card,
    .login-hero {
        border-radius: 20px;
    }
    .login-card,
    .login-hero {
        padding: 24px;
    }
    .detail-photo {
        width: 160px;
        height: 160px;
    }

    .family-stat-grid {
        grid-template-columns: 1fr;
    }

    .cantina-product {
        min-height: 176px;
        padding: 12px;
    }

    .cantina-product-media {
        min-height: 104px;
    }

    .cantina-product-name {
        min-height: 36px;
        font-size: 0.94rem;
    }

    .cantina-product-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cantina-toggle,
    .cantina-payment {
        grid-template-columns: 1fr;
    }

    .cantina-person-summary {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        max-width: 240px;
    }
}
