/*
 * Sidebar theme of Widaos (over metronic/assets/css/themes/layout/aside/dark.css)
 * Works with the minimized sidebar (icons only) and with the hover/expanded state
 */
:root {
    --wd-aside-bg: #0f172a;
    --wd-aside-brand-bg: #0b1222;
    --wd-aside-border: rgba(148, 163, 184, .08);
    --wd-aside-text: #a3aec2;
    --wd-aside-text-strong: #e2e8f0;
    --wd-aside-muted: #5b6b85;
    --wd-aside-icon: #64748b;
    --wd-aside-hover: rgba(148, 163, 184, .07);
    --wd-aside-accent: #3b9cff;
    --wd-aside-active: rgba(59, 156, 255, .12);
    --wd-aside-submenu: #0b1324;
}

/* Base */
#kt_aside.aside,
#kt_aside .aside-menu,
#kt_aside .aside-menu-wrapper { background-color: var(--wd-aside-bg); }
#kt_aside.aside { border-right: 1px solid var(--wd-aside-border); }

/* Brand */
#kt_aside .brand {
    background-color: var(--wd-aside-brand-bg);
    border-bottom: 1px solid var(--wd-aside-border);
}
#kt_aside .brand .brand-toggle .svg-icon svg g [fill] { fill: var(--wd-aside-icon); }
#kt_aside .brand .brand-toggle:hover .svg-icon svg g [fill] { fill: var(--wd-aside-accent); }

/* Sections: a label with a line, the label folds its group (the state is remembered) */
#kt_aside .aside-menu .menu-nav { padding-top: .5rem; }
#kt_aside .aside-menu .menu-nav > .menu-section { display: flex; align-items: center; margin: 1.1rem 0 .3rem; padding: 0 1.25rem 0 1.4rem; height: 28px; cursor: pointer; user-select: none; }
#kt_aside .aside-menu .menu-nav > .menu-section:first-child { margin-top: .25rem; }
#kt_aside .aside-menu .menu-nav > .menu-section .menu-text {
    color: var(--wd-aside-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    transition: color .15s ease;
}
#kt_aside .aside-menu .menu-nav > .menu-section::after { content: ''; flex: 1 1 auto; height: 1px; margin-left: .75rem; background: var(--wd-aside-border); }
#kt_aside .aside-menu .menu-nav > .menu-section .wd-section-caret { order: 3; margin-left: .5rem; font-size: .7rem; color: var(--wd-aside-muted); transition: transform .2s ease; }
#kt_aside .aside-menu .menu-nav > .menu-section:hover .menu-text,
#kt_aside .aside-menu .menu-nav > .menu-section:hover .wd-section-caret { color: var(--wd-aside-text-strong); }
#kt_aside .aside-menu .menu-nav > .menu-section.wd-collapsed .wd-section-caret { transform: rotate(-90deg); }
#kt_aside .aside-menu .menu-nav > .menu-section .menu-icon { color: var(--wd-aside-muted); }
#kt_aside .aside-menu .menu-nav > .menu-item.wd-section-hidden { display: none; }

/* Items */
#kt_aside .aside-menu .menu-nav > .menu-item { margin: 2px .75rem; border-radius: .6rem; transition: background-color .15s ease; }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link {
    position: relative;
    border-radius: .6rem;
    padding: 8px 12px;
    min-height: 40px;
    transition: background-color .15s ease;
}
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-icon { width: 30px; flex: 0 0 30px; }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-text { color: var(--wd-aside-text); font-weight: 500; font-size: .93rem; }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-icon svg g [fill] { fill: var(--wd-aside-icon); transition: fill .15s ease; }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-icon svg:hover g [fill] { fill: var(--wd-aside-icon); }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-icon:not(.svg-icon) { color: var(--wd-aside-icon); }
#kt_aside .aside-menu .menu-nav > .menu-item > .menu-link .menu-arrow { color: var(--wd-aside-muted); transition: transform .2s ease, color .15s ease; }

