/* Shared modal polish: one border per field, consistent units and actions. */
body .ant-modal .ant-modal-content{
  border:1px solid #d9e1ec!important;
  border-radius:10px!important;
  box-shadow:0 28px 70px rgba(15,23,42,.24)!important;
}
body .ant-modal .ant-modal-header{
  min-height:60px!important;
  padding:18px 24px!important;
  background:#fbfcfe!important;
  border-bottom:1px solid #e8edf4!important;
}
body .ant-modal .ant-modal-title{
  color:#17233a!important;
  font-size:17px!important;
  font-weight:700!important;
  line-height:24px!important;
}
body .ant-modal .ant-modal-close{
  top:14px!important;
  inset-inline-end:14px!important;
  width:36px!important;
  height:36px!important;
  border-radius:7px!important;
  color:#7b8798!important;
}
body .ant-modal .ant-modal-close:hover{background:#eef2f7!important;color:#26364d!important;}
body .ant-modal .ant-modal-body{
  max-height:calc(100svh - 190px)!important;
  padding:22px 24px!important;
  overflow-y:auto!important;
}
body .ant-modal .ant-modal-footer{
  display:flex!important;
  min-height:68px!important;
  margin:0!important;
  padding:14px 24px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  background:#fff!important;
  border-top:1px solid #e8edf4!important;
}
body .ant-modal .ant-modal-footer .ant-btn{
  min-width:68px!important;
  height:40px!important;
  margin:0!important;
  padding:0 16px!important;
}

body .ant-modal .ant-input-affix-wrapper>input.ant-input,
body .ant-modal .ant-input-affix-wrapper input.ant-input,
body .ant-modal .ant-input-password input.ant-input{
  height:40px!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
body .ant-modal .ant-input-affix-wrapper-focused>input.ant-input:focus,
body .ant-modal .ant-input-password input.ant-input:focus{
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
body .ant-modal .ant-input-affix-wrapper .ant-input-password-icon{
  display:inline-flex!important;
  width:24px!important;
  height:24px!important;
  align-items:center!important;
  justify-content:center!important;
  color:#7b8798!important;
}

body .ant-modal .ant-input-number-group-wrapper{width:100%!important;}
body .ant-modal .ant-input-number-group-wrapper .ant-input-number-group{
  display:flex!important;
  width:100%!important;
  align-items:center!important;
}
body .ant-modal .ant-input-number-group-wrapper .ant-input-number{
  flex:1 1 auto!important;
  width:auto!important;
  border-radius:7px!important;
}
body .ant-modal .ant-input-number-group-wrapper .ant-input-number-group-addon{
  display:inline-flex!important;
  width:auto!important;
  height:42px!important;
  padding:0 0 0 8px!important;
  align-items:center!important;
  color:#536176!important;
  font-size:13px!important;
  font-weight:600!important;
  white-space:nowrap!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* License type sections flow independently down each column. */
body .ant-modal .form-grid[data-v-91ebb674]{
  grid-template-rows:auto auto auto!important;
  gap:0 24px!important;
  align-items:start!important;
}
body .ant-modal .form-grid[data-v-91ebb674]>.form-section{align-self:start!important;}
body .ant-modal .form-grid[data-v-91ebb674]>.form-section:nth-child(1){grid-column:1;grid-row:1 / span 2;}
body .ant-modal .form-grid[data-v-91ebb674]>.form-section:nth-child(2){grid-column:2;grid-row:1;}
body .ant-modal .form-grid[data-v-91ebb674]>.form-section:nth-child(3){grid-column:1;grid-row:3;}
body .ant-modal .form-grid[data-v-91ebb674]>.form-section:nth-child(4){grid-column:2;grid-row:2 / span 2;}
body .ant-modal .form-grid[data-v-91ebb674] .section-title{
  margin-bottom:14px!important;
  padding-bottom:8px!important;
  color:#8290a4!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  border-bottom:1px solid #e8edf4!important;
}
body .ant-modal .form-grid[data-v-91ebb674] .ant-form-item{margin-bottom:14px!important;}

body .ant-modal .modal-tabs[data-v-2f4fe8d0]{
  min-height:48px!important;
  margin:-6px 0 20px!important;
  align-items:flex-end!important;
  border-bottom:1px solid #e5eaf1!important;
}
body .ant-modal .modal-tab[data-v-2f4fe8d0]{
  display:inline-flex!important;
  min-height:48px!important;
  padding:0 22px!important;
  align-items:center!important;
  color:#7a879a!important;
  font-size:14px!important;
  font-weight:650!important;
  letter-spacing:0!important;
}
body .ant-modal .modal-tab.active[data-v-2f4fe8d0]{color:#2563eb!important;border-bottom-color:#2563eb!important;}
body .ant-modal .perm-row[data-v-2f4fe8d0]{
  min-height:42px!important;
  padding:0 12px!important;
  border:1px solid #edf1f6!important;
  border-radius:7px!important;
  background:#f8fafc!important;
}
body .ant-modal .perm-row[data-v-2f4fe8d0]:hover{background:#f3f7fc!important;border-color:#dce5f0!important;}

@media (max-width:768px){
  body .ant-modal{max-width:calc(100vw - 20px)!important;margin:10px auto!important;top:12px!important;}
  body .ant-modal .ant-modal-header{padding:16px 18px!important;}
  body .ant-modal .ant-modal-body{max-height:calc(100svh - 166px)!important;padding:18px!important;}
  body .ant-modal .ant-modal-footer{padding:12px 18px!important;}
  body .ant-modal .form-grid[data-v-91ebb674]{grid-template-columns:1fr!important;grid-template-rows:none!important;}
  body .ant-modal .form-grid[data-v-91ebb674]>.form-section{grid-column:1!important;grid-row:auto!important;}
  body .ant-modal .perm-grid[data-v-2f4fe8d0]{grid-template-columns:1fr!important;}
}
