.template-editor-modal{max-width:760px;max-height:90dvh;display:flex;flex-direction:column;overflow:hidden}
.template-editor-modal .modal-header,.template-editor-modal .modal-footer{flex-shrink:0}
.template-editor-modal .modal-body{min-height:0;overflow:auto}
.template-editor-location{font-weight:600;color:#465760;margin-bottom:14px}
.template-editor-name{font-size:13px;color:#27333a;font-weight:600}
.template-editor-name input{font-weight:400}
.template-editor-hint{margin:14px 0 18px!important;font-size:13px!important;line-height:1.55!important;color:#52616a!important}
#template-editor-shifts{display:grid;gap:10px;margin-bottom:14px}
.template-editor-shift{border:1px solid #dce3e7;border-radius:8px;padding:12px;background:#f7f9fa}
.template-editor-row{display:grid;grid-template-columns:minmax(130px,1.4fr) repeat(2,minmax(95px,1fr)) 38px;gap:10px;align-items:end}
.template-editor-row label{font-size:12px;font-weight:600;color:#34444d;min-width:0;margin-bottom:0}
.template-editor-row select{width:100%;font-size:14px;font-weight:500;background:#fff}
.template-editor-remove{height:42px;padding:0!important;font-size:24px!important;line-height:1;color:#8a4141;background:white}
.template-editor-note{margin-top:8px;font-size:12px;color:#586973}
.template-editor-note summary{cursor:pointer;width:fit-content;padding:3px 0}
.template-editor-note label{margin-top:7px}
.template-editor-note textarea{width:100%;font-size:13px;background:white;resize:vertical}
.template-editor-empty{padding:18px;border:1px dashed #cbd6dc;border-radius:8px;color:#536770}
#template-editor-add{font-size:13px;font-weight:600}
@media(max-width:520px){
  .template-editor-shift{padding:10px}
  .template-editor-row{grid-template-columns:1fr 1fr 36px;gap:8px}
  .template-editor-day{grid-column:1/3}
  .template-editor-row>.template-editor-remove{grid-column:3;grid-row:1/3;align-self:center}
  .template-editor-row label:nth-child(2){grid-column:1;grid-row:2}
  .template-editor-row label:nth-child(3){grid-column:2;grid-row:2}
  .template-editor-modal .modal-footer{gap:8px}
}
