/**
 * RevisioneOK Panel - Stili identici a rinnovo_booking backend
 */
.form-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}
.form-login h2 { margin-bottom: 20px; color: #333; }
.form-login form {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.form-login div { margin-bottom: 15px; }
.form-login label { display: block; margin-bottom: 5px; color: #666; }
.form-login input[type="email"],
.form-login input[type="password"] {
    width: 280px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.form-login button[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.form-login button[type="submit"]:hover { background-color: #45a049; }
.errore-login { color: red; font-weight: bold; margin-bottom: 10px; }

.sedi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-decoration: none;
}
.sede-card {
    background-color: lightgray;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    padding: 15px;
    width: 300px;
    height: 70px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.sede-card h4 { margin: 0; color: #343434; }
.sede-card:hover {
    background-color: white;
    color: grey;
    text-decoration: none;
}

.content-border {
    width: 95%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 20px;
    margin-right: 20px;
}
.content-border-search {
    width: 95%;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    overflow-x: auto;
}
.container-table {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
}
.content { width: 100%; }

.form-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Orari (allineati al FE: #ro-medico-days) */
#ro-medico-days {
    color: #000;
}

.content-border input[type="text"],
.content-border input[type="email"],
.content-border input[type="tel"],
.content-border input[type="date"],
.content-border input[type="time"],
.content-border input[type="number"],
.content-border input[type="password"],
.content-border select,
.content-border textarea,
.content-border-search input[type="text"],
.content-border-search input[type="email"],
.content-border-search input[type="tel"],
.content-border-search input[type="date"],
.content-border-search input[type="time"],
.content-border-search input[type="number"],
.content-border-search input[type="password"],
.content-border-search select,
.content-border-search textarea {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background-color: #fff;
    color: #343434;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.content-border select,
.content-border-search select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343434' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 34px;
}

.content-border input:focus,
.content-border select:focus,
.content-border textarea:focus,
.content-border-search input:focus,
.content-border-search select:focus,
.content-border-search textarea:focus {
    outline: none;
    border-color: cornflowerblue;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, .18);
}

.content-border label,
.content-border-search label {
    display: inline-block;
    margin-bottom: 5px;
    color: #343434;
    font-weight: 600;
}

.content-border small,
.content-border-search small {
    line-height: 1.35;
}

.form-ricerca input[type="text"],
.form-ricerca input[type="number"],
.form-ricerca input[type="date"],
.form-ricerca select {
    width: 150px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background-color: cornflowerblue;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid cornflowerblue;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    text-decoration: none;
    margin: 5px;
    min-width: 150px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
}
.action-button:hover {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 10px 18px;
}

.content-border .action-button,
.content-border-search .action-button {
    min-width: 170px;
}
.action-button-label {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 10px 14px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    width: 100px;
    text-align: center;
}

.table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    vertical-align: top;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
}
.table th, .table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
}
.table td { color: gray; }
.table th {
    background-color: grey;
    color: white;
    font-weight: bold;
}
.table tr:nth-child(even) { background-color: #f9f9f9; }
.table tr:hover { background-color: #f1f1f1; color: black; }
.table a { color: gray; margin: 0; padding: 0; }

.rb-h3 {
    font-size: 24px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: #343434 !important;
}
.badge { padding: 2px; width: 80px; text-align: center; display: block; }
.badge-success { color: #0693e3; background-color: lightblue; }
.badge-denied { color: white; background-color: lightcoral; }
.badge-sold { color: green; background-color: lightgreen; }
.badge-payment { color: #f25757; background-color: #ffd670; }

#calendar_be-weekdays,
#calendar_be {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1px;
}
#calendar_be-weekdays div,
#calendar_be div {
    text-align: center;
    height: 30px;
    font-weight: bold;
    margin: 10px;
}
#calendar_be .available {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}
#calendar_be .selected {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}
#calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
#calendar-controls a { color: black; cursor: pointer; width: 30px; }
#calendar-controls a:hover { color: grey; }
#calendar-controls span { margin: 0 10px; font-weight: bold; color: black; }

.rb-orari-title {
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.4;
}

.rb-capitalize { text-transform: capitalize; }
.rb-nowrap { white-space: nowrap; }

.ro-datetime-cell {
    line-height: 1.4;
    vertical-align: top;
}

.form-page { display: flex; flex-direction: column; max-width: 500px; }
.form-page div { margin-bottom: 15px; }
.form-page label { display: block; margin-bottom: 5px; color: #666; }
.form-page input, .form-page select, .form-page textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Menu dropdown stile Laravel (nome utente + tendina) */
.ro-dropdown-container {
    position: relative;
    display: inline-block;
}

.ro-dropdown-button {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}
.ro-dropdown-button:hover {
    background: #e6e6e6;
    border-color: #ccc;
}

.ro-dropdown-arrow {
    margin-left: 6px;
    font-size: 0.8em;
    opacity: 0.8;
}

.ro-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 1000;
    min-width: 160px;
    padding: 6px 0;
    display: none;
}

.ro-dropdown-container:hover .ro-dropdown {
    display: block;
}

.ro-dropdown-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ro-dropdown-nav li {
    padding: 0;
}

.ro-dropdown-nav li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.ro-dropdown-nav li a:hover {
    background: #f0f0f0;
    color: #000;
}

.ro-dropdown-divider {
    border-top: 1px solid #ddd;
    margin: 6px 0;
    list-style: none;
}

/* Pulsanti icona nella tabella prenotazioni panel */
.ro-table-actions {
    white-space: nowrap;
}
.ro-table-actions .ro-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 5px;
    min-width: 26px;
    color: cornflowerblue;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.ro-table-actions .ro-btn-icon:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}
.ro-table-actions .ro-btn-icon + .ro-btn-icon {
    margin-left: 2px;
}
.ro-table-actions .ro-btn-icon svg {
    display: block;
}
