/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
    --app-bg: #F6F7F9;
    --app-sidebar-bg: #F1F3F5;
    --app-surface: #ffffff;
    --app-surface-muted: #F9FAFB;
    --app-border: #E5E7EB;
    --app-border-strong: #D1D5DB;
    --app-table-border: #ECEFF1;
    --app-separator: #D1D5DB;
    --app-text: #1f2937;
    --app-text-muted: #6b7280;
    --app-sidebar-text: #374151;
    --app-sidebar-hover: #F9FAFB;
    --app-active-bg: #F9FAFB;
    --app-active-border: #D1D5DB;
    --app-primary: #2563eb;
    --app-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.06);
    --app-shadow-card: 0 8px 22px rgba(15, 23, 42, 0.05);
    --app-sidebar-width: 230px;
    --app-sidebar-collapsed-width: 68px;
    --app-topbar-height: 60px;
    --app-footer-height: 36px;
}

html,
body {
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.92rem;
    overflow-x: hidden;
}

.hideFilter {
    display: none;
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--app-footer-height);
    background-color: rgba(246, 247, 249, 0.94);
    color: var(--app-text-muted);
    text-align: center;
    font-size: 0.85rem;
    align-content: center;
    line-height: 2rem;
    border-top: 1px solid var(--app-separator);
    backdrop-filter: blur(8px);
    z-index: 20;
}

.footer-content {
    padding: 0 1rem;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.viewcaption-center,
.viewcaption-center-noborder {
    text-align: left;
    font-weight: 700;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--app-text);
    margin-bottom: 0.8rem;
    border-bottom: 0;
    height: auto;
}

a {
    color: var(--app-text);
    text-decoration: none;
}

a:hover {
    color: var(--app-primary);
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #2563eb;
    border-color: #2563eb;
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.btnSubmit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 0.6rem 1rem;
    border-radius: 11px;
    border: 1px solid var(--app-border);
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btnSubmit:hover,
.btnSubmit:focus {
    background: var(--app-surface-muted);
    border-color: var(--app-active-border);
    color: var(--app-text);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.auth-main {
    min-height: calc(100vh - var(--app-footer-height));
    padding: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.24), transparent 28%),
        linear-gradient(180deg, #f6f7f9 0%, #eef2f4 100%);
}

.auth-page {
    width: 100%;
    max-width: 1220px;
}

.auth-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
    gap: 1.6rem;
    align-items: stretch;
}

.auth-showcase,
.auth-panel-card {
    border: 1px solid var(--app-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--app-shadow-soft);
    backdrop-filter: blur(10px);
}

.auth-showcase {
    position: relative;
    padding: 2.4rem;
    background: rgba(248, 250, 252, 0.94);
    overflow: hidden;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 340px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.14) 0%, rgba(148, 163, 184, 0) 85%);
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--app-sidebar-bg);
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-showcase-title {
    max-width: 70%;
    margin: 1rem 0 0.8rem;
    font-size: clamp(1.28rem, 2.05vw, 1.82rem);
    line-height: 1.05;
    font-weight: 700;
    color: #111827;
}

