/* JCL Mail — original Elastic child skin. Attribution in README.md. */
:root {
  --jcl-bg: #f6f8fc;
  --jcl-panel: #fff;
  --jcl-soft: #eef3fb;
  --jcl-search: #eaf1fb;
  --jcl-ink: #202124;
  --jcl-muted: #657084;
  --jcl-line: #e7ebf1;
  --jcl-accent: #0b57d0;
  --jcl-selected: #d3e3fd;
  --jcl-compose: #c2e7ff;
  --jcl-hover: #e8edf5;
  --jcl-unread: #f2f6fc;
}
html.dark-mode {
  --jcl-bg: #171b22;
  --jcl-panel: #21262e;
  --jcl-soft: #282f3a;
  --jcl-search: #2a323e;
  --jcl-ink: #e4e9f1;
  --jcl-muted: #acb8cb;
  --jcl-line: #343d49;
  --jcl-accent: #a8c7fa;
  --jcl-selected: #344b70;
  --jcl-compose: #b5d6ff;
  --jcl-hover: #303a49;
  --jcl-unread: #27313f;
  color-scheme: dark;
}
html body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--jcl-bg);
  color: var(--jcl-ink);
  -webkit-font-smoothing: antialiased;
}
body a { color: var(--jcl-accent); }
body button, body input, body select, body textarea { font-family: inherit; }
body :focus-visible { outline: 2px solid var(--jcl-accent); outline-offset: 3px; }
.jcl-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: var(--jcl-bg);
}
.jcl-brand { width: 214px; flex: 0 0 214px; display: inline-flex; align-items: center; text-decoration: none !important; }
.jcl-brand img { width: 146px; height: 44px; }
html.dark-mode .jcl-brand img, html.dark-mode .task-login #logo { content: url("images/logo-dark.svg"); }
.jcl-search-slot { flex: 1; max-width: 720px; }
.jcl-account { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--jcl-muted); font-size: 13px; }
.jcl-account span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcl-account::after { content: "J"; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #365b46; color: #fff; font-weight: 600; font-size: 15px; flex-shrink: 0; }
body:has(> .jcl-topbar) #layout { height: calc(100% - 76px); padding: 0 16px 16px 0; gap: 0; }
body #layout > #layout-menu { background: var(--jcl-bg); border: 0; }
body #taskmenu { background: transparent; }
body #taskmenu a { color: var(--jcl-muted); border-radius: 18px; margin: 4px 7px; width: auto; }
body #taskmenu a:hover, body #taskmenu a.selected { background: var(--jcl-selected); color: var(--jcl-accent); }
body #taskmenu .popover-header, body #layout-menu > .popover-header { background: var(--jcl-bg) !important; }
body #taskmenu .special-buttons { background: transparent; }
body #layout > #layout-sidebar { background: var(--jcl-bg); border: 0; }
body #layout > #layout-list, body #layout > #layout-content { background: var(--jcl-panel); border-color: var(--jcl-line); }
body #layout > div > .header, body #layout > div > .footer { background: var(--jcl-panel); border-color: var(--jcl-line); color: var(--jcl-ink); font-weight: 500; }
body #layout > #layout-sidebar > .header, body #layout > #layout-sidebar > .footer { background: transparent; border: 0; }
body #layout-sidebar > .header .header-title { text-align: left; margin: 0; padding-left: 22px; font-size: 12px; color: var(--jcl-muted); }
body #layout > #layout-content { border-radius: 0 20px 20px 0; overflow: hidden; }
body #layout > #layout-list { border-radius: 20px 0 0 20px; overflow: hidden; }
body .listing, body .listing tbody tr, body .listing li, body .listing td { color: var(--jcl-ink); background-color: transparent; border-color: var(--jcl-line); }
body .listing li > a { color: var(--jcl-ink); }
body .listing li.selected, body .listing tr.selected td, body .listing li.selected > a { background-color: var(--jcl-selected); color: var(--jcl-ink); }
body .listing li > a:hover, body .listing tr:hover td { background-color: var(--jcl-hover); }
body #mailboxlist { padding: 8px 12px 8px 0; }
body #mailboxlist li { border: 0; margin: 2px 0; border-radius: 0 22px 22px 0; overflow: hidden; }
body #mailboxlist li > a { padding: 0 18px 0 22px; line-height: 36px; height: 36px; font-size: 13px; }
body #mailboxlist li.selected > a { font-weight: 650; }
body #mailboxlist li > a::before { font-size: 15px; width: 27px; color: var(--jcl-muted); }
body #mailboxlist li.selected > a::before { color: var(--jcl-accent); }
body #mailboxlist .unreadcount { color: inherit; background: transparent; font-size: 12px; line-height: 36px; top: 0; right: 14px; padding: 0; }
body #messagelist td { border-bottom: 1px solid var(--jcl-line); padding-top: 12px; padding-bottom: 12px; }
body #messagelist tr.unread td { background-color: var(--jcl-unread); }
body #messagelist tr.unread.selected td { background-color: var(--jcl-selected); }
body #messagelist tr.selected td { background-color: var(--jcl-selected); }
body #messagelist .subject { font-size: 13px; }
body #messagelist .fromto { font-size: 13px; }
body #messagelist .date { color: var(--jcl-muted); font-size: 11px; }
body .searchbar { border-color: var(--jcl-line); background: var(--jcl-panel); }
body .searchbar input { color: var(--jcl-ink); background: transparent; }
body .searchbar a { color: var(--jcl-muted); }
.jcl-compose-slot { padding: 4px 16px 12px; }
.jcl-compose-slot .action-buttons { display: block; }
.jcl-compose-slot a.compose { display: inline-flex; align-items: center; height: 56px; min-width: 148px; padding: 0 22px; gap: 15px; border-radius: 16px; background: var(--jcl-compose); color: #123354; font-size: 14px; font-weight: 600; text-decoration: none; }
.jcl-compose-slot a.compose:hover { box-shadow: 0 2px 7px #26364a26; }
.jcl-compose-slot a.compose::before { font-family: Icons; content: "\f303"; font-size: 18px; line-height: normal; }
.jcl-compose-slot a.compose .inner { display: inline !important; }
body .btn { border-radius: 9px; }
body .btn-primary { background: #0b57d0; border-color: #0b57d0; color: #fff; }
body .btn-primary:hover { background: #0847b2; border-color: #0847b2; }
body input.form-control, body textarea.form-control, body select.form-control { background-color: var(--jcl-panel); border-color: var(--jcl-line); color: var(--jcl-ink); border-radius: 8px; }
body .popover, body .popupmenu, body .ui-dialog { border-color: var(--jcl-line); border-radius: 14px; background: var(--jcl-panel); color: var(--jcl-ink); box-shadow: 0 6px 24px #13203520; }
body .popover-header, body .popover-body, body .ui-dialog-titlebar, body .ui-dialog-content { background: var(--jcl-panel); color: var(--jcl-ink); border-color: var(--jcl-line); }
body .toolbar a, body .header a.button { color: var(--jcl-muted); }
body .toolbar a:hover, body .header a.button:hover { color: var(--jcl-accent); background-color: var(--jcl-hover); }
body #message-header { background: var(--jcl-panel); border-color: var(--jcl-line); }
body #message-header .subject { font-weight: 500; font-size: 23px; letter-spacing: -.4px; }
body #messagebody { color: var(--jcl-ink); }
body.task-login #layout { align-items: center; justify-content: center; background: var(--jcl-bg); padding: 24px; }
body.task-login #layout-content { background: transparent; height: auto; flex: none; width: 460px; max-width: 100%; overflow: visible; border: 0; border-radius: 0; }
.jcl-login-card { width: 100%; text-align: left; background: var(--jcl-panel); border: 1px solid var(--jcl-line); border-radius: 28px; padding: 44px; box-shadow: 0 8px 40px #1b365006; }
body.task-login #logo { position: static; top: auto; display: block; width: 146px; height: 44px; padding: 0; margin: 0 0 34px; max-height: none; }
.jcl-login-card h2 { font-size: 25px; font-weight: 500; letter-spacing: -.7px; margin: 0 0 10px; }
.jcl-login-intro { color: var(--jcl-muted); font-size: 14px; margin-bottom: 32px; }
body.task-login #login-form { top: auto; max-width: none; width: 100%; margin: 0; }
body.task-login #login-form input.form-control { min-height: 48px; border-color: #b8c2d1; border-radius: 8px; box-shadow: none; }
body.task-login #login-form .input-group { margin-bottom: 18px; }
body.task-login #login-form .input-group-text { background: var(--jcl-soft); border-color: #b8c2d1; color: var(--jcl-muted); border-radius: 8px 0 0 8px; }
body.task-login #login-form .input-group .form-control { border-radius: 0 8px 8px 0; }
body.task-login #login-form .btn-primary { height: 44px; border-radius: 24px; font-weight: 600; margin-top: 8px; }
body.task-login #login-footer { color: var(--jcl-muted); font-size: 12px; margin-top: 24px; }
@media (min-width: 481px) {
  body #layout > #layout-menu { position: relative; }
  body #layout-menu > .popover-header { display: none !important; }
}
html.dark-mode .jcl-search-slot > .searchbar { background: var(--jcl-search); }
html.dark-mode body #taskmenu a:not(:focus) { background: transparent; color: var(--jcl-muted); }
html.dark-mode body #taskmenu a.selected:not(:focus), html.dark-mode body #taskmenu a:hover { background: var(--jcl-selected); color: var(--jcl-accent); }
html.dark-mode body #mailboxlist li.selected > a { background: var(--jcl-selected); color: var(--jcl-ink); }
@media (min-width: 1201px) {
  body.task-mail #layout > #layout-menu { order: 4; width: 60px; flex: 0 0 60px; }
  body.task-mail #layout > #layout-sidebar { order: 1; flex: 0 0 250px; min-width: 250px; max-width: 250px; }
  body.task-mail #layout > #layout-list { order: 2; min-width: 320px; max-width: 40%; }
  body.task-mail #layout > #layout-content { order: 3; }
  body.task-mail #layout-menu > .popover-header { display: none !important; }
  body.task-mail #taskmenu { display: flex; flex-direction: column; height: 100%; padding-top: 8px; }
  body.task-mail #taskmenu .special-buttons { position: static; margin-top: auto; width: 100%; background: transparent; }
  body.task-mail #taskmenu a { height: 44px; padding: 0; margin: 6px 8px; }
  body.task-mail #taskmenu a::before { height: 44px; line-height: 44px; font-size: 18px; }
  body.task-mail #taskmenu a .inner { display: none; }
  .jcl-search-slot > .searchbar { border: 0; border-radius: 28px; height: 50px; line-height: 50px; background: var(--jcl-search); margin: 0; padding: 0 12px; }
  .jcl-search-slot > .searchbar input { font-size: 15px; }
  .jcl-search-slot > .searchbar a::before { line-height: 50px; }
  .jcl-search-slot > .searchbar:focus-within { background: var(--jcl-panel); box-shadow: 0 1px 7px #1b365020; }
}
@media (max-width: 1200px) {
  .jcl-topbar { height: 60px; padding: 0 16px; }
  .jcl-brand { width: auto; flex-basis: auto; }
  .jcl-brand img { width: 126px; height: 38px; }
  .jcl-search-slot { display: none; }
  .jcl-compose-slot { display: none; }
  body:has(> .jcl-topbar) #layout { height: calc(100% - 60px); padding: 0 8px 8px 0; }
  body #layout > #layout-list, body #layout > #layout-content { border-radius: 14px; }
}
@media (max-width: 480px) {
  .jcl-topbar { height: 56px; padding: 0 14px; }
  .jcl-account span { display: none; }
  .jcl-account::after { width: 32px; height: 32px; }
  body:has(> .jcl-topbar) #layout { height: calc(100% - 56px); padding: 0; }
  body #layout > #layout-list, body #layout > #layout-content { border-radius: 0; }
  body.task-login #layout { padding: 16px; }
  .jcl-login-card { padding: 30px 24px; border-radius: 22px; }
  .jcl-login-card h2 { font-size: 24px; }
}
@media print {
  .jcl-topbar, .jcl-compose-slot { display: none !important; }
  body #layout { height: auto; padding: 0; }
}
