.receipt-choice-test{margin:16px 0}.receipt-choice-test label{display:block;font-size:13px;margin-bottom:8px}.smart-search{display:flex;align-items:center;border:1px solid #dcd0e7;border-radius:15px;background:white;padding:0 10px;gap:8px}.smart-search>span{font-size:25px;color:#73389b}.smart-search input{border:0!important;background:none!important;padding:12px 0!important;min-width:0}.smart-search button{border:0;background:none;padding:0;width:32px;min-height:36px;color:#79528a;font-size:22px}.smart-results p,.smart-status{font-size:12px;line-height:1.5;color:#756581}.smart-match{width:100%;display:flex;align-items:center;gap:10px;text-align:left;margin:8px 0;padding:12px;border:1px solid #e0d4eb;background:#fff;border-radius:16px}.smart-match>span:nth-child(2){flex:1;min-width:0}.smart-match strong,.smart-match small{display:block}.smart-match small{font-size:11px;color:#796a85;margin-top:4px}.smart-use{font-size:11px;color:#7433a2;max-width:68px;text-align:right}.smart-match .product-illustration{width:42px;height:42px;flex:0 0 42px}.smart-match img{width:42px;height:42px;object-fit:contain}.smart-actions{display:grid;gap:8px;margin-top:12px}.smart-create{border:1px solid #bda3d1;color:#65318a;background:#f5effa;border-radius:14px}.smart-history{border:0;background:transparent;font-size:12px;color:#786584;min-height:36px}.smart-category{margin-top:16px}.smart-category-options{display:flex;gap:6px;flex-wrap:wrap}.smart-category-options button{border-radius:12px;font-size:12px;min-height:36px;padding:7px 10px;font-weight:500}.smart-category-options button[aria-pressed=true]{background:#75339e;color:white;border-color:#75339e}.receipt-choice-test [hidden]{display:none!important}#modal .dialog-head{flex-wrap:wrap}#modal .dialog-head>small{order:3;width:100%;font-size:11px;color:#796a85}

.smart-reference{display:flex;align-items:center;gap:10px;padding:12px;background:#f3edf8;border:1px solid #dfcee9;border-radius:15px;margin-bottom:16px}.smart-reference[hidden]{display:none}.smart-reference>span:nth-child(2){flex:1}.smart-reference small,.smart-reference strong{display:block}.smart-reference small{font-size:11px;color:#80648e;margin-bottom:3px}.smart-reference strong{font-size:14px}.smart-reference img{width:42px;height:42px;object-fit:contain}.smart-reference button{padding:0;width:34px;min-height:34px;border:0;border-radius:50%;background:#fff;color:#73369b;font-size:22px}.smart-create[hidden]{display:none!important}

#modal .receipt-product-mapping>div{display:flex;align-items:center;gap:10px}#modal .receipt-product-mapping>div>span:not(.product-illustration){flex:1;min-width:0}#modal .smart-unlink{flex:0 0 34px;width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:white;color:#7432a1;font-size:22px}

#modal .receipt-save-options{padding:16px;border:1px solid #e3d8ec;border-radius:20px;background:#fff;margin:18px 0 22px}#modal .receipt-save-options summary{font-size:15px;font-weight:700;margin-bottom:16px}#modal .receipt-save-options label{font-size:12px;margin-top:14px}#modal .review-option-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}#modal .review-option-buttons button{flex:1;min-height:42px;padding:9px 12px;border-radius:13px;border:1px solid #e1d5eb;background:#fff;color:#775b8a;font-size:13px}#modal .review-option-buttons button[aria-pressed=true]{background:#eee5f6;border-color:#ad81ca;color:#632c8a}#modal .receipt-save-options p{font-size:11px;line-height:1.5;margin:6px 0 14px}#modal .review-stock-toggle{display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:9px;padding-top:14px;border-top:1px solid #eee7f3;color:#34283e;font-size:13px}#modal .review-stock-toggle input{width:20px;height:20px;min-height:20px;accent-color:#74359d;margin:0}#modal .review-stock-toggle small{grid-column:2;font-size:11px;color:#85728d;line-height:1.5}#modal .review-organize{margin:0 0 20px;padding:16px;background:#f8f5fb;border:1px solid #e7dfee;border-radius:20px}#modal .review-organize h3{margin:0 0 8px;font-size:16px}#modal .review-organize #receipt-review-count{font-size:12px;line-height:1.6;margin:0 0 14px;color:#796587}#modal .review-organize .receipt-review-filters{display:flex;gap:4px;padding:4px;background:#eee7f4;border-radius:14px;margin:0 0 12px}#modal .review-organize .receipt-review-filters button{flex:1;border:0;background:transparent;border-radius:10px;min-height:38px;margin:0;font-size:12px;padding:8px}#modal .review-organize .receipt-review-filters button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #33114412;color:#63318b}#modal #receipt-next-pending{width:100%;margin:0;min-height:44px;border-radius:14px}#modal .review-secondary{margin-top:14px;border-top:1px solid #e5dcec;padding-top:12px}#modal .review-secondary summary{font-size:12px;color:#80688d;cursor:pointer}#modal .review-secondary p{font-size:11px;line-height:1.5}#modal #receipt-defer{width:100%;font-size:12px;background:#fff;border:1px solid #ded0e8;border-radius:12px;margin:0;padding:10px;white-space:normal}#modal .review-organize [hidden],#modal .receipt-save-options select[hidden]{display:none!important}

#modal .receipt-save-options>summary,#modal .review-secondary>summary,#modal .receipt-row>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}#modal summary::-webkit-details-marker{display:none}#modal summary::marker{content:''}#modal .review-disclosure-arrow{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#f1ecf6;color:#765989}#modal .review-disclosure-arrow svg{width:17px;height:17px;transition:transform .22s ease}#modal details[open]>summary>.review-disclosure-arrow svg{transform:rotate(180deg)}#modal details.review-closing>summary>.review-disclosure-arrow svg{transform:rotate(0)}#modal .review-stock-toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:0;border:1px solid #d8c5e7;border-radius:50%;background:#fff;cursor:pointer}#modal .review-stock-toggle input[type=checkbox]:checked{background:#eee4f6;border-color:#b893d1}#modal .review-stock-toggle input[type=checkbox]:checked::after{content:'';width:11px;height:11px;background:#77359e;clip-path:polygon(0 45%,14% 31%,40% 57%,86% 6%,100% 20%,40% 88%)}#modal .review-stock-toggle{grid-template-columns:24px 1fr}#modal .receipt-save-options .review-option-buttons:first-of-type{flex-direction:column}#modal .receipt-save-options .review-option-buttons:first-of-type button{text-align:left}#modal .receipt-save-options:not([open])>summary{margin-bottom:0}@media(prefers-reduced-motion:reduce){#modal .review-disclosure-arrow svg{transition:none}}

#modal .purchase-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0 12px}#modal .purchase-mode-tabs button{font-size:12px;min-height:46px;padding:9px;border:1px solid #ded0e8;border-radius:13px;background:#fff;color:#755786;line-height:1.4}#modal .purchase-mode-tabs button[aria-pressed=true]{background:#eee5f6;border-color:#b48acf;color:#62288a}#modal .purchase-picker{padding:12px;background:#f8f5fb;border:1px solid #e6dced;border-radius:15px;margin-bottom:12px}#modal .purchase-picker label{margin:0 0 6px}#modal .purchase-picker input{min-height:40px;font-size:13px}#modal .purchase-picker-list{max-height:230px;overflow:auto;overscroll-behavior:contain;margin-top:10px}#modal .purchase-picker-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:11px;background:#fff;border:1px solid #e3d8ed;border-radius:12px;margin-bottom:6px;font-size:12px}#modal .purchase-picker-list strong,#modal .purchase-picker-list small{display:block}#modal .purchase-picker-list small{font-size:11px;color:#85708e;margin-top:4px}#modal .purchase-picker-list button[aria-pressed=true]{border-color:#a878c7;background:#f1e8f8}#modal .purchase-selected-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f6f0fa;border-radius:12px}#modal .purchase-selected-preview span{font-size:12px;line-height:1.6}#modal .purchase-selected-preview strong{display:block}#modal .purchase-selected-preview button{border:0;background:#fff;color:#713695;min-height:34px;padding:6px 10px;font-size:12px}#modal .purchase-mode-preview [hidden]{display:none!important}

#modal .purchase-picker{background:#fff;padding:12px;border-radius:18px}#modal .review-month-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px}#modal .review-month-nav strong{font-size:13px;text-transform:capitalize;color:#483653}#modal .review-month-nav button{width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:#f2ecf7;color:#703897;font-size:24px}#modal .purchase-picker-list{padding-right:5px;scrollbar-width:thin;scrollbar-color:#ceb9df transparent;max-height:260px}#modal .purchase-picker-list button{border:0;border-bottom:1px solid #eee7f3;border-radius:0;margin:0;padding:14px 8px;background:#fff}#modal .purchase-picker-list button:hover{background:#f8f4fc;border-radius:10px}#modal .purchase-picker-list button b{font-size:14px;font-weight:650;color:#4f2a66}#modal .purchase-picker-list button strong{font-size:13px;font-weight:600}#modal .review-confirm-item{display:block;width:100%;min-height:44px;margin:16px 0 0;border-radius:14px}#modal .review-confirm-item:disabled{opacity:.4;cursor:default}.receipt-row{scroll-margin-top:15px}

#modal .receipt-choice-test .smart-status[hidden]{display:none!important}#modal .receipt-once-note{font-size:11px;line-height:1.5;color:#806d8c;margin:14px 0 8px}#modal .receipt-choice-test{margin:12px 0 0}#modal .receipt-choice-test .smart-actions{gap:4px;margin-top:8px}#modal .receipt-choice-test .smart-history{min-height:32px;padding:5px 8px}#modal .receipt-product-mapping .receipt-original{margin-bottom:7px}#modal .review-confirm-item{margin-top:12px}

/* Compact receipt review, keeping interactive controls at least 44px tall. */
#modal .receipt-row{margin-bottom:10px;border-radius:16px}#modal .receipt-row>details>summary{padding:10px 12px;gap:8px}#modal .receipt-row>details>summary strong{font-size:13px;line-height:1.3}#modal .receipt-row>details>summary small{font-size:11px;margin-top:2px;line-height:1.35}#modal .receipt-row-fields{padding:10px 12px}#modal .receipt-product-mapping{padding:8px 10px;border-radius:12px}#modal .receipt-product-mapping .receipt-original{font-size:10px;margin:0 0 5px;line-height:1.3}#modal .receipt-product-mapping>div{gap:8px}#modal .receipt-product-mapping .product-illustration,#modal .receipt-product-mapping img{width:34px;height:34px;min-width:34px;object-fit:contain}#modal .receipt-product-mapping strong{font-size:13px;line-height:1.3}#modal .receipt-product-mapping small{font-size:10px;line-height:1.3}#modal .receipt-choice-test{margin-top:9px}#modal .receipt-choice-test>label{font-size:11px;margin:0 0 4px}#modal .smart-search{min-height:44px;border-radius:12px}#modal .smart-search input{min-height:44px;font-size:13px;padding:8px 0!important}#modal .smart-search button{min-height:44px;width:36px}#modal .smart-results p{font-size:11px;line-height:1.4;margin:7px 0}#modal .smart-match{min-height:52px;padding:8px;margin:5px 0;border-radius:12px;gap:8px}#modal .smart-match strong{font-size:12px}#modal .smart-match small{font-size:10px;margin-top:2px}#modal .smart-match img,#modal .smart-match .product-illustration{width:32px;height:32px;flex-basis:32px}#modal .smart-actions:has(>.smart-create[hidden]){display:none}#modal .smart-create{min-height:44px;padding:8px;font-size:12px}#modal .receipt-compact-actions{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px;margin-top:10px;align-items:stretch}#modal .receipt-compact-actions .smart-history,#modal .receipt-compact-actions .review-confirm-item{min-height:44px;width:100%;margin:0;padding:8px;font-size:12px;line-height:1.3;border-radius:12px}#modal .receipt-compact-actions .smart-history{background:#fff;border:1px solid #e5d9ee;color:#79618a}#modal .smart-category{margin-top:10px}#modal .smart-category-options{gap:5px}#modal .smart-category-options button{min-height:44px;padding:6px 9px}#modal .receipt-row .receipt-review-flag{margin-top:4px;padding:3px 7px;font-size:10px}#modal .receipt-product-mapping .smart-unlink{min-height:44px;flex-basis:36px;width:36px}#modal .receipt-row .review-disclosure-arrow{width:36px;height:44px;flex-basis:36px;background:transparent}@media(max-width:350px){#modal .receipt-compact-actions{gap:5px}#modal .receipt-compact-actions button{font-size:11px}}
/* Focus belongs to the whole search control, including both icons. */
.smart-search:focus-within{outline:2px solid #7835a1;outline-offset:-1px;border-color:transparent}
.smart-search input:focus,.smart-search input:focus-visible{outline:none!important;box-shadow:none!important}
