/* DAYO partneru portāls — views.css: skatu stili (sākumlapa, autentifikācija, statuss,
   sākums, pieteikums, objekta cilnes). Kopīgie komponenti — components.css. */

/* ===== sākumlapa ===== */
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter)}
.hero{position:relative; overflow:hidden; padding:36px var(--gutter) 56px;
  background:radial-gradient(90% 70% at 85% 0%, color-mix(in srgb,var(--brand) 16%,transparent) 0%, transparent 60%),
             radial-gradient(60% 50% at 0% 100%, color-mix(in srgb,var(--accent) 12%,transparent) 0%, transparent 70%)}
.hero-in{max-width:var(--wrap); margin:0 auto; display:grid; gap:40px; align-items:center}
@media (min-width:900px){ .hero{padding:72px var(--gutter) 88px} .hero-in{grid-template-columns:1.1fr .9fr} }
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:13px; color:var(--brand); background:var(--surface); border:1px solid var(--border); padding:6px 12px; border-radius:999px; box-shadow:var(--shadow-sm)}
.eyebrow svg{width:16px; height:16px}
.hero h1{font-size:clamp(34px,7vw,58px); line-height:1.02; margin-top:18px; letter-spacing:-.025em}
.lead{font-size:clamp(16px,2.3vw,19px); color:var(--muted); margin-top:16px; max-width:36em}
.pdf-link{display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px}
.pdf-link svg{width:17px; height:17px}
.mock{position:relative; justify-self:center; width:min(330px,86vw)}
.mock-phone{border-radius:34px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg); overflow:hidden; transform:rotate(2deg)}
.mock-hero{height:170px; position:relative; background:linear-gradient(135deg,#FF9A7A 0%,var(--brand) 55%,var(--brand-strong) 100%)}
.mock-badge{position:absolute; left:14px; bottom:14px; display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.95); color:#A10A3C; font-weight:700; font-size:12px; padding:5px 10px; border-radius:999px}
.mock-badge svg{width:14px; height:14px}
.mock-body{padding:18px; display:flex; flex-direction:column; gap:10px}
.mock-title{height:16px; width:70%; border-radius:8px; background:var(--text); opacity:.85}
.mock-sub{height:10px; width:45%; border-radius:6px; background:var(--border-strong)}
.mock-chips{display:flex; gap:6px; margin:4px 0}
.mock-chips span{height:22px; width:58px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border)}
.mock-row{display:flex; align-items:center; gap:10px; color:var(--brand)}
.mock-row svg{width:18px; height:18px}
.mock-row i{flex:1; height:10px; border-radius:6px; background:var(--surface-3)}
.mock-stat{position:absolute; left:-28px; bottom:26px; display:flex; gap:10px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:10px 14px 10px 10px; box-shadow:var(--shadow-lg); transform:rotate(-3deg)}
.mock-stat b{display:block; font-family:var(--font-head); font-size:17px; line-height:1.1}
@media (max-width:520px){ .mock-stat{left:-6px} }
.band{padding:56px 0}
.band-alt{background:var(--surface-2)}
.band h2{font-size:clamp(24px,4vw,34px)}
.feature{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; box-shadow:var(--shadow-sm)}
.feature h3{margin:16px 0 12px}
.feat-list{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.feat-list li{display:flex; align-items:center; gap:10px; color:var(--muted)}
.feat-list svg{width:18px; height:18px; flex:none; color:var(--brand)}
.steps{list-style:none; margin:28px 0 0; padding:0}
.step{background:var(--surface); border-radius:var(--r-lg); padding:24px; border:1px solid var(--border); box-shadow:var(--shadow-sm)}
.step-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px}
.step h3{margin-bottom:4px}
.step-n{flex:none; width:28px; height:28px; border-radius:999px; background:var(--brand); font-size:14px; color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:800}
.cta-card .grow{flex:1 1 240px; min-width:0}
.cta-card{display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:28px; box-shadow:var(--shadow-sm)}

/* ===== autentifikācija / statuss ===== */
.auth-wrap,.status-wrap{display:flex; justify-content:center; padding:12px 0 24px}
.auth-card,.status-card{width:100%; max-width:480px}
.auth-mark{display:flex; justify-content:center; margin-bottom:12px}
.auth-mark img{height:40px; width:auto}
.auth-mark .logo-d{display:none}
@media (prefers-color-scheme: dark){ .auth-mark .logo-l{display:none} .auth-mark .logo-d{display:block} }
.auth-title{text-align:center; font-size:clamp(24px,5vw,30px)}
.auth-links{display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:22px; font-size:14px; color:var(--muted)}
.auth-links a{font-weight:700}
.form-sec{font-family:var(--font-head); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-top:8px; padding-top:14px; border-top:1px solid var(--border)}
.form-sec:first-child{border-top:0; padding-top:0; margin-top:0}
.status-card{text-align:center; display:flex; flex-direction:column; gap:14px; align-items:center}
.status-card > *{width:100%}
.status-card .notice{text-align:left}
.status-ico{width:72px!important; height:72px; border-radius:24px; display:grid; place-items:center; background:var(--surface-2); color:var(--brand); margin:0 auto 4px}
.status-ico svg{width:34px; height:34px}
.status-ico.ok{background:var(--ok-bg); color:var(--ok)}
.status-ico.warn{background:var(--warn-bg); color:var(--warn)}
.status-ico.danger{background:var(--danger-bg); color:var(--danger)}
.nf-code{font-family:var(--font-head); font-weight:800; font-size:22px}
.lead-sm{font-size:16px; color:var(--text)}
.place-name-big{font-family:var(--font-head); font-weight:700; font-size:18px; color:var(--brand)}
.mini-steps{list-style:none; padding:0; margin:4px 0; display:flex; flex-direction:column; gap:10px; text-align:left; background:var(--surface-2); border-radius:var(--r); padding:14px 16px}
.mini-steps li{display:flex; gap:10px; align-items:center; color:var(--muted); font-size:14px}
.mini-steps svg{width:19px; height:19px; flex:none}
.mini-steps li.done{color:var(--ok)} .mini-steps li.done span{color:var(--text)}
.mini-steps li.now{color:var(--warn); font-weight:700} .mini-steps li.now span{color:var(--text)}
.reason{text-align:left; background:var(--danger-bg); border-radius:var(--r); padding:14px 16px}
.reason p{white-space:pre-wrap; overflow-wrap:anywhere}

/* ===== lapas galva ===== */
.page-head{margin-bottom:18px}
.page-head-row{display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap}
.back{display:inline-flex; align-items:center; gap:4px; color:var(--muted); font-weight:500; font-size:14px; margin-bottom:10px}
.back svg{width:17px; height:17px}
.back:hover{color:var(--brand); text-decoration:none}
.inline-ic{display:inline-block; width:15px; height:15px; vertical-align:-3px}

/* ===== sākums (dashboard) ===== */
.dash-head{margin-bottom:14px}
.company-card{padding:18px 20px}
.company-card .avatar{width:60px; height:60px; border-radius:18px; font-size:24px}
.eyebrow-sm{font-size:12.5px; color:var(--muted); font-weight:500}
.company-name{font-size:clamp(20px,4vw,26px)}
.status-banner{margin-bottom:16px; color:var(--text); align-items:center}
.status-banner:hover{text-decoration:none; filter:brightness(.98)}
.dash-grid{display:grid; gap:22px; margin-top:6px; grid-template-columns:minmax(0,1fr)}
.dash-grid > *{min-width:0}
@media (min-width:960px){ .dash-grid{grid-template-columns:minmax(0,1fr) 320px; align-items:start} }
.sec-row{margin-bottom:6px}
.sec-row .section-title{margin:0}
.list-row.static{cursor:default}
.list-row.static:hover{background:none}
.place-row-end{display:flex; align-items:center; gap:8px; flex:none}
@media (max-width:420px){ .place-row-end .tag{display:none} }
.thumb{position:relative; width:52px; height:52px; border-radius:14px; overflow:hidden; flex:none; background:linear-gradient(145deg,var(--surface-3),var(--surface-2)); display:grid; place-items:center}
.thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.thumb-i{font-family:var(--font-head); font-weight:800; color:var(--brand); font-size:20px}
.thumb-lg{width:64px; height:64px; border-radius:18px}
.stat-prev{padding:16px 18px}
.stat-prev-nums{display:flex; flex-wrap:wrap; gap:4px 16px; margin-top:4px; font-size:13.5px; color:var(--muted)}
.stat-prev-nums b{font-family:var(--font-head); font-size:20px; color:var(--text)}
.stat-prev-ic{width:22px; height:22px; color:var(--brand); flex:none}
.help-card h4{font-size:15px}
.onboard .card-head{margin-bottom:10px}
.onboard-list{margin:0 -20px -20px; border-top:1px solid var(--border)}
.onboard-list .list-row{padding:13px 20px}
.progress{height:8px; border-radius:999px; background:var(--surface-2); overflow:hidden}
.progress span{display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--brand-400),var(--brand))}

