/* ============================= */
/*           RESET & BASE        */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
    padding: 20px;
}

/* ============================= */
/*            HEADER             */
/* ============================= */
header img {
    display: block;
    margin: 0 auto 20px auto;
}

.dash_logo{
    width: 250px;
}

.util_logo{
    width: 200px;
}

/* ============================= */
/*           FORMULAIRE          */
/* ============================= */
form.smac-form {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

/* Ligne horizontale pour 2 champs */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Colonne individuelle dans une ligne */
.form-col {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
}

/* Labels au-dessus des champs */
form.smac-form label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 27px;
    text-align: center;
}

/* Champs texte / number / select */
form.smac-form input,
form.smac-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s;
}

form.smac-form input:focus,
form.smac-form select:focus {
    border-color: #ff7f00; /* orange */
    outline: none;
}

/* ============================= */
/*             BOUTONS           */
/* ============================= */
.smac-btn, button {
    padding: 10px 15px;
    margin: 8px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #ff9f4a, #ff7f00);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.util_btn{
    padding: 15px 57px;
    font-size: 30px;
}


.smac-btn:hover, button:hover {
    background: linear-gradient(145deg, #ff7f00, #e06600);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.smac-btn.red, button.red {
    background: linear-gradient(145deg, #ff5f5f, #dc3545);
}

.smac-btn.red:hover, button.red:hover {
    background: linear-gradient(145deg, #dc3545, #a71d2a);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.smac-btn:active, button:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Conteneur centré pour les boutons */
.smac-btn-container {
    text-align: center;
    margin-top: 20px;
}

/* ============================= */
/*             TABLEAUX          */
/* ============================= */
table, #mainTable, #miniHistoryTable, .smac-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    font-size: 14px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

table th, #mainTable th, #miniHistoryTable th, .smac-table th {
    background-color: #ff7f00;
    color: #fff;
    font-weight: 600;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #e06600;
}

table td, #mainTable td, #miniHistoryTable td, .smac-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

table tbody tr:nth-child(even),
#mainTable tbody tr:nth-child(even),
#miniHistoryTable tbody tr:nth-child(even),
.smac-table tbody tr:nth-child(even) {
    background-color: #fff3e6;
}

table tbody tr:hover,
#mainTable tbody tr:hover,
#miniHistoryTable tbody tr:hover,
.smac-table tbody tr:hover {
    background-color: #ffd9b3;
}

/* Bordures globales */
table, th, td,
#mainTable, #mainTable th, #mainTable td,
#miniHistoryTable, #miniHistoryTable th, #miniHistoryTable td,
.smac-table, .smac-table th, .smac-table td {
    border: 1px solid #ccc;
}

/* ============================= */
/*              MODALS           */
/* ============================= */
.smac-modal {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in-out;
}

.smac-modal > div {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.smac-modal p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.smac-modal button {
    padding: 10px 20px;
    margin: 0 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.smac-modal .btn-yes {
    background-color: #28a745;
    color: #fff;
}

.smac-modal .btn-yes:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

.smac-modal .btn-no {
    background-color: #dc3545;
    color: #fff;
}

.smac-modal .btn-no:hover {
    background-color: #a71d2a;
    transform: translateY(-2px);
}

.smac-modal .btn-ok {
    background-color: #ff7f00;
    color: #fff;
}

.smac-modal .btn-ok:hover {
    background-color: #e06600;
    transform: translateY(-2px);
}

/* ============================= */
/*           ANIMATIONS          */
/* ============================= */
@keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}

@keyframes fadeOut {
    0% {opacity:1;}
    100% {opacity:0;}
}
