/* Company logo (assets/img/smart.png, 210 x 140): sizes where the template logo used to be. */
.header .header-left .logo img { width: 96px; height: auto; }
/* Sidebar logo: bigger, centred in its own band above the menu (the menu starts below the band, so nothing overlaps). */
@media (min-width: 992px) {
  #sidebar.sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 108px !important;
    width: 252px;
    padding: 10px 16px 6px !important;
    border-bottom: 1px solid var(--bs-border-color, #eef0f4);
    background: inherit;
    z-index: 2;
  }
  #sidebar.sidebar .sidebar-logo .logo,
  #sidebar.sidebar .sidebar-logo .logo-small,
  #sidebar.sidebar .sidebar-logo .dark-logo { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; }
  #sidebar.sidebar .sidebar-logo .logo-small { display: none; }
  #sidebar.sidebar .sidebar-logo .dark-logo { display: none; }
  #sidebar.sidebar .sidebar-logo .logo img { height: 88px; width: auto; max-width: 100%; object-fit: contain; }
  #sidebar.sidebar .slimScrollDiv { top: 108px !important; height: calc(var(--sim-vh) - 108px) !important; }
  #sidebar.sidebar .slimScrollDiv .sidebar-inner { height: 100% !important; }

  /* collapsed sidebar: the small logo, centred */
  .mini-sidebar:not(.expand-menu) #sidebar.sidebar .sidebar-logo { height: 76px !important; width: 80px !important; padding: 8px 0 !important; }
  .mini-sidebar:not(.expand-menu) #sidebar.sidebar .sidebar-logo .logo { display: none; }
  .mini-sidebar:not(.expand-menu) #sidebar.sidebar .sidebar-logo .logo-small { display: flex; }
  .mini-sidebar:not(.expand-menu) #sidebar.sidebar .sidebar-logo .logo-small img { width: 46px; height: auto; }
  .mini-sidebar:not(.expand-menu) #sidebar.sidebar .slimScrollDiv { top: 76px !important; height: calc(var(--sim-vh) - 76px) !important; }
}
.auth-brand-logo { max-width: 220px; width: 60%; height: auto; }

/* the navbar drop-down */
.language-dropdown .language-trigger { padding: .35rem .6rem; }
.language-dropdown .language-code { font-weight: 600; font-size: .8125rem; }
.language-dropdown .language-menu { min-width: 13rem; }
.language-dropdown .dropdown-item.active { background: rgba(var(--bs-primary-rgb), .1); color: inherit; }

