﻿/* ==========================
   Font generale
========================== */
:focus:not(.focus--mouse),
.form-check [type=checkbox]:focus + label,
.form-check [type=radio]:focus + label,
.toggles label input[type=checkbox]:focus + .lever {
    outline: none !important;
    box-shadow: none !important;
}

body, input, select, textarea, button {
    font-family: "Titillium Web", sans-serif;
    font-size: 1rem;
    color: black;
}

.form-check-text {
    color: black;
    font-size: 1rem;
}

.form-check-label {
    color: black ;
    font-size: 1rem !important;
}

/* ==========================
   Header fisso in alto
========================== */
.it-header-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

.header-row {
    width: -webkit-fill-available;
}

/* ==========================
   Sidebar fissa a sinistra
========================== */

.it-sidebar-slim-right-zone {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 50px
}

@media (max-width: 1745px) {
    .simplia-sidebar-wrapper {
        left: -100%;
        transition: left 0.3s ease;
    }

        .simplia-sidebar-wrapper.active {
            left: 0;
        }

    .sidebar-toggle {
        display: block !important;
    }

    /* Nascondi toggle quando sidebar è aperta */
    .simplia-sidebar-wrapper.active ~ .sidebar-toggle,
    body:has(.simplia-sidebar-wrapper.active) .sidebar-toggle {
        display: none !important;
    }
}

.sidebar-toggle {
    position: absolute;
    top: 8px;
    left: 10px;
    background-color: #0066cc;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
    z-index: 2000;
}

.simplia-sidebar-wrapper {
    position: fixed;
    width: 200px;
    height: 100%
}

.sidebar-header {
    justify-content: start;
    display: flex;
}

.simplia-sidebar {
    width: 200px;
    height: 100%;
    background-color: hsl(210, 100%, 35%);
    color: #fff;
    padding: 1rem;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.simplia-sidebar-header h5 {
    color: #fff;
    font-weight: 600;
}

.simplia-sidebar-nav .sidebar-item {
    margin-bottom: 40px;
}

.simplia-sidebar-nav .sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

    .simplia-sidebar-nav .sidebar-link:hover,
    .simplia-sidebar-nav .sidebar-link:focus {
        background-color: rgba(255,255,255,0.15);
    }

.simplia-sidebar-nav .active .sidebar-link {
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.sidebar-toggle {
    position: fixed;
    top: 173px;
    left: 10px;
    z-index: 1010;
    background-color: #0066cc;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
}

    .sidebar-toggle .icon {
        width: 24px;
        height: 24px;
        fill: #fff;
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #6c757d;
    /* font-weight: 600; */
    /* font-size: 1rem; */
    text-transform: uppercase;
}


/* ==========================
   Breadcrumb
========================== */
.breadcrumb-nav {
    background-color: #e9ecef;
    padding: 8px 0;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 168px;
    margin-left: 240px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.85rem;
    color: #6c757d;
}

    .breadcrumb-item span {
        font-weight: 500;
        color: #495057;
        padding-left: 5px;
        padding-right: 5px
    }

.breadcrumb-link {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.2s ease;
}

    .breadcrumb-link:hover,
    .breadcrumb-link:focus,
    .breadcrumb-link:active {
        color: #004a99;
        text-decoration: underline;
    }

/* ==========================
   Main content
========================== */
main#main-content {
    padding-right: 75px;
    padding-top: 48px
}

.simplia-main {
    padding-left: 225px;
    padding-top: 25px
}


/*@media (max-width: 1745px) {
    .simplia-main {
        padding-left: 100px;
        padding-top: 25px
    }
}*/

/* ==========================
   Footer
========================== */
.it-footer {
    background-color: transparent;
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #6c757d !important;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #dce3f0;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #6c757d;
}

/* ==========================
   Accessibility
========================== */
.accessibility-statement {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-badge {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c75;
}

    .accessibility-badge .icon {
        width: 14px;
        height: 14px;
    }

/* ==========================
   Dropdown Header
========================== */
.it-header-slim-right-zone .dropdown-menu {
    background-color: #0066cc;
    color: #fff;
    min-width: 180px;
    border-radius: 5px;
    padding: 5px 0;
}

.it-header-slim-right-zone .dropdown-item {
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 20px;
    transition: background 0.2s ease;
}

    .it-header-slim-right-zone .dropdown-item:hover,
    .it-header-slim-right-zone .dropdown-item:focus {
        background-color: rgba(255,255,255,0.15);
        color: #fff;
    }

/* ==========================
   Misc
========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================
   Responsive Mobile
========================== */
@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: block;
    }

    .simplia-sidebar-wrapper {
        left: -100%;
        transition: left 0.3s ease;
        width: 80%;
        max-width: 280px;
    }

    .simplia-sidebar.active {
        left: 0;
    }

    .simplia-sidebar-wrapper:has(.simplia-sidebar.active) {
        left: 0;
    }

    main#main-content {
        margin-left: 0 !important;
    }

    .it-footer {
        margin-left: 0 !important;
    }

    .breadcrumb-nav {
        margin-left: 0 !important;
    }
}

