:root {
    --gdf-navy: #152a43;
    --gdf-blue: #205b85;
    --gdf-sky: #4e91b8;
    --gdf-gold: #d7a739;
    --gdf-bg: #f3f6f9;
    --gdf-text: #243448;
}

/*
 * Il tema blocca lo scroll del documento e lo delega a .content-inner,
 * contenitore che il layout GDF non usa. Ripristina lo scroll nativo,
 * necessario soprattutto per lo scorrimento touch su smartphone.
 */
html {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background: var(--gdf-bg);
    color: var(--gdf-text);
    font-family: Inter, Arial, sans-serif;
}
.gdf-navbar {
    background: linear-gradient(105deg, var(--gdf-navy), var(--gdf-blue));
    min-height: 68px;
    box-shadow: 0 4px 18px rgba(18, 42, 67, .16);
}
.gdf-brand-logo {
    width: 185px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
    background: #fff;
    border-radius: .35rem;
}
.gdf-shell { min-height: calc(100vh - 68px); }
.gdf-sidebar {
    width: 254px;
    background: #fff;
    border-right: 1px solid #e4eaf0;
    flex: 0 0 254px;
}
.gdf-sidebar .nav-link {
    color: #526273;
    border-radius: .5rem;
    margin: .15rem .85rem;
    padding: .72rem .9rem;
    font-weight: 500;
}
.gdf-sidebar .nav-link:hover, .gdf-sidebar .nav-link.active {
    background: #eaf3f8;
    color: var(--gdf-blue);
}
.gdf-sidebar .nav-link i { font-size: 1.25rem; margin-right: .7rem; }
.gdf-content { min-width: 0; flex: 1; }
.gdf-page {
    max-width: 1540px;
    margin: 0 auto;
    padding: 2rem;
}
.gdf-card {
    border: 0;
    border-radius: .8rem;
    box-shadow: 0 3px 14px rgba(31, 57, 79, .07);
}
.gdf-stat { border-left: 4px solid var(--gdf-sky); }
.gdf-stat .gdf-stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f4f9;
    color: var(--gdf-blue);
    font-size: 1.45rem;
}
.gdf-punch-card {
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.15), transparent 30%),
        linear-gradient(125deg, var(--gdf-navy), var(--gdf-blue));
    color: #fff;
    overflow: hidden;
}
.gdf-punch-card .btn-light { color: var(--gdf-navy); font-weight: 600; }
.gdf-location-box {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .65rem;
}
.gdf-login {
    min-height: 100vh;
    background: linear-gradient(115deg, rgba(14, 39, 62, .96), rgba(32, 91, 133, .88)),
        radial-gradient(circle at top right, #5a9dc2, #142b44);
}
.gdf-login-card {
    width: 100%;
    max-width: 440px;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 55px rgba(2, 21, 39, .3);
}
.gdf-login-logo { width: 100%; max-width: 330px; max-height: 114px; object-fit: contain; }
.table > :not(caption) > * > * { vertical-align: middle; }
.gdf-table th {
    color: #607080;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.gdf-map-link { white-space: nowrap; }
.gdf-map-link i { color: #d85151; }
.user-password { white-space: nowrap; font-size: .875rem; }
.gdf-compact-table th:first-child, .gdf-compact-table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}
.toast-container { z-index: 1090; }
.required::after { content: " *"; color: #dc3545; }

@media (max-width: 991.98px) {
    .gdf-sidebar { display: none; }
    .gdf-page { padding: 1rem; }
    .gdf-brand-logo { width: 138px; }
}
@media print {
    .gdf-navbar, .gdf-sidebar, .no-print, .toast-container { display: none !important; }
    .gdf-page { max-width: none; padding: 0; }
    .gdf-card { box-shadow: none; }
}
