html:has(body.portal-body) { background: #f6f3ec; }
body.portal-body { align-items: initial !important; background: #f6f3ec !important; display: block !important; height: auto !important; justify-content: initial !important; min-height: 100vh; overflow-x: hidden; overflow-y: auto !important; }
body.portal-body .portal-page { margin: 0 auto; min-height: 100vh; padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important; padding-top: 28px !important; color: #3d2a1d; }
.portal-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.eyebrow { color: #74844f; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portal-avatar { align-items: center; background: #ecf1df; border-radius: 50%; color: #647443; display: inline-flex; height: 48px; justify-content: center; width: 48px; }
.product-card { border: 0; border-radius: 16px; box-shadow: 0 8px 24px rgba(70, 44, 25, .08); overflow: hidden; }
.product-art { align-items: center; background: linear-gradient(135deg, #718552, #3e5b3d); color: #f8f3e8; display: flex; font-size: 2.2rem; height: 110px; justify-content: center; }
.product-art img { height: 100%; object-fit: cover; width: 100%; }
.portal-form-card, .cart-card { border: 0; border-radius: 16px; box-shadow: 0 8px 24px rgba(70, 44, 25, .08); }
.portal-filter-card { border: 0; border-radius: 16px; box-shadow: 0 8px 24px rgba(70, 44, 25, .08); }
.portal-form-card .form-control, .cart-card .form-control { border-color: #d9d4c7; border-radius: 9px; }
.weekday-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.weekday-option { cursor: pointer; margin: 0; }
.weekday-option input { position: absolute; opacity: 0; }
.weekday-option span { background: #f5f2ea; border: 1px solid #ddd7ca; border-radius: 999px; color: #6c6257; display: block; font-size: .8rem; min-width: 52px; padding: .45rem .7rem; text-align: center; }
.weekday-option input:checked + span { background: #647443; border-color: #647443; color: #fff; }
.empty-state { background: #fff; border-radius: 16px; color: #7d7469; padding: 4rem 1rem; text-align: center; }
.empty-state i { color: #a8b78a; font-size: 2.5rem; margin-bottom: 1rem; }
.portal-bottom-nav { align-items: center; background: rgba(255,255,255,.97); border: 1px solid #e4dfd5; border-radius: 16px; bottom: 16px; box-shadow: 0 8px 30px rgba(54, 37, 23, .15); display: flex; justify-content: space-around; left: 50%; max-width: 620px; padding: .55rem .4rem; position: fixed; transform: translateX(-50%); width: calc(100% - 32px); z-index: 20; }
.portal-bottom-nav a { align-items: center; border-radius: 12px; color: #8a8177; display: flex; flex: 1; flex-direction: column; font-size: .68rem; gap: .25rem; padding: .35rem .2rem; text-decoration: none; }
.portal-bottom-nav a i { font-size: 1rem; }
.portal-bottom-nav a.active { background: #edf1e4; color: #53663b; font-weight: 700; }
.portal-table th { white-space: nowrap; }
.portal-body .card { border-radius: 16px; border-color: #ebe5da; }
.portal-body .small-box { border-radius: 16px; box-shadow: 0 8px 22px rgba(70, 44, 25, .08); min-height: 116px; overflow: hidden; }
.portal-body .small-box h3 { font-size: 1.55rem; }
.portal-body .small-box .icon { font-size: 54px; }
.portal-body .table-responsive { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.portal-body .table td, .portal-body .table th { vertical-align: middle; }
@media (max-width: 575.98px) {
    body.portal-body .portal-page { padding-left: 12px; padding-right: 12px; padding-top: 18px !important; }
    .portal-heading { align-items: flex-start; margin-bottom: 1rem; }
    .portal-heading h3 { font-size: 1.35rem; }
    .portal-heading .btn { font-size: .72rem; }
    .portal-table { font-size: .8rem; min-width: 680px; }
    .portal-table td, .portal-table th { padding: .65rem .55rem; }
    .portal-body .small-box { min-height: 96px; }
    .portal-body .small-box h3 { font-size: 1.2rem; }
    .portal-body .small-box p { font-size: .75rem; }
    .portal-body .small-box .icon { font-size: 38px; }
    .portal-bottom-nav { bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 18px; padding: .45rem .25rem; width: calc(100% - 20px); }
    .portal-bottom-nav a { font-size: .58rem; gap: .2rem; padding: .35rem .1rem; }
    .portal-bottom-nav a i { font-size: .9rem; }
}
