body { font-family: "Segoe UI", Roboto, Arial, sans-serif; background: #f7f9fc; color: #333; margin:0; padding:25px;}
.container { max-width: 950px; margin:auto; background:#fff; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,0.1); padding:25px 40px;}
h2, h3 { text-align:center; color:#003366;}
h2 { margin-bottom:10px;}
.styled-select-slate { text-align:center; margin:20px 0;}
select, input[type="date"], input[type="text"], input[type="number"] { border:1px solid #ccc; border-radius:8px; padding:6px 10px; font-size:14px; min-width:220px;}
.radio-group { text-align:center; margin:20px 0;}
.radio-group label { margin:0 15px; font-weight:500; color:#003366;}
input.radio { transform: scale(1.3); margin-right:5px; accent-color:#003366;}
.ferme { display:none; }
.ouvert { display:block; }
table { width:100%; border-collapse:collapse; margin-top:10px;}
th, td { border:1px solid #ddd; padding:8px; text-align:center;}
th { background:#003366; color:white;}
tr:nth-child(even) { background:#f2f6fa;}
tr:hover { background:#e9f1ff;}
.no-data { color:#777; text-align:center; font-style:italic; margin:10px 0;}
.bpcontrol img { width:32px; height:auto; cursor:pointer;}
.fade { animation: fadeIn 0.4s ease-in-out;}
@keyframes fadeIn { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }

/* Dialog */
.dialog { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
          background:#fff; border:1px solid #ccc; border-radius:10px; box-shadow:0 5px 15px rgba(0,0,0,0.3);
          z-index:1000; padding:20px; width:400px; max-width:90%; }
.dialog-header { font-weight:bold; margin-bottom:10px; color:#003366; }
.dialog-body { margin-bottom:15px; }
.dialog-footer { text-align:right; }
.btn { padding:6px 12px; border:none; border-radius:6px; cursor:pointer; font-size:14px;}
.btn-close { background:#ccc; color:#000; }
.btn-state { background:#003366; color:#fff; margin-left:5px; }
.dialog-backdrop { display:none; position:fixed; top:0; left:0; width:100%; height:100%;
                  background:rgba(0,0,0,0.4); z-index:999; }
.switch { cursor:pointer; font-size:18px; }

/* Bouton reset */
#resetButtonGMAOoffLine {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#resetButtonGMAOoffLine:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #00f2fe, #4facfe);
}

#resetButtonGMAOoffLine:active {
    transform: translateY(0);
}

#resetButtonGMAOoffLine::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

#resetButtonGMAOoffLine:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

#status {
    text-align:center;
    margin-top:10px;
    min-height:20px;
    font-size:14px;
}

.photo-preview {
    margin-top:10px;
    text-align:center;
}
.photo-preview img {
    max-width:100%;
    height:auto;
}
.photo-filename {
    margin-top:5px;
    font-size:12px;
    text-align:center;
    color:#555;
}

#installPwaBtn {
    margin-top:15px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background:#003366;
    color:#fff;
    cursor:pointer;
    /*display:none;*/
}