.app {
    display: flex;

    min-height: 100vh;
}

body.app-sidebar-open {
    overflow: hidden;
}

.page{

    padding-top:12px;

}

.sidebar {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    flex: 0 0 190px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;

    background: #1c4072;

    color: #fff;

    display: flex;

    flex-direction: column;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1090;
}

body.app-sidebar-open .app-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.sidebar-logo-image {
    display: block;
    width: min(100%, 152px);
    height: auto;
    object-fit: contain;
}

.sidebar-menu {
    display: flex;

    flex-direction: column;

    padding: 6px 5px 10px;
}

.sidebar-menu a {
    color: #fff;

    text-decoration: none;

    letter-spacing: 1px;

    padding: 5px 8px;

    border-radius: 10px;

    margin-bottom: 1px;

    font-weight: 400;

    transition: background .15s ease, color .15s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-menu a.active {
    background: var(--color-primary);

    color: #fff;

    font-weight: 600;
}

.sidebar-divider{

    border: 0;

    border-top: 1px solid rgba(255,255,255,.14);

    margin: 9px 7px 7px;

}

.sidebar-section{

    margin: 0 10px 4px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: rgba(255,255,255,.55);

}

.content {
    flex: 1;
    min-width: 0;
    margin-left: 196px;
    padding: 4px;
}

.topbar {
    height: 50px;

    display: flex;

    justify-content: space-between;

    align-items: center;
    
    height:52px;

    padding: 0 12px;

    background: #fff;

    border-bottom: 1px solid var(--color-border);
}

.topbar-left,
.topbar-center,
.topbar-right{

    flex:1;

}

.topbar-left {
    display: flex;

    align-items: center;

    gap: 12px;
}

.topbar-center{

    text-align:center;

}

.topbar-left h1 {
    font-size: 18px;

    font-weight: 600;
}

.topbar-right {
    display: flex;

    justify-content:flex-end;

    align-items: center;

    gap: 16px;
}

.topbar-right a {
    color: var(--color-primary);

    text-decoration: none;

    font-weight: 600;
}

.topbar-right a:hover {
    text-decoration: underline;
}

.topbar-title {
    font-size: 18px;

    font-weight: 600;
}

.topbar-user {
    color: var(--color-text-light);
}

#topbar-date{

    font-size:14px;

    color:#5f6b7a;

    font-weight:500;

}

#topbar-clock{

    font-size:18px;

    font-weight:600;

    letter-spacing:1px;

    color:#1d4ed8;

}

.topbar-menu-toggle {
    display: none;

    width: 40px;

    height: 40px;

    padding: 0;

    border: 1px solid #d7dce4;

    border-radius: 10px;

    background: #ffffff;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 4px;

    cursor: pointer;

    flex-shrink: 0;
}

.topbar-menu-toggle span {
    display: block;

    width: 18px;

    height: 2px;

    border-radius: 999px;

    background: #1f2937;
}

.page-content {
    padding: 8px;

    min-width: 0;
}

.user-menu {
    position: relative;

    cursor: pointer;
}

.user-name {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border-radius: 6px;

    font-weight: 600;

    user-select: none;
}

.user-name:hover {
    background: #f3f4f6;
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d7dce4;
    background: #fff;
    flex-shrink: 0;
}

.topbar-user-label {
    line-height: 1.2;
    color: var(--color-text);
}

.user-dropdown {
    display: none;

    position: absolute;

    right: 0;

    top: 100%;

    min-width: 180px;

    background: #fff;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-sm);

    box-shadow: var(--shadow);

    padding: 6px 0;

    z-index: 100;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;

    padding: 10px 16px;

    color: var(--color-text);

    text-decoration: none;
}

.user-dropdown a:hover {
    background: #f5f7fa;
}

.link-button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    padding: 10px 16px;
    text-align: left;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.link-button:hover {
    background: #f5f7fa;
}

.user-dropdown hr {
    border: none;

    border-top: 1px solid var(--color-border);

    margin: 6px 0;
}

.employee-avatar {

    width: 48px;

    height: 48px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #d9dee7;

    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.table td {

    vertical-align: middle;
}

.employee-row,
.clickable-row {
    cursor: pointer;
}

.employee-row:focus-visible,
.clickable-row:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
