.et-warranty-overlay{position:fixed;inset:0;z-index:2147482500;background:rgba(3,23,27,.70);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.et-warranty-dialog{width:min(860px,96vw);max-height:94vh;min-height:280px;overflow:hidden;background:#fff;border-radius:22px;color:#16211f;display:flex;flex-direction:column;box-shadow:0 30px 90px rgba(0,0,0,.35);box-sizing:border-box}
.et-warranty-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid #e6ecea;flex:0 0 auto}.et-warranty-head h2{margin:0;font-weight:900;font-size:22px}.et-warranty-head small{display:block;margin-top:4px;color:#73817d}.et-warranty-x{width:42px;height:42px;min-width:42px;border:0;border-radius:12px;background:#edf3f1;color:#243b36;font-size:24px;line-height:1;cursor:pointer}
.et-warranty-body{padding:18px;overflow:auto;min-height:0;overscroll-behavior:contain}.et-warranty-search{display:flex;gap:10px;position:sticky;top:-18px;background:#fff;padding:0 0 10px;z-index:2}.et-warranty-search input{flex:1;min-width:0;height:54px;border:2px solid #d5e0dd;border-radius:13px;padding:0 15px;font-size:17px;outline:none;background:#fff;color:#172824}.et-warranty-search input:focus{border-color:#0eaa5a;box-shadow:0 0 0 3px rgba(14,170,90,.12)}.et-warranty-search button,.et-warranty-btn{height:54px;border:0;border-radius:12px;background:#0eaa5a;color:#fff;padding:0 22px;font-weight:900;cursor:pointer}.et-warranty-helper{font-size:12px;color:#74807d;margin:1px 2px 12px}.et-warranty-results{display:grid;gap:10px}.et-warranty-row{border:1px solid #dce5e2;border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff}.et-warranty-row-main{min-width:0}.et-warranty-name{font-weight:900;font-size:16px;overflow-wrap:anywhere}.et-warranty-meta{font-size:12px;color:#74807d;margin-top:3px;line-height:1.45}.et-warranty-terms{max-width:620px}.et-warranty-status{text-align:right;font-weight:900;white-space:nowrap}.et-warranty-status.active{color:#0a9d50}.et-warranty-status.expired{color:#d22d2d}.et-warranty-empty{padding:26px 16px;border:1px dashed #ccd9d5;border-radius:14px;text-align:center;color:#74807d}.et-warranty-error{color:#b42318;border-color:#f0c6c1;background:#fff8f7}
.et-warranty-config{display:none;max-width:1040px;margin:20px auto;padding:0 20px;box-sizing:border-box}.et-warranty-card{background:#fff;border:1px solid #e3e9e7;border-radius:18px;padding:22px;box-shadow:0 8px 30px rgba(31,55,48,.05)}.et-warranty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.et-warranty-toggle{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #e1e8e6;border-radius:12px;padding:14px;font-weight:700}.et-warranty-config-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f5f9f7;color:#61706c;font-size:13px;line-height:1.5}.et-warranty-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px}.et-warranty-actions [data-status]{margin-right:auto;font-size:13px;color:#74807d}.et-warranty-actions [data-status].ok{color:#11884d}.et-warranty-actions [data-status].error{color:#b42318}.et-warranty-btn{height:44px}.et-warranty-menu-icon{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important}

/* Module 02 owns the on-screen keyboard state. Warranty only adapts its layout when that keyboard is actually open. */
.et-pos-keyboard-open .et-warranty-overlay{bottom:calc(var(--et-pos-kb-height,0px) + 8px)!important;padding:10px 16px!important;align-items:stretch!important}
.et-pos-keyboard-open .et-warranty-dialog{height:100%!important;max-height:100%!important;min-height:220px!important;margin:0 auto!important}
.et-pos-keyboard-open .et-warranty-body{padding-bottom:10px!important}

@media(max-width:700px){.et-warranty-row{grid-template-columns:1fr}.et-warranty-status{text-align:left;white-space:normal}.et-warranty-search{flex-direction:column}.et-warranty-search button{height:48px}.et-warranty-grid{grid-template-columns:1fr}.et-warranty-dialog{width:100%;max-height:96vh;border-radius:16px}.et-warranty-head{padding:14px 15px}.et-warranty-body{padding:14px}.et-warranty-search{top:-14px}.et-warranty-helper{line-height:1.4}.et-pos-keyboard-open .et-warranty-overlay{padding:6px!important}.et-pos-keyboard-open .et-warranty-dialog{border-radius:14px!important}}

/* Module 02 integration: reuse the Suspended slot instead of adding a ninth quick button.
   The original Suspended action is untouched in Module 02 and comes back automatically when
   Warranty is disabled or the Warranty POS button setting is turned off. */
html.et-warranty-touch-slot #et-pos-touch-sidepanel [data-et-action="suspended"]{position:relative!important;color:transparent!important;text-shadow:none!important}
html.et-warranty-touch-slot #et-pos-touch-sidepanel [data-et-action="suspended"]::after{content:"Warranty Check";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;pointer-events:none}

/* v1.0.3: receipt drill-down stays outside the dashboard navigation. */
.et-warranty-row-side{display:flex;align-items:flex-end;justify-content:center;flex-direction:column;gap:9px;min-width:190px}
.et-warranty-receipt-btn{height:38px;border:0;border-radius:10px;padding:0 14px;background:#0b5d52;color:#fff;font-weight:850;cursor:pointer;white-space:nowrap;box-shadow:0 5px 14px rgba(11,93,82,.14)}
.et-warranty-receipt-btn:hover{filter:brightness(.96)}
.et-warranty-serial b{color:#263b35;font-weight:900}
@media(max-width:700px){.et-warranty-row-side{align-items:flex-start;min-width:0}.et-warranty-receipt-btn{width:100%}}

/* v1.0.4 compact in-POS receipt / warranty drill-down. No browser popup/window. */
.et-warranty-receipt-overlay{position:fixed;inset:0;z-index:2147483400;background:rgba(4,23,25,.48);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.et-warranty-receipt-card{width:min(590px,calc(100vw - 28px));max-height:min(720px,86vh);overflow:hidden;background:#fff;border:1px solid #dfe8e4;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);display:flex;flex-direction:column;color:#172824;box-sizing:border-box}
.et-wr-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 13px;border-bottom:1px solid #e7eeeb;flex:0 0 auto}.et-wr-top h3{margin:0;font-size:18px;font-weight:900}.et-wr-top small{display:block;margin-top:2px;color:#77837f;font-size:12px}.et-wr-x{width:36px;height:36px;min-width:36px;border:0;border-radius:10px;background:#eef4f1;color:#203630;font-size:22px;line-height:1;cursor:pointer}
.et-wr-body{padding:14px 16px;overflow:auto;min-height:0;overscroll-behavior:contain}.et-wr-customer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f5f9f7;border-radius:11px;margin-bottom:10px}.et-wr-customer b{font-size:14px}.et-wr-customer span{font-size:12px;color:#687672}
.et-wr-items{display:grid;gap:9px}.et-wr-item{border:1px solid #dfe8e4;border-radius:12px;padding:11px 12px;background:#fff}.et-wr-product{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:7px}.et-wr-product b{font-size:14px;line-height:1.25}.et-wr-product small{font-size:11px;color:#7b8783;white-space:nowrap}.et-wr-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 0;font-size:12px}.et-wr-line span{color:#74817d}.et-wr-line b{text-align:right;overflow-wrap:anywhere}.et-wr-statusline{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:6px;font-size:12px}.et-wr-badge{display:inline-flex;align-items:center;min-height:23px;border-radius:999px;padding:0 8px;font-size:10px;font-weight:900;letter-spacing:.03em}.et-wr-badge.active{background:#e7f8ef;color:#087f45}.et-wr-badge.expired{background:#fff0ef;color:#bd2d27}.et-wr-badge.none{background:#eef2f1;color:#65726f}
.et-wr-payments{margin-top:10px;border-top:1px dashed #d8e2de;padding-top:7px}.et-wr-pay{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0;font-size:12px}.et-wr-pay span{color:#687672}.et-wr-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.et-wr-totals>div{background:#f5f9f7;border-radius:10px;padding:9px 10px}.et-wr-totals span{display:block;color:#71807b;font-size:10px;text-transform:uppercase;font-weight:800}.et-wr-totals b{display:block;margin-top:2px;font-size:14px}.et-wr-totals .due{background:#fff7ed}.et-wr-loading,.et-wr-empty,.et-wr-error{padding:28px 18px;text-align:center;color:#6e7c78}.et-wr-error{margin:4px 0;border:1px solid #f1c9c4;background:#fff8f7;color:#ad2d24;border-radius:11px}
.et-wr-actions{display:flex;justify-content:flex-end;gap:8px;padding:11px 16px 14px;border-top:1px solid #e7eeeb;flex:0 0 auto}.et-wr-btn{height:38px;border:0;border-radius:10px;padding:0 16px;background:#0b765c;color:#fff;font-weight:850;cursor:pointer}.et-wr-btn.ghost{background:#eef4f1;color:#263b35}
@media(max-width:640px){.et-warranty-receipt-overlay{padding:8px}.et-warranty-receipt-card{width:100%;max-height:88vh;border-radius:14px}.et-wr-totals{grid-template-columns:1fr 1fr 1fr}.et-wr-customer{align-items:flex-start;flex-direction:column;gap:3px}}
@media print{body:has(#et-warranty-receipt-overlay)>*:not(#et-warranty-receipt-overlay){display:none!important}#et-warranty-receipt-overlay{position:static!important;display:block!important;background:#fff!important;padding:0!important}#et-warranty-receipt-overlay .et-warranty-receipt-card{width:100%!important;max-height:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}#et-warranty-receipt-overlay .et-wr-actions,#et-warranty-receipt-overlay .et-wr-x{display:none!important}#et-warranty-receipt-overlay .et-wr-body{overflow:visible!important}}

/* Stocky 5.8 dashboard and accessible touch targets. */
.et-warranty-config,.et-warranty-overlay,.et-warranty-receipt-overlay{font-family:inherit}
.et-warranty-config button,.et-warranty-overlay button,.et-warranty-receipt-overlay button{min-height:44px}
.et-warranty-config :focus-visible,.et-warranty-overlay :focus-visible,.et-warranty-receipt-overlay :focus-visible{outline:3px solid var(--primary-color,#078a61);outline-offset:2px}
