.leave-entry-dialog{
  width:min(1040px,calc(100vw - 40px));
  max-height:calc(100vh - 36px);
  overflow:hidden;
}
.leave-entry-dialog .detail-dialog{
  max-height:calc(100vh - 36px);
  overflow:auto;
  padding:28px 30px 34px;
}
.leave-entry-dialog .dialog-head{
  position:sticky;
  top:-28px;
  z-index:5;
  margin:-28px -30px 22px;
  padding:28px 30px 18px;
  background:#fff;
  border-bottom:1px solid #e7ecea;
}
.batch-editor~.transaction-tabs,
.batch-editor~.transaction-form,
.batch-editor~.history-label,
.batch-editor~.dialog-actions{display:none!important}
.batch-editor{margin-top:22px}
.batch-heading,.batch-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
.batch-heading{margin-bottom:14px}
.batch-heading b{font-size:17px;color:#163d37}
.batch-heading small{display:block;margin-top:5px;color:#738681}
.batch-leave-row{
  position:relative;
  display:grid;
  grid-template-columns:120px minmax(150px,1fr) minmax(165px,1fr) 92px 135px 38px;
  gap:12px;
  align-items:end;
  padding:17px;
  margin-bottom:12px;
  border:1px solid #dce8e4;
  border-radius:14px;
  background:#f8fbfa;
}
.batch-field{display:grid;gap:7px;min-width:0}
.batch-field label{color:#5e746e;font-size:12px;font-weight:800}
.batch-field label small{font-size:10px;font-weight:600;color:#92a09c}
.batch-field input,.batch-field select{
  width:100%;min-width:0;height:44px;padding:8px 11px;
  border:1px solid #cfdeda;border-radius:9px;background:#fff;color:#173a35
}
.batch-field input:focus,.batch-field select:focus{outline:2px solid #b7ded5;border-color:#168572}
.batch-date-field input{min-width:165px}
.batch-memo{grid-column:1/-2}
.batchRemove{
  grid-column:6;grid-row:1;
  width:36px;height:36px;margin-bottom:4px;border:0;border-radius:50%;
  background:#edf2f0;color:#49645e;font-size:20px;cursor:pointer
}
.batchRemove:hover{background:#fbe9e9;color:#c43c3c}
.batch-footer{margin-top:16px;padding-top:17px;border-top:1px solid #dfe9e6}
.batch-footer span{max-width:620px;color:#60756f;font-size:12px;line-height:1.55}
.batch-footer .primary{white-space:nowrap;padding:12px 18px}

@media(max-width:900px){
  .leave-entry-dialog{width:min(760px,calc(100vw - 28px))}
  .batch-leave-row{grid-template-columns:1fr 1fr 1fr}
  .batch-memo{grid-column:1/-1}
  .batchRemove{position:absolute;right:-8px;top:-8px;margin:0}
  .batch-footer{align-items:stretch;flex-direction:column}
  .batch-footer .primary{width:100%}
}
@media(max-width:600px){
  .leave-entry-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
  .leave-entry-dialog .detail-dialog{max-height:calc(100vh - 16px);padding:20px 16px 26px}
  .leave-entry-dialog .dialog-head{top:-20px;margin:-20px -16px 18px;padding:20px 16px 15px}
  .batch-leave-row{grid-template-columns:1fr 1fr;padding:15px 12px}
  .batch-date-field,.batch-memo{grid-column:1/-1}
  .batch-heading{align-items:stretch;flex-direction:column}
  .batch-heading button{width:100%}
}