/* ------------------------------------------------------------------ navbar: the signed-in user (picture, name, role) */
.profile-dropdown .profile-trigger { padding: .25rem .65rem .25rem .3rem; border: 1px solid var(--bs-border-color, #e9edf4); border-radius: 999px; background: #fff; color: inherit; text-decoration: none; gap: .6rem; transition: box-shadow .15s, border-color .15s; }
.profile-dropdown .profile-trigger:hover, .profile-dropdown .profile-trigger[aria-expanded="true"] { border-color: #f26522; box-shadow: 0 .25rem .75rem rgba(242, 101, 34, .15); background: #fff; color: inherit; }
.profile-dropdown .profile-trigger::after { display: none; }
.profile-trigger-text { line-height: 1.2; text-align: left; }
.profile-trigger-name { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .8125rem; color: #111827; }
.profile-trigger-role { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; color: #f26522; font-weight: 500; }
.profile-trigger-caret { font-size: .875rem; color: #6b7280; }

/* the logo frame of the Tenant page (upload preview and details): the shape follows the tenant's choice */
.logo-frame { display: inline-flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; overflow: hidden; border: 1px dashed #ced4da; background: #fff; }
.logo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-frame-circle { border-radius: 50%; }
.logo-frame-rounded { border-radius: 22%; }
.logo-frame-square { border-radius: 4px; }
.logo-frame-wide { width: 10rem; border-radius: 6px; }
.logo-frame-free { width: auto; min-width: 5rem; max-width: 10rem; border-radius: 6px; }
.logo-frame-free img { width: auto; max-width: 100%; object-fit: contain; }
.btn-group [data-logo-shape].active { background: #f26522; border-color: #f26522; color: #fff; }
.avatar.has-tenant-logo:has(.tenant-badge-wide), .avatar.has-tenant-logo:has(.tenant-badge-free) { margin-right: .8rem; }
.logo-stage-box { max-width: 28rem; height: 18rem; background: #f1f3f5; }
.logo-stage-box img { display: block; max-width: 100%; }

/* the tenant logo at the bottom right of the picture (navbar and profile menu); the shape is the tenant's choice (Tenant page > Logo shape) */
.avatar.has-tenant-logo, .avatar.profile-menu-avatar { position: relative; overflow: visible; }
.tenant-badge { position: absolute; right: -.3rem; bottom: -.2rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; height: 1rem; min-width: 1rem; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(17, 24, 39, .12), 0 .15rem .4rem rgba(17, 24, 39, .2); overflow: hidden; }
.avatar .tenant-badge img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: cover; border-radius: 0; }
.tenant-badge-circle { width: 1rem; border-radius: 50%; }
.avatar .tenant-badge-circle img { width: 100%; }
.tenant-badge-rounded { width: 1rem; border-radius: 30%; }
.avatar .tenant-badge-rounded img { width: 100%; }
.tenant-badge-square { width: 1rem; border-radius: 2px; }
.avatar .tenant-badge-square img { width: 100%; }
.tenant-badge-wide { width: 1.9rem; border-radius: 4px; right: -.9rem; }
.avatar .tenant-badge-wide img { width: 100%; }
.tenant-badge-free { width: auto; max-width: 2.4rem; border-radius: 4px; right: -.9rem; }
.avatar .tenant-badge-free img { object-fit: contain; }
.tenant-badge-lg { height: 1.9rem; min-width: 1.9rem; right: -.45rem; bottom: -.15rem; }
.tenant-badge-lg.tenant-badge-circle, .tenant-badge-lg.tenant-badge-rounded, .tenant-badge-lg.tenant-badge-square { width: 1.9rem; }
.tenant-badge-lg.tenant-badge-wide { width: 3.4rem; right: -1.6rem; }
.tenant-badge-lg.tenant-badge-free { max-width: 4rem; right: -1.6rem; }

.profile-menu { width: 21rem; max-width: calc(var(--sim-vw) - 1.5rem); border: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 1rem 2.5rem rgba(17, 24, 39, .18); margin-top: .6rem !important; }
.profile-menu-head { position: relative; text-align: center; padding: 1.5rem 1.25rem 1.25rem; color: #fff; background: linear-gradient(135deg, #ff8a4c 0%, #f26522 55%, #c94a10 100%); overflow: hidden; }
.profile-menu-head::before, .profile-menu-head::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.profile-menu-head::before { width: 9rem; height: 9rem; top: -4rem; left: -3rem; }
.profile-menu-head::after { width: 6rem; height: 6rem; bottom: -3rem; right: -1.5rem; }
.profile-menu-avatar { display: inline-flex; margin-bottom: .6rem; border: 3px solid #fff; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .2); background: #fff; position: relative; z-index: 1; }
.profile-menu-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-menu-head h5, .profile-menu-head .profile-menu-role, .profile-menu-head .profile-menu-email { position: relative; z-index: 1; }
.profile-menu-role { background: rgba(255, 255, 255, .22); color: #fff; font-weight: 600; font-size: .75rem; border-radius: 999px; padding: .3rem .7rem; }
.profile-menu-email { margin-top: .5rem !important; font-size: .75rem; color: rgba(255, 255, 255, .88); }
.profile-menu-body { padding: .6rem; background: #fff; }
.profile-menu-item { display: flex; align-items: center; gap: .85rem; padding: .6rem .7rem; border-radius: .75rem; color: #111827; text-decoration: none; transition: background .15s; }
.profile-menu-item:hover { background: #fef1eb; color: #111827; }
.profile-menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: #fef1eb; color: #f26522; font-size: 1.15rem; flex-shrink: 0; }
.profile-menu-note { margin: .35rem .7rem .2rem; padding-top: .6rem; border-top: 1px dashed #e5e7eb; font-size: .75rem; color: #6b7280; }
.profile-menu-foot { padding: .6rem; background: #f8f9fa; border-top: 1px solid #eef0f4; }
.profile-menu-signout { border: 1px solid #e5e7eb; background: #fff; font-weight: 600; color: #dc3545; border-radius: .7rem; }
.profile-menu-signout:hover { background: #dc3545; border-color: #dc3545; color: #fff; }

/* ------------------------------------------------------------------ language switch (the same pill as the mobile app) */
.language-dropdown .language-trigger { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--bs-border-color, #e9edf4); background: #fff; color: #111827; font-weight: 600; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.language-dropdown .language-trigger::after { display: none; }
.language-dropdown .language-trigger:hover, .language-dropdown .language-trigger[aria-expanded="true"] { border-color: #f26522; box-shadow: 0 .25rem .75rem rgba(242, 101, 34, .15); color: #111827; background: #fff; }
.language-dropdown .language-trigger .ti { font-size: 1.1rem; color: #f26522; margin: 0 !important; }
.language-dropdown .language-code { font-weight: 700; font-size: .8125rem; letter-spacing: .02em; }
.language-dropdown .language-menu { min-width: 14rem; border: 0; border-radius: 1rem; padding: .5rem !important; box-shadow: 0 1rem 2.5rem rgba(17, 24, 39, .18); margin-top: .6rem !important; }
.language-dropdown .language-menu .dropdown-item { border-radius: .7rem !important; padding: .55rem .75rem; font-weight: 500; }
.language-dropdown .language-menu .dropdown-item:hover { background: #fef1eb; color: #111827; }
.language-dropdown .language-menu .dropdown-item.active { background: #fef1eb; color: #111827; font-weight: 700; }
.language-dropdown .language-menu .dropdown-item .ti-check { color: #f26522; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #fef1eb; color: #f26522; font-weight: 700; font-size: .85rem; }
.profile-menu-avatar .avatar-initials { background: #fff; font-size: 1.6rem; }

/* the tenant a Super Admin works in: a small pill in the top bar (icon + name), never wider than 9rem so the bar keeps its single row */
.work-tenant-box { display: inline-flex; align-items: center; gap: .3rem; height: 2rem; padding: 0 .55rem; max-width: 9rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.work-tenant-box .ti { font-size: .9rem; flex: 0 0 auto; }
.work-tenant-box .work-tenant-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.work-tenant-one { background: #fff3cd; color: #7a5200; border-color: #ffe08a; }
.work-tenant-one:hover { background: #ffe8a1; color: #5c3d00; }
.work-tenant-all { background: #fff; color: #4b5563; border-color: #e5e7eb; }
.work-tenant-all:hover { background: #f3f4f6; color: #111827; }

/* the footer of every page: the product (Smart Tech logo, name, copyright), the tenant the user works for (its logo in the shape the tenant chose, its name) and the version */
.app-footer { font-size: .78rem; color: #66727f; }
.app-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.af-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.af-logo { height: 1.7rem; width: auto; display: block; flex: 0 0 auto; }
.af-title { font-weight: 700; color: #1f2933; line-height: 1.2; }
.af-sub { line-height: 1.2; }
.af-tenant { display: flex; align-items: center; gap: .6rem; padding-left: 1.5rem; border-left: 1px solid #e3e7ec; min-width: 0; }
.af-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.af-tname { font-weight: 700; color: #1f2933; line-height: 1.2; overflow-wrap: anywhere; }
.af-tlogo { flex: 0 0 auto; height: 1.7rem; min-width: 1.7rem; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3e7ec; overflow: hidden; }
.af-tlogo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.af-tlogo-circle { width: 1.7rem; border-radius: 50%; } .af-tlogo-circle img { width: 100%; }
.af-tlogo-rounded { width: 1.7rem; border-radius: 30%; } .af-tlogo-rounded img { width: 100%; }
.af-tlogo-square { width: 1.7rem; border-radius: 3px; } .af-tlogo-square img { width: 100%; }
.af-tlogo-wide { width: 3.2rem; border-radius: 4px; } .af-tlogo-wide img { width: 100%; }
.af-tlogo-free { width: auto; max-width: 4.5rem; border-radius: 4px; } .af-tlogo-free img { object-fit: contain; }
.af-tlogo-none { width: 1.7rem; border-radius: 50%; background: #f3f4f7; color: #8a96a3; font-size: 1rem; }
.af-meta { display: flex; align-items: center; gap: .55rem; }
.af-dot { width: .25rem; height: .25rem; border-radius: 50%; background: #b4bcc6; display: inline-block; }
@media (max-width: 767.98px) { .af-tenant { padding-left: 0; border-left: 0; } .af-meta { width: 100%; } }
@media print { .app-footer { display: none; } }
/* the footer on the sign-in pages: centred, no bar */
.app-footer-auth { background: transparent; }
.app-footer-auth .app-footer-row { justify-content: center; text-align: left; }
.app-footer-auth .af-tenant { border-left: 0; padding-left: 0; }
.app-footer-auth .af-meta { width: 100%; justify-content: center; }

/* notification bell (header) and the notification list (Notification module) */
#ntf-bell .ntf-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc3545; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
#ntf-bell .notification-dropdown { width: 380px; max-width: calc(var(--sim-vw) * 0.94); }
#ntf-bell .noti-content { max-height: 380px; overflow-y: auto; margin-bottom: 12px; }
.ntf-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #eef0f2; color: inherit; text-decoration: none; position: relative; border-radius: 6px; }
.ntf-item:hover { background: #f6f8fa; color: inherit; }
.ntf-item.ntf-unread { background: #f0f6ff; }
.ntf-icon { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #e9eef5; color: #3f5f8a; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.ntf-urgent .ntf-icon { background: #fde8ea; color: #dc3545; }
.ntf-info .ntf-icon { background: #eef1f4; color: #7a8794; }
.ntf-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ntf-title { font-weight: 600; color: #212529; font-size: 14px; }
.ntf-body { color: #5b6670; font-size: 13px; overflow-wrap: anywhere; }
.ntf-time { color: #8a949e; font-size: 12px; margin-top: 2px; }
.ntf-dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: #1e6fdc; margin-top: 6px; }
