/* Panel licencji MotivoSerwis – wygląd jak w makiecie (ciemne menu, niebieski kolor główny). */
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",Inter,system-ui,-apple-system,sans-serif;color:#0F172A;background:#F4F6FA;font-size:14px}
a{color:#1565D8}a:hover{color:#0D4FB0}
h1{margin:0;font-size:24px;font-weight:800}
h2{margin:0;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.sidebar{flex:1 1 298px;max-width:298px;background:#0F172A;color:#E2E8F0;padding:22px 14px;display:flex;flex-direction:column;gap:4px}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;border-bottom:1px solid #1E293B;margin-bottom:14px;text-decoration:none}
.brand img{width:62px;height:auto}
.brand > span{display:flex;flex-direction:column}
.brand-name{font-weight:800;font-size:20px;font-style:italic;color:#fff}.brand-name span{color:#38BDF8}
.brand small{font-size:11px;color:#94A3B8;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.nav{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:9px;color:#CBD5E1;text-decoration:none;font-size:14px;font-weight:600}
.nav:hover{background:#1E293B;color:#fff}
.nav.active{background:#1565D8;color:#fff}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.grow{flex-grow:1}
.me{display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid #1E293B;margin:0}
.avatar{width:30px;height:30px;border-radius:50%;background:#1565D8;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;flex:none}
.me-text{display:flex;flex-direction:column;flex-grow:1;min-width:0}.me-text b{font-size:12.5px;color:#fff}.me-text small{font-size:11px;color:#94A3B8;overflow:hidden;text-overflow:ellipsis}
.icon-btn{background:none;border:0;color:#94A3B8;cursor:pointer;padding:6px;min-width:32px;min-height:32px}.icon-btn:hover{color:#fff}
.main{flex:999 1 560px;min-width:0;padding:26px 30px}
.content{width:100%;display:flex;flex-direction:column;gap:18px}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.muted{color:#475569;font-size:13px}.hint{font-size:12px;color:#64748B;margin:0}
.back{font-size:13px;font-weight:600;text-decoration:none}
.card{background:#fff;border:1px solid #E3E8EF;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:14px}
.card.flush{padding:0;gap:0;overflow:hidden}
.card-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #E3E8EF;flex-wrap:wrap;gap:8px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;align-items:start}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tile{background:#fff;border:1px solid #E3E8EF;border-radius:12px;padding:16px;text-decoration:none;color:inherit}
.tile .label{font-size:12px;font-weight:600;color:#475569}.tile .value{font-size:26px;font-weight:800;margin-top:6px}
.tile.warn{background:#FFF7ED;border-color:#FED7AA}.tile.warn .label{color:#9A3412}.tile.warn .value{color:#C2410C}
.value.green{color:#15803D}.value.red{color:#B91C1C}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:13px;font-weight:600;height:40px;padding:0 14px;border-radius:9px;border:1px solid #CBD5E1;background:#fff;color:#0F172A;cursor:pointer;text-decoration:none}
.btn:hover{border-color:#94A3B8}
.btn.primary{background:#1565D8;border-color:#1565D8;color:#fff}.btn.primary:hover{background:#0D4FB0}
.btn.danger{color:#B91C1C;border-color:#FECACA}.btn.danger:hover{background:#FEF2F2}
.btn.small{height:34px;font-size:12.5px;padding:0 12px}
.btn.big{height:46px;font-size:14px;font-weight:700}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.actions form{margin:0}
.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}
.badge.green{background:#DCFCE7;color:#166534}.badge.orange{background:#FFEDD5;color:#9A3412}.badge.red{background:#FEE2E2;color:#991B1B}
.badge.blue{background:#DBEAFE;color:#1E40AF}.badge.gray{background:#E2E8F0;color:#334155}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #E3E8EF}
.search{display:flex;align-items:center;gap:8px;background:#F4F6FA;border:1px solid #E3E8EF;border-radius:9px;padding:0 12px;height:40px;flex:0 1 340px;color:#64748B}
.search input{border:0;background:transparent;outline:none;font:inherit;font-size:13px;width:100%}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:12px;font-weight:600;padding:0 12px;height:32px;display:inline-flex;align-items:center;border-radius:16px;border:1px solid #E3E8EF;background:#fff;color:#334155;text-decoration:none}
.chip.on{border-color:#1565D8;background:#EAF2FD;color:#0D4FB0}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{background:#F8FAFC;text-align:left;color:#475569;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;font-weight:700}
td{padding:12px;border-top:1px solid #EEF1F6;vertical-align:middle}
th:first-child,td:first-child{padding-left:16px}th:last-child,td:last-child{padding-right:16px}
td .sub{font-size:12px;color:#64748B}
.row-link{font-weight:700;text-decoration:none}
.empty{padding:26px;text-align:center;color:#64748B}
.key{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:17px;font-weight:700;letter-spacing:.06em;background:#F1F5F9;border:1px dashed #94A3B8;border-radius:8px;padding:9px 14px}
.key.big{font-size:20px;text-align:center;display:block}
dl.facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;font-size:13px}
dl.facts dt{font-size:12px;color:#475569;font-weight:600}dl.facts dd{margin:2px 0 0;font-weight:700}
dl.facts .wide{grid-column:1/-1}
.note{background:#FFFBEB;border:1px solid #FDE68A;border-radius:8px;padding:10px 12px;font-size:13px;color:#78350F;white-space:pre-line}
.alert{border-radius:10px;padding:12px 14px;font-size:13px;font-weight:600}
.alert.ok{background:#DCFCE7;color:#166534;border:1px solid #86EFAC}.alert.err{background:#FEE2E2;color:#991B1B}
.success-card{border:2px solid #22C55E}
form.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
label.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#334155}
label.field.wide{grid-column:1/-1}
input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],select,textarea{font:inherit;font-size:13px;font-weight:500;height:40px;padding:0 12px;border:1px solid #CBD5E1;border-radius:8px;color:#0F172A;background:#fff;width:100%}
textarea{height:auto;padding:10px 12px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:#1565D8;box-shadow:0 0 0 3px #DBEAFE}
.kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kind{position:relative}
.kind input{position:absolute;opacity:0}
.kind span{display:flex;flex-direction:column;padding:14px;border-radius:10px;border:2px solid #E3E8EF;cursor:pointer;min-height:72px}
.kind b{font-size:14px}.kind small{font-size:12px;color:#475569;margin-top:4px}
.kind input:checked + span{border-color:#1565D8;background:#EAF2FD}
.kind input:focus-visible + span{box-shadow:0 0 0 3px #93C5FD}
.timeline{list-style:none;margin:0;padding:0;font-size:13px}
.timeline li{display:flex;gap:14px;padding:9px 0;border-bottom:1px solid #EEF1F6}.timeline li:last-child{border-bottom:0}
.timeline time{width:130px;color:#475569;flex:none}
.timeline .who{color:#64748B;margin-left:auto;white-space:nowrap}
.warn-text{color:#C2410C;font-weight:600}.err-text{color:#B91C1C;font-weight:600}
.layout2{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.layout2 > .wide{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:16px}.layout2 > .side{flex:1 1 300px;display:flex;flex-direction:column;gap:14px}
dialog{border:0;border-radius:14px;padding:24px;max-width:440px;box-shadow:0 20px 50px rgba(15,23,42,.25)}dialog::backdrop{background:rgba(15,23,42,.45)}
.auth{min-height:100vh;display:flex;flex-wrap:wrap;background:#F4F6FA}
.auth-brand{flex:1 1 420px;background:#0F172A;color:#E2E8F0;padding:56px;display:flex;flex-direction:column;justify-content:center;gap:22px}
.auth-brand img{width:200px;height:auto}
.auth-name{font-weight:800;font-size:40px;font-style:italic;color:#fff}.auth-name span{color:#38BDF8}
.auth-brand p{font-size:15px;color:#94A3B8;max-width:380px;line-height:1.6;margin:0}
.auth-form{flex:999 1 480px;display:flex;align-items:center;justify-content:center;padding:40px}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid #E3E8EF;border-radius:16px;padding:32px;display:flex;flex-direction:column;gap:16px}
@media (max-width:760px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.kinds{grid-template-columns:1fr}form.fields{grid-template-columns:1fr}.sidebar{max-width:none}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
