:root{color-scheme:dark;--bg:#101417;--panel:#171d21;--panel2:#1d252a;--line:#344149;--text:#d7dfe3;--muted:#87969e;--blue:#55a9c9;--amber:#d6a84a;--red:#d96565;--green:#6eb987;--steel:#91a6b0}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:13px/1.42 "Segoe UI",Arial,sans-serif}body{display:flex;flex-direction:column}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.top{height:54px;border-bottom:1px solid var(--line);background:#13191c;display:flex;align-items:center;padding:0 22px;gap:24px}.brand{font-weight:700;letter-spacing:2px;color:#e3ebee}.brand i{color:var(--amber);font-style:normal}.top nav{display:flex;gap:5px}.top nav a{color:var(--steel);padding:17px 11px;border-bottom:2px solid transparent}.top nav a.active{color:#fff;border-color:var(--blue);background:#182126}.user{margin-left:auto;color:var(--muted)}main{width:min(1480px,calc(100% - 32px));margin:20px auto;flex:1}.page-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.page-title h1{font-size:18px;letter-spacing:.5px;margin:0}.page-title p{color:var(--muted);margin:3px 0 0}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.card,.panel{background:var(--panel);border:1px solid var(--line);box-shadow:0 4px 18px #0004}.card{padding:16px}.card .n{font-size:27px;font-weight:600;color:#eef3f5}.card .k{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.panel{margin-top:14px}.panel-head{padding:10px 13px;border-bottom:1px solid var(--line);background:var(--panel2);font-weight:600}.panel-body{padding:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.full{grid-column:1/-1}label{display:block;color:var(--steel);font-size:11px;text-transform:uppercase;letter-spacing:.55px;margin-bottom:5px}input,select,textarea{width:100%;border:1px solid #445159;background:#0f1417;color:var(--text);padding:8px 9px;border-radius:0;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}textarea.source{height:340px;font:12px/1.35 Consolas,monospace;white-space:pre}.check{display:flex;gap:8px;align-items:center;text-transform:none;font-size:13px;letter-spacing:0;color:var(--text)}.check input{width:auto}.btn{display:inline-block;border:1px solid #58707b;background:#26343b;color:#fff;padding:8px 13px;cursor:pointer;border-radius:0;font:inherit}.btn:hover{background:#30444e;text-decoration:none}.btn-primary{border-color:#4389a4;background:#286b85}.btn-danger{border-color:#8f4545;background:#6c3030}.btn-small{padding:5px 8px;font-size:12px}.toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.toolbar>div{min-width:150px}.toolbar .grow{flex:1}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:8px 9px;border-bottom:1px solid #2d383e;text-align:left;vertical-align:top}th{position:sticky;top:0;background:#20292e;color:#a8b6bd;font-size:10px;text-transform:uppercase;letter-spacing:.65px}tr:hover td{background:#1b2428}.badge{display:inline-block;padding:2px 6px;border:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:.45px}.badge.green{color:var(--green);border-color:#3c6d4c}.badge.red{color:var(--red);border-color:#784040}.badge.amber{color:var(--amber);border-color:#765f32}.muted{color:var(--muted)}.mono{font-family:Consolas,monospace}.flash{border:1px solid var(--line);padding:9px 12px;margin-bottom:10px;background:#192126}.flash.error{border-left:3px solid var(--red)}.flash.success{border-left:3px solid var(--green)}.login{width:min(430px,calc(100% - 30px));margin:9vh auto}.login .brand{font-size:18px;margin-bottom:12px}.login .panel-body{padding:22px}.login input{margin-bottom:12px}.candidate{display:grid;grid-template-columns:26px 120px 1fr 90px;gap:10px;padding:9px;border-bottom:1px solid #2d383e;align-items:center}.candidate input{width:auto}.confidence{height:5px;background:#2b3439}.confidence i{display:block;height:100%;background:var(--amber)}footer{padding:14px;text-align:center;color:#66757c;border-top:1px solid #273137;font-size:11px;letter-spacing:.4px}.pagination{display:flex;gap:5px;padding:12px}.pagination a,.pagination span{border:1px solid var(--line);padding:5px 8px}.status-line{display:grid;grid-template-columns:180px 1fr;padding:6px 0;border-bottom:1px solid #2a3439}@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.top{height:auto;align-items:flex-start;flex-wrap:wrap;padding:12px}.top nav{order:3;width:100%;overflow:auto}.top nav a{padding:7px}.candidate{grid-template-columns:26px 100px 1fr}.candidate .confidence{display:none}}@media(max-width:520px){.grid{grid-template-columns:1fr}main{width:calc(100% - 18px)}.user{display:none}}


/* === LISTA BLOKAD: czytelny układ kolumn === */
.blocks-table {
    width: 100%;
    table-layout: fixed;
}

.blocks-table th,
.blocks-table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    line-height: 1.35;
}