.auth-showcase-copy {
    max-width: 56ch;
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.auth-showcase-card {
    padding: 0.9rem;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
}

.auth-showcase-card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.auth-showcase-card-copy {
    color: var(--app-text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-panel {
    display: flex;
    align-items: center;
}

.auth-panel-card {
    width: 100%;
    padding: 1.6rem;
}

.auth-panel-header {
    margin-bottom: 1.2rem;
}

.auth-panel-kicker {
    color: var(--app-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-panel-title {
    margin: 0.55rem 0 0.5rem;
    font-size: 1.48rem;
    font-weight: 700;
    color: #111827;
}

.auth-panel-copy {
    margin: 0;
    color: var(--app-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-validation:empty {
    display: none;
}

.auth-validation ul {
    margin: 0;
    padding-left: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-label {
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-input {
    min-height: 40px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    background: #f9fafb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    margin-top: 0.3rem;
}

.auth-submit {
    min-height: 40px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.22);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #ffffff;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.auth-secondary-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.2rem;
    font-size: 0.84rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--app-text-muted);
}

.app-shell {
    width: 100%;
    min-height: calc(100vh - var(--app-footer-height));
}

.app-shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 55;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: var(--app-footer-height);
    width: var(--app-sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--app-sidebar-bg);
    border-right: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
    z-index: 60;
    transition: width 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.app-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1.1rem 1rem 0.8rem;
    border-bottom: 1px solid var(--app-separator);
}

.app-sidebar-mobile-context {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--app-separator);
    background: rgba(255, 255, 255, 0.42);
}

.app-sidebar-mobile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-sidebar-mobile-label {
    color: var(--app-text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-company-selector-mobile {
    width: 100%;
    min-width: 0;
}

.app-sidebar-user-mobile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.app-sidebar-user-mobile-main {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.app-sidebar-user-mobile-name {
    color: var(--app-text);
    font-size: 0.88rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-sidebar-mobile-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.3rem 0.58rem;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.app-sidebar-mobile-actions a:hover,
.app-sidebar-mobile-actions a:focus {
    background: var(--app-surface);
    border-color: var(--app-border-strong);
}

.app-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.app-brand-text {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.app-sidebar-close,
.app-sidebar-toggle {
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.84);
    color: var(--app-text);
    width: 36px;
    height: 36px;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-sidebar-close:hover,
.app-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--app-border-strong);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.app-sidebar-close:focus-visible,
.app-sidebar-toggle:focus-visible {
    outline: none;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.app-sidebar-section-label {
    padding: 0.8rem 1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--app-text-muted);
}

.app-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0.7rem 0.8rem;
    overflow-y: auto;
}

.app-nav-list,
.app-subnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-nav-item + .app-nav-item {
    margin-top: 0.35rem;
}

.app-nav-group {
    display: block;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
}

.app-nav-group[open],
.app-nav-group-link {
    background: rgba(255, 255, 255, 0.18);
}

.app-nav-group-link {
    padding: 0.5rem 0.72rem;
}

.app-nav-group-link.is-active {
    background: var(--app-active-bg);
    box-shadow: inset 0 0 0 1px var(--app-active-border);
}

.app-subnav-link.is-active,
.app-subnav-link-static.is-active {
    background: transparent;
    box-shadow: none;
}

.app-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    cursor: pointer;
    color: var(--app-sidebar-text);
    font-weight: 600;
    list-style: none;
}

.app-nav-group-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.app-nav-icon,
.app-subnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

.app-nav-icon i,
.app-subnav-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}

.app-nav-icon .app-svg-icon,
.app-subnav-icon .app-svg-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.app-svg-calendar-check {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.50' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.50' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
}

.app-svg-clipboard-list {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='4' x='8' y='2' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 11h8'/%3E%3Cpath d='M8 16h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='4' x='8' y='2' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M8 11h8'/%3E%3Cpath d='M8 16h8'/%3E%3C/svg%3E");
}

.app-svg-layout-list {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7'/%3E%3Cpath d='M14 9h7'/%3E%3Cpath d='M14 15h7'/%3E%3Cpath d='M14 20h7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7'/%3E%3Cpath d='M14 9h7'/%3E%3Cpath d='M14 15h7'/%3E%3Cpath d='M14 20h7'/%3E%3C/svg%3E");
}

.app-nav-group-toggle::-webkit-details-marker {
    display: none;
}

.app-nav-group-icon {
    transition: transform 0.2s ease;
}

.app-nav-group[open] .app-nav-group-icon {
    transform: rotate(180deg);
}

.app-nav-group-label,
.app-nav-group-link-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--app-sidebar-text);
}

.app-subnav-list {
    padding: 0 0.42rem 0.4rem;
    background: transparent;
}

.app-subnav-list-nested {
    padding-top: 0.18rem;
    padding-left: 0.65rem;
}

.app-subnav-item + .app-subnav-item {
    margin-top: 0.12rem;
}

.app-subnav-link,
.app-subnav-link-static {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.62rem;
    border-radius: 9px;
    background: transparent;
    color: var(--app-sidebar-text);
    font-size: 0.8rem;
}

.app-subnav-link:hover {
    background: transparent;
}

.app-nav-group-toggle:hover,
.app-nav-group-link:hover {
    background: var(--app-sidebar-hover);
}

.app-main {
    width: calc(100% - var(--app-sidebar-width));
    margin-left: var(--app-sidebar-width);
    padding: 1rem;
    padding-top: calc(var(--app-topbar-height) + 0.32rem);
    padding-bottom: calc(var(--app-footer-height) + 1rem);
    transition: margin-left 0.2s ease, width 0.2s ease;
    overflow-x: hidden;
}

.app-page {
    min-height: calc(100vh - var(--app-topbar-height) - var(--app-footer-height) - 2.5rem);
    max-width: 100%;
    overflow-x: hidden;
}

.app-page > .container-fluid,
.app-page > .container,
.app-page > div.container-fluid,
.app-page > div.container {
    background: transparent;
    padding: 0;
}

.app-page .container-fluid > .row:first-child,
.app-page .container > .row:first-child {
    margin-top: 0;
}

.app-page .container-fluid > .row > [class*="col-"],
.app-page .container > .row > [class*="col-"] {
    margin-bottom: 0.8rem;
    max-width: 100%;
}

.app-page .card,
.app-page .login-form-1,
.app-page .alert {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow-card);
    background: var(--app-surface);
    max-width: 100%;
}

.app-filter-panel {
    padding: 0.9rem 0.95rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
}

.app-filter-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.app-filter-panel-kicker {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-filter-panel-title {
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.app-filter-action {
    display: flex;
    align-items: flex-end;
}

.app-filter-dropdown {
    padding: 0.35rem;
}

.filter-dropdown-template {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 10px;
    box-sizing: border-box;
}

.filter-dropdown-grid {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 10px;
}

.dx-datagrid .dx-datagrid-pager {
    width: 100%;
    max-width: 100%;
    margin: 6px 0 0 !important;
    box-sizing: border-box;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    background: #f8fafc;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: var(--app-sidebar-width);
    width: calc(100% - var(--app-sidebar-width));
    min-height: var(--app-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(246, 247, 249, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1200;
    transition: left 0.2s ease, width 0.2s ease;
    border-bottom: 0;
    overflow: visible;
}

.app-topbar-left,
.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.app-topbar-left {
    flex: 1 1 auto;
}

.app-topbar-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    overflow: visible;
}

.app-topbar-heading {
    display: flex;
    flex-direction: column;
}

.app-topbar-heading-page {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
}

.app-topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-subtitle {
    font-size: 0.78rem;
    color: var(--app-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-company-selector {
    min-width: 176px;
}

.app-quick-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
}

.app-quick-toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.app-quick-toolbar-link i {
    font-size: 18px;
    line-height: 18px;
}

.app-quick-toolbar-link:hover,
.app-quick-toolbar-link:focus,
.app-quick-toolbar-link.is-active {
    background: transparent;
    color: var(--app-primary);
}

.app-quick-toolbar-link:focus-visible {
    outline: none;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.app-user-panel {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 32px;
    background: rgba(255, 255, 255, 0.84);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.app-user-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    gap: 0.5rem;
    height: 32px;
    min-height: 32px;
    padding: 2px 0.78rem 2px 2px;
    border-radius: 10px;
    color: var(--app-text);
    font-weight: 600;
    font-size: 0.84rem;
}

.app-user-link:hover {
    background: rgba(255, 255, 255, 0.96);
}

.app-user-link.dropdown-toggle::after {
    color: var(--app-text-muted);
}

.app-user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 0.35rem;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
    z-index: 1210;
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    font-size: 0.84rem;
}

.app-user-menu .dropdown-item:hover,
.app-user-menu .dropdown-item:focus {
    background: var(--app-surface-muted);
    color: var(--app-text);
}

.user-avatar {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    flex: 0 0 24px;
}

/* A fotografia do utilizador autenticado deve ter mais destaque no painel do cabeçalho. */
.app-user-panel .user-avatar {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.app-shell.app-shell-collapsed .app-sidebar {
    width: var(--app-sidebar-collapsed-width);
}

.app-shell.app-shell-collapsed .app-main {
    width: calc(100% - var(--app-sidebar-collapsed-width));
    margin-left: var(--app-sidebar-collapsed-width);
}

.app-shell.app-shell-collapsed .app-topbar {
    left: var(--app-sidebar-collapsed-width);
    width: calc(100% - var(--app-sidebar-collapsed-width));
}

.app-shell.app-shell-collapsed .app-brand-text,
.app-shell.app-shell-collapsed .app-sidebar-section-label,
.app-shell.app-shell-collapsed .app-nav-group-icon,
.app-shell.app-shell-collapsed .app-subnav-list,
.app-shell.app-shell-collapsed .app-nav-group-link-label {
    display: none;
}

.app-shell.app-shell-collapsed .app-sidebar-brand {
    justify-content: center;
}

.app-shell.app-shell-collapsed .app-brand-link {
    justify-content: center;
}

.app-shell.app-shell-collapsed .app-nav-item {
    display: flex;
    justify-content: center;
}

.app-shell.app-shell-collapsed .app-nav-group,
.app-shell.app-shell-collapsed .app-nav-group[open],
.app-shell.app-shell-collapsed .app-nav-group-link {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 100%;
}

.app-shell.app-shell-collapsed .app-nav-group-toggle,
.app-shell.app-shell-collapsed .app-nav-group-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0.45rem;
}

.app-shell.app-shell-collapsed .app-nav-group-prefix {
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
    gap: 0;
}

.app-shell.app-shell-collapsed .app-nav-group-label {
    display: none;
}

.app-shell.app-shell-collapsed .app-nav-group {
    min-height: 46px;
}

.app-shell.app-shell-collapsed .app-sidebar-nav {
    padding: 0 0.45rem 0.8rem;
}

.app-shell.app-shell-collapsed .app-nav-item + .app-nav-item {
    margin-top: 0.45rem;
}

.app-shell.app-shell-collapsed .app-nav-icon,
.app-shell.app-shell-collapsed .app-subnav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    margin-right: 0;
    color: #475569;
}

.app-shell.app-shell-collapsed .app-nav-icon i,
.app-shell.app-shell-collapsed .app-subnav-icon i {
    font-size: 18px;
}

.app-nav-icon-image {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.app-page-title-source {
    display: none !important;
}

.app-page .row {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.8rem;
}

.app-page .form-control,
.app-page .btn {
    font-size: 0.76rem;
}

.app-page .btn {
    min-height: 32px;
    height: 32px;
}

.app-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.app-nav-group-link.is-active .app-nav-icon,
.app-subnav-link.is-active .app-subnav-icon,
.app-subnav-link-static.is-active .app-subnav-icon {
    color: var(--app-primary);
}

.app-nav-group-link.is-active .app-nav-group-link-label,
.app-subnav-link.is-active span,
.app-subnav-link-static.is-active span,
.app-nav-group[open] > .app-nav-group-toggle .app-nav-group-label {
    color: var(--app-text);
}

@media (max-width: 991.98px) {
    .app-shell {
        width: 100%;
        overflow-x: hidden;
    }

    .app-sidebar {
        transform: translateX(-100%);
        width: 100vw;
        max-width: 100vw;
    }

    .app-main,
    .app-topbar {
        left: 0;
        width: 100%;
        margin-left: 0;
    }

    .app-main {
        padding: 0.85rem;
        padding-top: calc(var(--app-topbar-height) + 0.8rem);
        padding-bottom: calc(var(--app-footer-height) + 0.85rem);
    }

    .app-topbar {
        padding: 0.5rem 0.9rem;
    }

    .app-topbar-title {
        font-size: 0.95rem;
    }

    .app-topbar-subtitle {
        display: none;
    }

    .app-topbar-right {
        gap: 0.5rem;
    }

    .app-quick-toolbar {
        display: none;
    }

    .app-company-selector {
        min-width: 0;
        width: 160px;
    }

    .app-shell.app-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-shell.app-shell-collapsed .app-sidebar {
        width: 100vw;
        max-width: 100vw;
    }

    .app-shell.app-shell-collapsed .app-main,
    .app-shell.app-shell-collapsed .app-topbar {
        width: 100%;
        margin-left: 0;
        left: 0;
    }

    .app-shell.app-sidebar-open .app-shell-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 767.98px) {
    .auth-main {
        padding: 0.8rem;
        align-items: stretch;
    }

    .auth-dashboard {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .auth-showcase {
        padding: 1.2rem;
    }

    .auth-showcase-title {
        max-width: none;
    }

    .auth-showcase-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel-card {
        padding: 1.1rem;
    }

    .app-topbar {
        height: auto;
        min-height: var(--app-topbar-height);
        align-items: center;
        flex-direction: row;
    }

    .app-topbar-left {
        width: 100%;
        justify-content: flex-start;
    }

    .app-topbar-right {
        display: none;
    }

    .app-topbar-heading-page {
        align-items: flex-start;
        text-align: left;
    }

    .app-topbar-subtitle {
        display: block;
        max-width: 100%;
    }

    .app-company-selector-desktop,
    .app-user-panel-desktop {
        display: none;
    }

    .app-sidebar-brand {
        padding: 0.85rem 0.85rem 0.65rem;
    }

    .app-main {
        padding: 0.7rem;
        padding-top: calc(var(--app-topbar-height) + 0.7rem);
        padding-bottom: calc(var(--app-footer-height) + 0.7rem);
    }
}

@media (max-width: 419.98px) {
    .app-topbar {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}
