/* owner.js: the owner's way in above their own page and the panel beside it
   (the market's redesign, 2026-12-05). Ported from the approved preview,
   docs/design/markt-prototype/public/app.css ("for the owner"). Not scoped to
   a screen: the seller page and the kavel page both show it. */

/* The way in: one line above the page. */
.ed-in{background:#FFF1E9;border-bottom:1px solid #FFB08A}
.ed-in-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-top:8px;padding-bottom:8px;font-size:15px;font-weight:600}
.ed-in-row .btn-o{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;font-size:15px}

/* The panel: fixed on the right; at 1200px and wider the page makes room for it. */
#own-root .btn-o,#own-root .btn-line{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;font-size:15px}
#own-root .btn-dk{border-color:#FAFAF7;color:#FAFAF7}
#own-root .btn-dk:hover{background:#FAFAF7;color:#121212}
#own-root .field{min-height:44px;height:44px;font-size:16px;padding:0 12px}
#own-root textarea.field{height:auto;min-height:0;padding:10px 12px;line-height:1.5;resize:vertical}
#own-root .search{position:relative;display:flex;align-items:center;flex:none;max-width:none}
#own-root .search svg{position:absolute;left:14px;pointer-events:none}
#own-root .search input{width:100%;padding-left:42px}
#own-root .n{font-size:12px;font-weight:800;background:#ECEAE3;border-radius:999px;padding:2px 7px;color:#2B2A27}
#own-root .fchip-on .n{background:#FFF1E9;color:#121212}
.edp{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);z-index:50;background:#FFFFFF;border-left:1px solid #D9D7D0;box-shadow:-24px 0 48px -32px rgba(18,18,18,.35);display:flex;flex-direction:column;color:#121212}
html.edp-on #app{margin-right:440px}
html.edp-on .tb-label{display:none}
@media (max-width:1199px){html.edp-on #app{margin-right:0}}
.edp-h{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #ECEAE4}
.edp-h-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.edp-h-t b{font-size:17px;font-weight:800}
.edp-h-t span{font-size:13px;color:#5E5B55}
#own-root .edp-err{color:#A3260F;font-weight:700}
#own-root .edp-h .btn-o,#own-root .edp-h .btn-line{min-height:40px;padding:0 14px}
@media (min-width:1200px){.edp-peek{display:none !important}}
.edp-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px 4px 16px;background:#FFF1E9;font-size:14px}
.edp-undo .textbtn{min-height:36px}
.edp-tabs{display:flex;border-bottom:1px solid #D9D7D0;padding:0 8px}
.edp-tabs button{flex:1;height:48px;border:0;background:none;font:inherit;font-size:15px;font-weight:800;color:#5E5B55;cursor:pointer;box-shadow:inset 0 -3px 0 transparent}
.edp-tabs button[aria-selected="true"]{color:#121212;box-shadow:inset 0 -3px 0 #FF6B2C}
.edp-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px;display:flex;flex-direction:column;gap:20px}
.edp-body>*{flex-shrink:0}
.edp-sec{display:flex;flex-direction:column;gap:10px}
.edp-lab,.edp-f>label{font-size:14px;font-weight:800}
.edp-f{display:flex;flex-direction:column;gap:6px}
.edp-f input.field{width:100%}
.edp-f-in{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.edp-f-in>label{font-size:14px;font-weight:700}
.edp-eur{display:flex;align-items:center;gap:8px;font-weight:800}
#own-root .edp-f-in .edp-eur .field{width:140px;height:40px;min-height:40px}
.edp-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.edp-sw{display:flex;align-items:center;gap:8px;height:44px;padding:0 10px;border:1.5px solid #D9D7D0;border-radius:8px;background:#FFFFFF;font:inherit;font-size:14px;font-weight:700;cursor:pointer;color:#121212;min-width:0}
.edp-sw span{width:22px;height:22px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(18,18,18,.2)}
.edp-sw.on{border-color:#121212;box-shadow:inset 0 0 0 1px #121212}
.edp-check{display:flex;align-items:flex-start;gap:10px;min-height:32px;font-size:15px;font-weight:600;cursor:pointer}
.edp-check input{width:20px;height:20px;margin:2px 0 0;accent-color:#121212;flex:none}
.edp-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#D9D7D0;border:1px solid #D9D7D0;border-radius:12px;overflow:hidden}
.edp-sum div{background:#FAFAF7;padding:10px 12px;display:flex;flex-direction:column;min-width:0}
.edp-sum b{font-size:20px;font-weight:900;letter-spacing:-.02em}
.edp-sum span{font-size:13px;color:#5E5B55}
.edp-chips{display:flex;flex-wrap:wrap;gap:6px}
.edp-chips .fchip{height:36px;padding:0 12px}
.edp-bulk{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:700;background:#FAFAF7;border:1px solid #D9D7D0;border-radius:12px;padding:8px 8px 8px 12px}
.edp-bulk-b{display:flex;flex-wrap:wrap;gap:8px}
#own-root .edp-bulk .btn-line{min-height:38px;padding:0 12px;font-size:14px}
.edp-hint{font-size:13px;color:#5E5B55}
.edp-rows{list-style:none;margin:0;padding:0;border:1px solid #D9D7D0;border-radius:12px;overflow:hidden}
.edp-row{padding:12px;border-top:1px solid #ECEAE4;display:flex;flex-direction:column;gap:10px;content-visibility:auto;contain-intrinsic-size:auto 110px}
.edp-row:first-child{border-top:0}
.edp-row-h,.edp-row-1{display:flex;align-items:center;gap:12px}
.edp-row-1{flex-direction:row}
.edp-cv{display:flex;gap:2px;width:72px;flex:none}
.edp-cv .cover{width:22px;border-radius:3px;box-shadow:none}
.edp-row-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.edp-row-t b{font-size:15px;overflow-wrap:anywhere}
.edp-row-t span{font-size:13px;color:#5E5B55;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#own-root .edp-row-1 .btn-line{min-height:38px;padding:0 12px;font-size:14px;flex:none}
.edp-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#ECEAE3;border-radius:8px;padding:3px;gap:3px}
.edp-choice button{height:36px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:13px;font-weight:800;color:#5E5B55;cursor:pointer;white-space:nowrap;padding:0 4px;overflow:hidden;text-overflow:ellipsis}
.edp-choice button:hover{color:#121212}
.edp-choice .on,.edp-choice .on:hover{background:#121212;color:#FAFAF7}
.edp-more{display:flex;flex-direction:column;gap:12px;padding:12px;background:#FAFAF7;border-radius:8px}
.edp-row:has(.edp-f-in:only-child) .edp-more{padding:8px 12px}
.edp-link{font-size:14px;font-weight:700;align-self:flex-start;min-height:32px;display:inline-flex;align-items:center}
.edp-none{margin:0;color:#5E5B55}
.edp-pill{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:10px;background:#121212;color:#FAFAF7;border-radius:999px;padding:8px 8px 8px 18px;box-shadow:0 16px 40px -16px rgba(18,18,18,.6);font-size:14px;white-space:nowrap;max-width:calc(100vw - 16px)}
#own-root .edp-pill .btn-o,#own-root .edp-pill .btn-line{min-height:40px;border-radius:999px;padding:0 16px}
.edp-pill #own-status{color:#C9C6BD}
.edp-pill #own-status.edp-err{color:#FFB08A}
@media (max-width:600px){.edp{width:100%;border-left:0}.edp-pill #own-status{display:none}.edp-h-t span{display:none}.edp-h-t span.edp-err{display:block}}

/* A note on a page only the owner sees (a place that is no kavel any more). */
.ed-box{background:#FFF1E9;border:1px solid #FFB08A;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px;font-size:15px}