.blocks-table th:nth-child(1),
.blocks-table td:nth-child(1) {
    width: 45px;
}

.blocks-table th:nth-child(2),
.blocks-table td:nth-child(2) {
    width: 260px;
    min-width: 260px;
}

.blocks-table th:nth-child(3),
.blocks-table td:nth-child(3) {
    width: 300px;
    min-width: 300px;
}

.blocks-table th:nth-child(4),
.blocks-table td:nth-child(4) {
    width: 210px;
}

.blocks-table th:nth-child(5),
.blocks-table td:nth-child(5) {
    width: 90px;
}

.blocks-table th:nth-child(6),
.blocks-table td:nth-child(6) {
    width: 180px;
}

.blocks-table th:nth-child(7),
.blocks-table td:nth-child(7) {
    width: 180px;
}

.blocks-table th:nth-child(8),
.blocks-table td:nth-child(8) {
    width: 90px;
}

.blocks-table .badge {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
    white-space: nowrap !important;
}

.blocks-table .mono,
.blocks-table code,
.blocks-table a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blocks-table td form {
    margin: 0 0 4px 0;
}

.blocks-table td form:last-child {
    margin-bottom: 0;
}


/* === LISTA BLOKAD: FINAL FIX START === */
.blocks-table{
    width:100% !important;
    min-width:1650px !important;
    table-layout:auto !important;
}

.blocks-table th,
.blocks-table td{
    white-space:normal !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
    vertical-align:top !important;
    line-height:1.35 !important;
}

.blocks-table th:nth-child(1),
.blocks-table td:nth-child(1){
    width:50px !important;
    min-width:50px !important;
}

.blocks-table th:nth-child(2),
.blocks-table td:nth-child(2){
    width:190px !important;
    min-width:190px !important;
}

.blocks-table th:nth-child(3),
.blocks-table td:nth-child(3){
    width:220px !important;
    min-width:220px !important;
}

.blocks-table th:nth-child(4),
.blocks-table td:nth-child(4){
    width:310px !important;
    min-width:310px !important;
}

.blocks-table th:nth-child(5),
.blocks-table td:nth-child(5){
    width:190px !important;
    min-width:190px !important;
}

.blocks-table th:nth-child(6),
.blocks-table td:nth-child(6){
    width:80px !important;
    min-width:80px !important;
    text-align:left !important;
}

.blocks-table th:nth-child(7),
.blocks-table td:nth-child(7){
    width:190px !important;
    min-width:190px !important;
}

.blocks-table th:nth-child(8),
.blocks-table td:nth-child(8){
    width:155px !important;
    min-width:155px !important;
}

.blocks-table th:nth-child(9),
.blocks-table td:nth-child(9){
    width:110px !important;
    min-width:110px !important;
}

.blocks-table td:nth-child(2) .badge{
    display:inline-block !important;
    margin:0 4px 4px 0 !important;
    white-space:nowrap !important;
}

.blocks-table td:nth-child(4) a,
.blocks-table td:nth-child(7),
.blocks-table .mono{
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
}

.blocks-table td .actions{
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
    align-items:flex-start !important;
}

.blocks-table td .actions form{
    margin:0 !important;
}

.blocks-table td .btn{
    min-width:74px !important;
    text-align:center !important;
}
/* === LISTA BLOKAD: FINAL FIX END === */
