.order-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin:4px 0 18px;
  padding:0 0 16px;
  border-bottom:1px solid #dfe5ec;
}
.order-intro .sec{margin:0 0 5px}
.order-intro p{max-width:790px;margin:0;color:#596579;font-size:14px;line-height:1.55}
.order-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.order-card{
  display:flex;
  min-width:0;
  min-height:210px;
  flex-direction:column;
  align-items:flex-start;
  padding:18px;
  border:1px solid #dce3eb;
  border-radius:10px;
  background:#fff;
}
.order-card-type{margin-bottom:10px;color:#6b778c;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.order-card h3{margin:0 0 8px;color:#152238;font-size:16px;line-height:1.4}
.order-card p{margin:0 0 18px;color:#667085;font-size:13px;line-height:1.5}
.order-card .btn-primary{margin-top:auto}
.order-no-access{margin-top:auto!important;color:#7a8494!important;font-size:12px!important}
.order-load{min-height:24px;margin:10px 0 18px;color:#667085;font-size:13px}
.order-archive{margin-top:8px;padding-top:18px;border-top:1px solid #dfe5ec}
.order-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:10px}
.order-section-head h3{margin:0 0 3px;color:#172033;font-size:18px}
.order-section-head p{margin:0;color:#667085;font-size:13px}
.order-empty{display:flex;flex-direction:column;gap:4px;padding:24px;border:1px dashed #ccd5df;background:#fafbfc;color:#667085;text-align:center}
.order-empty b{color:#344054;font-size:14px}
.order-empty span{font-size:13px;line-height:1.5}
.order-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #dfe5ec;background:#fff}
.order-history-table{width:100%;min-width:900px;border-collapse:collapse;color:#344054;font-size:13px}
.order-history-table th{padding:10px 12px;border-bottom:1px solid #dfe5ec;background:#f7f9fb;color:#5c6778;font-size:11.5px;font-weight:700;text-align:left;white-space:nowrap}
.order-history-table td{padding:11px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle}
.order-history-table tbody tr:last-child td{border-bottom:0}
.order-history-table td b{display:block;color:#172033;font-size:13px;line-height:1.4}
.order-history-table td small{display:block;margin-top:3px;color:#7b8492;font-size:11.5px;line-height:1.35}
.order-other{margin-top:20px;border-top:1px solid #dfe5ec}
.order-other summary{padding:16px 0;color:#344054;font-size:14px;font-weight:700;cursor:pointer}
.order-other-body{padding:0 0 8px}
.order-legacy-requisites{max-width:720px;margin:0 0 16px}
body.order-modal-open{overflow:hidden}
.order-modal-overlay{
  position:fixed;
  inset:0;
  z-index:11000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(13,28,52,.58);
}
.order-modal{
  width:min(1040px,100%);
  max-height:calc(100vh - 40px);
  overflow:auto;
  border:1px solid #cfd7e2;
  border-radius:12px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,32,55,.28);
}
.order-modal-head{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:20px 24px 17px;
  border-bottom:1px solid #dfe5ec;
  background:#fff;
}
.order-modal-head span{color:#a21e2a;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.order-modal-head h2{margin:5px 0 5px;color:#12213a;font-size:22px;line-height:1.3}
.order-modal-head p{margin:0;color:#667085;font-size:12.5px;line-height:1.45}
.order-modal-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #d4dbe5;background:#fff;color:#344054;font-size:25px;line-height:1;cursor:pointer}
.order-modal-close:hover{background:#f4f6f8}
#su-order-form{padding:0 24px 22px}
.order-form-error{display:none;margin:16px 0 0;padding:11px 13px;border-left:3px solid #b42318;background:#fff3f1;color:#8f1c15;font-size:13px;line-height:1.45}
.order-form-error.is-visible{display:block}
.order-form-section{padding:20px 0;border-bottom:1px solid #e3e8ef}
.order-form-section h3{margin:0 0 13px;color:#172033;font-size:16px}
.order-form-section>.field{margin-top:12px}
.order-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px}
.order-form-section .field{min-width:0}
.order-form-section .field label,.order-employee-search span{display:block;margin-bottom:6px;color:#344054;font-size:12px;font-weight:700}
.order-form-section input:not([type="radio"]):not([type="checkbox"]),.order-form-section select,.order-form-section textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #bcc7d5;
  border-radius:7px;
  background:#fff;
  color:#172033;
  font:inherit;
}
.order-form-section input:not([type="radio"]):not([type="checkbox"]),.order-form-section select{height:44px;padding:0 11px}
.order-form-section textarea{padding:10px 11px;line-height:1.5;resize:vertical}
.order-form-section input[readonly]{background:#f4f6f8;color:#475467}
.order-form-section input:focus,.order-form-section select:focus,.order-form-section textarea:focus{outline:2px solid rgba(38,84,155,.18);border-color:#3868aa}
.order-form-section .field-invalid{border-color:#b42318!important;outline:2px solid rgba(180,35,24,.12)!important}
.order-field-help{display:block;margin-top:5px;color:#7a8494;font-size:11.5px;line-height:1.35}
.order-form-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:11px}
.order-form-title-row h3{margin:0 0 3px}
.order-form-title-row p{margin:0;color:#667085;font-size:12.5px}
.order-employee-search{width:min(320px,42%);margin:0}
.order-employee-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px;overflow:auto;border:1px solid #d6dde6}
.order-employee{display:flex;min-width:0;align-items:flex-start;gap:10px;padding:11px 12px;border-bottom:1px solid #edf0f4;cursor:pointer}
.order-employee:nth-child(odd){border-right:1px solid #edf0f4}
.order-employee:hover{background:#f8fafc}
.order-employee input{width:17px;height:17px;flex:0 0 17px;margin:2px 0 0}
.order-employee span{min-width:0;flex:1}
.order-employee b,.order-employee small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-employee b{color:#25334a;font-size:13px}
.order-employee small{margin-top:2px;color:#667085;font-size:11.5px}
.order-employee.is-incomplete{background:#fff8f5;cursor:not-allowed}
.order-employee.is-incomplete b,.order-employee.is-incomplete small{color:#9c3b31}
.order-employee.is-unqualified{background:#fffaf2;cursor:not-allowed}
.order-employee .order-qualification{margin-top:5px;overflow:visible;text-overflow:clip;white-space:normal;line-height:1.35}
.order-employee .order-qualification.is-error{color:#9c3b31}
.order-employee .order-qualification.is-ok{color:#23734b}
.so-chair-wrap{max-width:520px}
.order-signer{display:grid;grid-template-columns:1fr 1.2fr 1.4fr auto;gap:10px;align-items:end;padding:11px 0;border-bottom:1px solid #edf0f4}
.order-signer:first-child{padding-top:0}
.order-signer:last-child{border-bottom:0}
.order-signer-remove{min-height:42px;padding:0 9px;border:0;background:none;color:#9d2e27;font-size:12px;font-weight:700;cursor:pointer}
.order-format-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:680px}
.order-format-row label{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #cfd7e2;cursor:pointer}
.order-format-row label:has(input:checked){border-color:#315f9e;background:#f3f7fc}
.order-format-row input{margin-top:3px}
.order-format-row b,.order-format-row small{display:block}
.order-format-row b{color:#172033;font-size:13px}
.order-format-row small{margin-top:2px;color:#667085;font-size:11.5px}
.order-confirm{display:flex;align-items:flex-start;gap:10px;max-width:860px;margin-top:16px;color:#344054;font-size:13px;line-height:1.5;cursor:pointer}
.order-confirm input{width:18px;height:18px;flex:0 0 18px;margin-top:1px}
.order-modal-actions{position:sticky;bottom:-22px;z-index:2;display:flex;justify-content:flex-end;gap:9px;margin:0 -24px;padding:16px 24px;border-top:1px solid #dfe5ec;background:#fff}
.order-modal-actions button{min-height:42px}
.order-progress{min-height:20px;margin-top:10px;color:#596579;font-size:12.5px;text-align:right}

@media(max-width:1100px){
  .order-card-grid{grid-template-columns:1fr}
  .order-card{min-height:0}
}
@media(max-width:760px){
  .order-modal-overlay{align-items:stretch;padding:0}
  .order-modal{width:100%;max-height:100vh;border:0;border-radius:0}
  .order-modal-head{padding:17px 16px 14px}
  .order-modal-head h2{font-size:19px}
  #su-order-form{padding:0 16px 18px}
  .order-form-grid{grid-template-columns:1fr}
  .order-form-title-row{align-items:stretch;flex-direction:column}
  .order-employee-search{width:100%}
  .order-employee-list{grid-template-columns:1fr;max-height:320px}
  .order-employee:nth-child(odd){border-right:0}
  .order-signer{grid-template-columns:1fr}
  .order-signer-remove{justify-self:start;padding:0}
  .order-modal-actions{bottom:-18px;margin:0 -16px;padding:12px 16px}
}
@media(max-width:600px){
  .order-intro{flex-direction:column;gap:9px}
  .order-format-row{grid-template-columns:1fr}
  .order-modal-actions{flex-direction:column-reverse}
  .order-modal-actions button{width:100%;min-height:46px}
  .order-history-table{min-width:0}
  .order-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .order-history-table,.order-history-table tbody,.order-history-table tr,.order-history-table td{display:block;width:100%;box-sizing:border-box}
  .order-history-table tr{padding:10px 12px;border-bottom:1px solid #dfe5ec}
  .order-history-table td{display:grid;grid-template-columns:112px 1fr;gap:10px;padding:6px 0;border:0}
  .order-history-table td::before{content:attr(data-label);color:#667085;font-size:11px;font-weight:700}
  .order-history-table td .btn-ghost{width:100%;min-height:44px}
}
