.statement-card { max-width: 900px; padding: 30px; border: 1px solid #e0e8ee; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(18, 39, 56, .05); }
.statement-heading span { color: #48809a; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.statement-heading h2 { margin: 7px 0 8px; font-size: 25px; }
.statement-heading p, .statement-help { color: #58707c; line-height: 1.65; }
.statement-form { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(2, minmax(145px, 1fr)); gap: 16px; align-items: end; margin-top: 28px; }
.statement-form label { display: grid; gap: 7px; font-weight: 600; }
.statement-customer-field { position: relative; display: grid; gap: 7px; font-weight: 600; }
.statement-customer-hints { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 260px; overflow-y: auto; padding: 5px; border: 1px solid #cad8df; border-radius: 9px; background: #fff; box-shadow: 0 12px 24px #18333f26; }
.statement-customer-hints[hidden] { display: none; }
.statement-customer-hints button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px; border: 0; border-radius: 6px; background: #fff; color: #18333f; font: inherit; text-align: left; cursor: pointer; }
.statement-customer-hints button:hover, .statement-customer-hints button[aria-selected="true"] { background: #e9f4f8; }
.statement-customer-hints button span { overflow: hidden; color: #58707c; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.statement-customer-hints p { margin: 7px; color: #58707c; font-size: 13px; font-weight: 400; }
.statement-form input { box-sizing: border-box; width: 100%; min-height: 43px; padding: 8px 12px; border: 1px solid #cad8df; border-radius: 9px; background: #fff; color: #18333f; font: inherit; }
.statement-form input:focus { outline: 2px solid #1f779e; outline-offset: 2px; }
.statement-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.statement-actions button { min-height: 42px; }
.statement-actions button:disabled { cursor: not-allowed; opacity: .55; }
.statement-help { margin: 21px 0 10px; font-size: 13px; }
#statement-status { min-height: 22px; margin: 0; color: #295e77; }
#statement-status[data-error] { color: #a32424; }
#statement-preview-status { margin: 0; padding: 0 16px 8px; color: #295e77; font-size: 13px; }
#statement-preview-status:empty { display: none; }
#statement-preview-status[data-error] { color: #a32424; }
.statement-preview-dialog { box-sizing: border-box; width: min(1050px, calc(100vw - 24px)); height: min(850px, calc(100vh - 24px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 20px 70px #0c243866; }
.statement-preview-dialog::backdrop { background: #102a3ac0; }
.statement-preview-dialog[open] { display: flex; flex-direction: column; }
.statement-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.statement-preview-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.statement-preview-actions button { min-height: 38px; }
.statement-preview-dialog iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.statement-preview-dialog iframe[hidden], .statement-mobile-preview[hidden] { display: none; }
.statement-mobile-preview { display: flex; flex: 1; flex-direction: column; min-height: 0; background: #e6ecef; }
.statement-mobile-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: #fff; }
.statement-mobile-controls button { min-height: 38px; padding: 5px 10px; border: 1px solid #cad8df; border-radius: 7px; background: #fff; color: #18333f; font: inherit; }
.statement-mobile-controls button:disabled { opacity: .45; }
.statement-mobile-controls span { min-width: 62px; text-align: center; }
.statement-mobile-viewport { flex: 1; min-height: 0; overflow: auto; padding: 12px; text-align: center; }
.statement-mobile-viewport canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 3px 14px #18333f33; }
.statement-groups { margin-top: 24px; padding: 18px; border: 1px solid #dce8ed; border-radius: 12px; background: #f7fafb; }
.statement-groups-heading h3 { margin: 0 0 4px; font-size: 17px; }
.statement-groups-heading p { margin: 0 0 14px; color: #58707c; font-size: 13px; }
.statement-group-picker, .statement-group-fields, .statement-group-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.statement-group-picker label, .statement-group-editor label { font-weight: 600; }
.statement-group-picker input { flex: 1 1 230px; }
.statement-group-mobile-picker { display: none; }
.statement-group-select-control { display: block; position: relative; min-width: 0; }
.statement-group-select-control::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #295e77; border-bottom: 2px solid #295e77; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.statement-groups .statement-group-select-control select { width: 100%; min-width: 0; min-height: 46px; padding-right: 42px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; font-size: 16px; }
.statement-groups input, .statement-groups select { box-sizing: border-box; min-height: 42px; padding: 8px 10px; border: 1px solid #cad8df; border-radius: 9px; background: #fff; color: #18333f; font: inherit; }
.statement-groups input:focus, .statement-groups select:focus { outline: 2px solid #1f779e; outline-offset: 2px; }
.statement-group-editor { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid #dce8ed; }
.statement-group-editor[hidden] { display: none; }
.statement-group-fields > label { display: grid; flex: 1 1 190px; gap: 5px; }
.statement-group-customer-field { position: relative; }
.statement-group-customer-field > input { width: 100%; }
.statement-group-customer-field .statement-customer-hints { position: static; margin-top: 6px; max-height: 240px; }
.statement-group-customer-field .statement-customer-hints button[data-selected] { background: #e9f4f8; font-weight: 700; }
.statement-group-customer-field .statement-customer-hints button:disabled { opacity: 1; color: #58707c; background: #f0f4f6; }
.statement-group-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #295e77; font-size: 13px; }
.statement-group-pending[hidden] { display: none; }
.statement-group-pending button { min-height: 36px; }
.statement-group-members-summary { margin: 2px 0 0; font-weight: 700; color: #18333f; }
.statement-group-members { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.statement-group-members li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; padding: 6px 9px; border: 1px solid #dce8ed; border-radius: 8px; background: #fff; }
.statement-group-members li span { min-width: 0; overflow-wrap: anywhere; }
.statement-group-members li button { flex: none; min-height: 32px; padding: 3px 9px; border: 1px solid #cad8df; border-radius: 7px; background: #fff; cursor: pointer; }
.statement-group-members li[data-unavailable] { color: #a32424; }
.statement-group-actions { margin-top: 2px; }
.statement-group-actions button { min-height: 40px; }
.statement-groups, .statement-group-editor, .statement-group-fields, .statement-group-customer-field { min-width: 0; }
.statement-group-picker input, .statement-group-fields > label { min-width: 0; }
.statement-group-fields > label[hidden] { display: none; }
.statement-group-fields input, .statement-group-fields select { width: 100%; min-width: 0; max-width: 100%; }
.statement-groups button:disabled { cursor: not-allowed; opacity: .55; }
#statement-group-status { min-height: 20px; margin: 10px 0 0; color: #295e77; font-size: 13px; }
#statement-group-status[data-error] { color: #a32424; }
.statement-group-batch-dialog { box-sizing: border-box; width: min(720px, calc(100vw - 24px)); max-height: min(760px, calc(100vh - 24px)); padding: 20px; border: 0; border-radius: 12px; box-shadow: 0 20px 70px #0c243866; }
.statement-group-batch-dialog::backdrop { background: #102a3ac0; }
.statement-group-batch-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.statement-group-batch-header strong { font-size: 18px; }
.statement-group-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.statement-group-batch-actions button { min-height: 38px; }
.statement-group-share-note { margin: 12px 0 4px; color: #7b4d18; font-size: 13px; line-height: 1.5; }
#statement-group-batch-status { color: #295e77; }
#statement-group-batch-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#statement-group-batch-results li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #dce8ed; border-radius: 8px; }
#statement-group-batch-results button { min-height: 36px; }
@media (max-width: 700px) { .statement-card { padding: 20px; } .statement-form { grid-template-columns: 1fr; } .statement-preview-header { align-items: flex-start; flex-direction: column; } .statement-groups { padding: 14px; } .statement-group-picker > input, .statement-group-picker > button, .statement-group-actions > button { flex: 1 1 100%; } }

@media (min-width: 701px) and (max-width: 900px) { .statement-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .statement-customer-field { grid-column: 1 / -1; } }

@media (max-width: 700px) { .statement-group-batch-header { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) {
  .statement-group-picker > .statement-group-desktop-label, #statement-group-lookup, #statement-group-open { display: none; }
  .statement-group-picker > .statement-group-mobile-picker { display: grid; flex: 1 1 100%; gap: 7px; width: 100%; min-width: 0; }
}
