.af-section,.af-body{font-family:Inter,Arial,sans-serif;color:#24281b;font-size:14px;line-height:1.6}.af-head{display:flex;gap:24px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.af-head h2{font-size:22px;margin:0 0 5px}.af-head p{color:#697060;margin:0;max-width:700px}.af-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.af-section button,.af-body button:not(.amari-billing-close){border:1px solid #d5d9cf;background:white;color:#29301d;padding:10px 14px;font-size:13px;border-radius:5px;cursor:pointer;font-weight:600}.af-section button:hover,.af-body button:hover{background:#f1f3ec}.af-section button:disabled,.af-body button:disabled{opacity:.5;cursor:not-allowed}.af-section button.primary,.af-body button.primary{background:#29301d;color:white;border-color:#29301d}.af-section input,.af-section select,.af-body input,.af-body select{padding:10px 12px;border:1px solid #cbd0c2;background:white;min-height:43px;max-width:100%;border-radius:5px;font:inherit;color:inherit}.af-env{padding:10px 15px;border-radius:5px;margin:12px 0;font-size:12px;font-weight:700;letter-spacing:.025em}.af-env.test{background:#edf2f7;color:#344f66}.af-env.live{background:#fff2d8;color:#754808}.af-card{padding:20px;border:1px solid #dce1d5;background:#fbfcf9;border-radius:6px;margin:20px 0;overflow-wrap:anywhere}.af-card h3{margin-top:0}.af-feedback:empty{display:none}.af-error,.af-success,.af-notice{padding:12px 16px;margin:14px 0;border-radius:5px;overflow-wrap:anywhere}.af-error{color:#91342f;background:#fff0ee;border:1px solid #efcdc7}.af-success{color:#365327;background:#edf5e8;border:1px solid #cdddc3}.af-notice{color:#46593c;background:#f2f5ee;border:1px solid #dfe7d8}.af-table-wrap{overflow:auto;background:#fff;border:1px solid #dce1d5;border-radius:6px}.af-table-wrap table{width:100%;border-collapse:collapse;min-width:650px}.af-table-wrap th{background:#f5f6f1;text-align:left;padding:12px 14px;color:#697060;font-size:11px;letter-spacing:.045em;text-transform:uppercase}.af-table-wrap td{padding:14px;border-top:1px solid #e6e9e0;font-size:13px;vertical-align:middle}.af-table-wrap td small{display:block;color:#68725a}.af-badge{display:inline-block;background:#eff1ec;padding:4px 8px;border-radius:4px;font-size:11px;white-space:nowrap}.af-badge.valid{background:#e3efda;color:#376322}.af-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.af-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.af-check{display:flex;align-items:flex-start;gap:12px;margin:16px 0}.af-check input{min-height:0;width:18px;height:18px;margin-top:4px;flex-shrink:0}.af-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.af-summary>div{padding:14px;background:#f6f7f2;font-size:12px;color:#697060;overflow-wrap:anywhere}.af-summary b{display:block;font-size:17px;color:#24281b;margin-top:5px}.af-modal .amari-billing-panel{max-width:1020px;width:min(1020px,94vw);max-height:92vh;overflow:auto}.af-modal .amari-billing-head{position:sticky;top:0;background:white;z-index:1;justify-content:space-between}.af-modal .amari-billing-body{padding:24px}.af-body details{border:1px solid #dce1d5;padding:12px;margin:18px 0;border-radius:5px}.af-body summary{cursor:pointer;font-weight:600}.af-body pre{padding:14px;font-size:12px;background:#f5f6f1;border-radius:4px;overflow:auto;max-height:370px;white-space:pre-wrap;overflow-wrap:anywhere}.af-qr{display:block;width:180px;height:180px;object-fit:contain;margin:20px 0}.af-muted{font-size:12px;color:#6c7264;margin:18px 0}.af-break{word-break:break-all;user-select:all}.af-search{margin:18px 0}.af-search input{min-width:260px;flex:1}.af-pages{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:18px}.af-empty{padding:24px}.af-actions{margin:20px 0}.af-section [hidden]{display:none!important}.af-section button:focus-visible,.af-body button:focus-visible,.af-body input:focus-visible,.af-body select:focus-visible{outline:3px solid #87996a;outline-offset:2px}@media(max-width:760px){.af-head{display:block}.af-head .af-controls{margin-top:16px}.af-grid{grid-template-columns:1fr}.af-summary{grid-template-columns:1fr}.af-modal .amari-billing-body{padding:16px}.af-modal .amari-billing-panel{width:96vw}.af-search input{min-width:0}.af-body .af-controls button{flex:1}.af-head h2{font-size:19px}}
/* Keep the dialog title and Close visible on mobile; do not inherit the old white-on-dark header text. */
.af-modal{overflow:hidden;align-items:center;padding:12px}.af-modal .amari-billing-panel{min-height:0;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden}.af-modal .amari-billing-head{color:#24281b;flex-shrink:0;position:relative}.af-modal .amari-billing-close{color:#29301d;border:1px solid #cbd0c2;background:#fff;min-width:36px;flex-shrink:0}.af-modal .amari-billing-body{overflow-y:auto;min-height:0}
/* V34 simplified invoice form: customer and product review */
.af-products-table { width:100%; border-collapse:collapse; min-width:520px; }
.af-products-table th,.af-products-table td { text-align:left; padding:8px 10px; border-bottom:1px solid #e8e8e5; font-size:13px; }
.af-products-table th { font-size:11px; text-transform:uppercase; letter-spacing:.04em; background:#f7f7f5; }
.af-products-table td:nth-child(n+3) { white-space:nowrap; }
.af-body details.af-card summary { cursor:pointer; }
.af-body .af-grid label { min-width:0; }