/* Hover */
#kt_aside .aside-menu .menu-nav > .menu-item:not(.menu-item-active):not(.menu-item-open) > .menu-link:hover,
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-hover:not(.menu-item-active):not(.menu-item-open) > .menu-link { background-color: var(--wd-aside-hover); }
#kt_aside .aside-menu .menu-nav > .menu-item:not(.menu-item-active) > .menu-link:hover .menu-text { color: var(--wd-aside-text-strong); }
#kt_aside .aside-menu .menu-nav > .menu-item:not(.menu-item-active) > .menu-link:hover .menu-icon svg g [fill] { fill: #94a3b8; }

/* Page the user is on (single link): soft background and accent bar */
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active:not(.menu-item-submenu) > .menu-link { background-color: var(--wd-aside-active); }
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active:not(.menu-item-submenu) > .menu-link::before {
    content: '';
    position: absolute;
    left: -.75rem;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--wd-aside-accent);
}
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link .menu-text,
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link .menu-text { color: #ffffff; font-weight: 600; }
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link .menu-icon svg g [fill],
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link .menu-icon svg g [fill] { fill: var(--wd-aside-accent); }
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link .menu-arrow { color: var(--wd-aside-accent); }

/* Open group: the parent and its options look like one block */
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open { background-color: rgba(148, 163, 184, .06); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .06); }
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link,
#kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active.menu-item-submenu > .menu-link { background-color: transparent; }