/* ===== KPI ===== */
.kpis{display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:860px){ .kpis{grid-template-columns:repeat(4,minmax(0,1fr))} .kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))} }
.kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:420px){ .kpis-3{grid-template-columns:1fr 1fr} .kpis-3 > :last-child{grid-column:span 2} }
.kpi{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:16px; box-shadow:var(--shadow-sm); min-width:0}
.kpi-ic{width:34px; height:34px; border-radius:11px; background:var(--surface-2); color:var(--brand); display:grid; place-items:center; margin-bottom:10px}
.kpi-ic svg{width:18px; height:18px}
.kpi-v{font-family:var(--font-head); font-weight:800; font-size:clamp(24px,4vw,30px); line-height:1.05}
.kpi-l{font-size:13px; color:var(--muted); margin-top:4px}
.kpi-s{font-size:12px; color:var(--faint); margin-top:2px}
.kpi-sk{height:122px; border-radius:var(--r-lg)}
.big-num{font-family:var(--font-head); font-weight:800; font-size:32px; line-height:1.1}

/* ===== objekts ===== */
.place-head{margin-bottom:14px}
.place-head-row{display:flex; gap:14px; align-items:center}
.place-head-row h1{font-size:clamp(22px,4.4vw,32px)}
.ellipsis-2{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
@media (max-width:640px){ .hide-sm{display:none} }
.place-tabs{position:sticky; top:calc(61px + env(safe-area-inset-top)); z-index:20; background:var(--bg); padding:10px 2px; margin-bottom:10px; border-bottom:1px solid var(--border)}
.tab-body{display:flex; flex-direction:column; gap:18px}
.tab-intro{gap:14px; flex-wrap:wrap}
.tab-intro p{min-width:220px}
.tiles{display:grid; gap:12px; grid-template-columns:1fr}
@media (min-width:640px){ .tiles{grid-template-columns:1fr 1fr} }
@media (min-width:1000px){ .tiles{grid-template-columns:1fr 1fr 1fr} }
.tile{padding:16px}
.tile .t{font-weight:700}
.sticky-save{position:sticky; bottom:0; z-index:15; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); background:linear-gradient(to top,var(--bg) 70%,transparent); display:flex; gap:10px; align-items:center}
.sticky-save .unsaved{display:none}
.sticky-save.dirty .unsaved{display:inline}
.readonly{min-height:48px; padding:12px 14px; border-radius:14px; background:var(--surface-2); color:var(--muted); overflow-wrap:anywhere}

