@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@font-face {
    font-family: Aleo;
    src: url('../fonts/aleo-regular.ttf');
}

@font-face {
    font-family: Immenhausen;
    src: url('../fonts/immenhausen.ttf');
}

html {
    background-color: #FAFAFB !important;
    font-family: Aleo;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Immenhausen;
}

.content {
    padding: 50px 0px;
}

.main {
    margin: 0 auto;
    box-shadow: 20px 20px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.header {
    height: 80px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header .anonymous-actions {
    position: relative;
    right: calc(-100% + 300px);
    width: 450px;
    overflow: hidden;
    border-radius: 50px 0 0 50px;
    text-align: right;
    padding: 10px;
    top: -20px;
}

.header .user-info {
    position: relative;
    right: calc(-100% + 250px);
    width: 240px;
    overflow: hidden;
    border-radius: 50px 0 0 50px;
    text-align: right;
    padding: 10px;
    top: -20px;
}

.header .left-side {
    height: 75px;
    background: #ffffff;
    align-content: center;
    padding: 0 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    margin-top: -5px;
}

.flexbox {
    display: flex;
    background-color: #FAFAFB;
    height: 100%;
    padding: 0;
    gap: 1px;
    margin: 0;
}

/* Layout */
.app-layout {
    display: flex;
    height: 95vh;
    margin: 20px;
    background: #f0f2f5;
    font-family: sans-serif;
}

.sidebar {
    flex-basis:275px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff !important;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.logo img {
    width: 100% !important;
}

.footer {
    background: #666666;
    border-top: 1px solid #ddd;
    color: #ffffff;
    z-index: 100;
    line-height: 10px;
    padding: 10px;
    font-size: 11pt;
    font-weight: bold;
}

.footer table {
    width: 100%;
}

.footer table td:first-child {
    width: 30%;
}

th {
    text-align: left;
    padding-right: 1em;
    vertical-align: top;
}

th:after {
    content: ":";
}

.empty:after {
    content: "";
}

#show_username {
    position: relative;
    top: -30px;
    width: calc(100% - 20px);
    display: block;
    font-weight: bold;
    text-align: right;
    overflow: auto;
}

.widget-content-item {
    font-size: 10pt;
    margin-bottom: 10px;
}

.widget-content-item td,
.widget-content-item th {
    font-size: 10pt;
    padding: 4px 0;
}

.widget-content-item label {
    display: block;
    margin-top: 5px;
}

.widget-content-item a {
    font-size: 10pt;
    font-weight: bold;
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE – TABLET (640px – 1023px)
═══════════════════════════════════════════ */
@media (max-width: 1023px) {
    .app-layout {
        margin: 0 !important;
        height: 100vh;
        border-radius: 0;
    }

    .main {
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .header {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        height: 60px;
        padding: 0;
        width: 100%;
    }

    .header .anonymous-actions,
    .header .user-info {
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        padding: 0 10px !important;
        text-align: right;
    }

    .header .left-side {
        flex: 1;
        height: auto;
        padding: 0 15px;
        margin-top: 0 !important;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: auto;
    }

    .header .left-side h1 {
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #show_username {
        position: static !important;
        top: auto !important;
        font-size: 0.78rem;
        text-align: left;
        width: auto !important;
    }

    .content {
        padding: 20px 15px !important;
    }

    .footer table {
        font-size: 9pt;
    }

    .footer table td:first-child {
        width: auto;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE – SMARTPHONE (< 640px)
═══════════════════════════════════════════ */
@media (max-width: 639px) {
    .header {
        height: 56px;
    }

    .header .left-side h1 {
        font-size: 0.95rem;
    }

    #show_username {
        display: none !important;
    }

    .header .anonymous-actions a,
    .header .user-info a {
        padding: 8px 8px !important;
        font-size: 0.8rem;
    }

    .content {
        padding: 12px 8px !important;
    }

    .footer table,
    .footer table tbody,
    .footer table tr,
    .footer table td {
        display: block;
        width: 100% !important;
        text-align: center;
        line-height: 1.8em;
    }

    .footer {
        font-size: 9pt;
        padding: 6px;
    }
}
