body {
    background: #f5f7fb;
    color: #273142;
}

.login-body {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
}

.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #ffffff;
    font-size: 40px;
    font-weight: 600;
}

.sidebar {
    min-height: calc(100vh - 56px);
    background: #ffffff;
    border-right: 1px solid #e8edf3;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 10px 12px;
}

.sidebar .nav-link:hover {
    background: #f1f5ff;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background: #e7f0ff;
    color: #0d6efd;
    font-weight: 600;
}

.dashboard-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card-label {
    color: #7a8493;
    font-size: 14px;
}

.card-number {
    font-size: 32px;
    font-weight: 700;
    margin-top: 8px;
}

.card-number.money {
    font-size: 26px;
}

.table thead th {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    padding: 14px 16px;
}

.table tbody td {
    padding: 14px 16px;
}


.patient-dl dt {
    color: #6c757d;
    font-weight: 600;
    padding-top: 6px;
    padding-bottom: 6px;
}

.patient-dl dd {
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 0;
}

.preserve-lines {
    white-space: normal;
    line-height: 1.6;
}


.agenda-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(170px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.agenda-day {
    min-width: 170px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.agenda-day-today {
    border: 2px solid #0d6efd;
}

.agenda-day-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf3;
    background: #f8fafc;
}

.agenda-day-body {
    padding: 10px;
    min-height: 260px;
}

.agenda-item {
    display: block;
    color: #273142;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 9px;
    background: #ffffff;
}

.agenda-item:hover {
    background: #f8fbff;
    border-color: #cfe0ff;
    color: #273142;
}

.agenda-patient {
    font-weight: 600;
}

.agenda-empty {
    color: #98a2b3;
    font-size: 13px;
    text-align: center;
    padding: 35px 10px;
}

.agenda-status-select {
    min-width: 160px;
}

@media (max-width: 991.98px) {
    .agenda-week {
        grid-template-columns: repeat(7, 220px);
    }
}


.agenda-reserva-item {
    border-style: dashed;
    background: #fffdf3;
}

.agenda-reserva-item:hover {
    background: #fff9db;
}


.agenda-movable {
    cursor: grab;
}

.agenda-movable:active {
    cursor: grabbing;
}

.agenda-dragging {
    opacity: 0.45;
}

.agenda-drop-over {
    outline: 2px dashed #0d6efd;
    outline-offset: -4px;
    background: #f5f9ff;
}

.agenda-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
}

.js-quick-time {
    color: #0d6efd;
    font-weight: 600;
    cursor: pointer;
}

.js-quick-time:hover {
    text-decoration: underline;
}

.agenda-drag-hint {
    color: #98a2b3;
}


/* Agenda compacta: status e financeiro ocupam o minimo de altura */
.agenda-item-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.agenda-time {
    line-height: 1.15;
}

.agenda-top-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex-wrap: wrap;
}

.agenda-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.agenda-finance-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.agenda-finance-chip.success {
    background: #e8f5ec;
    color: #237a46;
    border-color: #cfe7d7;
}

.agenda-finance-chip.warning {
    background: #fff5d6;
    color: #806000;
    border-color: #eedb98;
}

.agenda-finance-chip.secondary {
    background: #f1f3f5;
    color: #6c757d;
    border-color: #dee2e6;
}

.agenda-finance-chip:hover {
    filter: brightness(0.97);
    text-decoration: none;
}

.agenda-item .agenda-card-actions {
    margin-top: 5px !important;
}

.agenda-item .agenda-patient {
    margin-top: 4px !important;
}


/* Agenda semanal: visual mais limpo, sem caixas entre atendimentos */
.agenda-day-body .agenda-item:not(.agenda-reserva-item) {
    border: 0;
    border-bottom: 1px solid #e3e8ef;
    border-radius: 0;
    margin-bottom: 0;
    padding: 10px 0;
    background: transparent;
    box-shadow: none;
}

.agenda-day-body .agenda-item:not(.agenda-reserva-item):last-child {
    border-bottom: 0;
}

.agenda-day-body .agenda-item:not(.agenda-reserva-item):hover {
    background: transparent;
    border-color: #e3e8ef;
}

.agenda-top-badges {
    gap: 4px;
}

.agenda-finance-chip {
    min-width: 16px;
    min-height: 16px;
    padding: 1px 4px;
    border-radius: 4px;
    border: 0;
    font-size: 9px;
    line-height: 1;
}

.agenda-status-chip {
    min-height: 16px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
}

.agenda-card-actions {
    justify-content: flex-start;
}

.agenda-drag-hint {
    display: none !important;
}