/* Options of a group: a guide line with the active option marked on it */
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu { background-color: transparent; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-subnav { position: relative; margin: 0 0 0 26px; padding: 2px 8px 8px 0; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-subnav::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 10px; width: 1px; background: rgba(148, 163, 184, .18); }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item { margin: 1px 0; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item > .menu-link { position: relative; border-radius: .5rem; margin: 0 0 0 10px; min-height: 34px; padding: 6px 10px 6px 12px; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item > .menu-link .menu-bullet { display: none; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item > .menu-link .menu-text { color: var(--wd-aside-text); font-size: .87rem; font-weight: 500; }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item > .menu-link:hover { background-color: var(--wd-aside-hover); }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item > .menu-link:hover .menu-text { color: var(--wd-aside-text-strong); }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item.menu-item-active > .menu-link { background-color: var(--wd-aside-active); }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item.menu-item-active > .menu-link::before { content: ''; position: absolute; left: -11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--wd-aside-accent); }
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item.menu-item-active > .menu-link .menu-text { color: #ffffff; font-weight: 600; }
/* Title of the group inside its options: only for the floating menu of the minimized sidebar */
#kt_aside .aside-menu .menu-nav > .menu-item .menu-submenu .menu-item.menu-item-parent { display: none; }

/* Minimized sidebar (only desktop, on phones the sidebar is a drawer): centered icons, the marks stay visible */
@media (min-width: 992px) {
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item { margin: 2px .5rem; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open { background-color: transparent; box-shadow: none; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item > .menu-link { justify-content: center; padding-left: 0; padding-right: 0; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item.menu-item-active > .menu-link,
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item.menu-item-open > .menu-link { background-color: var(--wd-aside-active); }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item > .menu-link::before { left: -.5rem; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-section { margin: .9rem 0 .2rem; padding: 0; justify-content: center; cursor: default; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-section::after,
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-section .wd-section-caret { display: none; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-section .menu-icon { color: #334155; }
    .aside-minimize:not(.aside-minimize-hover) #kt_aside .aside-menu .menu-nav > .menu-item.wd-section-hidden { display: block; }
}

/* Thin scrollbar */
#kt_aside .aside-menu .ps__rail-y > .ps__thumb-y { background-color: rgba(148, 163, 184, .25); width: 4px; }

/* Footer: discreet, it should not compete with the content of the system */
.wd-footer { background-color: transparent !important; border-top: 1px solid #ebedf3; }
.wd-footer .wd-footer-credit img { filter: grayscale(1); opacity: .55; transition: filter .2s ease, opacity .2s ease; }
.wd-footer .wd-footer-credit:hover img { filter: none; opacity: 1; }

/* Top header with the same tone of the sidebar */
#kt_header.header, #kt_header_mobile.header-mobile { background-color: var(--wd-aside-bg); }
#kt_header.header { border-bottom: 1px solid var(--wd-aside-border); }

/* Quick change of line (modal of the sidebar card) */
.wd-line-option {
    display: flex; align-items: center; width: 100%;
    padding: .85rem 1rem; margin-bottom: .5rem;
    background: #ffffff; border: 1px solid #ebedf3; border-radius: .65rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wd-line-option:last-child { margin-bottom: 0; }
.wd-line-option:hover:not(:disabled), .wd-line-option:focus { border-color: #3699ff; box-shadow: 0 .5rem 1rem rgba(54, 153, 255, .1); outline: none; }
.wd-line-option.is-current { background-color: #f3fbfa; border-color: #c9f7f5; cursor: default; }
.wd-line-option.is-loading { border-color: #3699ff; }
.wd-line-option:disabled:not(.is-loading) { opacity: .5; }
.wd-line-option .wd-line-option-key { min-width: 22px; padding: 0 .35rem; font-size: .75rem; line-height: 20px; text-align: center; color: #b5b5c3; border: 1px solid #e4e6ef; border-radius: .35rem; }

/* Top header: where the user is, quick actions and the account */
@media (min-width: 992px) { #kt_header.wd-header { height: 64px; } }
.wd-crumbs { display: flex; align-items: center; height: 100%; min-width: 0; }
.wd-crumb { display: inline-flex; align-items: center; color: var(--wd-aside-text); font-weight: 500; font-size: .95rem; white-space: nowrap; transition: color .15s ease; }
.wd-crumb i { font-size: 1.25rem; margin-right: .45rem; color: var(--wd-aside-icon); }
a.wd-crumb:hover, a.wd-crumb:hover i { color: #ffffff; text-decoration: none; }
.wd-crumb.is-current { color: #ffffff; font-weight: 600; }
.wd-crumb.is-current i { color: var(--wd-aside-accent); }
.wd-crumb-sep { color: var(--wd-aside-muted); margin: 0 .6rem; font-size: .85rem; }
span.wd-crumb.is-current { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.wd-topbar { display: flex; align-items: center; }
.wd-topbar-btn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; margin-left: .25rem; border: 0; border-radius: .65rem; background: transparent; color: var(--wd-aside-text); transition: background-color .15s ease, color .15s ease; }
.wd-topbar-btn i { font-size: 1.45rem; }
.wd-topbar-btn:hover, .wd-topbar-btn:focus { background: rgba(148, 163, 184, .12); color: #ffffff; outline: none; }
.wd-topbar-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #f64e60; color: #fff; font-size: .68rem; font-weight: 700; line-height: 17px; box-shadow: 0 0 0 2px var(--wd-aside-bg); }
.wd-topbar-divider { width: 1px; height: 26px; background: var(--wd-aside-border); margin: 0 .75rem 0 .5rem; background-color: rgba(148, 163, 184, .18); }
.wd-user-chip { display: inline-flex; align-items: center; padding: 4px 8px 4px 14px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .16); background: rgba(148, 163, 184, .06); transition: background-color .15s ease, border-color .15s ease; }
.wd-user-chip:hover, .wd-user-chip:focus { background: rgba(148, 163, 184, .14); border-color: rgba(59, 156, 255, .45); outline: none; }
.wd-user-chip.is-compact { padding: 3px; }
.wd-user-text { display: flex; flex-direction: column; align-items: flex-end; margin-right: .65rem; line-height: 1.2; }
.wd-user-name { color: #ffffff; font-weight: 600; font-size: .9rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-user-role { color: var(--wd-aside-muted); font-size: .72rem; font-weight: 500; }
.wd-user-caret { color: var(--wd-aside-muted); margin-left: .35rem; font-size: .9rem; }
.wd-avatar { width: 34px; height: 34px; min-width: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3b9cff, #1bc5bd); color: #ffffff; font-weight: 700; font-size: .95rem; }
.wd-avatar.is-lg { width: 52px; height: 52px; min-width: 52px; font-size: 1.35rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
@media (max-width: 1199.98px) { .wd-user-text { display: none; } .wd-user-chip { padding-left: 4px; } }
.wd-header-mobile .wd-topbar-btn { color: var(--wd-aside-text); }
.wd-header-mobile .wd-avatar { width: 32px; height: 32px; min-width: 32px; font-size: .85rem; }

/* Account popup: it unfolds from the bottom edge of the header, as part of it (the position is set when it opens) */
.wd-user-modal .modal-dialog { position: fixed; top: 64px; right: 16px; margin: 0; width: 340px; max-width: 100vw; }
.wd-user-modal.fade .modal-dialog { transform: none; opacity: 1; clip-path: inset(0 0 100% 0); transition: clip-path .22s ease-out; }
.wd-user-modal.show .modal-dialog { clip-path: inset(0 -40px -40px -40px); }
.wd-user-modal .modal-content { overflow: hidden; border: 0; border-radius: 0 0 .85rem .85rem; box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, .28); }
.modal-backdrop.wd-backdrop-soft { top: var(--wd-backdrop-top, 0); }
.modal-backdrop.wd-backdrop-soft.show { opacity: .18; }
.wd-user-chip.is-open { background: rgba(59, 156, 255, .14); border-color: rgba(59, 156, 255, .55); }
.wd-user-chip.is-open .wd-user-caret { transform: rotate(180deg); color: #ffffff; }
.wd-user-caret { transition: transform .2s ease; }
/* Same tone of the header, without a line between them */
.wd-user-modal-head { position: relative; display: flex; align-items: center; padding: 1rem 1.25rem 1.1rem; background: var(--wd-aside-bg); border-top: 1px solid var(--wd-aside-border); }
.wd-user-modal-head .close { position: absolute; top: .7rem; right: .85rem; opacity: 1; }
.wd-user-modal-head .close i { color: #94a3b8; font-size: .75rem; }
.wd-user-modal-head .close:hover i { color: #ffffff; }
.wd-avatar.is-lg { width: 46px; height: 46px; min-width: 46px; font-size: 1.15rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.wd-user-modal-id { margin-left: .85rem; min-width: 0; padding-right: 1.25rem; }
.wd-user-modal-id h4 { color: #ffffff; font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-user-modal-mail { color: #94a3b8; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-user-modal .modal-body { padding: 1rem 1.25rem .25rem; }
.wd-user-modal-meta { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; padding-bottom: 1rem; border-bottom: 1px dashed #ebedf3; }
.wd-user-modal-meta > div { display: contents; }
.wd-user-modal-label { color: #b5b5c3; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: .15rem; }
.wd-user-modal-value { color: #3f4254; font-weight: 600; }
.wd-user-modal-links { padding: .5rem 0; }
.wd-user-link { display: flex; align-items: center; padding: .55rem .6rem; margin: 0 -.6rem; border-radius: .6rem; color: #3f4254; transition: background-color .15s ease; }
.wd-user-link:hover { background: #f3f6f9; color: #3f4254; text-decoration: none; }
.wd-user-link > .la-angle-right { color: #b5b5c3; }
.wd-user-link-icon { width: 36px; height: 36px; min-width: 36px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; margin-right: .8rem; }
.wd-user-link-icon i { font-size: 1.3rem; }
.wd-user-link-icon.is-primary { background: #e1f0ff; color: #3699ff; }
.wd-user-link-icon.is-warning { background: #fff4de; color: #ffa800; }
.wd-user-link-text { flex: 1 1 auto; min-width: 0; }
.wd-user-link-text b { display: block; font-weight: 600; }
.wd-user-link-text small { display: block; color: #b5b5c3; font-size: .8rem; }
.wd-user-modal .modal-footer { border-top: 0; padding: .25rem 1.25rem 1.15rem; }
/* Phones: the whole width below the mobile header */
@media (max-width: 575.98px) {
    .wd-user-modal .modal-dialog { left: 0; right: 0 !important; width: 100%; }
    .wd-user-modal .modal-content { border-radius: 0 0 1rem 1rem; }
}

/* Status chips (shared by the panel, the lists and the account popup) */
.wd-chip { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--wd-wait-bg, #f3f6f9); color: var(--wd-wait, #7e8299); }
.wd-chip.is-ok { background: #e8fff3; color: #0bb783; }
.wd-chip.is-warn { background: #fff4de; color: #b77a00; }
.wd-chip.is-bad { background: #ffe2e5; color: #d9214e; }
.wd-chip.is-bad-soft { background: #fff0f2; color: #d9214e; }
.wd-chip.is-info { background: #e1f0ff; color: #187de4; }
.wd-chip.is-wait { background: #f3f6f9; color: #7e8299; }
.wd-chip.is-na { background: #fafbfc; color: #b5b5c3; border: 1px dashed #e4e6ef; }


/* Actual line in the header, always visible */
.wd-line-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 .8rem 0 .7rem; border-radius: 999px; border: 1px solid rgba(59, 156, 255, .35); background: rgba(59, 156, 255, .1); color: #ffffff; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.wd-line-pill:hover, .wd-line-pill:focus { background: rgba(59, 156, 255, .2); border-color: rgba(59, 156, 255, .65); outline: none; }
.wd-line-pill-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: #1bc5bd; box-shadow: 0 0 0 3px rgba(27, 197, 189, .25); margin-right: .55rem; }
.wd-line-pill-label { color: #94a3b8; font-size: .78rem; font-weight: 500; margin-right: .35rem; }
.wd-line-pill-name { font-weight: 700; font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.wd-line-pill i { color: #94a3b8; margin-left: .55rem; font-size: 1rem; }
.wd-line-pill:hover i { color: #ffffff; }
.wd-line-pill.is-compact { height: 30px; padding: 0 .65rem 0 .55rem; }
.wd-line-pill.is-compact .wd-line-pill-name { font-size: .8rem; max-width: 110px; }
.wd-crumb-divider { width: 1px; height: 22px; background: rgba(148, 163, 184, .2); margin: 0 1rem; }

/* Loading placeholders and empty states of the header popups */
.wd-bday-skel { display: block; height: 12px; margin: 4px 0; border-radius: 6px; background: linear-gradient(90deg, #f3f6f9 25%, #e9edf3 50%, #f3f6f9 75%); background-size: 200% 100%; animation: wd-skel 1.2s infinite; }
.wd-bday-skel.is-small { height: 9px; }
.wd-bday-skel.is-avatar { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; margin: 0 .85rem 0 0; }
.wd-bday-skel.is-dot { width: 32px; height: 32px; min-width: 32px; border-radius: .55rem; margin: 0 .75rem 0 0; }
@keyframes wd-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.wd-bday-empty { padding: 2.5rem 1rem; text-align: center; color: #b5b5c3; font-weight: 500; }
.wd-bday-empty > i { display: block; font-size: 2.5rem; margin-bottom: .5rem; color: #d1d3e0; }

/* Birthdays modal */
.wd-bday-modal .modal-content { border: 0; border-radius: 1rem; overflow: hidden; }
.wd-bday-head { display: flex; align-items: center; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, #fff8dd 0%, #ffe9ec 100%); }
.wd-bday-head .close { margin-left: .75rem; }
.wd-bday-icon { width: 46px; height: 46px; min-width: 46px; border-radius: .8rem; display: flex; align-items: center; justify-content: center; margin-right: 1rem; background: #ffffff; color: #ffa800; box-shadow: 0 .4rem 1rem rgba(255, 168, 0, .18); }
.wd-bday-icon i { font-size: 1.6rem; }
.wd-bday-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.5rem .5rem; border-bottom: 1px solid #ebedf3; }
.wd-bday-tabs, .wd-activity-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.wd-bday-tabs::-webkit-scrollbar, .wd-activity-tabs::-webkit-scrollbar { display: none; }
.wd-bday-tabs button, .wd-activity-tabs button { border: 0; background: transparent; padding: .5rem .8rem; border-radius: .55rem; font-weight: 600; font-size: .9rem; color: #7e8299; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.wd-bday-tabs button span[data-bday-count] { display: inline-block; min-width: 20px; margin-left: .25rem; padding: 0 .35rem; border-radius: 10px; background: #f3f6f9; font-size: .75rem; }
.wd-bday-tabs button:hover, .wd-activity-tabs button:hover { color: #3f4254; background: #f3f6f9; }
.wd-bday-tabs button.active, .wd-activity-tabs button.active { color: #3699ff; background: #e1f0ff; }
.wd-bday-tabs button.active span[data-bday-count] { background: #3699ff; color: #ffffff; }
.wd-bday-tabs button:focus, .wd-activity-tabs button:focus { outline: none; }
.wd-bday-search { margin-left: auto; width: 240px; max-width: 100%; }
.wd-bday-search { position: relative; display: block; }
.wd-bday-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #b5b5c3; font-size: .85rem; pointer-events: none; }
.wd-bday-search input { display: block; width: 100%; height: 36px; padding: 0 .85rem 0 2.2rem; border: 1px solid #e4e6ef; border-radius: .55rem; font-size: .9rem; color: #3f4254; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.wd-bday-search input:focus { outline: none; border-color: #3699ff; box-shadow: 0 0 0 3px rgba(54, 153, 255, .12); }
.wd-bday-search input::placeholder { color: #b5b5c3; }
.wd-bday-modal .modal-body { min-height: 260px; }
.wd-bday-row { display: flex; align-items: center; padding: .7rem .5rem; border-bottom: 1px dashed #ebedf3; border-radius: .6rem; }
.wd-bday-row:last-child { border-bottom: 0; }
.wd-bday-row.is-today { background: #fff8dd; border-bottom-color: transparent; margin-bottom: .25rem; }
.wd-bday-avatar { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; overflow: hidden; margin-right: .85rem; display: flex; align-items: center; justify-content: center; background: #e1f0ff; color: #3699ff; font-weight: 700; font-size: .85rem; }
.wd-bday-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wd-bday-main { flex: 1 1 auto; min-width: 0; }
.wd-bday-name { display: block; font-weight: 600; color: #3f4254; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.wd-bday-name:hover { color: #3699ff; text-decoration: none; }
.wd-bday-job { display: block; font-size: .8rem; color: #b5b5c3; }
.wd-bday-side { display: flex; flex-direction: column; align-items: flex-end; margin-left: .75rem; text-align: right; white-space: nowrap; }
.wd-bday-date { font-weight: 700; color: #3f4254; font-size: .9rem; }
.wd-bday-age { font-size: .78rem; color: #7e8299; margin-bottom: .15rem; }
@media (max-width: 575.98px) {
    .wd-bday-modal .modal-dialog { margin: .5rem; }
    .wd-bday-search { width: 100%; margin-left: 0; }
    .wd-bday-tools { padding: .75rem 1rem .5rem; }
    .wd-bday-head { padding: 1rem; }
}

/* Drawers of the right side (offcanvas): Metronic hides them with right: -395px, enough only for its 375px;
   wider drawers (filters, activity...) showed a white strip. They move their whole width and hide while closed */
.offcanvas.offcanvas-right { right: 0; left: auto; max-width: 100vw; transform: translateX(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.offcanvas.offcanvas-right.offcanvas-on { right: 0; transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }

/* Full screen photo (js/photo-viewer.js), above the modals and the alerts */
[data-wd-photo] { cursor: zoom-in; }
body.wd-photo-viewer-open { overflow: hidden; }
.wd-photo-viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 4rem 1rem 1.5rem; background: rgba(15, 16, 25, .94); opacity: 0; visibility: hidden; cursor: zoom-out; transition: opacity .2s ease, visibility 0s linear .2s; }
.wd-photo-viewer.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.wd-photo-viewer:focus { outline: none; }
.wd-photo-viewer-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.wd-photo-viewer-img { display: block; max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); border-radius: .5rem; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default; }
.wd-photo-viewer-caption { margin-top: 1rem; color: #ffffff; font-size: 1.05rem; font-weight: 600; text-align: center; }
.wd-photo-viewer-close { position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); cursor: pointer; }
.wd-photo-viewer-close:hover, .wd-photo-viewer-close:focus { background: rgba(255, 255, 255, .3); outline: none; }
.wd-photo-viewer-close i { color: #ffffff; font-size: 1rem; }

/* Big options to choose one (radios with .is-checked): easy to read and to touch */
.wd-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.wd-choice { display: flex; align-items: center; margin: 0; padding: .8rem .95rem; border: 1px solid #e4e6ef; border-radius: .6rem; cursor: pointer; font-size: 1rem; color: #3f4254; background: #ffffff; transition: border-color .15s ease, background .15s ease; }
.wd-choice:hover { border-color: #b5d9ff; }
.wd-choice input { width: 1.15rem; height: 1.15rem; margin: 0 .65rem 0 0; flex-shrink: 0; }
.wd-choice b { display: block; font-weight: 600; }
.wd-choice small { display: block; color: #7e8299; font-size: .85rem; }
.wd-choice.is-checked { border-color: #3699ff; background: #f1f8ff; }

/* Recent activity drawer */
#kt_quick_panel.wd-activity { display: flex; flex-direction: column; width: 420px; padding: 0; }
.wd-activity-head { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid #ebedf3; }
.wd-activity-icon { width: 40px; height: 40px; min-width: 40px; border-radius: .7rem; display: flex; align-items: center; justify-content: center; margin-right: .85rem; background: #e1f0ff; color: #3699ff; }
.wd-activity-icon i { font-size: 1.4rem; }
.wd-activity-tabs { margin-top: 1rem; }
.wd-activity-body { flex: 1 1 auto; overflow-y: auto; padding: .5rem 1.25rem 1rem; -webkit-overflow-scrolling: touch; }
.wd-activity-foot { padding: .85rem 1.25rem; border-top: 1px solid #ebedf3; }
.wd-activity-day { position: sticky; top: -.5rem; z-index: 1; padding: .75rem 0 .4rem; background: #ffffff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #b5b5c3; }
.wd-activity-item { position: relative; display: flex; align-items: flex-start; padding: .55rem 0; }
.wd-activity-item + .wd-activity-item::before { content: ''; position: absolute; left: 15px; top: -10px; height: 18px; width: 2px; background: #f3f6f9; }
.wd-activity-type { width: 32px; height: 32px; min-width: 32px; border-radius: .55rem; display: flex; align-items: center; justify-content: center; margin-right: .75rem; }
.wd-activity-type i { font-size: 1rem; }
.wd-activity-type.is-store { background: #e8fff3; color: #1bc5bd; }
.wd-activity-type.is-update { background: #fff4de; color: #ffa800; }
.wd-activity-type.is-delete { background: #ffe2e5; color: #f64e60; }
.wd-activity-type.is-other { background: #e1f0ff; color: #3699ff; }
.wd-activity-main { flex: 1 1 auto; min-width: 0; }
.wd-activity-text { color: #3f4254; font-size: .88rem; line-height: 1.45; word-break: break-word; }
.wd-activity-text strong { font-weight: 600; color: #181c32; }
.wd-activity-meta { margin-top: .15rem; font-size: .76rem; color: #b5b5c3; }
.wd-activity-meta a { color: #7e8299; font-weight: 600; }
.wd-activity-meta a:hover { color: #3699ff; }
@media (max-width: 575.98px) {
    #kt_quick_panel.wd-activity { width: 100%; max-width: 100%; }
}
