[hidden] {
  display: none !important;
}
.notice {
  padding: 14px 18px;
  margin: 12px 0;
  background: #e8f5ed;
  border: 1px solid #bed7c8;
  border-radius: 10px;
  color: #174d37;
  white-space: pre-wrap;
}
.notice.error {
  background: #fff0ec;
  border-color: #efc4b8;
  color: #9e2a20;
}
.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.tools input {
  flex: 1;
  min-width: 180px;
}
.functional-form label,
.edit-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.functional-form input,
.functional-form select,
.functional-form textarea,
.edit-dialog input,
.edit-dialog select,
.edit-dialog textarea,
.tools input,
.tools select {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccdad1;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}
.functional-form,
.edit-dialog .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.edit-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 26px;
  color: #153d33;
}
.edit-dialog::backdrop {
  background: #142c2877;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
table {
  width: 100%;
}
.table-wrap {
  overflow: auto;
}
td .btn-outline,
td .btn-sm {
  margin: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.panel {
  overflow: hidden;
}
.panel.pad {
  padding: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 14px;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.functional-form > *, .edit-dialog .form-grid > * {min-width:0;}
.benef-fields,.beneficiary-fields {min-width:0;max-width:100%;}
.beneficiary-grid {width:100%;min-width:0;border:1px solid #dae5dd;border-radius:12px;max-width:100%;background:#fff;}
.beneficiary-grid table {min-width:1080px;border-collapse:collapse;table-layout:fixed;}
.beneficiary-grid caption {text-align:left;padding:12px 14px;font-size:13px;color:#586b62;}
.beneficiary-grid th {background:#edf5f1;color:#174d37;text-align:left;font-size:13px;padding:12px 10px;border:1px solid #dce6e0;}
.beneficiary-grid td {padding:6px;border:1px solid #dce6e0;vertical-align:middle;}
.beneficiary-grid .benef-edit {display:table-row;}
.beneficiary-grid input {min-width:0;width:100%;padding:10px 8px;font:inherit;font-size:14px;border:1px solid transparent;border-radius:4px;background:#fff;}
.beneficiary-grid input:focus {outline:2px solid #189e78;outline-offset:-2px;background:#f5fffa;}
.beneficiary-grid th:first-child {width:220px;}
.beneficiary-grid th:nth-child(2) {width:145px;}
.beneficiary-grid th:nth-child(3) {width:135px;}
.beneficiary-grid th:nth-child(4) {width:160px;}
.beneficiary-grid th:last-child {width:85px;}
.beneficiary-grid .benef-date {font-size:12px;color:#586b62;line-height:1.5;}
.add-beneficiary {margin-top:14px;padding:11px 16px;border:1px solid #189e78;border-radius:8px;background:#fff;color:#00554e;font:inherit;font-weight:600;}
.benef-grid-help {font-size:13px;color:#586b62;margin-top:10px;}
.edit-dialog.affiliate-dialog {width:min(1160px,calc(100% - 32px));}
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
}
.access-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
}
.progress {
  width: 100%;
  height: 22px;
  margin: 16px 0;
}
small {
  font-weight: 400;
  color: #586b62;
}
input[readonly] {
  background: #f3f5f3;
}
.btn-sm,
.btn-outline {
  cursor: pointer;
}
.import-preview td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
.image-preview {
  max-width: 240px;
  max-height: 120px;
  object-fit: contain;
}
.content .view .panel {
  margin-bottom: 18px;
}
.role-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.login-area {
  max-width: 460px;
  margin: 40px auto;
  background: white;
  border-radius: 20px;
  padding: 32px;
}
.simple-body {
  font-family: Lexend, system-ui, sans-serif;
  background: #f2f6f2;
  color: #163d33;
  margin: 0;
  padding: 24px;
}
.simple-body .btn-primary,
.simple-body .btn-sm {
  background: #125c45;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 8px;
}
.simple-body .btn-outline {
  background: #fff;
  color: #125c45;
  border: 1px solid #bad0c3;
  border-radius: 8px;
  padding: 10px 15px;
}
.simple-body a {
  color: #125c45;
}
.simple-body h1 {
  font-size: 25px;
}
.service-request {
  padding: 14px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  margin: 10px 0;
}
.service-request button {
  margin-top: 10px;
}
.request-list {
  padding: 0;
  list-style: none;
}
.request-list li {
  padding: 12px;
  border-bottom: 1px solid #dae4dd;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.bn-row {
  overflow: auto;
}
.bn-item {
  min-width: 64px;
}
#share-box input {
  font: inherit;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}
#share-box {
  overflow-wrap: anywhere;
}
.functional-form .benef-editor-rows {
  grid-column: 1/-1;
}
@media (max-width: 650px) {
  .functional-form,
  .edit-dialog .form-grid {
    grid-template-columns: 1fr;
  }
  .edit-dialog {
    padding: 18px;
  }
  .tools {
    align-items: stretch;
  }
  .simple-body {
    padding: 16px;
  }
  .functional-form .full {
    grid-column: auto;
  }
}
