/* Reservation Workspace + Extras overlay polish */
html:not([data-theme="dark"]) .reservation-workspace-open .drawer-head,
html:not([data-theme="dark"]) .reservation-workspace-open .rw-toolbar{background:#eef4f1!important}
html:not([data-theme="dark"]) .reservation-workspace-open .drawer-content,
html:not([data-theme="dark"]) .reservation-workspace-open .rw-workspace{background:#dce6e3!important}
html:not([data-theme="dark"]) .reservation-workspace-open .rw-section{background:#f6faf8!important}

.reservation-workspace-open .rw-field input[type="date"],
.reservation-workspace-open .rw-field input[type="time"]{color-scheme:light}
.reservation-workspace-open .rw-field input[type="date"]::-webkit-calendar-picker-indicator,
.reservation-workspace-open .rw-field input[type="time"]::-webkit-calendar-picker-indicator{opacity:.68;filter:none}
html[data-theme="dark"] .reservation-workspace-open .rw-field input[type="date"],
html[data-theme="dark"] .reservation-workspace-open .rw-field input[type="time"]{color-scheme:dark}
html[data-theme="dark"] .reservation-workspace-open .rw-field input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .reservation-workspace-open .rw-field input[type="time"]::-webkit-calendar-picker-indicator{opacity:.86;filter:invert(1) brightness(1.35)}

.rw-extra-row input.is-fixed-rate,
#reservationDrawer .re-rate.is-fixed-rate{cursor:default!important;user-select:none!important;background:#edf2ef!important;border-color:#d2ddd7!important;color:#65756d!important;box-shadow:none!important}
html[data-theme="dark"] .rw-extra-row input,
html[data-theme="dark"] .rw-extra-row input.is-fixed-rate{background:#172a32!important;border-color:#344952!important;color:#eef4f7!important}
html[data-theme="dark"] .rw-extra-row input.is-fixed-rate{background:#1a252b!important;color:#9eb2a8!important;border-color:#334149!important}
html[data-theme="dark"] #reservationDrawer .re-rate.is-fixed-rate{background:#1a252b!important;color:#9eb2a8!important;border-color:#334149!important}

#reservationDrawer.extras-overlay-active{overflow:hidden!important}
.extras-overlay-shell{position:absolute;z-index:60;left:0;right:0;top:72px;bottom:0;display:flex;justify-content:flex-end;align-items:stretch;padding:14px 22px 18px;background:rgba(31,52,46,.14);backdrop-filter:blur(2.2px) saturate(.92);-webkit-backdrop-filter:blur(2.2px) saturate(.92)}
.extras-overlay-panel{width:min(770px,calc(100% - 70px));min-width:0;height:100%;display:flex;flex-direction:column;border:1px solid rgba(106,132,120,.28);border-radius:16px;background:#edf3f1;color:#17221d;box-shadow:0 22px 55px rgba(19,41,33,.22);overflow:hidden}
.xo-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 18px 12px;background:#f4f8f6;border-bottom:1px solid rgba(112,138,126,.20)}
.xo-head>div>span{display:block;font-size:10px;letter-spacing:.09em;color:#6f8479}
.xo-head h3{margin:4px 0 0;font-size:21px;font-weight:400}
.xo-close{width:34px;height:34px;border:1px solid #cad7d1;border-radius:9px;background:#f8fbf9;color:#42534b;font-size:20px;font-weight:400}
.xo-nav{display:flex;justify-content:flex-end;gap:8px;padding:10px 18px 0;background:#edf3f1}
.xo-nav button,.xo-secondary,.xo-primary,.xo-remove{font-weight:400;border-radius:8px;padding:8px 11px}
.xo-nav button,.xo-secondary{border:1px solid #aabeb4;background:#f6faf8;color:#30473c}
.xo-primary{border:1px solid #2f7b55;background:#1f6a48;color:#fff}
.xo-remove{border:1px solid #d7b2b2;background:#fff5f5;color:#9d3d3d}
.xo-scroll{flex:1;min-height:0;overflow:auto;padding:12px 16px 18px}
.xo-section{background:#f8fbf9;border:1px solid rgba(112,138,126,.24);border-radius:13px;padding:14px 15px;margin-bottom:11px;box-shadow:0 5px 16px rgba(20,43,34,.035)}
.xo-section h4{margin:0 0 10px;font-size:15px;font-weight:400}
.xo-section small,.xo-note{font-size:11px;color:#71847b;font-weight:400;line-height:1.35}
.xo-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.xo-section-head h4{margin-bottom:3px}
.xo-return-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.xo-return-grid label,.xo-custom-row label{display:grid;gap:5px;font-size:11px;color:#6d8177;font-weight:400}
.xo-return-grid input,.xo-return-grid select,.xo-custom-row input,.xo-qty,.xo-days{width:100%;box-sizing:border-box;border:1px solid #c5d3cd;border-radius:8px;background:#fdfefd;color:#17221d;padding:8px 9px;font:inherit;font-weight:400;outline:none}
.xo-return-grid input:focus,.xo-return-grid select:focus,.xo-custom-row input:focus,.xo-qty:focus,.xo-days:focus{border-color:#4b9270;box-shadow:0 0 0 3px rgba(67,139,102,.10)}
.xo-custom-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:9px;align-items:end;margin-bottom:8px}
.xo-rental-head,.xo-rental-row{display:grid;grid-template-columns:minmax(190px,1fr) 60px 60px 100px 94px;gap:8px;align-items:center}
.xo-rental-head{padding:5px 0 8px;border-bottom:1px solid rgba(112,138,126,.18);font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#71847b}
.xo-rental-row{padding:8px 0;border-bottom:1px solid rgba(112,138,126,.13);font-size:12px}
.xo-rental-row:last-child{border-bottom:0}
.xo-extra-name{min-width:0}
.xo-qty,.xo-days{text-align:right;padding:7px}
.xo-fixed-rate{display:block;text-align:right;padding:7px 9px;border:1px solid #cfdad5;border-radius:8px;background:#edf2ef;color:#5f7168;cursor:default;white-space:nowrap}
.xo-line-total{text-align:right;white-space:nowrap}
.xo-tax-row{display:grid;grid-template-columns:auto 1fr 90px;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(112,138,126,.14);cursor:pointer}
.xo-tax-row:last-child{border-bottom:0}
.xo-tax-row.is-off{opacity:.56}
.xo-tax-check{width:17px;height:17px;margin:0;accent-color:#2c8b5b;cursor:pointer}
.xo-tax-name{display:block;font-size:12px;color:inherit}
.xo-tax-row small{display:block;margin-top:2px}
.xo-tax-amount{text-align:right;white-space:nowrap;font-size:12px}
.xo-subtotal-row,.xo-total,.xo-history{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:9px 0;font-size:12px}
.xo-subtotal-row{border-bottom:1px solid rgba(112,138,126,.14)}
.xo-total{font-size:15px}
.xo-actions{display:flex;justify-content:flex-end;gap:8px;margin:10px 0 6px}
.xo-final{background:#f1f7f4}
.xo-history{border-bottom:1px solid rgba(112,138,126,.14)}
.xo-history:last-child{border-bottom:0}
.xo-empty,.extras-overlay-loading,.extras-overlay-error{padding:28px;text-align:center;color:#72857c;font-size:12px}
.extras-overlay-loading,.extras-overlay-error{margin:auto;background:#f8fbf9;border:1px solid rgba(112,138,126,.24);border-radius:12px;min-width:220px}
.extras-overlay-error{color:#9d3d3d}

html[data-theme="dark"] .extras-overlay-shell{background:rgba(2,10,14,.30);backdrop-filter:blur(2.4px) saturate(.85);-webkit-backdrop-filter:blur(2.4px) saturate(.85)}
html[data-theme="dark"] .extras-overlay-panel{background:#102027;color:#ecf3ef;border-color:#30454d;box-shadow:0 24px 60px rgba(0,0,0,.38)}
html[data-theme="dark"] .xo-head{background:#13252d;border-color:#2d424a}
html[data-theme="dark"] .xo-head>div>span,html[data-theme="dark"] .xo-section small,html[data-theme="dark"] .xo-note,html[data-theme="dark"] .xo-rental-head,html[data-theme="dark"] .xo-return-grid label,html[data-theme="dark"] .xo-custom-row label{color:#8fa69b}
html[data-theme="dark"] .xo-close,html[data-theme="dark"] .xo-nav button,html[data-theme="dark"] .xo-secondary{background:#162a31;color:#e8f0ec;border-color:#3c555e}
html[data-theme="dark"] .xo-nav{background:#102027}
html[data-theme="dark"] .xo-section{background:#14262d;border-color:#2d424a;box-shadow:none}
html[data-theme="dark"] .xo-final{background:#152b25}
html[data-theme="dark"] .xo-return-grid input,html[data-theme="dark"] .xo-return-grid select,html[data-theme="dark"] .xo-custom-row input,html[data-theme="dark"] .xo-qty,html[data-theme="dark"] .xo-days{background:#172a32;color:#eef4f1;border-color:#3a5059}
html[data-theme="dark"] .xo-fixed-rate{background:#1a252b;color:#9eb2a8;border-color:#35454c}
html[data-theme="dark"] .xo-rental-row,html[data-theme="dark"] .xo-rental-head,html[data-theme="dark"] .xo-tax-row,html[data-theme="dark"] .xo-subtotal-row,html[data-theme="dark"] .xo-history{border-color:#263b43}
html[data-theme="dark"] .xo-tax-name{color:#edf4f0}
html[data-theme="dark"] .extras-overlay-loading,html[data-theme="dark"] .extras-overlay-error{background:#14262d;border-color:#2d424a;color:#a9bbb2}
html[data-theme="dark"] .extras-overlay-error{color:#efaaaa}

@media(max-width:1050px){.extras-overlay-shell{padding:12px 14px 14px}.extras-overlay-panel{width:min(720px,calc(100% - 20px))}.xo-return-grid{grid-template-columns:1fr 1fr}.xo-rental-head,.xo-rental-row{grid-template-columns:minmax(150px,1fr) 56px 56px 88px 86px}}
@media(max-width:720px){.extras-overlay-shell{top:64px;padding:8px;background:rgba(31,52,46,.18)}.extras-overlay-panel{width:100%}.xo-scroll{padding:10px}.xo-section{padding:12px}.xo-return-grid{grid-template-columns:1fr}.xo-custom-row{grid-template-columns:1fr}.xo-rental-head,.xo-rental-row{grid-template-columns:minmax(120px,1fr) 48px 48px 72px 74px;gap:5px;font-size:10px}.xo-rental-head{font-size:9px}.xo-actions{flex-direction:column}.xo-actions button{width:100%}}
