﻿html, body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
    font-size: 11pt;
}

body,
input,
button,
select,
textarea {
    font-family: inherit !important;
}

.d-none {
    display: none !important;
}

.td-center {
    text-align: center !important;
    vertical-align: middle !important;
}

.search-container {
    background-color: #f2f2f2;
    padding: 10pt;
}

.left-menu-footer {
    position: fixed;
    bottom: 0px;
}

.mw-40
{
    max-width: 40px !important;
}

.m-b-20
{
    margin-bottom: 20px;
}

.w100 {
    width:100%;
}

/* ########################## MAIN CONTENT WINDOW */
.content-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #9ecad8;
    overflow: hidden;
}

/* Caption / title bar */
.content-window-caption {
    border-bottom: 2px solid #7b8ca7;
    padding: 0.6em 1em;
    display: flex;
    align-items: center;
}

/* Title text */
.content-window-title {
    font-weight: 600;
    font-size: 11pt;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body (RenderBody goes here) */
.content-window-body {
    flex: 1 1 auto;
    padding-top: 1em;
    overflow: auto;
    background: #ffffff;
}

/* ########################## APP LAYOUT */
.app-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

    /* Sidebar stays fixed width */
    .app-layout > .sidebar {
        flex: 0 0 auto;
    }

    /* Main content fills the rest */
    .app-layout > .main-content {
        flex: 1 1 auto;
        padding: 1em;
        background: #ffffff;
        overflow: auto;
    }

/* ########################## ADD MAIN FONTS */
@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/inter-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter/inter-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Стил на модалния диалог */
.modalqr {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modalqr-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.modalqr-close {
    position: absolute;
    padding-right:15px;
    padding-top:5px;
    top: 0.1rem;
    right: 0.3rem;
    font-size: 2rem;
    cursor: pointer;
}

.button-view-qr-code, .download-qr-code {
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-view-qr-code:hover {
    background-color: #1d4ed8;
}

.button-view-qr-code:active {
        background-color: #1e40af;
}

.download-qr-code {
    margin-top: 1.5rem;
}

#qrCodeContainer img 
{    
    margin-top:30px;
    max-width:256px;
}

/* ########################## MOBILE TOP NAVIGATION */
.mobile-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: space-around;
    background: rgb(40 94 121);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    transition: opacity 200ms ease, transform 200ms ease;
    opacity: 1;
    transform: translateY(0);
}

.mobile-topnav_item {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    opacity: 0.95;
}

.mobile-topnav_item:active {
    transform: scale(0.97);
}

.mobile-topnav_item:hover {
    background: rgba(255,255,255,0.08);
}

/* Class applied when we want it hidden/faded */
.mobile-topnav.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-topnav {
        display: flex;
    }

    /* Ensure page content isn't covered by the fixed bar */
    body {
        padding-top: 56px;
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 0;
    }
}

.mobile-topnav_item.is-active {
    background: rgba(255,255,255,0.14);
    opacity: 1;
}

.mobile-topnav img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}