/* ==========================
  HOME.INDEX - Dashboard
========================== */

.dashboard-main-title {
    font-size: 1.6rem;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: #495057;
}

.dashboard-date {
    font-size: 0.9rem;
    color: #495057;
}

    .dashboard-date .icon {
        width: 20px;
        height: 20px;
    }

/* ==========================
   KPI Cards
========================== */
.kpi-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    border-width: 4px;
    color: #fff;
}

.kpi-card-danger {
    border-left: solid;
    border-color: #DC3545;
    background-color: white;
}

.kpi-card-success {
    border-left: solid;
    border-color: #4CAF50;
    background-color: white;
}

.kpi-card-warning {
    border-left: solid;
    border-color: #FF9800;
    background-color: white;
}

.kpi-card-info {
    border-left: solid;
    border-color: #17a2b8;
    background-color: white;
}

.kpi-icon {
    margin-right: 15px;
    fill: #ffffff
}

    .kpi-icon .icon {
        width: 36px;
        height: 36px;
    }

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057
}

.kpi-label {
    font-size: 0.9rem;
    color: #6c757d
}

.kpi-trend {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

    .kpi-trend svg {
        margin-right: 4px;
    }

.trend-up {
    color: #FFFFFF;
    color: #6c757d
}

.trend-down {
    color: #FFFFFF;
    color: #6c757d
}

.trend-neutral {
    color: #FFFFFF;
    color: #6c757d
}

/* ==========================
   Charts
========================== */
.chart-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    background-color: white
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 1.2rem;
}

.chart-period-select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.85rem;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

/* ==========================
   Quick Actions
========================== */

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent;
}

.quick-action-item {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: background 0.2s ease;
    margin-bottom: 10px
}

    .quick-action-item:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
    }

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    color: #fff;
    fill: #FFFFFF
}

.quick-action-primary {
    fill: #0066cc;
}

.quick-action-success {
    fill: #4CAF50;
}

.quick-action-info {
    fill: #17a2b8;
}

.quick-action-title {
    font-weight: 600;
}

.quick-action-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ==========================
   Stats Grid
========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

    .stat-card:hover {
        transform: translateY(-2px);
        background-color: #e9ecef;
    }

.stat-icon {
    margin-bottom: 10px;
}

    .stat-icon .icon {
        width: 24px;
        height: 24px;
    }

.stat-content {
    text-align: left;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #495057;
    text-align: center;
    width: -webkit-fill-available;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ==========================
   Help Cards
========================== */
.help-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.help-icon {
    margin-bottom: 10px;
}

    .help-icon .icon {
        width: 36px;
        height: 36px;
        fill: #6c757d;
    }

.help-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.help-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}


.tipo-richiesta-card-footer {
    padding-left: 25px
}


.filter-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.table-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.btn-action {
    padding: 5px 10px;
    font-size: 0.875rem;
    margin: 0 2px;
}

.badge-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/*.table-responsive {
    overflow-x: auto;
}*/

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}
@media (min-width: 992px) {
    .table {
        font-size: 16px !important;
    }
}

.btn-arancione {
    background-color: #FF9800;
    color: #fff;
    border-color: #FF9800;
}

    .btn-arancione:hover,
    .btn-arancione:focus {
        background-color: #e68900;
        border-color: #e68900;
        color: #fff;
    }

