/* Customer portal visual layer: consistent service UX without changing tenant colors or data. */
.customer-portal-body{--portal-ink:#102a43;--portal-muted:#61758a;--portal-border:#dce6ec;background:#f3f7fa;color:var(--portal-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.portal-topbar{min-height:72px;padding:12px clamp(14px,3.5vw,42px);background:rgba(255,255,255,.96);border-bottom:1px solid var(--portal-border);box-shadow:0 4px 18px rgba(16,42,67,.045);backdrop-filter:blur(14px)}.portal-brand{min-width:0;gap:11px;color:var(--portal-ink)}.portal-brand img,.portal-brand>span{width:44px;height:44px;flex:0 0 44px;border-radius:13px}.portal-brand strong{min-width:0;line-height:1.2;overflow-wrap:anywhere}.portal-brand small{margin-top:3px;color:var(--portal-muted);font-size:.75rem;font-weight:600}.portal-nav{gap:5px}.portal-nav a{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-weight:650}.portal-nav a:hover,.portal-nav a:focus-visible,.portal-nav .portal-pill-link{background:#e7f3f2;color:#075f5a!important}.portal-main{padding-top:clamp(18px,3vw,32px);padding-bottom:calc(90px + env(safe-area-inset-bottom))}.portal-workspace{width:100%;max-width:1440px;margin-inline:auto}.portal-card,.portal-stat-card,.portal-kpi,.portal-product{border-radius:17px;border-color:var(--portal-border);box-shadow:0 8px 24px rgba(16,42,67,.045)}.portal-card{padding:clamp(15px,2vw,22px)}.portal-welcome-hero{position:relative;isolation:isolate;overflow:hidden;min-height:220px;border:0;border-radius:22px;padding:clamp(20px,4vw,38px);background:linear-gradient(125deg,#102a43 0%,#154f68 58%,#087e78 125%);box-shadow:0 16px 38px rgba(16,42,67,.14)}.portal-welcome-hero:after{content:"";position:absolute;z-index:-1;width:19rem;height:19rem;right:-7rem;top:-10rem;border:1px solid rgba(255,255,255,.15);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.035),0 0 0 56px rgba(255,255,255,.025)}.portal-welcome-hero h1{max-width:20ch;line-height:1.12;letter-spacing:-.035em}.portal-welcome-hero p{max-width:62ch;line-height:1.6}.portal-hero-summary{min-width:min(250px,100%);border:1px solid rgba(255,255,255,.2);border-radius:15px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}.portal-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:1.2rem}.portal-stat-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:16px 0}.portal-stat-card{min-width:0;padding:16px;background:#fff;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.portal-stat-card:hover{transform:translateY(-2px);border-color:#b5d7d5;box-shadow:0 14px 30px rgba(16,42,67,.09)}.portal-stat-card strong{overflow-wrap:anywhere;color:#102a43}.portal-dashboard-layout{grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:16px}.portal-section-heading{gap:12px}.portal-section-heading h2{color:#102a43;letter-spacing:-.02em}.portal-section-heading p{color:var(--portal-muted)}.portal-section-heading>a{white-space:nowrap}.portal-table-card{min-width:0}.portal-table{min-width:620px}.portal-table thead th{background:#f2f7f9;color:#52677b;border-bottom-color:var(--portal-border);font-size:.77rem;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}.portal-table tbody td{vertical-align:middle}.portal-table tbody tr:hover{background:#f8fbfc}.portal-table td small{display:block;color:var(--portal-muted);margin-top:3px}.portal-mini-row,.portal-list-item{min-width:0;gap:12px}.portal-mini-row>span,.portal-list-item>span{min-width:0}.portal-mini-row strong,.portal-list-item strong{overflow-wrap:anywhere}.portal-products-panel{min-width:0}.portal-product-grid.premium{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}.portal-product.premium{min-width:0;overflow:hidden;border-radius:16px;transition:transform .16s ease,box-shadow .16s ease}.portal-product.premium:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(16,42,67,.1)}.portal-product-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}portal-rating{display:none!important}.portal-empty-state{min-height:145px;display:flex;align-items:center;justify-content:center;gap:8px;padding:20px;border:1px dashed #bfd0da;border-radius:14px;background:#f8fbfc;text-align:center;color:#52677b}.portal-empty-state strong{color:#102a43}.portal-sidebar-brand,.portal-sidebar-profile,.portal-sidebar nav a{border-radius:12px}.portal-sidebar nav a{min-height:44px}.portal-profile-menu summary{min-height:44px}.portal-icon-button{width:44px;height:44px;border-radius:12px}.portal-top-search{min-width:0;max-width:360px}.portal-top-search input{min-width:0}.portal-footer{max-width:1440px;margin-inline:auto;color:var(--portal-muted)}.portal-auth{width:min(100% - 2rem,520px);margin:clamp(18px,5vh,52px) auto}.portal-auth .portal-card{padding:clamp(18px,4vw,30px);border-radius:20px;box-shadow:0 14px 36px rgba(16,42,67,.08)}.portal-auth h1{color:#102a43;letter-spacing:-.025em}.portal-auth .form-control,.portal-auth .form-select{min-height:46px;border-radius:10px}portal-auth input:focus-visible,.portal-main input:focus-visible,.portal-main select:focus-visible,.portal-main textarea:focus-visible,.portal-main a:focus-visible,.portal-main button:focus-visible,.portal-topbar a:focus-visible{outline:3px solid rgba(8,126,120,.45);outline-offset:2px}.portal-bottom-nav{border-top:1px solid var(--portal-border);box-shadow:0 -8px 24px rgba(16,42,67,.07);padding-bottom:max(8px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(14px)}.portal-bottom-nav a{min-height:52px}
@media(max-width:1100px){.portal-dashboard-layout{grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr)}}
@media(max-width:900px){.portal-dashboard-layout{grid-template-columns:1fr}.portal-side-stack{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.portal-side-stack>.portal-card{height:auto}}
@media(max-width:767.98px){.portal-topbar{gap:10px;padding:10px 14px}.portal-main{padding-inline:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.portal-welcome-hero{min-height:0;gap:16px;border-radius:18px}.portal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-stat-card{padding:13px}.portal-stat-card strong{font-size:1.2rem}.portal-table-card .table-responsive{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:12px}.portal-table{min-width:620px}.portal-product-grid.premium{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-product-actions{display:grid;grid-template-columns:1fr 1fr}.portal-section-heading{align-items:start}.portal-footer{padding-inline:14px}}
@media(max-width:430px){.portal-stat-grid{grid-template-columns:1fr}.portal-product-grid.premium{grid-template-columns:1fr}.portal-topbar .portal-nav{width:100%;justify-content:flex-end}.portal-topbar .portal-nav a{flex:1 1 auto}.portal-hero-actions{display:grid;grid-template-columns:1fr}.portal-auth{width:calc(100% - 24px)}.portal-section-heading{display:grid}.portal-section-heading>a{justify-self:start}}
@media(prefers-reduced-motion:reduce){.customer-portal-body *, .customer-portal-body *:before, .customer-portal-body *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.customer-portal-body.portal-restaurant-public {
    --portal-primary: #643d29;
    --portal-accent: #75452d;
    --portal-border: #e4d8d0;
    color: #30241e;
    background: #ffffff;
}
.portal-restaurant-public .portal-topbar,
.portal-restaurant-public .portal-footer {
    background: #ffffff;
    border-color: #e4d8d0;
    color: #30241e;
}
.portal-restaurant-public .portal-brand > span {
    background: #643d29;
    color: #ffffff;
}
.portal-restaurant-public .portal-auth .portal-card {
    background: #ffffff;
    border-color: #e4d8d0;
    color: #30241e;
}
.portal-restaurant-public .portal-card .form-control {
    background-color: #ffffff;
    border-color: #a38a7b;
    color: #30241e;
}
.portal-restaurant-public .portal-card .form-control:focus {
    border-color: #643d29;
    box-shadow: 0 0 0 .2rem #643d2930;
}
.portal-restaurant-public a { color: #643d29; }
.portal-restaurant-public .portal-card .btn.btn-primary {
    --bs-btn-bg: #75452d;
    --bs-btn-border-color: #75452d;
    --bs-btn-color: #ffffff;
    background: #75452d;
    border-color: #75452d;
    color: #ffffff;
}
.portal-restaurant-public .portal-card .btn.btn-primary:hover,
.portal-restaurant-public .portal-card .btn.btn-primary:active {
    background: #59311e;
    border-color: #59311e;
    color: #ffffff;
}

.portal-restaurant-public .portal-welcome-hero {
    background: #643d29;
    color: #fff;
}
.portal-restaurant-public .portal-welcome-hero h1,
.portal-restaurant-public .portal-welcome-hero p,
.portal-restaurant-public .portal-welcome-hero a {
    color: #fff;
}
.portal-restaurant-public .portal-welcome-hero a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.portal-restaurant-public .portal-welcome-hero {
    border-radius: 12px;
    padding: clamp(20px, 4vw, 36px);
    box-shadow: none;
}
.portal-restaurant-public .portal-welcome-hero h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0;
}
.portal-restaurant-public .portal-welcome-hero .btn.btn-primary {
    background: #fff;
    border-color: #fff;
    color: #643d29;
}
.portal-restaurant-public .portal-welcome-hero .btn.btn-primary:hover {
    background: #f3e9e2;
    border-color: #f3e9e2;
    color: #643d29;
}
.portal-restaurant-public .portal-workspace .portal-card {
    border: 1px solid #e4d8d0;
    border-radius: 12px;
    box-shadow: none;
}
