/* Page compositions: task-focused forms, lists and settings. */
.merchant-dashboard .page-action-hidden { display: none; }
.merchant-dashboard .page:not(#overviewPage) { --page-line: #eef1f6; }
.merchant-dashboard .page:not(#overviewPage) .panel { padding: 30px; }
.merchant-dashboard .page:not(#overviewPage) h2 { color: #243047; }
.merchant-dashboard .page:not(#overviewPage) .form-control,
.merchant-dashboard .page:not(#overviewPage) .form-select { min-height: 46px; border: 1px solid #e1e6ee; border-radius: 9px; background: #fff; font-size: 14px; box-shadow: none; }
.merchant-dashboard .page:not(#overviewPage) label { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.merchant-dashboard .page:not(#overviewPage) :is(input[type=checkbox],input[type=radio]) { min-height: 0; width: 17px; height: 17px; padding: 0; flex: none; accent-color: #315aff; }
.merchant-dashboard .page:not(#overviewPage) label.confirm-row { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; background: transparent; padding: 0; }
.merchant-dashboard .page:not(#overviewPage) .primary { width: auto; min-height: 43px; padding: 11px 19px; font-size: 13px; border-radius: 9px; }
.editor-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 29px; }
.editor-heading h2 { margin: 0 0 8px !important; }
.editor-heading p { font-size: 13px; color: #7d899c; line-height: 1.7; margin: 0; max-width: 52ch; }
.section-number { display: grid; place-items: center; width: 35px; height: 35px; flex: none; background: #eef3ff; color: #597be2; border-radius: 10px; font-size: 12px; font-weight: 500; }
.merchant-dashboard .form-actions { display: flex; gap: 12px; align-items: center; grid-column: 1 / -1; padding-top: 24px; margin-top: 4px; border-top: 1px solid var(--page-line); }
.merchant-dashboard .quiet-button { background: transparent; border: 0; color: #8591a5; }
.merchant-dashboard .invoice-composer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .8fr); gap: 28px; align-items: start; }
.merchant-dashboard .invoice-entry { margin: 0; }
.invoice-entry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.invoice-method-field, .invoice-phone-field { grid-column: 1 / -1; }
.merchant-dashboard .invoice-entry-form .phone-entry { min-height: 46px; border: 1px solid #e1e6ee; border-radius: 9px; }
.merchant-dashboard .invoice-entry-form .phone-entry input { border: 0; min-height: 42px; }
.merchant-dashboard .invoice-entry-form .simple-disclosure summary { border: 0; padding: 6px 0; color: #7788a3; font-size: 13px; font-weight: 450; background: transparent; }
.invoice-preview-pane { padding: 20px 0; }
.preview-eyebrow { font-size: 12px; color: #8390a5; margin: 0 0 19px; }
.invoice-paper { background: #fff; border-radius: 16px; box-shadow: 0 12px 30px #22366007; padding: 27px; border-top: 3px solid #5879ef; }
.invoice-paper-brand { display: flex; align-items: baseline; font-size: 22px; letter-spacing: -.8px; font-weight: 650; color: #2a3449; }
.invoice-paper-brand > span { color: #315aff; }
.invoice-paper-brand small { margin-left: auto; font-size: 10px; letter-spacing: 0; font-weight: 400; color: #8c98aa; }
.invoice-paper-total { padding: 38px 0 29px; border-bottom: 1px dashed #e1e7f1; }
.invoice-paper-total > span { display: block; font-size: 12px; color: #8795aa; margin-bottom: 12px; }
.invoice-paper-total strong { font-size: clamp(28px,3vw,40px); letter-spacing: -1.3px; font-weight: 550; line-height: 1.25; color: #263651; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.invoice-paper-total p { font-size: 13px; color: #7b889c; margin: 12px 0 0; overflow-wrap: anywhere; }
.invoice-paper dl { display: grid; gap: 16px; padding: 22px 0; margin: 0; }
.invoice-paper dl > div { display: flex; gap: 15px; justify-content: space-between; align-items: baseline; font-size: 12px; }
.invoice-paper dt { font-weight: 400; color: #8a97ac; }
.invoice-paper dd { color: #4d5e77; margin: 0; text-align: right; overflow-wrap: anywhere; }
.invoice-method-note { margin: 0; padding: 15px; background: #f3f6fd; color: #72829b; border-radius: 8px; font-size: 12px; line-height: 1.65; }
.preview-disclaimer { color: #909aad; line-height: 1.65; font-size: 11px; margin: 18px 15px 0; text-align: center; }
.merchant-dashboard #paymentFilters, .merchant-dashboard .page:not(#overviewPage) .filter-bar { background: transparent; border: 0; border-bottom: 1px solid var(--page-line); border-radius: 0; padding: 0 0 22px; margin: 0 0 8px; gap: 12px; align-items: end; }
.merchant-dashboard #paymentFilters > label { gap: 8px; }
.merchant-dashboard #paymentFilters .filter-search { min-width: 180px; }
.merchant-dashboard #paymentFilters :is(input,select), .merchant-dashboard .filter-bar :is(input,select) { min-height: 40px !important; font-size: 13px !important; background: #fafbfd !important; }
.merchant-dashboard #paymentFilters button { min-height: 40px; }
.merchant-dashboard #paymentFilters .simple-disclosure summary { min-height: 40px; padding: 10px 12px; font-weight: 450; }
.merchant-dashboard .page:not(#overviewPage) .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.merchant-dashboard .page:not(#overviewPage) .table th { padding: 18px 12px; font-size: 12px; border-bottom: 1px solid var(--page-line); color: #8998af; }
.merchant-dashboard .page:not(#overviewPage) .table td { padding: 19px 12px; font-size: 13px; border-bottom: 1px solid var(--page-line); color: #526079; }
.merchant-dashboard .table td small { display: block; font-size: 11px; color: #95a0b3; margin-top: 5px; }
.merchant-dashboard #paymentListPanel .table th:first-child, .merchant-dashboard #paymentListPanel .table td:first-child { padding-left: 0; }
.merchant-dashboard #paymentListPanel .table td:nth-child(5) { white-space: nowrap; color: #2c3a51; font-variant-numeric: tabular-nums; font-weight: 550; }
.merchant-dashboard .table-link { color: #3b568b; font-weight: 500; }
.merchant-dashboard .table:has(.workspace-empty) thead { display: none; }
.merchant-dashboard .table:has(.workspace-empty) td { padding: 0 !important; border: 0 !important; }
.workspace-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 38px 25px; text-align: center; white-space: normal; }
.empty-document { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #f0f4fd; color: #7292df; margin-bottom: 19px; }
.empty-document svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.3; }
.workspace-empty h3 { margin: 0 0 10px; font-weight: 500; font-size: 18px; letter-spacing: -.35px; color: #3b4b65; }
.workspace-empty p { margin: 0; max-width: 360px; font-size: 13px; line-height: 1.8; color: #8a98ae; }
.merchant-dashboard #paymentListPanel:has(.workspace-empty) .pagination { display: none; }
.team-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.merchant-dashboard .team-layout > .panel { margin: 0; }
.team-members { min-height: 350px; }
.merchant-dashboard .team-invite { background: #eef3ff; box-shadow: none; }
.merchant-dashboard .team-invite h2 { margin-bottom: 12px; }
.merchant-dashboard .team-invite form { gap: 10px; margin-top: 28px; }
.merchant-dashboard .team-invite form label { margin-top: 10px; }
.merchant-dashboard .team-invite .primary { margin-top: 10px; align-self: start; }
.team-invite:has(#inviteForm[hidden]) { display: none; }
.role-help { font-size: 12px; color: #8090aa; line-height: 1.7; min-height: 42px; margin: 3px 0; }
.merchant-dashboard .member-row { display: flex; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--page-line); }
.member-avatar { width: 39px; height: 39px; border-radius: 12px; background: #eef2f9; color: #647b9d; font-size: 12px; display: grid; place-items: center; flex: none; }
.member-identity { flex: 1; min-width: 0; }
.member-identity strong { font-size: 14px; }
.member-identity small { font-size: 12px; overflow-wrap: anywhere; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 24px; align-items: start; }
.settings-form { display: flex; flex-direction: column; gap: 0; }
.setting-row { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; border-top: 1px solid var(--page-line); }
.setting-row label strong { font-size: 14px; font-weight: 500; }
.setting-row label small { font-size: 12px; line-height: 1.6; color: #8b97ab; font-weight: 400; }
.merchant-dashboard .settings-form .organization-consent { padding: 22px 0; border-top: 1px solid var(--page-line); line-height: 1.65; color: #7c899e; }
.merchant-dashboard .settings-form .form-actions { padding-top: 22px; }
.merchant-dashboard .settings-side .panel-head { display: flex; flex-direction: column; align-items: start; margin: 0 0 18px; }
.merchant-dashboard .settings-side .row-actions { order: 2; margin-top: 8px; }
.merchant-dashboard .settings-side .panel { background: #eef3ff; box-shadow: none; }
.merchant-dashboard .settings-side .info-box { margin-top: 20px; padding: 16px 0 0; border: 0; border-top: 1px solid #dfe6f6; border-radius: 0; background: transparent; font-size: 12px; line-height: 1.7; color: #8794ac; }
.merchant-dashboard .workspace-disclosure { padding: 0; border: 0; border-radius: 14px; background: #fff; margin: 20px 0; }
.workspace-disclosure > summary { padding: 22px 26px; cursor: pointer; font-size: 14px; font-weight: 500; color: #617391; list-style-position: inside; }
.workspace-disclosure > .panel { box-shadow: none; margin-bottom: 0; }
#settingsDiagnostics > :not(summary) { margin: 0 26px 20px; }
.integration-workspace-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 24px; }
.integration-workspace-head h2 { font-size: 20px; }
.integration-workspace-head .row-actions { flex: none; }
.merchant-dashboard #developersPage .integration-card { padding: 24px; border: 1px solid var(--page-line); border-radius: 12px; box-shadow: none; }
.merchant-dashboard #recurringForm { margin: 25px 0 0; padding: 25px 0 0; border: 0; border-top: 1px solid var(--page-line); background: transparent; }
.merchant-dashboard .recurring-form > .primary { justify-self: start; }
.merchant-dashboard .refund-metrics, .merchant-dashboard .plan-usage, .merchant-dashboard .partner-metrics { gap: 0; background: #fff; border-radius: 15px; padding: 25px 0; margin-bottom: 24px; border: 0; }
.merchant-dashboard :is(.refund-metrics,.plan-usage,.partner-metrics) > article { border: 0; border-right: 1px solid #eef1f6; border-radius: 0; background: transparent; box-shadow: none; padding: 0 28px; }
.merchant-dashboard :is(.refund-metrics,.plan-usage,.partner-metrics) > article:last-child { border: 0; }
.merchant-dashboard :is(.refund-metrics,.plan-usage,.partner-metrics) span { font-size: 12px; color: #8996aa; display: block; margin-bottom: 10px; }
.merchant-dashboard .print-layout { grid-template-columns: minmax(0,1.1fr) minmax(280px,1fr); gap: 26px; align-items: stretch; }
.merchant-dashboard .print-layout .qr-print-card { background: #edf3ff; min-height: 360px; border: 0; display: flex; align-items: center; justify-content: center; }
.merchant-dashboard .print-layout .stack { gap: 22px; }
.merchant-dashboard .print-layout .confirm-row { padding: 18px 0; font-weight: 400; color: #8190a7; }
.merchant-dashboard #planPage .plan-current { background: #edf3ff; padding: 30px; }
.merchant-dashboard #planPage .trial-banner { background: #fff; border: 0; border-radius: 12px; padding: 20px 26px; }
.merchant-dashboard #planPage .subscription-value { background: #fff; }
.merchant-dashboard .guide-grid { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 18px; padding: 12px 30px; }
.merchant-dashboard .guide-card { padding: 26px 0; border: 0; border-bottom: 1px solid #eef1f6; border-radius: 0; background: transparent; box-shadow: none; gap: 23px; }
.merchant-dashboard .guide-card:last-child { border: 0; }
.merchant-dashboard .guide-card > span { width: 42px; height: 42px; border-radius: 12px; background: #f0f4fc; font-size: 16px; color: #7893c9; }
.merchant-dashboard .guide-card h2 { font-size: 16px; font-weight: 500; }
.merchant-dashboard .guide-card p { font-size: 13px; color: #8a96a9; }
.merchant-dashboard .kaspi-setup-page .wizard { max-width: 700px; margin: 0 auto; background: #fff; border: 0; border-radius: 18px; padding: 35px; }
.merchant-dashboard .kaspi-setup-page .wizard h2 { font-size: 25px; letter-spacing: -.6px; }
.merchant-dashboard .kaspi-setup-page .wizard-lead { font-size: 14px; color: #8390a6; }
.merchant-dashboard .access-grid { align-items: start; gap: 24px; }
.merchant-dashboard .access-grant-form { gap: 18px; padding: 22px 0; }
@media (max-width: 1150px) {
  .settings-layout, .team-layout { grid-template-columns: minmax(0,1.3fr) minmax(250px,1fr); gap: 18px; }
  .merchant-dashboard .page:not(#overviewPage) .panel { padding: 24px; }
  .integration-workspace-head { flex-wrap: wrap; }
  .merchant-dashboard .invoice-composer { gap: 18px; grid-template-columns: minmax(0,1fr) minmax(250px,.8fr); }
}
@media (max-width: 1000px) { .settings-layout, .team-layout, .merchant-dashboard .invoice-composer, .merchant-dashboard .print-layout { grid-template-columns: 1fr; } .invoice-preview-pane { max-width: 500px; width: 100%; margin: 0 auto; } }
@media (max-width: 600px) {
  .merchant-dashboard .page:not(#overviewPage) .panel { padding: 23px 18px; }
  .invoice-entry-form { grid-template-columns: 1fr; gap: 20px; }
  .editor-heading { gap: 12px; margin-bottom: 24px; }
  .editor-heading h2 { font-size: 18px !important; }
  .merchant-dashboard #paymentFilters { gap: 10px; }
  .merchant-dashboard #paymentFilters > .filter-search { flex-basis: 100%; }
  .merchant-dashboard #paymentFilters .primary { flex: none; }
  .merchant-dashboard :is(.refund-metrics,.plan-usage,.partner-metrics) > article { padding: 0 13px; }
  .merchant-dashboard :is(.refund-metrics,.plan-usage,.partner-metrics) strong { font-size: 20px; }
  .merchant-dashboard .access-grid { grid-template-columns: 1fr; }
  .merchant-dashboard .guide-grid { padding: 6px 18px; }
  .merchant-dashboard .guide-card { gap: 15px; }
}

/* Legacy aside rules belong only to the navigation, not these content panels. */
.merchant-dashboard :is(.invoice-preview-pane,.settings-side,.team-invite) { position: static; top: auto; height: auto; min-height: 0; max-height: none; width: auto; overflow: visible; border: 0; }
.merchant-dashboard :is(.invoice-preview-pane,.settings-side) { display: block; background: transparent; box-shadow: none; }
.merchant-dashboard .invoice-preview-pane { padding: 20px 0; }
.merchant-dashboard .settings-side { padding: 0; }
.merchant-dashboard .invoice-entry-form { grid-template-columns: 1fr; }
.merchant-dashboard .page:not(#overviewPage) .phone-entry:focus-within { outline: 2px solid #315aff30; outline-offset: 1px; border-color: #7692ea; }
.merchant-dashboard .page:not(#overviewPage) .phone-entry input:focus-visible { outline: none; box-shadow: none; }
.merchant-dashboard .page:not(#overviewPage) .phone-entry input { border-radius: 0; }
