.window-titlebar{cursor:move;touch-action:none;display:flex;align-items:center;gap:14px}.window-controls{display:flex!important;align-items:center;gap:8px;flex-shrink:0}.window-controls button{width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:50%!important;border:1px solid #0002!important;font:700 17px/20px Arial!important;box-shadow:none!important;color:#422!important}.window-controls .window-close{background:#ff625b!important}.window-controls .window-min{background:#ffbd2e!important}.window-controls .window-max{background:#29c840!important}.window-controls button:focus-visible{outline:2px solid #005a75;outline-offset:3px}.managed-window:not(.chat-dock){position:relative}.managed-window.window-floating{position:fixed!important;inset:auto!important;margin:0!important;max-width:none!important;max-height:none!important;overflow:auto!important;box-shadow:0 14px 48px #173e4f44}.window-floating>.window-titlebar{position:sticky;top:0;background:#eef4fa;z-index:3}.managed-window.window-hidden{display:none!important}.window-dock{position:fixed;bottom:8px;left:16px;right:90px;display:flex;gap:8px;z-index:20000;pointer-events:none;overflow:auto}.window-dock:empty{display:none}.window-dock button{pointer-events:auto;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #c6d7e2;border-radius:10px;background:#eff5fa;color:#164456;padding:10px 16px;box-shadow:0 2px 10px #0002}.window-grip{position:sticky;bottom:0;float:right;right:0;background:transparent!important;border:0!important;color:#54717c!important;padding:4px!important;cursor:nwse-resize;touch-action:none}.window-dragging iframe{pointer-events:none}.attachment-dialog[open]{display:flex;flex-direction:column;position:fixed;inset:5vh 5vw auto auto;margin:0;z-index:1000;box-shadow:0 16px 60px #15304555}.attachment-dialog iframe{flex:1;min-height:100px;height:auto}.attachment-dialog .reader-toolbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Fixed square controls override global touch-target minimum heights. */
.window-controls{align-self:center!important;height:24px!important;flex:0 0 auto!important}
.window-controls button{box-sizing:border-box!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;aspect-ratio:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;transform:none!important}
.window-corner{position:absolute;z-index:10;width:20px;height:20px;touch-action:none;display:block}
.window-corner-nw{top:0;left:0;cursor:nwse-resize}.window-corner-ne{top:0;right:0;cursor:nesw-resize}.window-corner-sw{bottom:0;left:0;cursor:nesw-resize}.window-corner-se{bottom:0;right:0;cursor:nwse-resize}
.window-corner:focus-visible{outline:2px solid #0088a0;outline-offset:-3px}.attachment-dialog.window-floating{overflow:hidden!important}

/* Shared minimized-window shelf, anchored to the bottom right. */
.window-dock{left:auto;right:16px;bottom:0;max-width:calc(100vw - 32px);justify-content:flex-end;align-items:flex-end;overflow:visible;flex-wrap:wrap;gap:8px}
.window-dock button{width:300px;max-width:calc(100vw - 32px);padding:16px 22px;border-radius:14px 14px 0 0;background:#eef4fd;color:#173454;text-align:left;font-size:15px;font-weight:600;box-shadow:0 -4px 22px #173e4f26;min-height:52px}
body:has(.window-dock:not(:empty)) #chat-fab{bottom:70px}
@media(max-width:600px){.window-dock{right:8px;max-width:calc(100vw - 16px)}.window-dock button{width:220px;max-width:calc(100vw - 16px);padding:12px 16px}}

/* Attachment viewers use the existing mail palette and window controls. */
.attachment-dialog .reader-toolbar{flex:0 0 auto;flex-wrap:wrap;row-gap:10px}
.attachment-dialog .reader-toolbar a{flex:0 0 auto;white-space:nowrap}
.attachment-dialog .reader-toolbar [hidden],.attachment-dialog .attachment-preview-retry[hidden]{display:none!important}
.attachment-dialog .attachment-preview-status{flex:0 0 auto;margin:10px 0;line-height:1.5;overflow-wrap:anywhere}
.attachment-dialog .attachment-preview-error{color:#a22636}
.attachment-dialog .attachment-preview-retry{align-self:flex-start;flex:0 0 auto;margin-bottom:10px}
.attachment-dialog .attachment-preview-content{display:flex;flex:1 1 auto;min-height:100px;min-width:0;overflow:auto;background:#f8fbfd;border:1px solid #dce5ef;border-radius:10px}
.attachment-dialog .attachment-preview-content>iframe{display:block;flex:1 1 auto;width:100%;height:100%;min-height:200px;border:0;background:white}
.attachment-dialog .attachment-preview-content>img{display:block;align-self:flex-start;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto}
.attachment-dialog .attachment-preview-text{margin:0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:14px/1.5 monospace;color:#1f3542}
@media(max-width:600px){.attachment-dialog[open]{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:none;max-height:none;padding:12px;box-sizing:border-box}.attachment-dialog .reader-toolbar strong{flex-basis:100%;order:1}.attachment-dialog .reader-toolbar .window-controls{order:0}.attachment-dialog .reader-toolbar a{order:0}}

/* Local PDF canvas controls retain the shared mail palette. */
.attachment-dialog .attachment-pdf-viewer{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-width:0;min-height:0}
.attachment-dialog .attachment-pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;flex-wrap:wrap;padding:10px;background:#f0f7fa;border-bottom:1px solid #dce5ef}
.attachment-dialog .attachment-pdf-toolbar button,.attachment-dialog .attachment-pdf-toolbar select{font:inherit;font-size:13px;min-height:34px;padding:6px 10px;border:1px solid #c9dde7;border-radius:8px;background:white;color:#005b76}
.attachment-dialog .attachment-pdf-toolbar select{width:auto;flex:0 0 auto;margin:0}
.attachment-dialog .attachment-pdf-toolbar button:disabled{opacity:.45;cursor:default}
.attachment-dialog .attachment-pdf-page-number{font-size:13px;color:#244454;white-space:nowrap}
.attachment-dialog .attachment-pdf-pages{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;padding:12px;background:#e9f0f5;text-align:center}
.attachment-dialog .attachment-pdf-canvas{display:block;margin:0 auto;background:white;box-shadow:0 2px 9px #173e4f26;max-width:none}
@media(max-width:600px){.attachment-dialog .attachment-pdf-toolbar{gap:7px;padding:8px}.attachment-dialog .attachment-pdf-toolbar button,.attachment-dialog .attachment-pdf-toolbar select{min-height:38px}.attachment-dialog .attachment-pdf-pages{padding:8px}}

/* Keep fit-width stable with classic scrollbars as well as overlay scrollbars. */
.attachment-dialog .attachment-pdf-pages{scrollbar-gutter:stable}

/* Continuous PDF pages and a separate thumbnail sidebar. Canvas eviction preserves page geometry. */
.attachment-dialog .attachment-pdf-continuous{overflow:hidden}
.attachment-dialog .attachment-pdf-workspace{display:flex;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
.attachment-dialog .attachment-pdf-thumbnails{display:flex;flex:0 0 140px;flex-flow:column nowrap;align-items:stretch;gap:12px;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding:14px 10px;box-sizing:border-box;background:#e8f0f5;border-right:1px solid #ccdce6;scrollbar-gutter:stable}
.attachment-dialog .attachment-pdf-thumbnails[hidden]{display:none!important}
.attachment-dialog .attachment-pdf-thumbnail{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;gap:6px;width:100%;max-width:100%;box-sizing:border-box;min-width:0;margin:0;padding:8px 4px;border:1px solid transparent;border-radius:9px;background:transparent;color:#425d70;cursor:pointer;box-shadow:none;font:inherit}
.attachment-dialog .attachment-pdf-thumbnail:hover{background:#dceaf2}
.attachment-dialog .attachment-pdf-thumbnail.is-current{background:#d1eaf1;border-color:#0098b3;color:#005b76}
.attachment-dialog .attachment-pdf-thumbnail:focus-visible{outline:2px solid #008ca7;outline-offset:1px}
.attachment-dialog .attachment-pdf-thumbnail-sheet{position:relative;display:block;flex:0 0 auto;max-width:100%;overflow:hidden;background:white;box-shadow:0 1px 5px #173e4f33}
.attachment-dialog .attachment-pdf-thumbnail-number{font-size:12px;font-weight:600;line-height:1.2}
.attachment-dialog .attachment-pdf-thumbnail-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#9baebc;font-size:18px}
.attachment-dialog .attachment-pdf-thumbnail-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;background:white}
.attachment-dialog .attachment-pdf-continuous .attachment-pdf-pages{position:relative;display:block;flex:1 1 0;box-sizing:border-box;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable;background:#dfe8ee;padding:12px;outline-offset:-3px}
.attachment-dialog .attachment-pdf-page{position:relative;display:block;flex:none;box-sizing:content-box;margin:0 auto 18px;overflow:hidden;background:white;box-shadow:0 2px 10px #173e4f2e}
.attachment-dialog .attachment-pdf-page:last-child{margin-bottom:0}
.attachment-dialog .attachment-pdf-page-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:14px;box-sizing:border-box;color:#7c929f;font-size:13px;line-height:1.5}
.attachment-dialog .attachment-pdf-continuous .attachment-pdf-canvas{position:absolute;inset:0;display:block;margin:0;width:100%;height:100%;max-width:none;box-shadow:none;background:white}
.attachment-dialog .attachment-pdf-page[data-render-state="ready"] .attachment-pdf-page-placeholder{visibility:hidden}
.attachment-dialog .attachment-pdf-page-control{display:flex;align-items:center;gap:6px;margin:0;font:inherit;font-size:13px;color:#244454}
.attachment-dialog .attachment-pdf-page-control input{box-sizing:border-box;width:62px;min-width:0;min-height:34px;margin:0;padding:6px;border:1px solid #c9dde7;border-radius:8px;background:white;color:#005b76;font:inherit;text-align:center}
@media(max-width:600px){.attachment-dialog .attachment-pdf-thumbnails{flex-basis:88px;gap:7px;padding:8px 4px}.attachment-dialog .attachment-pdf-thumbnail{padding:6px 2px;width:100%}.attachment-dialog .attachment-pdf-thumbnail-sheet{max-width:68px;height:auto!important;aspect-ratio:var(--pdf-thumb-ratio,104/148)}.attachment-dialog .attachment-pdf-page-control{gap:4px}.attachment-dialog .attachment-pdf-page-control input{width:52px;min-height:38px}}

/* The chat frame occupies the remaining dock height after its title bar. */
.chat-dock:not([hidden]):not(.window-hidden){display:flex!important;flex-direction:column!important;box-sizing:border-box}
.chat-dock[hidden],.chat-dock.window-hidden{display:none!important}
.chat-dock>.chat-dock-head{flex:0 0 50px;min-height:50px;box-sizing:border-box}
.chat-dock>iframe{display:block;flex:1 1 0;min-height:0;height:0!important;width:100%;border:0}
.chat-dock.window-floating{max-width:none!important;max-height:none!important}


/* 1.0.42 - Chat Medicare: controls only on the right and full edge/corner resize. */
.chat-dock .window-controls{display:none!important}
.chat-dock>.chat-dock-head{position:relative!important;justify-content:space-between!important;cursor:move!important;user-select:none!important;padding-inline:18px!important}
.chat-dock>.chat-dock-head>strong{position:absolute!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;padding:0!important;white-space:nowrap!important}
.chat-dock>.chat-dock-head>.chat-dock-controls{margin-left:auto!important;display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important}
.chat-dock>.chat-dock-head>.chat-dock-controls button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border:1px solid #d5e6ed!important;border-radius:50%!important;background:#fff!important;color:#075c78!important;font:600 27px/1 Arial,sans-serif!important;box-shadow:none!important}
.chat-dock>.chat-dock-head>.chat-dock-controls button:hover{background:#eef9fc!important;border-color:#a9d7e1!important;color:#009db8!important}
.chat-dock>.chat-dock-head>.chat-dock-controls button:focus-visible{outline:2px solid #03abc5!important;outline-offset:2px!important}
.chat-resize-handle{position:absolute!important;z-index:50!important;display:block!important;background:transparent!important;touch-action:none!important}
.chat-resize-n,.chat-resize-s{left:14px!important;right:14px!important;height:10px!important;cursor:ns-resize!important}
.chat-resize-n{top:-5px!important}.chat-resize-s{bottom:-5px!important}
.chat-resize-e,.chat-resize-w{top:14px!important;bottom:14px!important;width:10px!important;cursor:ew-resize!important}
.chat-resize-e{right:-5px!important}.chat-resize-w{left:-5px!important}
.chat-resize-ne,.chat-resize-nw,.chat-resize-se,.chat-resize-sw{width:22px!important;height:22px!important;z-index:51!important}
.chat-resize-ne{right:-5px!important;top:-5px!important;cursor:nesw-resize!important}.chat-resize-nw{left:-5px!important;top:-5px!important;cursor:nwse-resize!important}.chat-resize-se{right:-5px!important;bottom:-5px!important;cursor:nwse-resize!important}.chat-resize-sw{left:-5px!important;bottom:-5px!important;cursor:nesw-resize!important}
.chat-dock.chat-resizable{min-width:min(360px,calc(100vw - 16px))!important;min-height:min(360px,calc(100vh - 16px))!important;overflow:visible!important}
.chat-dock.chat-resizable>iframe{border-radius:0 0 18px 18px!important;overflow:hidden!important}
.chat-restore-button{border-radius:16px 16px 0 0!important;background:#fff!important;color:#075c78!important;border:1px solid #cfe3eb!important;font-weight:650!important}
@media(max-width:600px){.chat-dock>.chat-dock-head>strong{position:static!important;transform:none!important;margin-right:auto!important}.chat-dock>.chat-dock-head>.chat-dock-controls{gap:6px!important}.chat-dock>.chat-dock-head>.chat-dock-controls button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}}


/* 1.0.46 - controlli Chat Medicare da 5 mm e testata da 10 mm. */
.chat-dock>.chat-dock-head{
  box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0 10px!important;align-items:center!important;
}
.chat-dock>.chat-dock-head>strong{font-size:15px!important;line-height:1!important;}
.chat-dock>.chat-dock-head>.chat-dock-controls{gap:7px!important;height:38px!important;}
.chat-dock>.chat-dock-head>.chat-dock-controls button{
  box-sizing:border-box!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;
  padding:0!important;border-radius:50%!important;font:600 15px/19px Arial,sans-serif!important;
}
@media(max-width:600px){
  .chat-dock>.chat-dock-head>.chat-dock-controls button{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;}
}

/* Mail uses the same compact white and blue controls as Chat Medicare. */
.gmail-composer>.window-titlebar-chat{box-sizing:border-box;position:relative;min-height:38px!important;height:38px!important;max-height:38px!important;flex:0 0 38px!important;padding:0 10px;gap:12px;align-items:center;user-select:none}
.gmail-composer>.window-titlebar-chat>strong{font-size:15px;line-height:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmail-composer .window-controls.window-controls-chat{margin-left:auto;gap:7px;height:38px!important}
.gmail-composer .window-controls.window-controls-chat button{box-sizing:border-box!important;flex:0 0 19px!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;border:1px solid #d5e6ed!important;border-radius:50%!important;background:#fff!important;color:#075c78!important;padding:0!important;box-shadow:none!important;cursor:pointer}
.gmail-composer .window-controls.window-controls-chat button:hover{background:#eef9fc!important;border-color:#a9d7e1!important;color:#009db8!important}
.gmail-composer .window-controls.window-controls-chat button:focus-visible{outline:2px solid #03abc5!important;outline-offset:2px!important}
.gmail-composer .window-controls.window-controls-chat svg{display:block;width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.gmail-composer>.window-corner-nw,.gmail-composer>.window-corner-ne{width:8px;height:8px}

/* 1.0.105 - Attachment windows use the same final control geometry as Chat Medicare. */
.attachment-dialog>.reader-toolbar.window-titlebar-chat{box-sizing:border-box;min-height:42px;gap:12px;align-items:center}
.attachment-dialog>.reader-toolbar.window-titlebar-chat>.window-controls.window-controls-chat{margin-left:auto;flex:0 0 auto!important;height:42px!important;gap:6px!important}
.portal-shell :is(.chat-dock>.chat-dock-head>.chat-dock-controls,.attachment-dialog>.reader-toolbar>.window-controls.window-controls-chat) button{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important;margin:0!important;
  border-radius:9px!important;border:1px solid #cfe0e7!important;background:#fff!important;color:var(--ui-brand-dark,#075c78)!important;
  font:700 18px/28px Arial,sans-serif!important;box-shadow:none!important;
}
.portal-shell :is(.chat-dock>.chat-dock-head>.chat-dock-controls,.attachment-dialog>.reader-toolbar>.window-controls.window-controls-chat) button:hover{background:#eef9fc!important;border-color:#9fcfd9!important;color:#008ca8!important}
.portal-shell :is(.chat-dock>.chat-dock-head>.chat-dock-controls,.attachment-dialog>.reader-toolbar>.window-controls.window-controls-chat) button:active{transform:translateY(1px)!important}
.attachment-dialog .window-controls.window-controls-chat button:focus-visible{outline:2px solid #03abc5!important;outline-offset:2px!important}
.attachment-dialog .window-controls.window-controls-chat svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* 1.0.139: visualizzatore PDF in stile Anteprima del Mac */
.attachment-dialog .attachment-pdf-viewer{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif}
.attachment-dialog .attachment-pdf-toolbar{background:#f6f6f6;border-bottom:1px solid #d6d6d6;padding:7px 10px;gap:8px}
.attachment-dialog .attachment-pdf-toolbar button,.attachment-dialog .attachment-pdf-toolbar select,.attachment-dialog .attachment-pdf-page-control input{min-height:28px;padding:3px 10px;border:1px solid #d0d0d0;border-radius:6px;background:#fff;color:#1d1d1f;font-size:13px;box-shadow:0 .5px 1px rgba(0,0,0,.08)}
.attachment-dialog .attachment-pdf-toolbar button:hover{background:#f0f0f0}
.attachment-dialog .attachment-pdf-toolbar button[aria-expanded="true"]{background:#e3e3e8}
.attachment-dialog .attachment-pdf-page-control{color:#3a3a3c}
.attachment-dialog .attachment-pdf-page-control input{width:54px;text-align:center}
.attachment-dialog .attachment-pdf-thumbnails{flex-basis:150px;gap:10px;padding:14px 12px;background:#f0f0f2;border-right:1px solid #d6d6d6}
.attachment-dialog .attachment-pdf-thumbnail{border:0;border-radius:8px;background:transparent;padding:8px 8px 6px;color:#3a3a3c}
.attachment-dialog .attachment-pdf-thumbnail:hover{background:#e4e4e8}
.attachment-dialog .attachment-pdf-thumbnail.is-current{background:#d8d8dd;border:0;color:#1d1d1f}
.attachment-dialog .attachment-pdf-thumbnail:focus-visible{outline:2px solid #0a84ff;outline-offset:0}
.attachment-dialog .attachment-pdf-thumbnail-sheet{box-shadow:0 1px 3px rgba(0,0,0,.28)}
.attachment-dialog .attachment-pdf-thumbnail-number{font-weight:500;padding:1px 8px;border-radius:999px}
.attachment-dialog .attachment-pdf-thumbnail.is-current .attachment-pdf-thumbnail-number{background:#0a84ff;color:#fff}
.attachment-dialog .attachment-pdf-pages,.attachment-dialog .attachment-pdf-continuous .attachment-pdf-pages{background:#e5e5e7}
.attachment-dialog .attachment-pdf-pages:focus-visible{outline:none}
.attachment-dialog .attachment-pdf-page{margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.22),0 0 0 .5px rgba(0,0,0,.12)}
/* 1.0.140: finestra PDF come Anteprima del Mac (chiaro e scuro, segue il sistema) */
.attachment-dialog--pdf{--pv-bar:#f6f6f6;--pv-bar-border:#d9d9d9;--pv-text:#1d1d1f;--pv-muted:#6e6e73;--pv-side:#f0f0f2;--pv-side-border:#dcdcdc;--pv-select:#d6d6db;--pv-canvas:#e3e3e6;--pv-button:#ffffff;--pv-button-border:#cfcfd4;--pv-hover:#ebebef;
  padding:0!important;overflow:hidden!important;border-radius:12px!important;background:var(--pv-canvas)!important;color:var(--pv-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif}
@media (prefers-color-scheme: dark){.attachment-dialog--pdf{--pv-bar:#2c2c2e;--pv-bar-border:#1c1c1e;--pv-text:#f2f2f7;--pv-muted:#a1a1a6;--pv-side:#262628;--pv-side-border:#1c1c1e;--pv-select:#48484a;--pv-canvas:#1e1e20;--pv-button:#3a3a3c;--pv-button-border:#48484a;--pv-hover:#444446}}
.attachment-dialog--pdf .reader-toolbar{flex-wrap:nowrap!important;align-items:center;gap:10px!important;min-height:54px;padding:6px 12px!important;margin:0!important;background:var(--pv-bar)!important;border-bottom:1px solid var(--pv-bar-border)!important;color:var(--pv-text)}
.attachment-dialog--pdf .attachment-title-block{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;line-height:1.25}
.attachment-dialog--pdf .attachment-title-block strong{font-size:14px;font-weight:600;color:var(--pv-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attachment-dialog--pdf .attachment-title-sub{font-size:12px;color:var(--pv-muted)}
.attachment-dialog--pdf .attachment-pdf-sidebar-toggle,.attachment-dialog--pdf .attachment-pdf-zoom-group button{display:inline-grid;place-items:center;width:36px;height:30px;min-height:30px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--pv-text)!important;border-radius:7px!important;cursor:pointer}
.attachment-dialog--pdf .attachment-pdf-sidebar-toggle{width:44px;border:1px solid var(--pv-button-border)!important;background:var(--pv-button)!important}
.attachment-dialog--pdf :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button) svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.attachment-dialog--pdf .attachment-pdf-sidebar-toggle[aria-expanded="false"]{opacity:.65}
.attachment-dialog--pdf .attachment-pdf-zoom-group{display:inline-flex;align-items:center;flex:0 0 auto;border:1px solid var(--pv-button-border);border-radius:9px;background:var(--pv-button);overflow:hidden}
.attachment-dialog--pdf .attachment-pdf-zoom-group button+button{border-left:1px solid var(--pv-button-border)!important;border-radius:0!important}
.attachment-dialog--pdf :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button):hover:not(:disabled){background:var(--pv-hover)!important}
.attachment-dialog--pdf :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button):disabled{opacity:.35;cursor:default}
.attachment-dialog--pdf .attachment-preview-status,.attachment-dialog--pdf .attachment-pdf-toolbar{display:none!important}
.attachment-dialog--pdf .attachment-preview-status.attachment-preview-error{display:block!important;margin:8px 14px;color:#ff6b6b}
.attachment-dialog--pdf .attachment-preview-content{border:0!important;border-radius:0!important;background:var(--pv-canvas)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnails{flex-basis:170px;padding:12px 10px;gap:8px;background:var(--pv-side)!important;border-right:1px solid var(--pv-side-border)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnail{padding:10px 10px 6px!important;border-radius:9px!important;background:transparent!important;color:var(--pv-muted)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnail:hover{background:color-mix(in srgb,var(--pv-select) 50%,transparent)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnail.is-current{background:var(--pv-select)!important;color:var(--pv-text)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnail:focus-visible{outline:none}
.attachment-dialog--pdf .attachment-pdf-thumbnail.is-current .attachment-pdf-thumbnail-number{background:transparent!important;color:var(--pv-text)!important}
.attachment-dialog--pdf .attachment-pdf-thumbnail-number{font-size:13px;font-weight:500;padding:0}
.attachment-dialog--pdf .attachment-pdf-thumbnail-sheet{box-shadow:0 1px 3px rgba(0,0,0,.35)}
.attachment-dialog--pdf .attachment-pdf-pages,.attachment-dialog--pdf .attachment-pdf-continuous .attachment-pdf-pages{background:var(--pv-canvas)!important;padding:16px}
.attachment-dialog--pdf .attachment-pdf-page{margin-bottom:16px;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.attachment-dialog.attachment-dialog--pdf .attachment-pdf-thumbnail:is(:focus,:focus-visible){outline:none!important;box-shadow:none!important}
/* 1.0.141: pulsanti della finestra PDF con lo stile originale del gestionale
   (quadratini arrotondati bianchi con icona petrolio), come Riduci/Ingrandisci/Chiudi. */
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button){
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:0!important;margin:0!important;border-radius:9px!important;border:1px solid #cfe0e7!important;background:#fff!important;color:var(--ui-brand-dark,#075c78)!important;box-shadow:none!important;opacity:1}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button):hover:not(:disabled){background:#eef9fc!important;border-color:#9fcfd9!important;color:#008ca8!important}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button):disabled{opacity:.45!important}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button) svg{width:17px;height:17px;stroke-width:2.2}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar .attachment-pdf-sidebar-toggle[aria-expanded="false"]{background:#eef4f7!important}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar .attachment-pdf-zoom-group{gap:6px;border:0;background:transparent;overflow:visible}
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar .attachment-pdf-zoom-group button+button{border-left:1px solid #cfe0e7!important;border-radius:9px!important}
@media (prefers-color-scheme: dark){.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar>a{color:#7fd3e6!important}}
/* 1.0.142: icone dello zoom piu' grandi e leggibili */
.portal-shell .attachment-dialog.attachment-dialog--pdf>.reader-toolbar :is(.attachment-pdf-sidebar-toggle,.attachment-pdf-zoom-group button) svg{width:20px!important;height:20px!important;stroke-width:2!important;fill:none!important;stroke:currentColor!important;stroke-linecap:round!important;stroke-linejoin:round!important}
/* 1.0.206: sound switch of the chat window. */
.chat-dock .chat-dock-sound{position:relative}
.chat-dock .chat-dock-sound svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round;stroke-linejoin:round}
.chat-dock .chat-dock-sound.is-off{color:#9aa8b4!important}
.chat-dock .chat-dock-sound.is-off::after{content:"";position:absolute;width:17px;height:2px;background:currentColor;transform:rotate(-45deg);border-radius:2px}
