/* Mifi panel: the style of the approved mockups (design/ota-2026-12/Panel*.dc.html). Fonts are local copies (OFL). */
@font-face { font-family: "Baloo 2"; src: url("/static/fonts/baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito_extrabold.ttf") format("truetype"); font-weight: 600 900; font-display: swap; }

:root {
  --blue: #235E9C; --ink: #1E3A5F; --grey: #56677B; --line: #D9E2EC; --line2: #E8EEF4; --bg: #F4F7FB;
  --green: #1B6B36; --greenbg: #E3F4E8; --brown: #7A4300; --cream: #FFF1D6; --gold: #FFC94D; --field: #C5D2E0;
  --head: "Baloo 2", "Nunito", system-ui, sans-serif; --ui: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); } a:hover { color: var(--ink); }
.pm-shell { min-height: 100vh; display: flex; }
.pm-side { flex: 0 0 220px; padding: 20px 14px; background: var(--blue); display: flex; flex-direction: column; gap: 4px; }
.pm-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; color: #fff; font: 700 22px var(--head); text-decoration: none; }
.pm-brand img { width: 44px; height: 44px; object-fit: contain; }
.pm-nav { display: block; padding: 10px 12px; border-radius: 10px; color: #DCE9F7; text-decoration: none; font: 800 15px var(--ui); white-space: nowrap; }
.pm-nav:hover { color: #fff; background: #2F6DAF; }
.pm-nav[aria-current="page"] { background: var(--ink); color: #fff; }
.pm-side form { margin-top: auto; padding-top: 16px; }
.pm-side form button { width: 100%; background: transparent; color: #DCE9F7; border-color: #DCE9F7; }
main { flex: 1 1 auto; min-width: 0; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
h1 { margin: 0; font: 700 32px/1.15 var(--head); }
h2, .pm-h2 { margin: 0; font: 700 20px/1.2 var(--head); }
h3 { margin: 0; font: 700 17px var(--head); }
.pm-crumb { font: 800 13px var(--ui); color: var(--grey); }
.pm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pm-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.pm-row2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pm-row2 > * { flex: 1 1 420px; min-width: 0; }
.pm-main { flex: 999 1 560px !important; }
.pm-aside { flex: 1 1 260px !important; max-width: 340px; }
.pm-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pm-card > * { margin: 0; }
.pm-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-tile { flex: 1 1 150px; padding: 14px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm-k { font: 800 13px var(--ui); color: var(--grey); }
.pm-v { font: 700 20px var(--head); overflow-wrap: anywhere; }
.pm-note { font-size: 13px; color: var(--grey); }
.pm-wrap { overflow-x: auto; }
.pm-t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.pm-t th { text-align: left; font: 800 13px var(--ui); color: var(--grey); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pm-t td { padding: 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.pm-t td.c, .pm-t th.c { text-align: center; padding: 6px 4px; }
.pm-b, button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font: 800 14px var(--ui); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pm-b.primary, button.primary { background: var(--blue); color: #fff; }
.pm-b.warn, button.warn { border-color: var(--brown); color: var(--brown); }
.pm-b.small, button.small { min-height: 34px; padding: 0 10px; font-size: 13px; }
.pm-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pm-pill { padding: 6px 12px; border-radius: 999px; font: 800 13px var(--ui); white-space: nowrap; }
.pm-pill.ok { background: var(--greenbg); color: var(--green); }
.pm-pill.draft { background: var(--cream); color: var(--brown); }
.pm-pill.info { background: #EAF4FD; color: var(--blue); }
.pm-ok { font: 800 12px var(--ui); color: var(--green); }
.pm-no { font: 800 12px var(--ui); color: var(--brown); }
.pm-q { font: 800 12px var(--ui); color: var(--blue); }
.pm-mute { font: 800 12px var(--ui); color: var(--grey); }
.pm-l { display: block; font: 800 13px var(--ui); color: var(--grey); margin-bottom: 6px; }
.pm-f, .pm-card input[type=text], .pm-card input[type=date], .pm-card select, .pm-card textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); font: 500 15px system-ui, sans-serif; }
.pm-card textarea { padding: 10px 12px; min-height: 90px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.pm-card input[type=file] { font-size: 14px; max-width: 100%; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.pm-grid > * { min-width: 0; }
.pm-t form.pm-btns { flex-wrap: nowrap; }
.pm-grid.narrow { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pm-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.pm-check input { width: 22px; height: 22px; }
.pm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font: 800 14px var(--ui); }
.pm-list .ok { color: var(--green); } .pm-list .missing { color: var(--brown); } .pm-list .optional { color: var(--grey); }
.pm-li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 700; }
.pm-li small { display: block; font-weight: 500; color: var(--grey); overflow-wrap: anywhere; }
.pm-tag { flex-shrink: 0; width: 84px; font: 800 12px var(--ui); }
.pm-tag.NOWE, .pm-tag.GOTOWE { color: var(--green); } .pm-tag.ZMIANA { color: var(--blue); }
.pm-tag.BRAKUJE, .pm-tag.WYCOFANE, .pm-tag.USUNIĘTE, .pm-tag.UWAGA { color: var(--brown); }
.pm-tag.BEZ, .pm-tag.INFO { color: var(--grey); }
.pm-cost { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--brown); font: 800 14px var(--ui); }
.pm-cost > span { flex: 1 1 260px; }
.pm-cmd { display: block; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font: 13px/1.5 ui-monospace, Menlo, monospace; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-bar { height: 14px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.pm-bar > div { height: 100%; background: var(--blue); }
/* event calendar */
.pm-cal { min-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.pm-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font: 800 12px var(--ui); color: var(--grey); }
.pm-lane { position: relative; height: 36px; border-radius: 10px; background: var(--bg); }
.pm-lane .ev { position: absolute; top: 4px; height: 28px; border-radius: 8px; background: var(--blue); }
.pm-lane .ev.draft { background: var(--gold); }
.pm-lane .lead { position: absolute; top: 4px; height: 28px; border-radius: 8px; border: 2px dashed #B26A00; }
.pm-lane .lbl { position: absolute; top: 4px; height: 28px; display: flex; align-items: center; font: 800 12px var(--ui); color: var(--ink); white-space: nowrap; padding-left: 6px; }
/* words */
.pm-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.pm-w { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; text-align: center; }
.pm-w img, .pm-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #EAF4FD; padding: 6px; border: 1px solid var(--field); }
.pm-e { width: 72px; height: 72px; border: 2px dashed #B26A00; border-radius: 12px; background: #FFF8EC; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.pm-wn { font: 800 14px var(--ui); }
.pm-rows { display: flex; flex-direction: column; gap: 2px; }
.pm-rowl { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 800 14px var(--ui); }
.pm-rowl:hover, .pm-rowl[aria-current="page"] { background: #EAF4FD; }
.pm-scroll { max-height: 560px; overflow-y: auto; }
details > summary { cursor: pointer; font: 800 14px var(--ui); color: var(--blue); min-height: 32px; }
details[open] > summary { margin-bottom: 10px; }
/* loader 1A preview: gold bar with the goal icon at its end (design OpcjaPasek) */
.pm-phone { width: 234px; height: 420px; margin: 0 auto; border-radius: 22px; border: 4px solid var(--ink); background: linear-gradient(#76CBFA, #CDEFFF 60%, #9BD77A 60%); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.pm-phone .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pm-phone .fall { position: absolute; width: 28px; height: 28px; object-fit: contain; }
.pm-phone .visitor { position: absolute; top: 40px; left: 30px; width: 54px; height: 54px; object-fit: contain; }
.pm-phone .mifi { position: relative; width: 96px; height: 96px; object-fit: contain; }
.pm-loader { position: relative; display: flex; align-items: center; width: 200px; }
.pm-loader .track { flex-grow: 1; height: 24px; padding: 4px; border-radius: 999px; background: #FFF8EC; border: 3px solid var(--ink); margin-right: -14px; }
.pm-loader .fill { height: 100%; min-width: 12px; border-radius: 999px; background: var(--gold); }
.pm-loader .goal { width: 58px; height: 58px; flex-shrink: 0; border-radius: 999px; background: #FFF8EC; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; animation: pm-pulse 1.8s ease-in-out infinite; }
.pm-loader .goal img { width: 38px; height: 38px; object-fit: contain; }
@keyframes pm-pulse { 50% { transform: scale(1.08); } }
.pm-login { max-width: 420px; margin: 12vh auto; }
.pm-err { padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--brown); font-weight: 700; }

/* phone width: the nav becomes a scroll row on top, cards stack, tables scroll inside their wrapper */
@media (max-width: 700px) {
  .pm-shell { flex-direction: column; }
  .pm-side { flex: 0 0 auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 10px; gap: 2px; position: sticky; top: 0; z-index: 5; }
  .pm-brand { padding: 0 8px 0 0; font-size: 18px; }
  .pm-brand img { width: 32px; height: 32px; }
  .pm-brand span { display: none; }
  .pm-nav { padding: 8px 10px; font-size: 14px; }
  .pm-side form { margin: 0 0 0 6px; padding: 0; }
  .pm-side form button { width: auto; min-height: 36px; }
  main { padding: 16px 12px 32px; gap: 14px; }
  h1 { font-size: 26px; }
  .pm-card { padding: 14px; }
  .pm-row2 > *, .pm-aside { flex-basis: 100% !important; max-width: 100%; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-grid.narrow { grid-template-columns: 1fr 1fr 1fr; }
  .pm-words { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
