.qz-account-opening {
  --opening-ink:#182b40;
  --opening-muted:#52657a;
  --opening-border:#d5e0f0;
  --opening-control:#c5d1e0;
  --opening-blue:#1658cb;
  --opening-danger:#a33237;
  min-width:0;
  color:var(--opening-ink);
  font-size:14px;
  font-variant-numeric:tabular-nums;
}

.qz-account-opening *, .qz-account-opening *::before, .qz-account-opening *::after { box-sizing:border-box; }
.qz-account-opening :is(h1,h2,h3,p,dl,dd) { margin:0; }
.qz-account-opening :is(button,input,select,textarea) { font:inherit; outline-offset:3px; }
.qz-account-opening :focus-visible { outline:2px solid #397de0; }
.qz-account-opening button { cursor:pointer; }
.qz-account-opening button:disabled { opacity:.55; cursor:default; }

.qz-account-opening .opening-heading {
  display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 19px;
}
.qz-account-opening .opening-heading h1 { color:#112944; font-size:23px; font-weight:700; margin-bottom:4px; line-height:1.35; }
.qz-account-opening :is(.opening-heading p,.opening-hint) { color:var(--opening-muted); line-height:1.5; }
.qz-account-opening .opening-hint { font-size:13px; }
.qz-account-opening .opening-notice { margin:0 0 14px; padding:9px 12px; border-radius:7px; color:#206848; background:#eaf6ee; }

.qz-account-opening .opening-button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:6px 13px;
  border:1px solid var(--opening-control); border-radius:7px; background:white; color:#203a59;
  font-weight:550; white-space:nowrap;
}
.qz-account-opening .opening-button:hover:not(:disabled) { background:#f1f5fb; }
.qz-account-opening .opening-button.primary { background:var(--opening-blue); border-color:var(--opening-blue); color:white; }
.qz-account-opening .opening-button.primary:hover:not(:disabled) { background:#124eaf; }

.qz-account-opening .opening-filters {
  display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 16px; margin-bottom:14px;
  background:white; border:1px solid var(--opening-border); border-radius:11px;
}
.qz-account-opening .opening-filters label { display:flex; align-items:center; gap:8px; color:#31475d; font-weight:500; }
.qz-account-opening .opening-filters label > span { flex:none; white-space:nowrap; }
.qz-account-opening :is(input:not([type="radio"]),select,textarea) {
  width:100%; min-width:0; min-height:36px; padding:8px 10px; border:1px solid var(--opening-control);
  border-radius:7px; background:white; color:var(--opening-ink); line-height:1.25;
}
.qz-account-opening .opening-filters input { width:142px; }
.qz-account-opening .opening-filters select { width:auto; min-width:113px; }
.qz-account-opening :is(input,textarea)::placeholder { color:#5d6d81; opacity:1; }
.qz-account-opening textarea { resize:vertical; display:block; line-height:1.5; }

.qz-account-opening .opening-table-panel { background:white; border:1px solid var(--opening-border); border-radius:11px; overflow:hidden; }
.qz-account-opening .opening-table-scroll { width:100%; overflow-x:auto; }
.qz-account-opening table { width:100%; min-width:650px; border-collapse:collapse; white-space:nowrap; text-align:left; font-size:13px; }
.qz-account-opening :is(th,td) { padding:14px; border-bottom:1px solid #e6ebf3; }
.qz-account-opening th { color:#31475d; font-weight:650; background:#f2f6fc; }
.qz-account-opening tbody tr:hover { background:#f8faff; }
.qz-account-opening tbody td:nth-child(-n+2) { font-weight:550; }
.qz-account-opening .opening-record-action { border:0; color:var(--opening-blue); background:transparent; font-weight:600; padding:5px 0; }
.qz-account-opening .opening-record-action:hover { text-decoration:underline; text-underline-offset:3px; }
.qz-account-opening .opening-badge { display:inline-block; color:#865518; background:#fff4df; border-radius:5px; padding:3px 8px; font-size:12px; font-weight:600; }
.qz-account-opening .opening-badge.approved { color:#206848; background:#eaf6ee; }
.qz-account-opening .opening-badge.rejected { color:var(--opening-danger); background:#fdeeee; }
.qz-account-opening td.opening-empty { text-align:center; padding:35px 14px; color:var(--opening-muted); }
.qz-account-opening .opening-table-footer {
  display:flex; align-items:center; justify-content:flex-end; min-height:43px; gap:12px; color:var(--opening-muted); padding:10px 16px; font-size:13px;
}
.qz-account-opening :is(.opening-current,.opening-pagination) { min-width:29px; padding:3px 8px; border-radius:5px; text-align:center; }
.qz-account-opening .opening-current { color:var(--opening-blue); background:#e9f1fd; font-weight:650; }
.qz-account-opening .opening-pagination { color:#203a59; background:white; border:1px solid var(--opening-control); }

.qz-account-opening .qz-opening-dialog {
  position:fixed; inset:0; width:min(640px,calc(100% - 30px)); max-width:none; max-height:calc(100dvh - 54px);
  margin:auto; padding:0; border:0; border-radius:14px; overflow-y:auto; background:white;
  color:var(--opening-ink); box-shadow:0 18px 62px rgb(0 0 0 / 18%); font:inherit; --opening-dialog-blue:#234f80;
}
.qz-account-opening .qz-opening-dialog.application { --opening-dialog-blue:var(--opening-blue); }
.qz-account-opening .qz-opening-dialog::backdrop { background:rgb(28 41 57 / 40%); }
.qz-account-opening .opening-dialog-head {
  display:flex; align-items:center; justify-content:space-between; gap:13px; padding:17px 24px; border-bottom:1px solid var(--opening-border);
}
.qz-account-opening .opening-dialog-head h2 { font-size:20px; font-weight:700; line-height:1.35; }
.qz-account-opening .opening-dialog-head h2:focus { outline:none; }
.qz-account-opening .opening-icon-button {
  display:grid; place-items:center; flex:none; width:32px; height:32px; border:0; border-radius:6px; background:transparent; color:var(--opening-muted);
}
.qz-account-opening .opening-icon-button:hover:not(:disabled) { background:#eff3f8; }
.qz-account-opening .opening-dialog-body { padding:20px 24px 23px; }
.qz-account-opening .opening-dialog-foot {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:9px; padding:15px 24px;
  border-top:1px solid var(--opening-border); background:#f5f7fa;
}
.qz-account-opening .opening-flow-note { padding:10px 12px; background:#f1f5fa; border-radius:7px; color:#365371; line-height:1.5; margin-bottom:17px; font-size:13px; }
.qz-account-opening .opening-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.qz-account-opening .opening-field { display:grid; align-content:start; gap:6px; }
.qz-account-opening .opening-field.wide { grid-column:1 / -1; }
.qz-account-opening .opening-field label { color:#263b53; font-weight:650; }
.qz-account-opening .opening-required { color:var(--opening-danger); }
.qz-account-opening .opening-role-choice { margin-bottom:15px; }
.qz-account-opening .opening-role-choice select { width:100%; }
.qz-account-opening .opening-role-scope { padding:8px 10px; background:#f0f5fc; color:#365371; border-radius:6px; }
.qz-account-opening .opening-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.qz-account-opening .opening-facts > div {
  display:grid; grid-template-columns:76px minmax(0,1fr); gap:8px; align-items:start; padding:10px 0; border-bottom:1px solid #e8edf3;
}
.qz-account-opening .opening-facts > .wide { grid-column:1 / -1; }
.qz-account-opening .opening-facts dt { color:var(--opening-muted); }
.qz-account-opening .opening-facts dd { font-weight:550; overflow-wrap:anywhere; white-space:pre-wrap; }
.qz-account-opening .opening-log { margin-top:18px; }
.qz-account-opening .opening-log h3 { font-size:15px; margin-bottom:6px; }
.qz-account-opening .opening-log ol { list-style:none; margin:0; padding:0; }
.qz-account-opening .opening-log li { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 14px; padding:7px 0; font-size:13px; color:var(--opening-muted); }
.qz-account-opening .opening-log li b { color:#263b53; }
.qz-account-opening .opening-form-error { margin-top:8px; color:var(--opening-danger); }

.opening-child-accounts .opening-button.primary:disabled {
  color:#52657a; border-color:#d7dfe9; background:#eef2f7; opacity:1; cursor:not-allowed;
}
.opening-child-accounts .child-account-quota {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:12px 16px; margin-bottom:12px;
  border:1px solid var(--opening-border); border-radius:11px; background:#fff;
}
.opening-child-accounts .child-account-quota strong { font-size:18px; margin-left:4px; }
.opening-child-accounts .child-account-meter { display:flex; gap:4px; }
.opening-child-accounts .child-account-meter span {
  width:14px; height:6px; border-radius:3px; background:#dfe7f1;
}
.opening-child-accounts .child-account-meter .used { background:var(--opening-blue); }
.opening-child-accounts .child-account-remaining { margin-left:auto; font-size:13px; color:var(--opening-muted); }
.opening-child-accounts .child-account-warning {
  margin:0 0 12px; padding:10px 13px; border:1px solid #efdfbd; border-radius:7px;
  color:#754b14; background:#fff5e4; font-size:13px;
}
.opening-child-accounts .child-account-warning strong { display:block; margin-bottom:2px; }
.opening-child-accounts .child-account-list-head {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 12px; padding:11px 14px;
}
.opening-child-accounts .child-account-list-head h2 { font-size:15px; }
.opening-child-accounts .child-account-list-head span { color:var(--opening-muted); font-size:13px; }
.opening-child-accounts .child-account-table {
  min-width:0; white-space:normal; border-top:1px solid var(--opening-border);
}
.opening-child-accounts .child-account-table :is(th,td) { overflow-wrap:anywhere; }
.opening-child-accounts .child-account-table tbody th { font-weight:650; color:var(--opening-ink); background:none; }
.opening-child-accounts .child-account-time { color:var(--opening-muted); }
.opening-child-accounts .child-account-empty {
  padding:32px 14px; text-align:center; color:var(--opening-muted); border-block:1px solid var(--opening-border);
}
.opening-child-accounts .child-account-empty h3 { margin:6px 0 4px; font-size:15px; color:var(--opening-ink); }
.opening-child-accounts .qz-opening-dialog { width:min(580px,calc(100% - 28px)); max-height:calc(100dvh - 28px); }
.opening-child-accounts .opening-dialog-head h2 { font-size:19px; }
.opening-child-accounts .opening-dialog-head { padding:13px 19px; }
.opening-child-accounts .opening-dialog-body { padding:16px 19px; }
.opening-child-accounts .opening-dialog-foot { padding:12px 19px; }

@media (max-width:540px) {
  .qz-account-opening .opening-heading { align-items:flex-start; flex-wrap:wrap; }
  .qz-account-opening .opening-heading h1 { font-size:19px; }
  .qz-account-opening :is(.opening-dialog-head,.opening-dialog-body,.opening-dialog-foot) { padding-inline:16px; }
  .qz-account-opening :is(.opening-fields,.opening-facts) { grid-template-columns:minmax(0,1fr); }
  .qz-account-opening .opening-filters { gap:9px; padding:11px; }
  .qz-account-opening .opening-filters label { width:100%; }
  .qz-account-opening .opening-filters label span { flex:0 0 57px; }
  .qz-account-opening .opening-filters :is(input,select) { width:100%; }
}

@media (max-width:600px) {
  .opening-child-accounts .opening-heading { gap:8px 10px; }
  .opening-child-accounts .opening-heading p { font-size:12px; }
  .opening-child-accounts .opening-heading .opening-button { padding-inline:8px; font-size:13px; }
  .opening-child-accounts .child-account-quota { gap:5px 12px; padding:9px 12px; }
  .opening-child-accounts .child-account-remaining { flex-basis:100%; margin-left:0; }
  .opening-child-accounts .child-account-meter span { width:10px; }
  .opening-child-accounts .child-account-list-head { padding-inline:12px; }
  .opening-child-accounts .child-account-table, .opening-child-accounts .child-account-table tbody { display:block; }
  .opening-child-accounts .child-account-table thead {
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
  }
  .opening-child-accounts .child-account-table tbody tr {
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px;
    padding:8px 12px; border-bottom:1px solid var(--opening-border);
  }
  .opening-child-accounts .child-account-table tbody :is(th,td) { padding:0; border:0; }
  .opening-child-accounts .child-account-status { grid-row:1; grid-column:2; justify-self:end; }
  .opening-child-accounts .child-account-role { grid-row:2; grid-column:2; justify-self:end; }
  .opening-child-accounts .child-account-time { grid-column:1/-1; font-size:11px; }
  .opening-child-accounts .child-account-time::before { content:attr(data-label) " "; }
  .opening-child-accounts :is(.opening-dialog-head,.opening-dialog-body,.opening-dialog-foot) { padding-inline:13px; }
  .opening-child-accounts .opening-dialog-head h2 { font-size:17px; }
  .opening-child-accounts .opening-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .opening-child-accounts .opening-field :is(input,select,textarea) { font-size:16px; }
}
