.kip-dialog{width:min(1180px,95vw);max-width:95vw;max-height:90vh;margin:auto;padding:0;border:1px solid #cbd5e1;border-radius:14px;color:#172b4d;background:#fff;box-shadow:0 20px 70px #0005;font:14px Arial,sans-serif}
.kip-adjustment{min-width:0;margin:18px 0;padding:14px;border:1px solid #9eb9dc;border-radius:9px;background:#f8fbff}.kip-adjustment legend{font-weight:700;color:#224b85;padding:0 6px}.kip-adjustment .kip-scroll{background:#fff;margin:12px 0}.kip-adjustment th:not(:first-child),.kip-adjustment td:not(:first-child){white-space:nowrap}.kip-adjustment input[type=date]{padding:6px;border:1px solid #b4c5da;border-radius:5px}.kip-adjustment label{line-height:1.5}
.kip-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.kip-dialog .kip-body{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}.kip-dialog header,.kip-dialog footer,.kip-workflow{flex-shrink:0}.kip-workflow{padding:10px 18px;background:#f8fafc;border-bottom:1px solid #cbd5e1}.kip-workflow-actions{display:flex;gap:6px;flex-wrap:wrap}.kip-workflow-actions button{font-size:12px}.kip-dialog .kip-phase{margin:8px 0 0;padding:8px 10px;border-radius:6px;background:#e2e8f0;font-weight:600}.kip-phase[data-state=active],.kip-phase[data-state=released]{background:#dcfce7;color:#166534}.kip-phase[data-state=busy]{background:#dbeafe;color:#1e40af}.kip-phase[data-state=error],.kip-phase[data-state=warning]{background:#fff1d6;color:#854d0e}.kip-dialog footer span{flex:1;min-width:0;max-height:110px;overflow:auto}.kip-dialog footer button{flex-shrink:0}@media(max-height:600px){.kip-workflow{padding:6px 10px}.kip-workflow-actions{flex-wrap:nowrap;overflow-x:auto}.kip-workflow-actions button{white-space:nowrap}.kip-dialog .kip-phase{padding:5px;margin-top:5px}}
#kan-import-save{border-top:1px solid #cbd5e1;margin-top:18px;padding-top:8px}#kan-import-save button{margin:8px}.kip-conflicts{white-space:pre-wrap;max-height:200px;overflow:auto;color:#991b1b}#kan-import-save label{display:block;margin:12px 0}
.kip-dialog::backdrop{background:#0f172a88}.kip-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#2549ce;color:white}.kip-dialog h2{margin:0;font-size:18px}.kip-dialog h3{font-size:16px;margin:20px 0 8px}.kip-body{padding:18px;overflow:auto;max-height:calc(90vh - 145px)}.kip-dialog p{line-height:1.5;margin:9px 0}.kip-note{background:#eff6ff;border-left:3px solid #2563eb;padding:10px}.kip-dialog select,.kip-dialog button{font:inherit;padding:7px 10px;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#172b4d}.kip-dialog select{max-width:320px}.kip-dialog button{cursor:pointer}.kip-dialog button:disabled{opacity:.5;cursor:default}.kip-dialog :focus-visible{outline:2px solid #2563eb;outline-offset:2px}.kip-dialog footer{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:12px 18px;border-top:1px solid #e2e8f0}.kip-dialog footer button{background:#2563eb;color:white}.kip-scroll{overflow:auto;max-height:350px;border:1px solid #e2e8f0;border-radius:7px}.kip-dialog table{width:100%;border-collapse:collapse;font-size:13px}.kip-dialog th{position:sticky;top:0;background:#e9eff8;text-align:left}.kip-dialog th,.kip-dialog td{padding:9px;border-bottom:1px solid #e2e8f0;vertical-align:middle}.kip-dialog tr:nth-child(even){background:#f8fafc}.kip-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.kip-controls label{display:flex;gap:6px;align-items:center}#kan-import-warnings{white-space:pre-wrap;font:13px/1.5 Arial,sans-serif;max-height:130px;overflow:auto;color:#854d0e}@media(max-width:650px){.kip-dialog h2{font-size:16px}.kip-body{padding:12px}.kip-dialog footer{align-items:flex-start}.kip-dialog select{max-width:240px}}
