/* IYES CHAT v3.5.2 - scoped operator responsiveness + v352 panels */
body.operator-body{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.operator-body .operator-shell{height:100dvh!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
body.operator-body .operator-content{min-height:0!important;height:auto!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
body.operator-body .operator-kpis{min-height:0!important;flex:0 0 auto!important}
body.operator-body .operator-inbox.inbox.inbox-pro{height:100%!important;max-height:100%!important;min-height:0!important;min-width:0!important;overflow:hidden!important;align-self:stretch!important}
body.operator-body .operator-inbox .convs,body.operator-body .operator-inbox .chat,body.operator-body .operator-inbox .customer-panel{min-height:0!important;min-width:0!important;max-height:100%!important}
body.operator-body .operator-inbox .chat{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
body.operator-body .operator-inbox .messages{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
body.operator-body .operator-composer{position:relative!important;flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;z-index:5}
body.operator-body .operator-composer .composer-tools{max-width:100%!important}
body.operator-body .operator-composer .composer{min-width:0!important}
body.operator-body .operator-composer .composer-input-wrap{min-width:0!important}
body.operator-body .operator-composer #msg-text{max-height:110px!important}
@media(min-width:1180px){body.operator-body .operator-inbox.inbox.inbox-pro{grid-template-columns:minmax(230px,280px) minmax(360px,1fr) minmax(260px,330px)!important}}
@media(min-width:981px) and (max-width:1179px){body.operator-body .operator-inbox.inbox.inbox-pro{grid-template-columns:minmax(230px,290px) minmax(360px,1fr)!important}body.operator-body .operator-inbox .customer-panel{display:none!important}}
@media(min-width:981px) and (max-height:760px){
 body.operator-body .operator-topbar{min-height:50px!important;padding-top:6px!important;padding-bottom:6px!important}
 body.operator-body .operator-content{padding-top:6px!important;padding-bottom:6px!important}
 body.operator-body .operator-kpis{gap:6px!important;margin-bottom:6px!important}
 body.operator-body .operator-kpi{padding:7px 10px!important}body.operator-body .operator-kpi strong{font-size:19px!important}
 body.operator-body .chat-head{padding-top:7px!important;padding-bottom:7px!important}
 body.operator-body .operator-composer .composer-tools{padding:5px 8px!important;gap:5px!important;flex-wrap:nowrap!important;overflow-x:auto!important}
 body.operator-body .operator-composer .composer{padding:6px 8px!important;gap:7px!important}
 body.operator-body .operator-composer #msg-text{min-height:44px!important;height:44px!important;max-height:72px!important}
 body.operator-body .operator-composer #msg-send{min-height:44px!important;min-width:90px!important}
}
@media(max-width:980px){
 body.operator-body .operator-shell{height:var(--iyes-vv-height,100dvh)!important}
 body.operator-body .operator-content{height:auto!important;min-height:0!important;padding:8px!important}
 body.operator-body .operator-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-bottom:7px!important}
 body.operator-body .operator-kpi{padding:8px!important}
 body.operator-body .operator-inbox.inbox.inbox-pro{grid-template-columns:minmax(0,1fr)!important;height:100%!important;min-height:0!important}
 body.operator-body .operator-inbox .customer-panel{display:none!important}
 body.operator-body:not(.mobile-inbox-chat) .operator-inbox .chat{display:none!important}
 body.operator-body.mobile-inbox-chat .operator-kpis{display:none!important}
 body.operator-body.mobile-inbox-chat .operator-content{grid-template-rows:minmax(0,1fr)!important;padding:0!important}
 body.operator-body.mobile-inbox-chat .operator-inbox .convs{display:none!important}
 body.operator-body.mobile-inbox-chat .operator-inbox .chat{display:grid!important;height:100%!important;grid-template-rows:auto minmax(0,1fr) auto!important}
 body.operator-body.mobile-inbox-chat .operator-composer .composer-tools{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:5px 7px!important;scrollbar-width:none}
 body.operator-body.mobile-inbox-chat .operator-composer .composer-tools::-webkit-scrollbar{display:none}
 body.operator-body.mobile-inbox-chat .operator-composer .composer-tools>*{flex:0 0 auto!important}
 body.operator-body.mobile-inbox-chat .operator-composer .composer{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:end!important;gap:6px!important;padding:7px!important}
 body.operator-body.mobile-inbox-chat .operator-composer #msg-attach{width:42px!important;min-width:42px!important;height:44px!important;padding:0!important}
 body.operator-body.mobile-inbox-chat .operator-composer #msg-text{min-height:44px!important;height:44px!important;max-height:88px!important;font-size:16px!important;resize:none!important}
 body.operator-body.mobile-inbox-chat .operator-composer #msg-send{min-width:72px!important;width:auto!important;min-height:44px!important;padding:0 12px!important}
 body.operator-body.mobile-inbox-chat .operator-composer .send-hint{display:none!important}
}
@media(max-width:560px){body.operator-body .operator-kpis{grid-template-columns:1fr 1fr!important}body.operator-body .operator-kpi{font-size:11px!important}body.operator-body .operator-topbar .v352-receipts-btn b{display:none}body.operator-body .operator-topbar .v352-receipts-btn{width:42px!important;padding:0!important;justify-content:center!important}}
body.operator-body.iyes-keyboard-open.mobile-inbox-chat .operator-composer .composer-tools{display:none!important}

.v352-receipts-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid #bdd0e8;border-radius:10px;background:var(--panel,#fff);color:var(--text,#17345d);cursor:pointer;white-space:nowrap}
.v352-receipts-btn:hover{border-color:#6aa7ef;background:#f4f8ff}body:not(.theme-light) .v352-receipts-btn{background:#10264a;color:#e7efff;border-color:#315181}
.v352-overlay{position:fixed;inset:0;z-index:100500;background:rgba(15,23,42,.58);display:grid;place-items:center;padding:18px}
.v352-modal{width:min(1040px,96vw);max-height:min(900px,94dvh);display:flex;flex-direction:column;background:var(--panel,#fff);color:var(--text,#172033);border:1px solid var(--line,#dbe5f0);border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden}
.v352-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,#dbe5f0)}.v352-modal-head>div{display:grid;gap:2px}.v352-modal-head b{font-size:18px}.v352-modal-head small{color:var(--muted,#64748b)}
.v352-x{width:38px;height:38px;border:1px solid var(--line,#dbe5f0);border-radius:10px;background:transparent;color:inherit;font-size:24px;cursor:pointer}.v352-modal-body{padding:14px 16px 18px;overflow:auto;min-height:0}
.v352-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:8px}.v352-toolbar button,.v352-receipt-actions button,.v352-tabs button,.v352-save-row button,.v352-add-period,.v352-schedule-card button{border:1px solid #b8cbe5;border-radius:9px;background:#f4f8ff;color:#17345d;padding:8px 11px;cursor:pointer}
.v352-help{margin:7px 0 12px;color:var(--muted,#64748b);font-size:12px}.v352-receipt{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--line,#dbe5f0);border-radius:12px;margin:8px 0}.v352-receipt.likely{border-color:#8bd7ad;background:rgba(34,197,94,.045)}
.v352-receipt-icon{font-size:24px;text-align:center}.v352-receipt-main{min-width:0}.v352-receipt-main small{color:var(--muted,#64748b)}.v352-receipt-main p{margin:5px 0 0;font-size:12px}.v352-receipt-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.v352-receipt-title span{font-size:10px;padding:3px 7px;border-radius:999px;background:#e9f9ef;color:#177245}.v352-receipt-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.v352-loading,.v352-empty,.v352-error{padding:24px;text-align:center;border:1px dashed var(--line,#dbe5f0);border-radius:12px;color:var(--muted,#64748b)}.v352-error{color:#9f2940}
.v352-schedule-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;margin:0 0 14px;border:1px solid #bfd3ee;border-radius:14px;background:linear-gradient(135deg,rgba(59,130,246,.07),rgba(14,165,233,.035))}.v352-schedule-card p{margin:4px 0 0;color:var(--muted,#64748b);font-size:12px}
.v352-schedule-intro{padding:12px;border:1px solid var(--line,#dbe5f0);border-radius:12px;background:rgba(59,130,246,.04)}.v352-schedule-intro p{margin:8px 0;color:var(--muted,#64748b)}
.v352-tabs{display:flex;gap:7px;margin:12px 0}.v352-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.v352-week{display:none;gap:8px}.v352-week.active{display:grid}
.v352-day{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px;border:1px solid var(--line,#dbe5f0);border-radius:11px}.v352-day-head{display:grid;gap:6px}.v352-day-head label{font-size:12px}
.v352-periods{display:grid;gap:6px}.v352-period{display:grid;grid-template-columns:minmax(100px,150px) auto minmax(100px,150px) 34px;gap:6px;align-items:center}.v352-period input{width:100%;min-height:38px;border:1px solid #bfd0e5;border-radius:8px;padding:7px}.v352-period [data-rm]{width:34px;height:34px;border:1px solid #e0a8b3;border-radius:8px;background:#fff3f5;color:#9f2940;cursor:pointer}
.v352-add-period{white-space:nowrap}.v352-save-row{display:flex;justify-content:flex-end;margin-top:14px}.v352-save-row .primary{background:#2563eb;color:#fff;border-color:#2563eb;padding:10px 16px}
body:not(.theme-light) .v352-modal,body:not(.theme-light) .v352-receipt{background:#0e1d39}body:not(.theme-light) .v352-day,body:not(.theme-light) .v352-schedule-intro{background:#10264a}
@media(max-width:700px){.v352-overlay{padding:0;align-items:stretch}.v352-modal{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.v352-modal-body{padding:12px}.v352-receipt{grid-template-columns:36px minmax(0,1fr)}.v352-receipt-actions{grid-column:1/-1;justify-content:stretch}.v352-receipt-actions button{flex:1}.v352-day{grid-template-columns:1fr}.v352-period{grid-template-columns:1fr auto 1fr 34px}.v352-add-period{justify-self:start}.v352-schedule-card{align-items:stretch;flex-direction:column}.v352-schedule-card button{width:100%}}