/* Core Cliente Meduso — custom styles */

.meduso-widget-card {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.meduso-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

.meduso-widget-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: 24px;
    flex-shrink: 0;
}

.meduso-clock svg {
    max-width: 120px;
    max-height: 120px;
}

.meduso-password-expired-banner {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
    padding: 1rem;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
}

/* ── Medaid box responsive (from collegamento.php inline CSS) ── */
.medaid-box { max-width: 100%; overflow: visible; }
.medaid-box .card-body { padding: 1.25rem; }
.medaid-box .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.medaid-box .table-responsive table { margin-bottom: 0; width: 100%; min-width: 0 !important; }
.medaid-box .table-responsive th,
.medaid-box .table-responsive td { white-space: normal; word-wrap: break-word; vertical-align: middle; }
.medaid-box .table-responsive::after { content: ""; display: block; height: 0; }
.medaid-box .form-label { font-size: .875rem; margin-bottom: .25rem; font-weight: 500; }
.medaid-box .form-control,
.medaid-box .form-select { font-size: .875rem; }
.medaid-box .badge { font-size: .75rem; padding: .35em .65em; }
.medaid-box .medaid-pager { flex-wrap: wrap; justify-content: center; }
.medaid-box .medaid-pager .btn { padding: .25rem .5rem; font-size: .8rem; }
.medaid-box .table-responsive { transform-origin: top left; }
.medaid-box .table-responsive table { table-layout: auto; }

@media (min-width: 1400px) {
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .75rem .5rem; font-size: .9rem; }
}
@media (max-width: 1399px) {
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .5rem .35rem; font-size: .85rem; }
}
@media (max-width: 1199px) {
    .medaid-box .card-body { padding: 1rem; }
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .4rem .3rem; font-size: .8rem; }
    .medaid-box h3 { font-size: 1.25rem; }
    .medaid-box .form-control,
    .medaid-box .form-select { font-size: .8rem; padding: .375rem .5rem; }
    .medaid-box .hide-laptop { display: none !important; }
}
@media (max-width: 991px) {
    .medaid-box .card-body { padding: .875rem; }
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .35rem .25rem; font-size: .75rem; }
    .medaid-box h3 { font-size: 1.1rem; }
    .medaid-box .btn { padding: .375rem .75rem; font-size: .8rem; }
    .medaid-box .table-responsive .hide-tablet { display: none; }
    .medaid-box .hide-tablet-lg { display: none !important; }
}
@media (max-width: 767px) {
    .medaid-box .card-body { padding: .75rem; }
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .3rem .2rem; font-size: .7rem; }
    .medaid-box h3 { font-size: 1rem; margin-bottom: .75rem !important; }
    .medaid-box .form-label { font-size: .75rem; }
    .medaid-box .form-control,
    .medaid-box .form-select { font-size: .75rem; padding: .3rem .4rem; }
    .medaid-box .btn { padding: .3rem .6rem; font-size: .75rem; }
    .medaid-box .medaid-pager .btn { padding: .2rem .4rem; font-size: .7rem; }
    .medaid-box .d-flex.gap-2 { flex-direction: column; gap: .5rem !important; }
    .medaid-box .d-flex.gap-2 > .btn { width: 100%; }
    .medaid-box .d-flex.gap-2 > .text-muted { text-align: center; margin-top: .5rem; }
    .medaid-box .hide-tablet { display: none !important; }
}
@media (max-width: 575px) {
    .medaid-box .card-body { padding: .5rem; }
    .medaid-box .table-responsive th,
    .medaid-box .table-responsive td { padding: .25rem .15rem; font-size: .65rem; }
    .medaid-box h3 { font-size: .9rem; }
    .medaid-box .hide-mobile { display: none !important; }
}