/* pieteikums */
.search-big .input{min-height:56px; font-size:17px; border-radius:18px; padding-left:48px; box-shadow:var(--shadow-sm)}
.search-big > svg{left:16px; width:22px; height:22px}
.sk-row{height:78px}
.new-place-link{display:inline-flex; gap:8px; align-items:center; margin:16px auto 0; padding:8px 4px}
.new-place-link svg{width:18px; height:18px}
.claim-card{padding:0; overflow:hidden}
.claim-hero{position:relative; height:190px; background:linear-gradient(135deg,#FF9A7A,var(--brand) 60%,var(--brand-strong))}
.claim-hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.claim-hero-ic{display:none}
.claim-hero.noimg{height:120px; display:grid; place-items:center}
.claim-hero.noimg .claim-hero-ic{display:grid; place-items:center; width:56px; height:56px; border-radius:18px; background:rgba(255,255,255,.2); color:#fff}
.claim-hero-ic svg{width:28px; height:28px}
.claim-place-body{padding:18px 20px 0}
.claim-place-body h2{font-size:24px}
.addr{align-items:flex-start; gap:6px; margin-top:6px; font-size:14px}
.addr svg{width:16px; height:16px; flex:none; margin-top:3px}
.claim-card-body{padding:16px 20px 20px}
.code-input{font-size:26px; letter-spacing:.4em; text-align:center; font-family:var(--font-head); font-weight:800}

/* darba laiks */
.hours-layout{display:grid; gap:18px}
@media (min-width:960px){ .hours-layout{grid-template-columns:minmax(0,1fr) 300px; align-items:start} }
.hours-tools{margin-bottom:8px}
.hours{display:flex; flex-direction:column}
.day{display:flex; flex-wrap:wrap; gap:10px 16px; padding:12px 0; border-top:1px solid var(--border); align-items:flex-start}
.day:first-child{border-top:0}
.day-name{width:150px; flex:none; padding-top:8px; font-weight:700}
.day.closed .day-name{color:var(--muted)}
.wins{flex:1; min-width:220px; display:flex; flex-direction:column; gap:8px; align-items:flex-start}
.day.closed .wins{padding-top:9px; min-width:0; align-items:flex-end}
@media (max-width:520px){ .day-name{width:auto; flex:1} }
.win{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.win .time{width:118px}
.dash{color:var(--muted)}
.gtext{margin:10px 0 0; padding:0 0 0 18px; font-size:13.5px; color:var(--muted); display:flex; flex-direction:column; gap:3px}

/* foto */
.photo-grid{display:grid; gap:14px; align-items:start; grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:720px){ .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:1060px){ .photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }
.photo-grid > .empty{grid-column:1/-1}
.photo{margin:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column}
.photo-img{position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--surface-2)}
.photo-img img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.photo-img img.broken{opacity:0}
.photo-badge{position:absolute; left:8px; top:8px; display:inline-flex; gap:4px; align-items:center; background:rgba(27,7,16,.72); color:#fff; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 8px; border-radius:999px}
.photo-badge svg{width:12px; height:12px}
.photo-badge.cover{background:var(--brand)}
.photo-badge + .photo-badge{left:auto; right:8px}
.photo-actions{display:flex; gap:8px; padding:10px; justify-content:space-between; min-height:56px; align-items:center}
.danger-ic{color:var(--danger)!important}
@media (max-width:560px){ .cover-btn .lbl{display:none} .cover-btn{width:38px; padding:0} }

/* ēdienkarte */
.menu-sec{display:flex; flex-direction:column; gap:10px}
.menu-sec-head{display:flex; gap:10px; align-items:center}
.menu-sec-head .sec-name{font-family:var(--font-head); font-weight:700; font-size:17px; flex:1}
.en summary{cursor:pointer; color:var(--muted); font-weight:500; width:max-content}
.menu-items{display:flex; flex-direction:column; gap:10px}
.menu-item{background:var(--surface-2); border-radius:var(--r); padding:12px; display:flex; flex-direction:column; gap:8px}
.menu-item .input{background:var(--surface)}
.menu-item-main{display:flex; gap:8px}
.price-wrap{display:flex; align-items:center; gap:6px; flex:none}
.price-in{width:82px; text-align:right}
.menu-item-foot{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.menu-item-foot .en{flex-basis:100%; order:3}
.menu-item-tools{margin-left:auto}
.chip-sm{padding:5px 11px; font-size:12.5px}
.chip-sm svg{width:14px; height:14px}
.add-item{display:inline-flex; gap:4px; align-items:center; align-self:flex-start; padding:6px 0}

/* pasākumi */
.ev-card{display:flex; gap:14px; align-items:center; padding:14px}
@media (max-width:560px){ .ev-card{flex-wrap:wrap} .ev-actions{width:100%; justify-content:flex-end} }
.ev-thumb{position:relative; width:76px; height:76px; border-radius:16px; overflow:hidden; flex:none; background:var(--surface-2); display:grid; place-items:center; color:var(--brand)}
.ev-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.ev-thumb-ic svg{width:26px; height:26px}
.ev-actions{display:flex; gap:6px; align-items:center}
.brand-t{color:var(--brand); font-weight:700}
.ev-img{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.ev-img-prev{width:132px; height:88px; border-radius:14px; overflow:hidden; background:var(--surface-2); display:grid; place-items:center; text-align:center; padding:4px}
.ev-img-prev img{width:100%; height:100%; object-fit:cover; margin:-4px}
.select{appearance:auto}

/* statistika */
.stats-grid{display:grid; gap:16px}
@media (min-width:960px){ .stats-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)} }
.chart{width:100%; height:auto}
.chart .grid{stroke:var(--border); stroke-width:1}
.chart .axis{fill:var(--faint); font-size:11px; font-family:var(--font-body)}
.chart .line{fill:none; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round}
.chart .views{stroke:var(--brand)}
.chart .actions{stroke:var(--accent); stroke-dasharray:1 0}
.chart .area{fill:color-mix(in srgb,var(--brand) 12%,transparent)}
.legend{display:inline-flex; gap:6px; align-items:center; font-size:12px; color:var(--muted); flex-wrap:wrap}
.legend i{display:inline-block; width:12px; height:4px; border-radius:2px; margin-left:6px}
.lg-views{background:var(--brand)} .lg-actions{background:var(--accent)}
.stat-rows{display:flex; flex-direction:column}
.stat-row{display:flex; align-items:center; gap:12px; padding:11px 0; border-top:1px solid var(--border)}
.stat-row:first-child{border-top:0}
.stat-row svg{width:18px; height:18px; color:var(--brand); flex:none}
.stat-row b{font-family:var(--font-head); font-size:17px}

/* profils */
.logo-edit{display:flex; gap:18px; align-items:center; flex-wrap:wrap}
.avatar-xl{width:88px; height:88px; border-radius:24px; font-size:34px}
.soon-card{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
