/* v32 — real Contour-style navigation, nested cards and modal creation. */
.tc-kontur .tc-action-strip{
 display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;
 padding:0 1px;margin:1px 0 17px;
}
.tc-kontur .tc-action-strip .tc-inline-actions{display:flex;gap:9px;flex-wrap:wrap}
.tc-kontur .tc-action-strip .btn.primary{min-height:43px}
.tc-kontur .stat-card.tc-stat-link{padding:0}
.tc-kontur .tc-stat-button{
 cursor:pointer;text-align:left;padding:22px 23px;width:100%;height:100%;border:0;
 background:transparent;color:inherit;display:block;border-radius:inherit;min-height:112px;
}
.tc-kontur .tc-stat-button:hover,.tc-kontur .tc-stat-button:focus-visible{
 background:#f0f4ff;outline:2px solid #94aaf9;outline-offset:-2px;
}
.tc-kontur .tc-stat-button strong{color:#264cb2}
.tc-kontur .tc-stat-button .tc-stat-arrow{float:right;color:#6c82a8;font-size:1.15rem}
.tc-kontur .record.tc-clickable-record{cursor:pointer}
.tc-kontur .record.tc-clickable-record:hover,.tc-kontur .record.tc-clickable-record:focus-within{
 border-color:#9cb3f8;background:#fafdff;
 box-shadow:0 8px 25px #2b4c8511;
}
.tc-kontur .tc-clickable-record h3{color:#233e78}
.tc-kontur .tc-record-open{
 margin-top:10px;color:#4164c8;font-size:.78rem;font-weight:740;
 border:0;background:none;padding:5px 0;
}
.tc-kontur .tc-record-open:hover{text-decoration:underline}
.tc-kontur .order-card,.tc-kontur .v26-card{cursor:pointer}
.tc-kontur .tc-job-link{background:none;border:0;text-align:left;color:#314dae;
 font-weight:740;cursor:pointer;padding:2px 0}
.tc-kontur .tc-job-link:hover{text-decoration:underline}
.tc-dialog-open{overflow:hidden}
.tc-dialog-backdrop{
 position:fixed;inset:0;z-index:130;background:#09172bc2;
 display:flex;align-items:center;justify-content:center;
 padding:20px;overflow:auto;
}
.tc-dialog-backdrop.hidden{display:none!important}
.tc-dialog-card{
 position:relative;background:#f9fbfe;width:min(490px,100%);
 max-height:min(92dvh,900px);
 display:flex;flex-direction:column;flex:none;
 border:1px solid #dde5f1;border-radius:17px;
 overflow:hidden;box-shadow:0 34px 105px #08142c77;color:#1b2c45;
}
.tc-dialog-card.wide{width:min(825px,100%)}
.tc-dialog-header{
 display:flex;align-items:center;justify-content:space-between;gap:16px;
 padding:19px 24px;background:#fff;border-bottom:1px solid #e3e9f2;flex:none;
}
.tc-dialog-header h2{font-size:1.22rem;font-weight:800;letter-spacing:-.02em;margin:0;
 overflow-wrap:anywhere}
.tc-dialog-close{display:grid;place-items:center;background:#f0f3f8;border:1px solid #dce4ef;
 width:37px;height:37px;min-width:37px;border-radius:9px;font-size:1.5rem;
 font-weight:500;color:#55677f;cursor:pointer}
.tc-dialog-close:hover{background:#e7eefa;color:#284b92}
.tc-dialog-body{padding:23px 25px 25px;overflow-y:auto;overscroll-behavior:contain}
.tc-dialog-form{display:grid;gap:12px}
.tc-dialog-form label{display:flex;flex-direction:column;gap:6px;margin:0;
 font-size:.8rem;color:#5a6b83;font-weight:720}
.tc-dialog-form input,.tc-dialog-form select,.tc-dialog-form textarea{
 border:1px solid #d2dce9;border-radius:9px;background:#fff;color:#253750;
 padding:11px 12px;min-height:43px;width:100%;font:inherit;
}
.tc-dialog-form textarea{resize:vertical}
.tc-dialog-form input:focus,.tc-dialog-form select:focus,.tc-dialog-form textarea:focus{
 outline:2px solid #9ab1ff;outline-offset:1px
}
.tc-client-select{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.tc-client-select .btn{white-space:nowrap;height:43px}
.tc-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;
 flex-wrap:wrap;margin-top:13px;padding-top:16px;border-top:1px solid #e3eaf3}
.tc-dialog-hint,.tc-dialog-loading{color:#78889f;line-height:1.5;font-size:.89rem}
.tc-dialog-error{color:#ad3245;overflow-wrap:anywhere;font-size:.9rem}
.tc-client-contact{color:#667b94;line-height:1.5;font-size:.86rem;padding-bottom:14px}
.tc-client-contact p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}
.tc-client-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
.tc-client-stats>div{background:#fff;border:1px solid #e1e8f3;
 padding:14px 16px;border-radius:11px;min-height:78px}
.tc-client-stats small{display:block;color:#74869a;font-size:.74rem;line-height:1.4;margin-bottom:5px}
.tc-client-stats strong{display:block;overflow-wrap:anywhere;font-size:1.13rem;color:#233c61}
.tc-client-section{margin-top:21px}
.tc-client-section h3{display:flex;gap:9px;align-items:center;margin-bottom:12px;font-size:1.03rem}
.tc-client-count{display:inline-flex;align-items:center;justify-content:center;font-size:.76rem;
 font-weight:790;border-radius:99px;color:#345fc1;background:#eaf0ff;min-width:26px;padding:3px 8px}
.tc-client-order-list{border-radius:11px;overflow:hidden;border:1px solid #e0e7f0;background:#fff}
.tc-client-order{display:flex;align-items:center;justify-content:space-between;gap:12px;
 width:100%;border:0;border-bottom:1px solid #edf1f6;background:#fff;
 padding:14px 17px;text-align:left;cursor:pointer;color:#223955;min-height:65px}
.tc-client-order:last-child{border-bottom:0}
.tc-client-order:hover,.tc-client-order:focus-visible{background:#f0f5ff}
.tc-client-order span:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.tc-client-order strong{font-size:.88rem;overflow-wrap:anywhere}
.tc-client-order small{color:#74879d;font-size:.75rem}
.tc-client-order>b{white-space:nowrap;color:#254b97;font-size:.86rem}
.tc-client-arrow{color:#5374bc;font-size:1.2rem}
.tc-client-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:13px 0;font-size:.82rem;color:#657892}
.tc-client-pagination .btn{min-height:34px;padding:6px 11px}
.tc-order-client-link{font:inherit;font-weight:730;color:#315bb6;background:none;border:0;
 padding:1px 0;cursor:pointer;text-align:left}
.tc-order-client-link:hover{text-decoration:underline}
.tc-kontur #app-nav [data-view="production"]{display:none!important}
@media(max-width:600px){
 .tc-dialog-backdrop{padding:0;align-items:stretch}
 .tc-dialog-card,.tc-dialog-card.wide{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}
 .tc-dialog-header{padding:15px 17px}
 .tc-dialog-body{padding:18px 16px}
 .tc-client-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tc-client-order{padding:13px 12px}
 .tc-client-order>b{white-space:normal;text-align:right}
}
@media(prefers-reduced-motion:reduce){.tc-dialog-card{animation:none}}
