main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* ===================================================
   DocOffice – shared UI components
   Reusable across patient detail, appointments, etc.
   =================================================== */

/* --- Avatar circle with initials --- */
.patient-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

/* --- Sidebar cards --- */
.patient-sidebar .card {
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  border-radius: .75rem;
}

/* --- Section title (blue uppercase) --- */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #2563eb;
  margin-bottom: .75rem;
}

/* --- Contact list items --- */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .45rem 0;
}

.contact-item i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 2px;
}

.contact-label {
  font-size: .75rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: .03em;
}

/* --- Appointment cards --- */
.appointment-card{
  position: relative;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  padding: 1rem;
  height: 100%;
  transition: box-shadow .15s;
  background: #fff;
  z-index: 0;          /* clave */
}

.appointment-card > *{
  position: relative;
  z-index: 1;          /* el contenido arriba */
}

.appointment-card.stacked::before,
.appointment-card.stacked::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:.75rem;
  background:#fff;
  border:1px solid #dee2e6;
  z-index: 0;          /* NO negativo */
}

.appointment-card.stacked::before{
  transform: translate(5px, 5px);
} 

.appointment-card.stacked::after{
  transform: translate(10px, 10px);
}

/* --- Date badge (month + day) --- */
.appointment-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e8f0fe;
  color: #2563eb;
  border-radius: .5rem;
  width: 55px;
  min-height: 55px;
  padding: .25rem;
}

.appointment-date-badge .month {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.appointment-date-badge .day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* --- Tables with uppercase headers --- */
.past-table th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}

/* --- Alert / tag pills --- */
.alert-tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: .35rem;
  font-size: .8rem;
  font-weight: 500;
}

.alert-tag-danger {
  background-color: #fce4ec;
  color: #c62828;
}

.alert-tag-warning {
  background-color: #fff3e0;
  color: #e65100;
}

/* --- Main content cards --- */
.main-content .card {
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  border-radius: .75rem;
}

/* --- Stat label / value pairs --- */
.stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  color: #6c757d;
}

.stat-value {
  font-weight: 600;
}

/* ===================================================
   Appointment Detail – specific styles
   =================================================== */

/* --- Appointment icon badge (header) --- */
.appt-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* --- Sidebar cards --- */
.appt-sidebar .card {
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  border-radius: .75rem;
}

/* --- Detail items (label + value pairs) --- */
.detail-item {
  padding: .35rem 0;
}

.detail-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  margin-bottom: .15rem;
}

.detail-value {
  font-weight: 500;
  font-size: .92rem;
}

.detail-value i {
  font-size: .95rem;
}

/* --- Note items --- */
.note-item {
  background-color: #f8f9fa;
  border-left: 3px solid #2563eb;
  border-radius: 0 .5rem .5rem 0;
  padding: .65rem .85rem;
}

/* --- Series navigation item --- */
.series-nav-item {
  border-left: 2px solid #dee2e6;
  padding-left: .75rem;
}

/* --- Progress bar accent --- */
.appt-sidebar .progress-bar {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===================================================
   Feedback Detail
   =================================================== */

.feedback-rating-badge {
  width: 64px;
  height: 64px;
  flex-direction: column;
  gap: 0;
}

.feedback-rating-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.feedback-rating-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.feedback-rating-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feedback-rating-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feedback-stars-lg .bi {
  font-size: 1.15rem;
}

.feedback-avg-score {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.feedback-topic-bar {
  height: .55rem;
  border-radius: 1rem;
  background-color: #eef2f7;
}

.feedback-topic-stars .bi {
  font-size: .9rem;
}

.feedback-comment {
  margin: 0;
  padding: .85rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid #2563eb;
  border-radius: 0 .5rem .5rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #334155;
}