/* Biscom Webmail native Roundcube integration. Login is intentionally excluded. */
:root { --bi-blue:#009fe3; --bi-blue-dark:#007eb8; --bi-ink:#172b3a; --bi-muted:#708396; --bi-line:#dfe8ee; --bi-soft:#f5f8fb; --bi-navy:#263941; --bi-rail:#20323a; }
body:not(.task-login) { background:var(--bi-soft); color:var(--bi-ink); font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif; }
body:not(.task-login) #layout { background:var(--bi-soft); }

/* The mail task uses the exact four-zone concept shell: app rail, folders,
   message list and reader. This replaces Roundcube's default flex layout. */
body.task-mail:not(.action-compose) #layout { display:grid; height:100vh; min-height:0; grid-template-columns:112px 246px minmax(330px,400px) minmax(0,1fr); grid-template-rows:minmax(0,1fr); overflow:hidden; }
body.task-mail:not(.action-compose) #layout-menu, body.task-mail:not(.action-compose) #layout-sidebar, body.task-mail:not(.action-compose) #layout-list, body.task-mail:not(.action-compose) #layout-content { min-width:0; min-height:0; height:100%; }
body.task-mail:not(.action-compose) #layout-menu { grid-column:1; grid-row:1; }
body.task-mail:not(.action-compose) #layout-sidebar { grid-column:2; grid-row:1; }
body.task-mail:not(.action-compose) #layout-list { grid-column:3; grid-row:1; }
body.task-mail:not(.action-compose) #layout-content { grid-column:4; grid-row:1; }

/* Fixed left application rail */
body:not(.task-login) #layout-menu { width:112px !important; flex:0 0 112px; background:var(--bi-rail); border-right:1px solid #17272e; box-shadow:none; }
body:not(.task-login) #layout-menu .popover-header { display:none; }
body:not(.task-login) #taskmenu { display:flex; height:100%; padding:15px 8px; flex-direction:column; }
body:not(.task-login) #taskmenu > a, body:not(.task-login) #taskmenu > span > a { display:grid; min-height:63px; margin:6px 0; padding:7px 3px; place-items:center; border:1px solid transparent; border-radius:5px; color:#d4e1e7; font-family:"Segoe UI",Arial,sans-serif; font-size:10.5px; font-weight:700; line-height:1.3; text-align:center; transition:background-color .15s ease,border-color .15s ease,color .15s ease; }
body:not(.task-login) #taskmenu > a:before, body:not(.task-login) #taskmenu > span > a:before { float:none; width:auto; height:auto; margin:0 0 4px; font-size:20px; }
body:not(.task-login) #taskmenu > a .inner, body:not(.task-login) #taskmenu > span > a .inner { display:block; overflow:visible; width:auto; height:auto; clip:auto; white-space:normal; }
body:not(.task-login) #taskmenu > a:hover, body:not(.task-login) #taskmenu > a:focus-visible, body:not(.task-login) #taskmenu > a.selected, body:not(.task-login) #taskmenu > span > a:hover { border-color:rgba(105,211,245,.22); background:#14506a; color:#67d8f9; }
body:not(.task-login) #taskmenu .compose { border-color:rgba(0,159,227,.7); background:var(--bi-blue); color:#fff; box-shadow:none; }
body:not(.task-login) #taskmenu .compose:hover { background:#12abe8; color:#fff; transform:none; }
body:not(.task-login) #taskmenu .compose .inner, body:not(.task-login) #taskmenu .mail .inner, body:not(.task-login) #taskmenu .contacts .inner, body:not(.task-login) #taskmenu .settings .inner, body:not(.task-login) #taskmenu .theme .inner, body:not(.task-login) #taskmenu .logout .inner { font-size:0; }
body:not(.task-login) #taskmenu .compose .inner:after { content:'Yeni E-posta'; font-size:10.5px; } body:not(.task-login) #taskmenu .mail .inner:after { content:'İletiler'; font-size:10.5px; } body:not(.task-login) #taskmenu .contacts .inner:after { content:'Kişiler'; font-size:10.5px; } body:not(.task-login) #taskmenu .settings .inner:after { content:'Ayarlar'; font-size:10.5px; } body:not(.task-login) #taskmenu .theme .inner:after { content:'Koyu kip'; font-size:10.5px; } body:not(.task-login) #taskmenu .logout .inner:after { content:'Çıkış'; font-size:10.5px; }
body:not(.task-login) #taskmenu .special-buttons { display:grid; margin-top:auto; gap:7px; padding-top:14px; border-top:1px solid rgba(208,229,238,.16); }
body:not(.task-login) #taskmenu .special-buttons > a { margin:0; }
body:not(.task-login) #taskmenu .logout { min-height:48px; border-color:#cf4d54; background:#d9575d; color:#fff; }
body:not(.task-login) #taskmenu .logout:hover { border-color:#bf4048; background:#c8474f; color:#fff; }

/* Mail folders and branded account rail */
body.task-mail #layout-sidebar { flex:0 0 246px; width:246px !important; min-width:246px; max-width:246px; background:#eef1f4; border-right:1px solid #d9e2e8; }
body.task-mail #layout-sidebar .header { min-height:104px; height:104px; padding:16px 18px 12px; align-items:flex-end; background:#eef1f4; border-bottom:1px dashed #c7d3db; }
body.task-mail #layout-sidebar .header:before { position:absolute; top:18px; left:18px; width:174px; height:43px; background:url('../images/biscom-logo.png') left center/contain no-repeat; content:""; }
body.task-mail #layout-sidebar .header-title.username { color:#647d8e; font-size:11px; font-weight:700; }
body.task-mail .biscom-sidebar-compose { display:flex; height:44px; margin:20px 16px 18px; align-items:center; justify-content:center; border:1px solid var(--bi-blue); border-radius:4px; background:var(--bi-blue); color:#fff; font-size:13px; font-weight:750; text-decoration:none; }
body.task-mail .biscom-sidebar-compose:before { margin-right:8px; } body.task-mail .biscom-sidebar-compose:hover { background:#10abe9; color:#fff; }
body.task-mail .biscom-folder-label { margin:0 16px 9px; padding:18px 11px 0; border-top:1px dashed #c6d1d9; color:#8a9aa8; font-size:10px; font-weight:750; letter-spacing:.1em; }
body.task-mail #layout-sidebar .scroller { padding:0 0 14px; }
body.task-mail .folderlist li a { min-height:42px; margin:5px 12px; padding:0 12px; border:1px solid #d8e3e9; border-radius:4px; background:rgba(255,255,255,.62); color:#4d6576; font-size:13px; font-weight:600; line-height:40px; }
body.task-mail .folderlist li a:before { color:#7f96a7; } body.task-mail .folderlist li a:hover { border-color:#c3d5df; background:#fff; color:var(--bi-ink); }
body.task-mail .folderlist li.selected > a { border-color:#bde4f3; background:#e0f5fc; color:#007eb8; font-weight:750; } body.task-mail .folderlist li.selected > a:before { color:#008dca; }
body.task-mail .folderlist .unreadcount { background:var(--bi-blue); color:#fff; }
body.task-mail #layout-sidebar .footer { background:#eef1f4; border-top:1px dashed #c7d3db; }

/* Common three-panel panels */
body.task-mail #layout-list, body.task-addressbook #layout-list, body.task-settings #layout-list { background:#fff; border-right:1px solid var(--bi-line); }
body.task-mail #layout-content, body.task-addressbook #layout-content, body.task-settings #layout-content { background:var(--bi-soft); }
body.task-mail #layout-list .header, body.task-mail #layout-content > .header, body.task-addressbook #layout-sidebar .header, body.task-addressbook #layout-list .header, body.task-addressbook #layout-content > .header, body.task-settings #layout-list .header, body.task-settings #layout-content > .header { min-height:72px; height:72px; padding:0 19px; background:#fff; border-bottom:1px solid var(--bi-line); }
body.task-mail .header-title, body.task-addressbook .header-title, body.task-settings .header-title { color:var(--bi-ink); font-size:15px; font-weight:750; }
body:not(.task-login) .searchbar { height:42px; margin:14px; border:1px solid var(--bi-line); border-radius:4px; background:#f9fbfc; box-shadow:none; }
body:not(.task-login) .searchbar:focus-within { border-color:#9adcf3; box-shadow:0 0 0 3px rgba(0,159,227,.1); }
body:not(.task-login) .searchbar input { color:var(--bi-ink); font-size:12px; }
body:not(.task-login) .searchbar input::placeholder { color:#91a0ac; }

/* Mail list and reading canvas */
body.task-mail #layout-list { flex:0 1 400px; width:400px !important; min-width:330px; max-width:520px; }
body.task-mail:not(.action-compose) #layout-list { display:flex; width:auto !important; max-width:none; flex:initial; flex-direction:column; overflow:hidden; }
body.task-mail:not(.action-compose) #layout-list #messagelist-content { min-height:0; overflow:auto; flex:1; }
body.task-mail:not(.action-compose) #layout-content { display:flex; flex-direction:column; overflow:hidden; }
body.task-mail:not(.action-compose) #layout-content .iframe-wrapper { min-height:0; flex:1; }
body.task-mail:not(.action-compose) #messagelist-header { min-height:76px; height:76px; padding:0 20px; } body.task-mail:not(.action-compose) #messagelist-header .toolbar-menu-button { margin-left:auto; } body.task-mail:not(.action-compose) #mailsearchform { margin:8px 20px 10px; }
body.task-mail .biscom-list-actions { display:flex; min-height:54px; padding:0 17px; align-items:center; gap:5px; border-top:1px solid var(--bi-line); border-bottom:1px solid var(--bi-line); }
body.task-mail .biscom-list-actions > a, body.task-mail .biscom-list-actions > span > a { display:inline-flex; height:34px; padding:0 9px; align-items:center; border:1px solid transparent; border-radius:4px; color:#526b7c; font-size:11px; font-weight:700; text-decoration:none; }
body.task-mail .biscom-list-actions > a:before, body.task-mail .biscom-list-actions > span > a:before { margin-right:7px; }
body.task-mail .biscom-list-actions > a:hover, body.task-mail .biscom-list-actions > span > a:hover { border-color:#cfe8f2; background:#f1faff; color:var(--bi-blue-dark); }
body.task-mail .messagelist tr td { border-bottom:1px solid #edf2f5; } body.task-mail .messagelist tr:hover td { background:#f8fcfe; } body.task-mail .messagelist tr.selected td { background:#edf9fd; } body.task-mail .messagelist tr.unread td { color:#173e55; font-weight:700; } body.task-mail .messagelist span.msgicon.status.unread:before { color:var(--bi-blue); }
body.task-mail #layout-content .iframe-wrapper, body.task-addressbook #layout-content .iframe-wrapper, body.task-settings #layout-content .iframe-wrapper { background:var(--bi-soft); } body.task-mail #layout-content .iframe-wrapper iframe, body.task-addressbook #layout-content .iframe-wrapper iframe, body.task-settings #layout-content .iframe-wrapper iframe { background:#fff; }
body.task-mail #mailtoolbar, body.task-addressbook #addressbooktoolbar { display:flex; min-width:0; height:72px; padding:0 14px; align-items:center; gap:4px; }
body.task-mail #mailtoolbar > a, body.task-mail #mailtoolbar .dropbutton > a:not(.dropdown), body.task-addressbook #addressbooktoolbar > a, body.task-addressbook #addressbooktoolbar .dropbutton > a:not(.dropdown) { display:inline-flex; min-width:38px; height:36px; padding:0 9px; align-items:center; justify-content:center; border:1px solid transparent; border-radius:4px; color:#526b7c; font-size:12px; font-weight:650; }
body.task-mail #mailtoolbar > a:hover, body.task-addressbook #addressbooktoolbar > a:hover { border-color:#cfe8f2; background:#f0f9fc; color:var(--bi-blue-dark); }
body.task-mail #mailtoolbar .spacer, body.task-addressbook #addressbooktoolbar .spacer { width:1px; height:24px; margin:0 5px; background:var(--bi-line); }
body.task-mail #layout-list .toolbar.menu > a, body.task-addressbook #layout-list .toolbar.menu > a { display:grid; width:34px; height:34px; padding:0; place-items:center; border-radius:4px; color:#526b7c; } body.task-mail #layout-list .toolbar.menu > a:hover, body.task-addressbook #layout-list .toolbar.menu > a:hover { background:#edf8fc; color:var(--bi-blue-dark); }

/* Native contacts workspace */
body.task-addressbook #layout-sidebar { flex:0 0 230px; width:230px !important; min-width:230px; background:#f7fafc; border-right:1px solid var(--bi-line); }
body.task-addressbook #layout-sidebar .scroller { padding:8px 0; } body.task-addressbook #directorylist li a, body.task-addressbook #savedsearchlist li a { min-height:41px; padding:0 16px; border-bottom:1px solid #e7edf1; color:#4e6778; font-size:12px; line-height:41px; } body.task-addressbook #directorylist li.selected > a, body.task-addressbook #directorylist li a:hover { background:#e7f6fc; color:var(--bi-blue-dark); }
body.task-addressbook #layout-list { flex:0 0 350px; width:350px !important; min-width:300px; } body.task-addressbook .contactlist tr td { border-bottom:1px solid #edf2f5; } body.task-addressbook .contactlist tr:hover td, body.task-addressbook .contactlist tr.selected td { background:#edf9fd; }

/* Native preferences workspace */
body.task-settings #layout-sidebar { flex:0 0 250px; width:250px !important; min-width:250px; background:#f7fafc; border-right:1px solid var(--bi-line); } body.task-settings #layout-list { flex:0 0 300px; width:300px !important; min-width:260px; } body.task-settings #layout-sidebar .scroller, body.task-settings #layout-list .scroller { padding:8px 0; } body.task-settings .settings-default-icon li a, body.task-settings #sections-table li a { min-height:42px; padding:0 16px; border-bottom:1px solid #e7edf1; color:#4f6879; font-size:12px; line-height:42px; } body.task-settings .settings-default-icon li.selected a, body.task-settings #sections-table li.selected a, body.task-settings #sections-table li a:hover { border-left:3px solid var(--bi-blue); background:#e7f6fc; color:var(--bi-blue-dark); font-weight:700; }

/* Native compose page */
body.task-mail.action-compose #layout-content { background:#fff; } body.task-mail.action-compose #layout-sidebar.sidebar-right { background:#f7fafc; border-left:1px solid var(--bi-line); border-right:0; } body.task-mail.action-compose #layout-sidebar .header { min-height:72px; height:72px; padding:0 22px; background:#f7fafc; border-bottom:1px solid var(--bi-line); } body.task-mail.action-compose #layout-sidebar .header:before { display:none; } body.task-mail.action-compose #layout-sidebar .header-title { color:var(--bi-ink); font-size:14px; font-weight:750; } body.task-mail.action-compose #compose-content { padding:27px 38px; background:#fff; } body.task-mail.action-compose #compose-headers { max-width:920px; } body.task-mail.action-compose #compose-headers .form-group { min-height:52px; margin:0; border-bottom:1px solid var(--bi-line); } body.task-mail.action-compose #compose-headers .col-form-label { color:#617688; font-size:12px; font-weight:700; } body.task-mail.action-compose #compose-headers input, body.task-mail.action-compose #compose-headers select { border:0; background:transparent; box-shadow:none; color:var(--bi-ink); font-size:13px; } body.task-mail.action-compose #compose-attachments { margin:20px; padding:18px; border:1px dashed #b9ccd7; border-radius:5px; background:#fff; } body.task-mail.action-compose #compose-attachments .upload-form { text-align:center; } body.task-mail.action-compose #compose-attachments .btn { border-color:#cadbe4; border-radius:4px; background:#fff; color:var(--bi-blue-dark); font-size:12px; font-weight:700; } body.task-mail.action-compose .attachmentslist { margin-top:10px; } body.task-mail.action-compose #compose-options { margin:22px 20px; padding-top:18px; border-top:1px dashed #cbd7df; color:#556d7e; font-size:12px; } body.task-mail.action-compose #messagetoolbar { display:flex; height:72px; padding:0 20px; align-items:center; gap:5px; } body.task-mail.action-compose #messagetoolbar > a, body.task-mail.action-compose #messagetoolbar .dropbutton > a { display:inline-flex; min-height:34px; padding:0 9px; align-items:center; border-radius:4px; color:#526b7c; font-size:12px; font-weight:650; } body.task-mail.action-compose #messagetoolbar > a:hover { background:#eff9fd; color:var(--bi-blue-dark); }

body:not(.task-login) .btn-primary { border-color:var(--bi-blue); background:var(--bi-blue); box-shadow:none; } body:not(.task-login) .btn-primary:hover { background:#10abe9; }
html.dark-mode body:not(.task-login) { --bi-soft:#141e25; --bi-ink:#e1ebf0; --bi-muted:#a6b7c1; --bi-line:#344650; background:#141e25; color:#e1ebf0; }
html.dark-mode body:not(.task-login) #layout, html.dark-mode body.task-mail #layout-content, html.dark-mode body.task-addressbook #layout-content, html.dark-mode body.task-settings #layout-content { background:#141e25; }
/* Exact concept shell: used once the user is authenticated. */
body.task-mail #layout .biscom-concept-frame { position:fixed; inset:0; z-index:9999; display:block; width:100vw; height:100vh; border:0; background:#f5f8fb; }
html.dark-mode body.task-mail #layout-sidebar, html.dark-mode body.task-mail #layout-sidebar .header, html.dark-mode body.task-mail #layout-sidebar .footer { background:#1b2830; border-color:#3a4b55; }
html.dark-mode body.task-mail #layout-list, html.dark-mode body.task-addressbook #layout-list, html.dark-mode body.task-settings #layout-list, html.dark-mode body.task-mail #layout-list .header, html.dark-mode body.task-mail #layout-content > .header, html.dark-mode body.task-addressbook .header, html.dark-mode body.task-settings .header { background:#1b2830; border-color:#344650; }
html.dark-mode body.task-addressbook #layout-sidebar, html.dark-mode body.task-settings #layout-sidebar { background:#18242c; border-color:#344650; }
html.dark-mode body.task-mail .folderlist li a, html.dark-mode body.task-mail .messagelist tr td, html.dark-mode body.task-addressbook .contactlist tr td { border-color:#344650; background:#1b2830; color:#c9d8df; }
html.dark-mode body.task-mail .folderlist li.selected > a, html.dark-mode body.task-mail .messagelist tr.selected td, html.dark-mode body.task-addressbook .contactlist tr.selected td { background:#1d4557; color:#69d3f5; }
html.dark-mode body:not(.task-login) .searchbar, html.dark-mode body.task-mail.action-compose #layout-content, html.dark-mode body.task-mail.action-compose #compose-content { border-color:#40535e; background:#202f38; }
html.dark-mode body.task-mail.action-compose #layout-sidebar.sidebar-right, html.dark-mode body.task-mail.action-compose #layout-sidebar .header { background:#18242c; border-color:#344650; }
html.dark-mode body.task-mail.action-compose #compose-attachments { border-color:#40535e; background:#1c2a33; }
@media (max-width:1200px) { body:not(.task-login) #layout-menu { width:94px !important; flex-basis:94px; } body.task-mail #layout-sidebar { flex-basis:220px; width:220px !important; min-width:220px; } body.task-mail #layout-list { width:auto !important; flex:1 1 330px; } }
@media (max-width:768px) { body:not(.task-login) #layout-menu { width:auto !important; } body.task-mail:not(.action-compose) #layout { display:flex; height:auto; overflow:visible; } body.task-mail #layout-sidebar, body.task-mail #layout-list, body.task-addressbook #layout-sidebar, body.task-addressbook #layout-list, body.task-settings #layout-sidebar, body.task-settings #layout-list { width:auto !important; max-width:none; } body.task-mail.action-compose #compose-content { padding:20px 16px; } }
