/* Focused webmail workspace, inspired by the connected one.com inbox. */
body.mail-workspace-open{height:100dvh;overflow:hidden;background:#fff}
body.mail-workspace-open>main{height:calc(100dvh - var(--crm-top-height,88px));display:flex;flex-direction:column;min-height:0}
body.mail-workspace-open>main>header,body.mail-workspace-open .page-heading,body.mail-workspace-open main footer{display:none}
body.mail-workspace-open>main .content{padding:0;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;background:#fff}
body.mail-workspace-open #view{flex:1;min-height:0;display:flex}
.webmail-refresh{flex:1;min-width:0;min-height:0;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-rows:60px 45px minmax(0,1fr);font-family:Arial,Helvetica,sans-serif;color:#30312f}
.webmail-refresh .webmail-top{padding:0 22px;gap:22px;min-width:0;background:#fff}
.webmail-refresh .webmail-account{display:flex;align-items:center;gap:11px;min-width:170px;width:170px;margin:0!important}
.webmail-refresh .mail-app-icon{font-size:23px;color:#80622e;line-height:1}
.webmail-refresh .webmail-top strong{font-size:14px;font-weight:600;margin:0 0 3px}
.webmail-account small{display:block;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#74766f}
.webmail-search{display:flex;align-items:center;gap:10px;flex:1;max-width:650px;background:#f6f7f6;border:1px solid #dddfdc;border-radius:5px;padding:0 12px;height:36px;min-width:130px}
.webmail-search>span{font-size:21px;color:#777a73}.webmail-refresh .webmail-search input{border:0;outline:0;background:transparent;padding:8px 0;width:100%;font-size:13px;min-width:0}.webmail-search:focus-within{outline:2px solid #b79653;outline-offset:1px}
.webmail-refresh .webmail-status{display:block;margin-left:auto;font-size:11px;color:#7c7f77}.webmail-refresh .webmail-status.connected{color:#4d745a}
.webmail-tools{display:flex;gap:5px;align-items:center;border-bottom:1px solid #e5e6e2;padding:0 18px 0 216px;background:#f7f8f6;min-width:0}
.webmail-tools>button{border:0;background:transparent;font-size:12px;padding:8px 10px;white-space:nowrap}.webmail-tools>button:hover{background:#eceee9}.webmail-tools>button:disabled{cursor:default;opacity:.4}
.mail-tool-divider{height:18px;border-left:1px solid #dedfd9;margin:0 6px}
.mail-layout-control{display:flex;align-items:center;gap:9px;font-size:11px;color:#6f726a;margin-left:auto;white-space:nowrap}.mail-layout-control select{padding:5px 6px;border:0;background:transparent;font-size:12px;color:#44483f}
body.mail-workspace-open .webmail-refresh .webmail-grid{display:grid;grid-template-columns:200px minmax(300px,36%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto;min-height:0;overflow:hidden}
.webmail-refresh .webmail-folders{grid-column:1;grid-row:1/-1;background:#f7f8f6;display:flex;flex-direction:column;border-right:1px solid #e5e6e2;padding:14px 10px;overflow:auto;min-height:0}
.webmail-refresh .webmail-folders button{font-size:12px;padding:10px 12px;margin:1px 0;border-radius:4px;min-height:38px;gap:7px;flex-shrink:0}
.webmail-refresh .webmail-folders button>span{display:flex;align-items:center;gap:10px;white-space:nowrap}
.folder-icon{width:16px;text-align:center;display:inline-block;color:#6c7065;font-size:14px}
.webmail-refresh .webmail-folders .webmail-write{background:#282923;color:#f6e3bb;border:1px solid #282923;font-weight:600;justify-content:center;padding:10px;min-height:36px;margin:0 0 17px}
.webmail-refresh .webmail-folders .webmail-write:hover{background:#444235}
.webmail-refresh .webmail-folders .selected{background:#eee7d6;color:#6e5424}.webmail-refresh .webmail-folders b{font-size:11px;opacity:1;color:inherit}
.webmail-refresh .webmail-folder-label{display:block;font-size:10px;font-weight:600;letter-spacing:.5px;margin:25px 12px 8px;color:#74776e}
.webmail-folder-bottom{margin-top:auto;padding-top:25px;color:#86897f}.webmail-folder-bottom>small{display:block;font-size:10px;padding:0 12px;line-height:1.6}.webmail-refresh .webmail-sync-note{display:block;padding:8px 12px;font-size:10px;line-height:1.6;margin:0}
.webmail-refresh .webmail-messages{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;border-right:1px solid #e5e6e2;max-height:none;background:#fff}
.webmail-refresh .webmail-list-head{position:static;flex-shrink:0;padding:0;border-bottom:1px solid #e5e6e2;background:#fff}
.webmail-refresh .webmail-list-head h2{font:600 16px Arial,sans-serif;color:#30342d;padding:18px 18px 15px;margin:0;border-bottom:1px solid #eceee9}
.mail-list-controls{height:40px;display:flex;gap:5px;align-items:center;padding:0 12px;font-size:11px;color:#7a7e73}.mail-list-controls select{border:0;padding:4px 0;font-size:11px;max-width:135px;background:transparent}.mail-list-controls>span{margin-left:auto;white-space:nowrap}.mail-list-controls button{border:0;background:transparent;font-size:22px;padding:0 5px;line-height:1;color:#62665c}.mail-list-controls button:disabled{opacity:.25;cursor:default}
.webmail-refresh .webmail-messages .mail-list{overflow:auto;min-height:0;flex:1;scrollbar-width:thin}
.webmail-refresh .mail-item{display:grid;grid-template-columns:18px minmax(0,1fr) 15px;align-items:start;gap:9px;padding:14px 14px 13px;background:#fff;border-bottom:1px solid #ebede7;min-height:87px;box-shadow:none}
.webmail-refresh .mail-item:hover{background:#f9faf6}.webmail-refresh .mail-item.selected{background:#f6f0e2;box-shadow:inset 3px 0 #b2904b}
.mail-row-icon{font-size:14px;color:#909587;padding-top:1px}.mail-row-content{display:block;min-width:0}.mail-row-top{display:flex;align-items:center;gap:10px;margin-bottom:6px;min-width:0}
.webmail-refresh .mail-item .mail-from{font-size:13px;color:#343a30;font-weight:500;min-width:0;flex:1;line-height:1.2}.webmail-refresh .mail-item time{font-size:10px;color:#797e72;white-space:nowrap}
.webmail-refresh .mail-item strong{display:block;font-size:12px;font-weight:400;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3c4036}
.webmail-refresh .mail-item .mail-preview{display:block;-webkit-line-clamp:unset;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.5;color:#8a8d82;margin-top:4px}
.mail-row-indicators{display:flex;align-items:center;flex-direction:column;gap:12px;font-size:11px;padding-top:2px}.mail-link-dot{width:6px;height:6px;border-radius:50%;display:block;flex-shrink:0}.mail-link-dot.linked{background:#70916d}.mail-link-dot.pending{background:#c4ab75}
.webmail-refresh .webmail-detail{min-height:0;min-width:0;overflow:auto;background:#f8f9f6;scrollbar-width:thin}
.webmail-empty-reader{height:100%;min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center;color:#7d8571}.webmail-empty-reader>span{font-size:62px;font-family:Georgia,serif;color:#b9c2a7;line-height:1.2;margin-bottom:18px}.webmail-empty-reader h2{font:500 15px Arial,sans-serif;color:#545b4a}.webmail-empty-reader p{font-size:12px;margin:12px 0 0;color:#8d9385}
.webmail-refresh .mail-reader{min-height:100%;background:#fff}.webmail-refresh .mail-reader-head{padding:24px 28px 20px}.webmail-refresh .mail-reader-head h2{font:500 23px/1.35 Arial,sans-serif;margin:18px 0 12px}.webmail-refresh .mail-reader-head p{font-size:12px;color:#818575;line-height:1.8}.webmail-refresh .mail-reader-head .chip{font-size:9px;background:#f4f5ef;color:#777c6b}
.webmail-refresh .mail-body{font:14px/1.85 Arial,sans-serif;padding:28px;min-height:200px;color:#3a4135;border-bottom:0}.webmail-refresh .mail-link-details{border-top:1px solid #e9ecdf}.webmail-refresh .mail-link-details>summary{font-size:11px;padding:16px 28px;background:#fafbf7;color:#7e785d}
.webmail-mobile-back{display:none}
body.mail-workspace-open .webmail-refresh.layout-bottom .webmail-grid{grid-template-columns:200px minmax(0,1fr);grid-template-rows:minmax(160px,42%) minmax(0,1fr)}
.webmail-refresh.layout-bottom .webmail-folders{grid-row:1/3}.webmail-refresh.layout-bottom .webmail-messages{grid-column:2;grid-row:1;border-right:0;border-bottom:1px solid #ddd}.webmail-refresh.layout-bottom .webmail-detail{grid-column:2;grid-row:2}
.webmail-refresh.layout-bottom .mail-item{min-height:49px;padding-top:11px;padding-bottom:11px}.webmail-refresh.layout-bottom .mail-row-content{display:grid;grid-template-columns:210px minmax(150px,1fr) minmax(100px,1.2fr);gap:15px;align-items:center}.webmail-refresh.layout-bottom .mail-row-top{margin:0}.webmail-refresh.layout-bottom .mail-item .mail-preview{margin:0}.webmail-refresh.layout-bottom .mail-row-indicators{flex-direction:row}
body.mail-workspace-open .webmail-refresh.is-composing .webmail-grid{grid-template-columns:200px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.webmail-refresh.is-composing .webmail-folders{grid-row:1}.webmail-refresh.is-composing .webmail-messages{display:none}.webmail-refresh.is-composing .webmail-detail{grid-column:2;grid-row:1;background:#fff}
.webmail-refresh .mail-inline-surface{padding:20px 30px!important}.webmail-refresh .mail-inline-surface>.dialog-head h2{font:500 18px Arial,sans-serif}.webmail-refresh #composeContent{max-width:1100px}.webmail-refresh .compose-from{padding-bottom:12px;margin-bottom:10px}.webmail-refresh #composeForm>.field-grid{grid-template-columns:1fr}.webmail-refresh #composeForm textarea{min-height:240px;font:14px/1.7 Arial,sans-serif}.webmail-refresh #composeForm .compose-actions{bottom:-20px;padding:14px 0}.webmail-refresh .compose-note{max-width:900px}
@media(max-width:1100px){body.mail-workspace-open .webmail-refresh .webmail-grid{grid-template-columns:170px minmax(270px,38%) minmax(0,1fr)}.webmail-refresh .webmail-account{width:150px;min-width:150px}.webmail-refresh .webmail-top{padding:0 15px;gap:15px}.webmail-refresh .webmail-status{display:none}.webmail-tools{padding-left:180px}.webmail-refresh .webmail-folders{padding:12px 7px}.webmail-refresh .webmail-folders button{padding:10px 8px}.webmail-refresh .mail-reader-head,.webmail-refresh .mail-body{padding:20px}body.mail-workspace-open .webmail-refresh.layout-bottom .webmail-grid,body.mail-workspace-open .webmail-refresh.is-composing .webmail-grid{grid-template-columns:170px minmax(0,1fr)}.webmail-refresh.layout-bottom .mail-row-content{grid-template-columns:170px minmax(150px,1fr)}.webmail-refresh.layout-bottom .mail-item .mail-preview{display:none}}
@media(max-width:850px){.webmail-tools{padding-left:12px}.webmail-refresh{grid-template-rows:56px 44px minmax(0,1fr)}.webmail-refresh .webmail-account{min-width:0;width:auto}.webmail-refresh .webmail-account small{display:none}.mail-layout-control{display:none}body.mail-workspace-open .webmail-refresh .webmail-grid,body.mail-workspace-open .webmail-refresh.layout-bottom .webmail-grid,body.mail-workspace-open .webmail-refresh.is-composing .webmail-grid{grid-template-columns:155px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.webmail-refresh .webmail-folders,.webmail-refresh.layout-bottom .webmail-folders{grid-column:1;grid-row:1}.webmail-refresh .webmail-messages,.webmail-refresh.layout-bottom .webmail-messages{grid-column:2;grid-row:1;border:0}.webmail-refresh .webmail-detail,.webmail-refresh.layout-bottom .webmail-detail{display:none;grid-column:2;grid-row:1}.webmail-refresh.has-mail .webmail-messages,.webmail-refresh.is-composing .webmail-messages{display:none}.webmail-refresh.has-mail .webmail-detail,.webmail-refresh.is-composing .webmail-detail{display:block}.webmail-mobile-back{display:block;margin:12px 16px;font-size:11px;border:0;background:#f5f6f0}.webmail-refresh.layout-bottom .mail-row-content{display:block}.webmail-refresh.layout-bottom .mail-item .mail-preview{display:block}.webmail-refresh.layout-bottom .mail-row-top{margin-bottom:6px}.webmail-refresh .webmail-folder-label{display:block}.webmail-refresh .webmail-sync-note{display:block}.webmail-refresh .mail-inline-surface{padding:16px!important}}
@media(max-width:600px){body.mail-workspace-open .webmail-refresh .webmail-grid,body.mail-workspace-open .webmail-refresh.layout-bottom .webmail-grid,body.mail-workspace-open .webmail-refresh.is-composing .webmail-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.webmail-refresh .webmail-folders,.webmail-refresh.layout-bottom .webmail-folders{grid-column:1;grid-row:1;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;padding:8px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}.webmail-folder-group{display:flex;gap:3px}.webmail-refresh .webmail-folders button{min-height:30px;padding:7px 8px;font-size:10px;margin:0;width:auto}.webmail-refresh .webmail-folders .webmail-write{margin:0;padding:8px 10px;min-height:30px}.webmail-refresh .webmail-folders button>span{gap:5px}.webmail-refresh .webmail-folders b{font-size:10px;margin-left:2px}.webmail-refresh .webmail-folder-label,.webmail-refresh .webmail-folder-bottom{display:none}.webmail-refresh .folder-icon{display:none}.webmail-refresh .webmail-messages,.webmail-refresh.layout-bottom .webmail-messages,.webmail-refresh .webmail-detail,.webmail-refresh.layout-bottom .webmail-detail,.webmail-refresh.is-composing .webmail-detail{grid-column:1;grid-row:2}.webmail-refresh .webmail-top{padding:0 10px;gap:12px}.webmail-refresh .webmail-account strong{font-size:12px}.webmail-refresh .mail-app-icon{display:none}.webmail-refresh .webmail-search input{font-size:12px}.webmail-tools{gap:0;padding:0 7px}.webmail-tools>button{font-size:10px;padding:8px}.mail-tool-divider{margin:0 2px}.webmail-refresh .mail-reader-head h2{font-size:20px}.webmail-refresh .mail-reader-head,.webmail-refresh .mail-body{padding:18px}.webmail-refresh .mail-item{min-height:85px}}

.webmail-refresh.layout-bottom .mail-item{grid-template-columns:18px minmax(0,1fr) 30px}

.webmail-refresh .mail-inline-surface>.dialog-head{padding-bottom:12px;margin-bottom:12px}
.webmail-refresh .compose-from{padding:0 0 9px;margin:0 0 9px;border:0}
.webmail-refresh #composeForm>.field-grid{gap:10px}
.webmail-refresh .webmail-compose-tools{padding:4px 0;margin-bottom:10px}
.webmail-refresh .webmail-compose-extra{padding:4px 0}
.webmail-refresh #composeForm .field:has(>input[name="to"]),.webmail-refresh #composeForm .field:has(>input[name="subject"]){display:grid;grid-template-columns:55px minmax(0,1fr);align-items:center;gap:8px}
.webmail-refresh #composeForm .field:has(input[name="customerId"]){margin:-4px 0 0 63px}
.webmail-refresh #composeForm .recipient-suggestions{left:63px}
.webmail-refresh #composeForm textarea{min-height:280px}

.crm-locked body.mail-workspace-open{height:auto;overflow:auto}

.translation-settings{padding:20px 24px;margin-bottom:24px}.translation-settings summary{font-weight:600;cursor:pointer}.translation-settings p{max-width:850px;line-height:1.6}.translation-settings form{max-width:650px}.translation-settings .compose-actions{justify-content:flex-start}
