.vote-details-table thead {
  background-color: var(--divider);
}
.vote-details-table thead th {
  font-weight: 600;
}
/* Global Styles */
:root {
  /* Material Design Colors */
  --primary: #6200ee;
  --primary-dark: #3700b3;
  --primary-light: #bb86fc;
  --secondary: #03dac6;
  --secondary-dark: #018786;
  --background: #f5f5f5;
  --surface: #ffffff;
  --error: #b00020;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-disabled: #9e9e9e;
  --divider: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.btn i {
  margin-left: 8px;
}

.btn i:first-child {
  margin-left: 0;
  margin-right: 8px;
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
/* Delete-cooperativa button styling */
.btn-icon.delete-cooperativa i {
  color: var(--error);
}
.btn-icon.delete-cooperativa:hover {
  background-color: rgba(176, 0, 32, 0.1);
}
/* Delete notification button styling */
.btn-icon.notification-delete-btn i {
  color: var(--error);
}
.btn-icon.notification-delete-btn:hover {
  background-color: rgba(176, 0, 32, 0.1);
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-icon i {
  color: var(--text-secondary);
}

/* Form Elements */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  position: static;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

/* For form groups that need the icon-based left padding */
.form-group.with-icon label {
  display: inline-block;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: normal;
}

.form-group.with-icon input {
  padding: 12px 12px 12px 40px;
}

/* Vote Details Modal Enhancements */
.vote-details-summary {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.vote-details-summary .si {
  color: #4caf50;
  font-weight: bold;
}
.vote-details-summary .no {
  color: #f44336;
  font-weight: bold;
}
.vote-details-summary .abst {
  color: #9e9e9e;
  font-weight: bold;
}
/* Container scroll if many entries */
.table-container {
  max-height: 300px;
  overflow-y: auto;
}
.vote-details-table {
  width: 100%;
  border-collapse: collapse;
}
/* Table header styling */
.vote-details-table thead {
  background-color: var(--divider);
}
.vote-details-table thead th {
  font-weight: 600;
}
.vote-details-table th,
.vote-details-table td {
  padding: 0.75rem;
  border: 1px solid var(--divider);
  text-align: left;
}
.vote-details-table td:nth-child(2) {
  font-weight: 500;
}
.vote-details-table tr.si td:nth-child(2) {
  color: #4caf50;
}
.vote-details-table tr.no td:nth-child(2) {
  color: #f44336;
}
.vote-details-table tr.abst td:nth-child(2) {
  color: #9e9e9e;
}

/* Login Page */
.login-container {
  width: 100%;
  max-width: 450px;
  padding: 0 20px;
  z-index: 1;
}

/* Attendance Page Styles */
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-punch { width: 100%; padding: 1rem; font-size: 1.2rem; border: none; border-radius: .25rem; cursor: pointer; }
.btn-punch.in { background: #28a745; color: #fff; }
.btn-punch.out { background: #dc3545; color: #fff; }
.history-table { width: 100%; margin-top: 1rem; font-size: .9rem; border-collapse: collapse; }
.history-table th, .history-table td { padding: .5rem; border: 1px solid #ddd; }
.history-table th { background: #f8f9fa; position: sticky; top: 0; }
.history-table tr:nth-child(even) { background: #f2f2f2; }

.login-card {
  width: 400px;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-form {
  margin-bottom: 1.5rem;
}

.login-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--divider);
  padding-top: 1rem;
}

.login-users {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.login-user {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
}

.login-user span {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.login-user code {
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
}

.alert {
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.alert-error, .alert-danger {
  background-color: #ffebee;
  color: var(--error);
  border-left: 4px solid var(--error);
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.alert-warning {
  background-color: #fff8e1;
  color: #f57f17;
  border-left: 4px solid #ff8f00;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--surface);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.sidebar-header h2 {
  color: var(--primary);
}

.sidebar-menu ul {
  padding: 1rem 0;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.sidebar-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-menu li.active a {
  background-color: rgba(98, 0, 238, 0.08);
  color: var(--primary);
}

.sidebar-menu li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary);
}

.sidebar-menu i {
  margin-right: 12px;
  color: var(--text-secondary);
}

.sidebar-menu li.active i {
  color: var(--primary);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.date-time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.current-date {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b0b0b0;
  line-height: 1.2;
}

.current-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.2;
  font-family: 'Courier New', monospace;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info span {
  margin-right: 12px;
  font-size: 0.9rem;
}

.user-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Dashboard Widgets */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  margin-bottom: 0.5rem;
}

.widgets-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.widget {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.widget-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--divider);
}

.widget-header i {
  margin-right: 10px;
  color: var(--primary);
}

.widget-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.widget-content {
  padding: 1rem;
}

/* Statistics Widget */
.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}

.stats-item {
  text-align: center;
  margin-bottom: 1rem;
}

.stats-value {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  color: var(--primary);
}

.stats-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Calendar Widget */
.calendar-preview {
  display: flex;
  justify-content: space-around;
}

.calendar-day {
  text-align: center;
  padding: 0.5rem;
}

.day-number {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--text-primary);
  font-weight: 500;
}

.day-event {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Notifications Widget */
.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--divider);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-icon {
  margin-right: 12px;
}

.notification-icon i {
  color: var(--primary);
}

.notification-content p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.notification-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Payments Widget */
.payment-list {
  max-height: 300px;
  overflow-y: auto;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--divider);
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-info {
  display: flex;
  flex-direction: column;
}

.payment-name {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.payment-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.payment-amount {
  font-weight: 500;
  color: var(--primary);
}

/* Page Container */
.page-container {
  padding: 2rem;
}

.welcome-message {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.dashboard-date {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
}

/* Mi Cuenta Page */
.user-profile {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Commissions Admin Table */
.commission-create .form-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
/* Commissions Admin Table: style like data-table but keep padding */
.commissions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /* Dynamic column widths for first two columns */
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-top: 1rem;
}
.commissions-table th,
.commissions-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.commissions-table th:last-child,
.commissions-table td:last-child {
  border-right: none;
}
.commissions-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 600;
  color: var(--text-secondary);
}
.commissions-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}
.commissions-table th:nth-child(3),
.commissions-table td:nth-child(3) {
  /* Fixed width for "Miembros" column */
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.commissions-table tbody tr:last-child td {
  border-bottom: none;
}

/* Small variant for add-btn in commissions */
.add-btn.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.add-btn.btn-sm i {
  margin-right: 4px;
}
.form-inline select {
  margin-right: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.9rem;
}
.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider);
  background-color: rgba(98, 0, 238, 0.05);
}

.profile-avatar {
  margin-right: 1.5rem;
}

.profile-avatar i {
  font-size: 4rem;
  color: var(--primary);
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: var(--text-secondary);
}

.profile-content {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.preference-list {
  display: grid;
  gap: 1rem;
}

.preference-item {
  display: flex;
  align-items: center;
}

.preference-item span {
  margin-left: 12px;
}

/* Agenda Page */
.agenda-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
}

.agenda-sidebar {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.mini-calendar {
  border-bottom: 1px solid var(--divider);
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-nav {
  display: flex;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-days span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  font-size: 0.85rem;
  border-radius: 50%;
  cursor: pointer;
}

.calendar-days span:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.calendar-days .prev-month,
.calendar-days .next-month {
  color: var(--text-disabled);
}

.calendar-days .today {
  background-color: var(--primary);
  color: white;
}

.calendar-days .has-event {
  position: relative;
}

.calendar-days .has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
}

.calendar-days .today.has-event::after {
  background-color: white;
}

.upcoming-events {
  padding: 1.5rem;
}

.upcoming-events h3 {
  margin-bottom: 1rem;
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.02);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 12px;
  min-width: 40px;
}

.event-day {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
}

.event-month {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.event-time,
.event-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.agenda-content {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.date-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-controls button {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.view-controls button.active {
  background-color: var(--primary);
  color: white;
}

/* Calendar Views */
.calendar-view {
  display: none;
  margin-bottom: 1.5rem;
  position: relative;
}

.calendar-view.active {
  display: flex;
}

/* Day View */
.day-view {
  height: 500px;
}

.time-column {
  width: 60px;
  padding-top: 10px;
}

.time-slot {
  height: 50px;
  display: flex;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.events-column {
  flex: 1;
  position: relative;
  border-left: 1px solid var(--divider);
}

.day-event {
  position: absolute;
  left: 10px;
  right: 10px;
}

/* Week View */
.week-view {
  flex-direction: column;
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--divider);
  width: 100%;
  background-color: var(--background);
  z-index: 10;
}

.week-header-day {
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.week-header-day.today {
  background-color: rgba(98, 0, 238, 0.08);
  color: var(--primary);
}

.week-day-number {
  font-size: 1.2rem;
  margin-top: 4px;
  font-weight: 400;
}

.week-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.week-time-column {
  width: 60px;
  padding-top: 10px;
  flex-shrink: 0;
  border-right: 1px solid var(--divider);
}

.week-time-slot {
  height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  box-sizing: border-box;
}

.week-time-slot::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 0;
  width: 5px;
  height: 1px;
  background-color: var(--divider);
}

.week-days-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.week-day {
  position: relative;
  border-right: 1px solid var(--divider);
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
}

.week-day:first-child {
  border-left: 1px solid var(--divider);
}

.week-event {
  position: absolute;
  left: 2px;
  right: 2px;
  background-color: transparent;
  z-index: 5;
  box-sizing: border-box;
  overflow: hidden;
}

.week-event .event-card {
  font-size: 0.85rem;
  background-color: rgba(187, 134, 252, 0.12);
  transition: background-color 0.2s;
  cursor: pointer;
}

.week-event .event-card:hover {
  background-color: rgba(187, 134, 252, 0.18);
}

/* Month View */
.month-view {
  height: 600px;
  width: 100%;
  overflow: hidden;
}

.month-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.month-grid-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--divider);
  width: 100%;
}

.month-grid-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(5, 1fr);
  gap: 1px;
  background-color: var(--divider);
  width: 100%;
}

.month-day {
  background-color: var(--surface);
  padding: 8px;
  font-weight: 500;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.month-day.prev-month,
.month-day.next-month {
  color: var(--text-disabled);
  background-color: rgba(0, 0, 0, 0.02);
}

.month-day.today {
  background-color: rgba(98, 0, 238, 0.08);
}

.month-day.event-day {
  position: relative;
}

.month-day.event-day::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

.month-day-events {
  margin-top: 4px;
  overflow-y: auto;
  font-size: 0.75rem;
  max-height: calc(100% - 20px);
  width: 100%;
}

.month-event {
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 2px;
  background-color: var(--primary-light);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  width: 100%;
}

/* Common Event Styles */
.event-card {
  background-color: var(--primary-light);
  border-radius: 4px;
  padding: 0.8rem;
  height: calc(100% - 2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
  margin: 1px;
}

.week-event .event-card {
  border-left: 3px solid var(--primary);
}

.event-card h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card .event-cost {
  font-weight: 500;
  color: #ff7597;
  margin-top: 4px;
}

.add-event {
  text-align: center;
  margin-top: 1.5rem;
}

.user-message {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  display: inline-block;
}

/* Mis Pagos Page */
.payments-container {
  display: grid;
  gap: 1.5rem;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.summary-card {
  display: flex;
  align-items: center;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.summary-icon {
  margin-right: 1rem;
}

.summary-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.summary-content {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.table-container {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-field {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  position: relative;
}

.search-field i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-field input {
  border: none;
  background: transparent;
  width: 200px;
  font-size: 0.9rem;
  padding-left: 30px;
}

.search-field input:focus {
  outline: none;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

.data-table thead {
  background-color: rgba(0, 0, 0, 0.02);
}

.data-table th,
.data-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: none;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.data-table th {
  font-weight: 500;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.status-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-paid, .status-active, .status-habitacion {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-pending, .status-obra {
  background-color: #fff8e1;
  color: #f57f17;
}

.status-suspended, .status-canceled, .status-inactive {
  background-color: #ffebee;
  color: #c62828;
}

.status-pre-obra {
  background-color: #e3f2fd;
  color: #1565c0;
}

.subscription-type {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.subscription-type i {
  font-size: 16px;
  margin-right: 4px;
}

.subscription-type.manual {
  background-color: #e3f2fd;
  color: #1565c0;
}

.subscription-type.patreon {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.subscription-type.none {
  background-color: #f5f5f5;
  color: #757575;
}

.overdue-date {
  color: #d32f2f;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.overdue-days {
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.overdue-icon {
  color: #d32f2f;
  font-size: 16px;
  margin-left: 4px;
}

.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--divider);
}

.pagination-controls {
  display: flex;
  align-items: center;
}

.pagination-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0 4px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

a.pagination-number {
  text-decoration: none;
  color: var(--text-primary);
}

.pagination-number:hover {
  background-color: rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-primary);
}

.pagination-number.active {
  background-color: var(--primary);
  color: white;
  cursor: default;
}

.pagination-dots {
  padding: 0 8px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
}

.upcoming-payments {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.upcoming-payments h3 {
  margin-bottom: 1rem;
}

.upcoming-payment-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.payment-details {
  display: flex;
  flex-direction: column;
}

.payment-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.payment-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.payment-amount {
  font-weight: 500;
  color: var(--primary);
}

/* Cooperativa Page */
.coop-container {
  display: grid;
  gap: 1.5rem;
}

.coop-section {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* User debt styles for cooperativa page */
.current-user-debt {
  background-color: rgba(244, 67, 54, 0.05);
  border-left: 4px solid #f44336;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.current-user-debt h4 {
  margin: 0 0 1rem 0;
  color: #d32f2f;
  font-weight: 600;
}

.debt-summary {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.debt-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.debt-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.debt-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d32f2f;
}

.debt-count {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d32f2f;
}

.view-payments-link {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.view-payments-link:hover {
  color: #b71c1c;
  text-decoration: underline;
}

.no-debt-message {
  background-color: rgba(76, 175, 80, 0.05);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #2e7d32;
}

.no-debt-message i {
  font-size: 1.5rem;
  color: #4caf50;
}

.no-debt-message p {
  margin: 0;
  font-weight: 500;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.news-image {
  height: 150px;
}

.news-content {
  padding: 1rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.news-content h3 {
  margin-bottom: 0.5rem;
}

.news-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 500;
}

.news-see-all .btn {
  width: 100%;
  max-width: 200px;
}

.coop-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-block {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.info-header i {
  margin-right: 10px;
  color: var(--primary);
}

.directory-list, 
.events-list {
  display: grid;
  gap: 1rem;
}

.directory-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.02);
}

.directory-name {
  font-weight: 500;
  margin-right: auto;
}

.directory-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 12px;
}

.documents-table {
  margin-top: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 95%;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Modales más amplios para formularios complejos */
#addProductModal .modal-content,
#editProductModal .modal-content,
#userDetailsModal .modal-content,
#add-event-modal .modal-content,
.admin-modal .modal-content {
  width: 700px;
  max-width: 95vw;
}

.modal.active {
  display: block;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-overlay.active {
  display: block;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.modal-header h3 {
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
}

.close-modal i {
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.modal-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-body {
  padding: 1.5rem;
}

/* Make the edit product modal and add event modal body scrollable */
#editProductModal .modal-body,
#add-event-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

#editProductModal .modal-body::-webkit-scrollbar {
  width: 6px;
}

#editProductModal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#editProductModal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

#editProductModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}


/* Change Plan Modal Overlay and Scrollable Body */
#changePlanModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

#changePlanModal {
  width: 800px;
  max-width: 95vw;
  max-height: 90vh;
}

#changePlanModal .modal-content {
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#changePlanModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  flex: 1;
}

#changePlanModal .modal-body::-webkit-scrollbar {
  width: 6px;
}

#changePlanModal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#changePlanModal .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

#changePlanModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Plan option styling for change plan modal */
.popular-badge {
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 500;
}

.plan-icon.basic {
  background: #e3f2fd;
  color: #1976d2;
}

.plan-icon.standard {
  background: #e8f5e8;
  color: #388e3c;
}

.plan-icon.premium {
  background: #fff3e0;
  color: #f57c00;
}

/* Fix alignment and text overflow issues in changePlanModal */
#changePlanModal .plan-option {
  margin-bottom: 1rem;
}

#changePlanModal .plan-card-option {
  display: block;
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

#changePlanModal .plan-card-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#changePlanModal .plan-option input[type="radio"]:checked + .plan-card-option {
  border-color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

#changePlanModal .plan-option-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
}

#changePlanModal .plan-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

#changePlanModal .plan-details {
  flex: 1;
  min-width: 0;
}

#changePlanModal .plan-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#changePlanModal .plan-details p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#changePlanModal .plan-price {
  flex-shrink: 0;
  text-align: right;
}

#changePlanModal .plan-price .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

#changePlanModal .plan-features {
  margin-top: 1rem;
}

#changePlanModal .plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

#changePlanModal .plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#changePlanModal .plan-features li i {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--success-color, #4caf50);
}

/* Mobile responsive fixes for changePlanModal */
@media (max-width: 768px) {
  #changePlanModal .plan-option-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  #changePlanModal .plan-icon {
    align-self: center;
  }
  
  #changePlanModal .plan-price {
    text-align: center;
  }
  
  #changePlanModal .plan-features li {
    font-size: 0.8rem;
  }
}

/* No plans available message */
.no-plans-available {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.no-plans-available p {
  margin: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.no-plans-available i {
  color: var(--primary-color);
}

/* Adjust width for updateOrderStatusModal */
#updateOrderStatusModal {
  width: 400px;
  max-width: 90vw;
}

#updateOrderStatusModal .modal-content {
  width: 100%;
}

/* Payment Detail Styles */
.payment-detail {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.payment-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 20px;
}

.payment-logo {
  display: flex;
  align-items: center;
}

.payment-logo i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-right: 10px;
}

.payment-logo h3 {
  margin: 0;
  font-weight: 500;
  color: var(--primary);
}

.payment-id {
  text-align: right;
}

.payment-detail-body {
  margin-bottom: 20px;
}

.payment-detail-row {
  display: flex;
  margin-bottom: 12px;
}

.payment-detail-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.payment-detail-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.payment-amount-section {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.payment-subtotal,
.payment-tax,
.payment-total {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.payment-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.payment-detail-footer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  padding-top: 15px;
  border-top: 1px dashed var(--divider);
}

.payment-detail-footer p {
  margin: 5px 0;
}

/* Print Preview Styles */
.print-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

.print-preview {
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.print-preview h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.print-preview-frame {
  background-color: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 15px;
  max-width: 350px;
  margin: 0 auto;
  transform: scale(0.9);
  transform-origin: top center;
}

.print-preview-content {
  padding: 10px;
}

.print-preview-header {
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.print-preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.print-preview-logo i {
  font-size: 1.5rem;
  margin-right: 5px;
  color: var(--primary);
}

.print-preview-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.print-preview-data {
  font-size: 0.9rem;
}

.print-preview-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.print-preview-label {
  font-weight: 500;
}

/* Status Color in Modal */
#payment-status.status-paid {
  color: #2e7d32;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Payment Option Styles */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-options h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.payment-option-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option-card:hover {
  border-color: var(--primary);
  background-color: rgba(98, 0, 238, 0.03);
}

.payment-option-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(98, 0, 238, 0.1);
  margin-right: 1.5rem;
}

.payment-option-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.payment-option-details {
  flex: 1;
}

.payment-option-details h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.payment-option-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* File Upload Styles */
.file-upload-container {
  position: relative;
  margin-top: 0.5rem;
}

.file-upload-container input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.file-upload-label:hover {
  background-color: var(--primary-dark);
}

.file-upload-label i {
  margin-right: 8px;
}

.file-name {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* PayPal Modal Styles */
.paypal-container {
  max-width: 600px;
  margin: 0 auto;
}

.paypal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.paypal-logo {
  display: flex;
  align-items: center;
}

.paypal-logo i {
  font-size: 1.8rem;
  margin-right: 8px;
  color: #0070ba;
}

.paypal-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0070ba;
}

.payment-secure {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.payment-secure i {
  font-size: 1.2rem;
  margin-right: 5px;
  color: #28a745;
}

.payment-summary {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.payment-summary h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.payment-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.payment-summary-item:last-child {
  margin-bottom: 0;
  border-top: 1px dashed var(--divider);
  padding-top: 0.75rem;
  font-weight: 500;
}

.half-width {
  width: 48%;
}

/* Success Modal Styles */
.success-container {
  text-align: center;
  padding: 1.5rem;
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-icon i {
  font-size: 4rem;
  color: #4caf50;
}

.success-container h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.success-container p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Status for Pending Review */
.status-pending-review {
  background-color: #e3f2fd;
  color: #1565c0;
}

/* Enhanced Admin Stats Widget */
.admin-stats-widget {
  border-top: 4px solid var(--primary);
}

/* Resumen rápido en números */
.admin-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(98, 0, 238, 0.05) 0%, rgba(187, 134, 252, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(98, 0, 238, 0.1);
}

.summary-metric {
  text-align: center;
  padding: 0.5rem;
}

.metric-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid de detalles */
.admin-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--divider);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.detail-header i {
  margin-right: 8px;
  color: var(--primary);
  font-size: 1.1rem;
}

.detail-header span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.detail-value {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 35px;
  text-align: center;
}

.detail-value.success {
  color: #2e7d32;
  background-color: rgba(76, 175, 80, 0.1);
}

.detail-value.warning {
  color: #f57c00;
  background-color: rgba(255, 152, 0, 0.1);
}

.detail-value.error {
  color: #d32f2f;
  background-color: rgba(244, 67, 54, 0.1);
}

.detail-value.info {
  color: var(--primary);
  background-color: rgba(98, 0, 238, 0.1);
}

.detail-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  margin-left: 0.75rem;
}

/* Alertas importantes */
.admin-alerts {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.alert-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
}

.alert-header i {
  margin-right: 8px;
  color: #f57c00;
  font-size: 1.1rem;
}

.alert-header span {
  font-weight: 600;
  color: #e65100;
  font-size: 0.95rem;
}

.alert-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 152, 0, 0.05);
  border-radius: 6px;
  border-left: 3px solid #ff9800;
}

.alert-item i {
  margin-right: 8px;
  color: #f57c00;
  font-size: 1rem;
}

.alert-item span {
  font-size: 0.9rem;
  color: #e65100;
}

/* Responsive design para admin stats */
@media (max-width: 768px) {
  .admin-summary-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .metric-number {
    font-size: 1.5rem;
  }
  
  .admin-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .detail-card {
    padding: 0.75rem;
  }
  
  .detail-item {
    padding: 0.4rem 0;
  }
  
  .detail-value {
    font-size: 1rem;
    min-width: 30px;
  }
  
  .detail-text {
    font-size: 0.85rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .admin-summary-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .summary-metric {
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--divider);
  }
}

/* Legacy stat-card styles for compatibility */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: var(--surface);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stat-card-header i {
  margin-right: 8px;
  color: var(--primary);
  font-size: 1.2rem;
}

.stat-card-header h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.stat-card-body {
  margin-bottom: 0.75rem;
}

.stat-card-body .stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.stat-card-body .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-card-footer {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-change {
  display: flex;
  align-items: center;
}

.stat-change i {
  font-size: 1rem;
  margin-right: 4px;
}

.stat-change.positive {
  color: #4caf50;
}

.stat-change.negative {
  color: #f44336;
}

/* Financial Summary */
.financial-summary {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.financial-summary h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.finance-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finance-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.finance-metric:hover {
  transform: translateX(5px);
}

.metric-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.metric-icon i {
  font-size: 1.5rem;
  color: white;
}

.metric-icon.collected {
  background-color: #4caf50;
}

.metric-icon.pending {
  background-color: #ff9800;
}

.metric-icon.month {
  background-color: #2196f3;
}

.metric-icon.contributions {
  background-color: #4caf50;
}

.metric-icon.debt {
  background-color: #f44336;
}

.metric-icon.year {
  background-color: #9c27b0;
}

.metric-details {
  display: flex;
  flex-direction: column;
}

/* Financial Subsections */
.financial-subsection {
  margin-bottom: 2rem;
}

.financial-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 0.5rem;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.debt-toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.debt-toggle:hover {
  color: var(--primary);
}

.user-finances-metrics {
  transition: filter 0.3s ease;
}

.subsection-title i {
  font-size: 1.2rem;
  color: var(--primary);
}

/* Debt highlight */
.metric-value.has-debt {
  color: #f44336;
  font-weight: 600;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.admin-button:hover {
  background-color: var(--primary-dark);
}

.admin-button i {
  margin-right: 8px;
}

/* Simplified Subscription Tab Styles */
.subscription-plan-overview {
  margin-bottom: 2rem;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.plan-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.plan-status .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.status-badge.status-active {
  background-color: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.status-badge.status-pending {
  background-color: rgba(255, 152, 0, 0.1);
  color: #f57c00;
}

.status-badge.status-suspended {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}

.status-badge.status-canceled {
  background-color: rgba(158, 158, 158, 0.1);
  color: #757575;
}

.change-plan-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.change-plan-btn:hover {
  background: var(--primary-dark);
}

.plan-details {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.plan-card {
  flex: 1;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--divider);
}

.plan-type {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.plan-icon.manual {
  background: rgba(33, 150, 243, 0.1);
  color: #1976d2;
}

.plan-icon.patreon {
  background: rgba(255, 87, 34, 0.1);
  color: #e64a19;
}

.plan-icon.mercadopago {
  background: rgba(0, 150, 136, 0.1);
  color: #00695c;
}

.plan-icon.none {
  background: rgba(158, 158, 158, 0.1);
  color: #757575;
}

.plan-name h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.plan-name p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.plan-pricing {
  text-align: center;
  padding: 1rem;
  background: rgba(98, 0, 238, 0.05);
  border-radius: 8px;
  margin-top: 1rem;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price .currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price .period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.plan-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--divider);
}

.summary-item .label {
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-item .value {
  font-weight: 600;
  color: var(--text-primary);
}

.next-date {
  color: var(--primary);
}

.overdue-date {
  color: #d32f2f;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.no-date {
  color: var(--text-disabled);
  font-style: italic;
}

.subscription-payments {
  margin-top: 2rem;
}

.payments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.payments-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.record-payment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.record-payment-btn:hover {
  background: var(--secondary-dark);
}

.no-payments {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-payments i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-disabled);
}

.no-payments h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.no-payments p {
  margin: 0;
  font-size: 0.9rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payments-table .amount {
  font-weight: 600;
  color: var(--primary);
}

.payments-table .reference {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Change Plan Modal Styles */
.plan-change-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(33, 150, 243, 0.05);
  border: 1px solid rgba(33, 150, 243, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.notice-icon {
  color: #1976d2;
  flex-shrink: 0;
}

.notice-text {
  color: #1565c0;
  font-size: 0.9rem;
}

.plan-options h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.plan-option {
  margin-bottom: 1rem;
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-card-option {
  display: block;
  border: 2px solid var(--divider);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card-option:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(98, 0, 238, 0.1);
}

.plan-option input[type="radio"]:checked + .plan-card-option {
  border-color: var(--primary);
  background: rgba(98, 0, 238, 0.02);
}

.plan-option input[type="radio"]:disabled + .plan-card-option {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(158, 158, 158, 0.05);
}

.plan-option-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.plan-features {
  margin-top: 0.75rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features li i {
  color: #4caf50;
  font-size: 1rem;
}

.plan-change-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive design for subscription */
@media (max-width: 768px) {
  .plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .plan-details {
    flex-direction: column;
    gap: 1rem;
  }
  
  .payments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .plan-option-header {
    flex-wrap: wrap;
  }
  
  .plan-price {
    width: 100%;
    text-align: left;
  }
}

/* Filter Menu Styles */
.filter-menu {
  min-width: 180px;
}

.filter-option {
  border-radius: 4px;
}

.filter-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.filter-option i {
  margin-right: 8px;
  color: var(--text-secondary);
}


.user-role-badge {
  background-color: #6200ee;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-right: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .widgets-container {
    grid-template-columns: 1fr;
  }
  
  .agenda-container {
    grid-template-columns: 1fr;
  }
  
  .coop-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-content {
    flex-direction: column;
  }
  
  .dashboard-main-widgets,
  .dashboard-secondary-widgets {
    flex: 1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Mobile sidebar - hidden by default */
  .sidebar {
    position: fixed;
    left: -250px;
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* When mobile menu is active */
  .sidebar.mobile-active {
    left: 0;
  }
  
  /* Ensure sidebar menu is scrollable */
  .sidebar-menu {
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }
  
  /* Custom scrollbar for webkit browsers */
  .sidebar-menu::-webkit-scrollbar {
    width: 6px;
  }
  
  .sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  
  .sidebar-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  /* Show full menu items on mobile when active */
  .sidebar.mobile-active .sidebar-header h2 {
    display: block;
  }
  
  .sidebar.mobile-active .sidebar-menu li a {
    justify-content: flex-start;
    padding: 0.8rem 1.5rem;
  }
  
  .sidebar.mobile-active .sidebar-menu li a span {
    display: inline;
  }
  
  .sidebar.mobile-active .sidebar-menu i {
    margin-right: 12px;
    font-size: 1rem;
  }
  
  /* Make user icon clickable on mobile */
  .user-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
  }
  
  .user-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Adjust main content for mobile */
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .top-bar {
    padding: 1rem;
  }
  
  .content {
    padding: 1rem;
  }
  
  /* Date-time info mobile adjustments */
  .date-time-info {
    align-items: flex-start; 
  }
  
  .current-date {
    font-size: 0.8rem;
    text-align: left; 
  }
  
  .current-time {
    font-size: 0.75rem;
    text-align: left; 
  }
  
  .user-info span {
    display: none;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin: 0 0 1rem 0;
  }
  
  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-actions {
    margin-top: 1rem;
    width: 100%;
  }
  
  .search-field {
    flex: 1;
  }
  
  .table-responsive {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table, .orders-table {
    width: 100%;
    min-width: 0;
  }
  
  /* Mejora para tablas en móviles */
  .data-table th,
  .data-table td,
  .orders-table th,
  .orders-table td {
    white-space: nowrap;
    padding: 0.75rem 1rem;
  }
  
  /* Dashboard widget improvements for mobile */
  .dashboard-content {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  /* Widget reordering for mobile - notifications first */
  .dashboard-secondary-widgets {
    order: -1;
  }
  
  .dashboard-main-widgets {
    order: 0;
  }
  
  /* Notifications widget priority on mobile */
  .notifications-widget {
    order: -2;
  }
  
  /* Financial summary widget mobile adjustments */
  .finance-metrics {
    gap: 0.75rem;
  }
  
  .finance-metric {
    padding: 0.6rem;
    gap: 0.75rem;
  }
  
  .metric-icon {
    width: 35px;
    height: 35px;
  }
  
  .metric-icon i {
    font-size: 1.2rem;
  }
  
  .metric-value {
    font-size: 1rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  /* Financial subsections mobile adjustments */
  .financial-subsection {
    margin-bottom: 1.5rem;
  }
  
  .subsection-title {
    font-size: 0.9rem;
    padding-bottom: 0.4rem;
  }
  
  .subsection-title i {
    font-size: 1rem;
  }
  
  /* News grid mobile adjustments */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-card {
    margin-bottom: 0;
  }
  
  .news-image {
    height: 120px;
  }
  
  .news-content {
    padding: 0.75rem;
  }
  
  .news-content h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .news-content p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  /* Stats cards mobile adjustments */
  .stats-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-card-body .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-card-header h3 {
    font-size: 0.9rem;
  }
  
  .stat-card-header i {
    font-size: 1.1rem;
  }
  
  /* Product preview mobile adjustments */
  .product-preview-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .product-preview-item .product-thumbnail {
    width: 40px;
    height: 40px;
  }
  
  .product-name {
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 0.85rem;
  }
  
  .product-deadline {
    font-size: 0.75rem;
  }
  
  /* Payment summary mobile adjustments */
  .payment-summary {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .payment-summary h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .payment-summary-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .payment-summary-item:last-child {
    padding-top: 0.5rem;
  }
  
  /* Widget content general mobile adjustments */
  .widget-content {
    padding: 0.75rem;
  }
  
  .widget-header {
    padding: 0.75rem;
  }
  
  .widget-header h3 {
    font-size: 1rem;
  }
  
  .widget-header i {
    font-size: 1.2rem;
  }
  
  /* Birthday list mobile adjustments */
  .birthday-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
  
  /* Notification items mobile adjustments */
  .notification-item {
    padding: 0.6rem 0;
  }
  
  .notification-content p {
    font-size: 0.85rem;
    margin-bottom: 3px;
  }
  
  .notification-time {
    font-size: 0.75rem;
  }
  
  /* View all links mobile adjustments */
  .view-all-link {
    font-size: 0.85rem;
    margin-top: 0.75rem;
  }
  
  /* Empty state mobile adjustments */
  .empty-state {
    padding: 1rem 0.75rem;
  }
  
  .empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .empty-state p {
    font-size: 0.85rem;
  }
  
  /* Payment stat mobile adjustments */
  .payment-stat {
    font-size: 0.85rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Users table mobile optimization - show actions column */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  
  #usersTable {
    width: 100%;
    min-width: 680px;
  }
  
  /* Actions column normal styling for mobile */
  #usersTable th:nth-child(6),
  #usersTable td:nth-child(6) {
    min-width: 200px;
    width: 200px;
    text-align: center;
    padding: 0.5rem 0.25rem;
  }
  
  /* Hide less important columns on mobile for users table */
  #usersTable th:nth-child(3),
  #usersTable td:nth-child(3),
  #usersTable th:nth-child(4),
  #usersTable td:nth-child(4) {
    display: none;
  }
  
  /* Make remaining columns more compact */
  #usersTable th,
  #usersTable td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  #usersTable th:nth-child(1),
  #usersTable td:nth-child(1) {
    min-width: 120px;
  }
  
  #usersTable th:nth-child(2),
  #usersTable td:nth-child(2) {
    min-width: 140px;
  }
  
  #usersTable th:nth-child(5),
  #usersTable td:nth-child(5) {
    min-width: 80px;
  }
  
  /* Action buttons in mobile */
  #usersTable .actions {
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  #usersTable .action-btn {
    padding: 3px;
    min-width: 26px;
    height: 26px;
    font-size: 0.7rem;
    border-radius: 4px;
    flex-shrink: 0;
  }
  
  #usersTable .action-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-card {
    width: 90%;
  }
  
  .date-view-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-controls {
    margin-top: 1rem;
  }
  
  .upcoming-payment-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .upcoming-payment-card .btn {
    margin-top: 1rem;
  }
}

/* Admin Management Styles */
.admin-gestion-container {
  padding: 1rem 0;
}

.admin-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(98, 0, 238, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.admin-badge {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
}

.admin-badge i {
  margin-right: 8px;
}




.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tabs-container {
  background-color: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider);
  background-color: rgba(0, 0, 0, 0.02);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.tab-button {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
}

.tab-content {
  padding: 1.5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.add-btn {
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-btn:hover {
  background-color: var(--primary-dark);
}

.add-btn i {
  margin-right: 8px;
}

.add-btn.disabled,
.add-btn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-btn.disabled:hover,
.add-btn:disabled:hover {
  background-color: #ccc;
}

.user-limit-info {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.limit-text {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.limit-text i {
  margin-right: 4px;
  font-size: 1rem;
}

.limit-reached {
  color: #e74c3c;
  font-weight: 500;
  margin-left: 0.5rem;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  position: relative;
}

.search-container input {
  border: none;
  background: transparent;
  width: 200px;
  font-size: 0.9rem;
  padding-left: 30px;
}

.search-container input:focus {
  outline: none;
}

.search-container i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-container {
  position: relative;
}

.filter-container select {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23757575'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

.card {
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-badge.inactive {
  background-color: #feeceb;
  color: #d32f2f;
}

.status-badge.pending {
  background-color: #fff8e1;
  color: #f57f17;
}

.status-badge.overdue {
  background-color: #ffebee;
  color: #b71c1c;
}

.status-badge.paid {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.actions {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 0.25rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.action-btn i {
  font-size: 16px;
  color: var(--text-secondary);
}

.edit-btn:hover i {
  color: var(--primary);
}

.delete-btn:hover i {
  color: #d32f2f;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background-color 0.2s;
}

.pagination-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.pagination-btn i {
  color: var(--text-secondary);
}

.pagination-info {
  margin: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.document-card {
  display: flex;
  align-items: center;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.document-icon {
  margin-right: 1rem;
}

.document-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.document-info {
  flex: 1;
}

.document-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.document-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.document-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Enhanced Document Card Styles */
.document-card.enhanced {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.document-card.enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.document-header .document-icon {
  margin-right: 0;
}

.document-header .document-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.document-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.document-content {
  padding: 1rem 1.5rem;
  flex: 1;
}

.document-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.document-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.meta-item i {
  font-size: 16px;
  color: var(--text-secondary);
}

.document-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.document-card.enhanced .document-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.document-card.enhanced .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.document-card.enhanced .action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.document-card.enhanced .action-btn i {
  font-size: 20px;
  color: var(--text-secondary);
}

.document-card.enhanced .view-doc-btn:hover i {
  color: var(--primary);
}

.document-card.enhanced .download-btn:hover i {
  color: #2196f3;
}

.document-card.enhanced .delete-doc-btn:hover i {
  color: #f44336;
}

.view-btn:hover i {
  color: var(--primary);
}

.download-btn:hover i {
  color: #2196f3;
}

.reminder-btn:hover i {
  color: #ff9800;
}

.receipt-btn:hover i {
  color: #4caf50;
}

/* Modal Form Styling */

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cancel-btn,
.submit-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 0.875rem 2rem;
  margin-right: 1rem;
}

.cancel-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--text-secondary);
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
}

/* Subscripción styles */
.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 8px;
}

.detail-value {
  color: var(--text-primary);
}

.detail-group {
  margin-bottom: 15px;
}

.subscription-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.subscription-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.subscription-status h3 {
  margin: 0;
  font-size: 1.2rem;
}

.subscription-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.subscription-notes {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--divider);
}

@media (max-width: 768px) {
  .subscription-details {
    grid-template-columns: 1fr;
  }
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

.danger-btn {
  background-color: #f44336;
}

.danger-btn:hover {
  background-color: #d32f2f;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Delete button specific styling */
.delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.875rem 2rem;
}

.delete-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Modal body overlay prevents interaction */
.modal-open {
  overflow: hidden;
}

.warning-icon {
  font-size: 3rem;
  color: #ff9800;
  margin-bottom: 1rem;
}

.confirm-message {
  text-align: center;
  margin-bottom: 2rem;
}

.confirm-message p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.file-upload {
  padding: 1rem;
  border: 2px dashed var(--divider);
  border-radius: 4px;
  text-align: center;
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-info {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive Adjustments for Admin */
@media (max-width: 768px) {
  .cooperativa-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cooperativa-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .cooperativa-status {
    align-self: flex-start;
  }
  
  button.cooperativa-status {
    width: 100%;
    justify-content: center;
  }
  
  .actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .search-container,
  .filter-container {
    width: 100%;
  }
  
  .search-container input {
    width: 100%;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
  
  .document-card {
    flex-direction: column;
    text-align: center;
  }
  
  .document-icon {
    margin: 0 0 1rem 0;
  }
  
  .document-actions {
    flex-direction: row;
    margin-top: 1rem;
  }
  
  /* Enhanced document card mobile styles */
  .document-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .document-badges {
    justify-content: center;
  }
  
  .document-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .document-card.enhanced .document-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* Admin Cooperativa Info Widget */
.admin-cooperativa-info {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(98, 0, 238, 0.1);
  position: relative;
}

.cooperativa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(98, 0, 238, 0.1);
}

.cooperativa-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cooperativa-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.cooperativa-status {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button.cooperativa-status {
  border: none;
  cursor: pointer;
  background-color: #e0e0e0;
  color: #424242;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

button.cooperativa-status:hover {
  background-color: #bdbdbd;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button.cooperativa-status i {
  font-size: 16px;
}

.pre-obra {
  background-color: #e3f2fd;
  color: #1565c0;
}

.obra {
  background-color: #fff8e1;
  color: #f57f17;
}

.habitacion {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.cooperativa-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: rgba(98, 0, 238, 0.03);
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}

.detail-item:hover {
  background-color: rgba(98, 0, 238, 0.08);
  transform: translateX(5px);
}

.detail-item i {
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.detail-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard Financial Cards */
.financial-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.financial-dashboard-card {
  display: flex;
  align-items: center;
  background-color: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid transparent;
  overflow: hidden;
  position: relative;
}

.financial-dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.financial-dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.financial-dashboard-card.total-collected {
  border-left-color: #4caf50;
}

.financial-dashboard-card.pending-payments {
  border-left-color: #ff9800;
}

.financial-dashboard-card.month-payments {
  border-left-color: #2196f3;
}

.financial-dashboard-card.debtors {
  border-left-color: #f44336;
}

.dashboard-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-right: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
}

.financial-dashboard-card.total-collected .dashboard-card-icon {
  background-image: linear-gradient(135deg, #4caf50, #2e7d32);
}

.financial-dashboard-card.pending-payments .dashboard-card-icon {
  background-image: linear-gradient(135deg, #ff9800, #f57f17);
}

.financial-dashboard-card.month-payments .dashboard-card-icon {
  background-image: linear-gradient(135deg, #2196f3, #1565c0);
}

.financial-dashboard-card.debtors .dashboard-card-icon {
  background-image: linear-gradient(135deg, #f44336, #c62828);
}

.dashboard-card-icon i {
  font-size: 2rem;
  color: white;
}

.dashboard-card-content {
  display: flex;
  flex-direction: column;
}

.dashboard-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.dashboard-card-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Dashboard Layout Improvements */
.dashboard-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dashboard-main-widgets {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-secondary-widgets {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Product styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
/* Voting Section Styles */
/* Main container */
.votaciones-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.votaciones-container section {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.votaciones-container section h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--divider);
}

/* Card that wraps a single vote */
.vote-item {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vote-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.vote-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.vote-item:hover::before {
  transform: scaleY(1);
}

/* Timer badge */
.vote-timer {
  position: absolute;
  top: 16px;
  right: 120px;
  background-color: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(98, 0, 238, 0.25);
}

.vote-timer::before {
  content: '\e425';
  font-family: 'Material Icons';
  font-size: 16px;
}

/* Dim past votes */
.vote-item.past {
  background-color: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0.85;
}

.vote-item.past::before {
  background-color: #9e9e9e;
}

.vote-item.past:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Heading */
.vote-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 600;
  padding-right: 280px;
}

/* Vote dates */
.vote-dates {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vote-dates::before {
  content: '\e192';
  font-family: 'Material Icons';
  font-size: 16px;
  color: var(--text-secondary);
}

/* Vote details */
.vote-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Radio options container */
.vote-options {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom radio buttons */
.vote-options label {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.vote-options label:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(98, 0, 238, 0.15);
}

.vote-options input[type='radio'] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vote-options input[type='radio']:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.vote-options input[type='radio']:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.vote-options input[type='radio']:checked + label {
  border-color: var(--primary);
  background-color: rgba(98, 0, 238, 0.05);
}

/* Represent dropdown */
.vote-represent {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vote-represent label {
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vote-represent label::before {
  content: '\e7fd';
  font-family: 'Material Icons';
  font-size: 20px;
  color: var(--text-secondary);
}

.vote-represent select {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.vote-represent select:hover,
.vote-represent select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Submit button */
.submit-vote-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(98, 0, 238, 0.25);
}

.submit-vote-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(98, 0, 238, 0.35);
}

.submit-vote-btn::before {
  content: '\e5ca';
  font-family: 'Material Icons';
  font-size: 20px;
}

/* Vote counts – show coloured chips */
.vote-counts {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.badge:hover {
  transform: scale(1.05);
}

.badge.si {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.badge.si::before {
  content: '\e876';
  font-family: 'Material Icons';
  font-size: 16px;
}

.badge.no {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.badge.no::before {
  content: '\e5cd';
  font-family: 'Material Icons';
  font-size: 16px;
}

.badge.abst {
  background-color: #f5f5f5;
  color: #616161;
  border: 1px solid #e0e0e0;
}

.badge.abst::before {
  content: '\e14b';
  font-family: 'Material Icons';
  font-size: 16px;
}

/* Edit and delete buttons */
.edit-vote-btn,
.delete-vote-btn {
  position: absolute;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-vote-btn {
  right: 60px;
}

.delete-vote-btn {
  right: 16px;
}

.edit-vote-btn:hover {
  background-color: #e3f2fd;
  border-color: #2196f3;
  transform: scale(1.1);
}

.delete-vote-btn:hover {
  background-color: #ffebee;
  border-color: #f44336;
  transform: scale(1.1);
}

.edit-vote-btn i,
.delete-vote-btn i {
  font-size: 18px;
  color: var(--text-secondary);
}

.edit-vote-btn:hover i {
  color: #2196f3;
}

.delete-vote-btn:hover i {
  color: #f44336;
}

/* View details button for past votes */
.view-details-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-details-btn:hover {
  color: var(--primary-dark);
}

.view-details-btn::after {
  content: '\e5c8';
  font-family: 'Material Icons';
  font-size: 18px;
}

/* Hide interactive elements for past votes */
.vote-item.past .vote-options,
.vote-item.past .vote-represent,
.vote-item.past .submit-vote-btn {
  display: none;
}

/* Page header improvements */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--divider);
}

.page-header h1 {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header h1::before {
  content: '\e90f';
  font-family: 'Material Icons';
  font-size: 32px;
  color: var(--primary);
}

#create-vote-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(98, 0, 238, 0.25);
}

#create-vote-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(98, 0, 238, 0.35);
}

#create-vote-btn::before {
  content: '\e145';
  font-family: 'Material Icons';
  font-size: 20px;
}

/* Modal improvements */
.modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.modal-header h2,
.modal-header h3 {
  font-weight: 600;
  color: var(--text-primary);
}

/* Details modal improvements */
.vote-details-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vote-details-summary span {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
}

.vote-details-summary .si {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.vote-details-summary .no {
  background-color: #ffebee;
  color: #c62828;
  border-color: #ffcdd2;
}

.vote-details-summary .abst {
  background-color: #f5f5f5;
  color: #616161;
  border-color: #e0e0e0;
}

.vote-details-summary .novote {
  background-color: #fef4e5;
  color: #f57f17;
  border-color: #ffe0b2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .votaciones-container {
    gap: 1.5rem;
  }
  
  .vote-item {
    padding: 1.25rem;
  }
  
  .vote-item h3 {
    font-size: 1.15rem;
    padding-right: 40px;
    margin-bottom: 2.5rem;
  }
  
  .vote-timer {
    font-size: 0.75rem;
    padding: 4px 10px;
    top: 50px;
    right: 16px;
  }
  
  .edit-vote-btn,
  .delete-vote-btn {
    width: 32px;
    height: 32px;
  }
  
  .edit-vote-btn {
    right: 54px;
  }
  
  .vote-options {
    flex-direction: column;
    padding: 1rem;
  }
  
  .vote-options label {
    min-width: auto;
    justify-content: flex-start;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  #create-vote-btn {
    width: 100%;
    justify-content: center;
  }
}


.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #f0f0f0;
  color: #aaa;
}

.product-info {
  padding: 15px;
  flex-grow: 1;
}

.product-info h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.product-price {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 5px 0;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 13px;
}

.product-meta .deadline,
.product-meta .min-orders {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-meta i {
  font-size: 16px;
  color: #555;
}

.product-actions {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.order-status.pending {
  color: #f39c12;
}

.order-status.paid {
  color: #27ae60;
}

.order-status.delivered {
  color: #2980b9;
}

.order-status.cancelled {
  color: #e74c3c;
}

/* Product detail page */
.back-link {
  margin-bottom: 20px;
}

.back-link a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
  text-decoration: none;
}

.back-link a:hover {
  color: #2980b9;
}

.product-detail-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-detail-card {
    flex-direction: row;
  }
}

.product-detail-image {
  flex: 0 0 40%;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  flex: 1;
  padding: 30px;
}

.product-detail-info h1 {
  margin-top: 0;
  font-size: 24px;
  color: #333;
}

.product-detail-info .product-price {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin: 10px 0 20px;
}

.product-description {
  margin-bottom: 20px;
}

.product-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.meta-item i {
  font-size: 20px;
  color: #555;
}

.warning {
  color: #f39c12;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.success {
  color: #27ae60;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-closed {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #e74c3c;
}

.user-order-info {
  margin-top: 20px;
  padding: 20px;
  background-color: #f5f9fc;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.user-order-info h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 15px;
}

.order-details {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-label {
  font-weight: 500;
  color: #555;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.make-order h3 {
  margin-bottom: 15px;
}

.total-price {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
}

/* Admin product table */
.product-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

#productsTable .no-image {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  color: #aaa;
  border-radius: 4px;
}

/* Order styles */
.orders-table-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 20px;
}

 .orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}

.orders-table th,
.orders-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-table th:last-child,
.orders-table td:last-child {
  border-right: none;
}

.orders-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 1;
}

.orders-table tbody tr:last-child td {
  border-bottom: none;
}

.orders-table .product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-table .product-thumbnail {
  width: 40px;
  height: 40px;
}

.orders-table .actions {
  display: flex;
  gap: 5px;
}

.orders-table .action-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #555;
  transition: color 0.3s ease;
}

.orders-table .action-btn:hover {
  color: #3498db;
}

.orders-table .action-btn.delete-btn:hover {
  color: #e74c3c;
}

/* Dashboard product widget */
.product-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.product-preview-item:hover {
  background-color: #f0f0f0;
}

.product-preview-item .product-thumbnail {
  width: 50px;
  height: 50px;
}

.product-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name {
  font-weight: 500;
  color: #333;
}

.product-deadline {
  font-size: 12px;
  color: #666;
}

.stats-widget {
  flex: 1;
}

.financial-widget {
  flex: 1;
}

.calendar-widget,
.payments-widget {
  display: flex;
  flex-direction: column;
  height: auto;
}

.funds-chart-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fund-bar-container {
  display: flex;
  align-items: center;
}

.fund-label {
  width: 170px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.fund-bar {
  flex: 1;
  height: 14px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fund-progress {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fund-progress.construction {
  background-color: #2196f3;
  background-image: linear-gradient(to right, #1976d2, #2196f3);
}

.fund-progress.emergency {
  background-color: #ff9800;
  background-image: linear-gradient(to right, #ef6c00, #ff9800);
}

.fund-progress.operational {
  background-color: #4caf50;
  background-image: linear-gradient(to right, #388e3c, #4caf50);
}

.fund-amount {
  width: 120px;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Fix for Modal Form Styles - Prevent label and placeholder overlap */
.modal .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.modal .form-group label {
  display: block;
  position: static;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: none;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
}

/* Override the default placeholder styles */
.modal .form-group input::placeholder,
.modal .form-group select::placeholder,
.modal .form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Global placeholder styling for better visibility */
::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
/* Disabled tab styles */
.tab-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f0f0f0;
  color: #999;
  pointer-events: none;
}

.tab-button.disabled .tab-lock-icon {
  font-size: 0.8em;
  margin-left: 5px;
}

/* Subscription warning styles */
.subscription-warning {
  margin-bottom: 20px;
  padding: 10px 15px;
  border-radius: 4px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  display: flex;
  align-items: center;
}

.subscription-warning i {
  margin-right: 8px;
}

/* Debt Summary Cards */
.debt-summary-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.debt-summary-card {
  flex: 1;
  background-color: var(--surface);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.debt-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.debt-summary-card.total {
  border-left: 4px solid var(--primary);
}

.debt-summary-card.paid {
  border-left: 4px solid #4caf50;
}

.debt-summary-card.pending {
  border-left: 4px solid #ff9800;
}

.debt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(98, 0, 238, 0.1);
}

.debt-summary-card.total .debt-icon {
  background-color: rgba(98, 0, 238, 0.1);
  color: var(--primary);
}

.debt-summary-card.paid .debt-icon {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.debt-summary-card.pending .debt-icon {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.debt-icon i {
  font-size: 24px;
}

.debt-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.debt-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debt-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Responsive adjustments for debt summary */
@media (max-width: 768px) {
  .debt-summary-cards {
    flex-direction: column;
  }
  
  .debt-summary-card {
    padding: 1rem;
  }
  
  .debt-amount {
    font-size: 1.25rem;
  }
  
  /* Scrollable tabs on mobile */
  .tabs {
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }
  
  .tabs::-webkit-scrollbar {
    height: 4px;
  }
  
  .tabs::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .tabs::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
  }
  
  .tab-button {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
  }
  
  /* Show scroll indicator on mobile */
  .tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
  }
  
  /* Modal adjustments for mobile */
  /* .modal {
    top: 10px;
    transform: translateX(-50%);
    max-height: calc(100vh - 20px);
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
  
  .modal-body {
    max-height: calc(100vh - 100px);
  }
  
  #addProductModal .modal-content,
  #editProductModal .modal-content {
    width: 100%;
  } */
}

/* Edit Cooperativa Button */
.edit-cooperativa-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.edit-cooperativa-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.edit-cooperativa-btn i {
  font-size: 20px;
}

/* ========== Attendance Page Styles ========== */
.attendance-page {
  background-color: var(--background);
  min-height: calc(100vh - 70px);
}

/* Member Attendance View */
.attendance-status-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon.in {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.status-icon.out {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.status-icon i {
  font-size: 40px;
}

.status-info {
  flex: 1;
}

.status-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.status-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.last-action {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-punch-modern {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(98, 0, 238, 0.3);
}

.btn-punch-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 0, 238, 0.4);
}

.btn-punch-modern.out {
  background: #f44336;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-punch-modern.out:hover {
  background: #d32f2f;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.btn-punch-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.punch-spinner {
  margin-left: 0.5rem;
}

/* Attendance Stats */
.attendance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-card i {
  font-size: 32px;
  background: rgba(98, 0, 238, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* History Section */
.history-container {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.filter-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.filter-btn:hover {
  background: var(--primary-dark);
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.type-badge.in {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.type-badge.out {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.type-badge i {
  font-size: 14px;
}

.timestamp-cell {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.timestamp-cell .date {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.timestamp-cell .time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.validity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.validity-badge.valid {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.validity-badge.invalid {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.validity-badge i {
  font-size: 16px;
}

.location-icon {
  color: var(--text-secondary);
  font-size: 18px;
}

.no-location {
  color: var(--text-disabled);
}

.invalid-entry {
  opacity: 0.6;
}

/* Admin Attendance View */
.admin-attendance-header {
  margin-bottom: 2rem;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--primary);
}

.summary-card i {
  font-size: 40px;
  color: var(--primary);
  background: rgba(98, 0, 238, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Attendance Tabs */
.attendance-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(98, 0, 238, 0.3);
}

/* Removed conflicting .tab-content display styles
   Tab visibility is controlled by .tab-pane classes */

/* Current Attendance Grid */
.current-attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.presence-section,
.absence-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.presence-section h3,
.absence-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.presence-section h3 i {
  color: #4caf50;
}

.absence-section h3 i {
  color: #f44336;
}

.member-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.member-card:hover {
  background: rgba(0, 0, 0, 0.05);
}

.member-card.present {
  border-left: 3px solid #4caf50;
}

.member-card.absent {
  border-left: 3px solid #f44336;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.member-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.member-info {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-weight: 500;
  color: var(--text-primary);
}

.member-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* History Filters */
.history-filters {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 0.875rem;
  background: white;
}

.btn-filter {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.btn-filter:hover {
  background: var(--primary-dark);
}

.member-cell {
  display: flex;
  align-items: center;
}

.duration-badge {
  background: rgba(98, 0, 238, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pending-exit {
  color: #ff9800;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Reports Tab */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.report-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.report-card h3 i {
  color: var(--primary);
}

.report-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.btn-generate {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-generate:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .attendance-status-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-summary,
  .attendance-stats {
    grid-template-columns: 1fr;
  }
  
  .current-attendance-grid {
    grid-template-columns: 1fr;
  }
  
  .history-filters {
    flex-direction: column;
  }
  
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* My Commissions Summary */
.my-commissions-summary {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.summary-header {
  margin-bottom: 1.5rem;
}

.summary-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-primary);
}

.summary-header h2 i {
  color: var(--primary);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.no-commission-card {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.no-commission-card i {
  font-size: 48px;
  color: var(--text-disabled);
  margin-bottom: 1rem;
}

.my-commission-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
  border: 2px solid transparent;
}

.my-commission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.commission-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commission-badge.obra {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.commission-badge.permanentes {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.commission-badge.convivencia {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.commission-badge i {
  font-size: 32px;
}

.commission-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.commission-role {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.25rem;
}

.role-badge.titular {
  background: rgba(98, 0, 238, 0.1);
  color: var(--primary);
}

.role-badge.suplente {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

.member-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-style: italic;
}

.member-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.commission-stage {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Commission Stages Tabs */
.commission-stages {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stage-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.stage-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(98, 0, 238, 0.3);
}

/* Commissions Grid */
.commissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 64px;
  color: var(--text-disabled);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.commission-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.commission-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.commission-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commission-icon.obra {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.commission-icon.permanentes {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.commission-icon.convivencia {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.commission-icon i {
  font-size: 24px;
}

.commission-title h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.stage-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.stage-label.obra {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.stage-label.permanentes {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.stage-label.convivencia {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

/* Commission Stats */
.commission-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 1rem;
}

.commission-stats .stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Commission Members */
.commission-members {
  margin-bottom: 1rem;
}

.no-members {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 0;
  font-style: italic;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.role-group h4 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.member-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.member-item.suplente {
  opacity: 0.8;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.member-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.you-badge {
  background: var(--primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Commission Actions */
.commission-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}

.contact-commission-btn {
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.contact-commission-btn:hover {
  background: var(--primary);
  color: white;
}

/* Admin Commissions Page */
.admin-commissions-page {
  max-width: 100%;
  overflow-x: hidden;
}

.commissions-container {
  max-width: 100%;
  padding: 1rem;
}

/* Commission Statistics */
.commission-statistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Create Commission Section */
.create-commission-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.create-commission-section h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.create-commission-form .form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.create-commission-form .form-group {
  flex: 1;
}

.create-commission-form .btn-primary {
  flex-shrink: 0;
}

/* Commissions Management */
.commissions-management {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.commissions-management h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.commissions-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.commissions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.commissions-table th {
  background: rgba(0, 0, 0, 0.02);
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--divider);
}

.commissions-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.commission-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.commission-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.commission-name {
  font-weight: 500;
  color: var(--text-primary);
}

/* Commission Description */
.commission-description {
  max-width: 300px;
  position: relative;
}

.description-text {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.description-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.description-toggle:hover {
  color: var(--primary-dark);
}

.no-description {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.875rem;
}

.stage-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Members List Cell */
.members-list-cell {
  position: relative;
}

.no-members {
  color: var(--text-secondary);
  font-style: italic;
}

.members-preview {
  display: flex;
  align-items: center;
  gap: -8px;
  margin-bottom: 0.5rem;
}

.members-preview .member-avatar {
  border: 2px solid white;
  z-index: 1;
}

.members-preview .member-avatar:nth-child(2) {
  margin-left: -8px;
  z-index: 2;
}

.members-preview .member-avatar:nth-child(3) {
  margin-left: -8px;
  z-index: 3;
}

.member-count {
  margin-left: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.view-members-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.view-members-btn:hover {
  color: var(--primary-dark);
}

/* Add Member Form */
.add-member-form {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
}

.add-member-form select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 0.8rem;
  background: white;
  min-width: 100px;
  max-width: 150px;
}

.add-member-form input[type="text"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  font-size: 0.8rem;
  min-width: 80px;
  max-width: 120px;
}

.btn-add-member {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  min-width: 32px;
  height: 32px;
}

.btn-add-member:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-add-member:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-add-member i {
  font-size: 18px;
}

/* Actions Cell */
.actions-cell {
  white-space: nowrap;
}

.btn-icon {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-icon.delete-btn:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.btn-icon i {
  font-size: 20px;
}

.btn-icon.small {
  padding: 0.25rem;
}

.btn-icon.small i {
  font-size: 16px;
}

/* Members Detail Row */
.members-detail-row td {
  background: rgba(98, 0, 238, 0.02);
  padding: 0;
}

.members-detail-container {
  padding: 1.5rem;
}

.members-detail-container h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.role-section h5 {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.member-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Users Without Commission */
.users-without-commission {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.users-without-commission h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.all-assigned {
  color: var(--text-secondary);
  font-style: italic;
}

.unassigned-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.unassigned-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px dashed var(--divider);
}

.user-name {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .commission-stages {
    flex-wrap: wrap;
  }
  
  .stage-tab {
    flex: 1 1 calc(50% - 0.25rem);
  }
  
  .commissions-grid {
    grid-template-columns: 1fr;
  }
  
  .create-commission-form .form-row {
    flex-direction: column;
  }
  
  .create-commission-form .btn-primary {
    width: 100%;
  }
  
  .add-member-form {
    flex-direction: column;
  }
  
  .add-member-form select,
  .btn-add-member {
    width: 100%;
  }
  
  .commission-statistics {
    grid-template-columns: 1fr 1fr;
  }
}

/* Accounting Styles */

.accounting-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.accounting-header .subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Financial Summary Cards */
.financial-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.financial-summary .summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.financial-summary .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.summary-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-card.income .card-icon {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

.summary-card.expenses .card-icon {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.summary-card.balance .card-icon {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
  color: white;
}

.summary-card.capital .card-icon {
  background: linear-gradient(135deg, #ff9800, #ffa726);
  color: white;
}

.summary-card .card-icon i {
  font-size: 30px;
}

.summary-card .card-content h3 {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 5px 0;
  font-weight: normal;
}

.summary-card .amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.summary-card .amount.positive {
  color: #4caf50;
}

.summary-card .amount.negative {
  color: #f44336;
}

.summary-card .period {
  font-size: 0.85rem;
  color: #999;
}

/* Accounting Tabs */
.accounting-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 2px;
  overflow-x: auto;
}

.accounting-tabs .tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.accounting-tabs .tab-button:hover {
  color: #1976d2;
  background: rgba(25, 118, 210, 0.05);
}

.accounting-tabs .tab-button.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
  font-weight: 500;
}

.accounting-tabs .tab-button i {
  font-size: 20px;
}

/* Tab Content Styling */
.admin-accounting .tab-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Categories Styling */
.admin-accounting-categories .page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.category-create {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.category-create form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.category-create input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.category-create .btn {
  padding: 10px 25px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-create .btn:hover {
  background: #1565c0;
}

/* Categories Table */
.categories-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.categories-table thead {
  background: #f5f5f5;
}

.categories-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.categories-table td {
  padding: 15px;
  border-top: 1px solid #eee;
}

.categories-table tbody tr:hover {
  background: #f8f9fa;
}

.categories-table form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.categories-table input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.categories-table .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #1976d2;
  color: white;
}

.categories-table .btn-sm:hover {
  background: #1565c0;
}

.categories-table .btn-danger {
  background: #dc3545;
}

.categories-table .btn-danger:hover {
  background: #c82333;
}

/* Expenses Styling */
.admin-accounting-expenses .page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.expense-create {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.expense-create form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.expense-create select,
.expense-create input[type="date"],
.expense-create input[type="text"],
.expense-create input[type="number"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.expense-create .btn {
  padding: 10px 25px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.expense-create .btn:hover {
  background: #1565c0;
}

/* Expenses Table */
.expenses-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.expenses-table thead {
  background: #f5f5f5;
}

.expenses-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expenses-table td {
  padding: 15px;
  border-top: 1px solid #eee;
}

.expenses-table tbody tr:hover {
  background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .financial-summary {
    grid-template-columns: 1fr;
  }

  .accounting-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .accounting-tabs .tab-button {
    flex-shrink: 0;
  }

  .expense-create form {
    grid-template-columns: 1fr;
  }

  .categories-table,
  .expenses-table {
    font-size: 0.9rem;
  }

  .categories-table td form {
    flex-direction: column;
    align-items: stretch;
  }

  .categories-table input[type="text"],
  .categories-table .btn-sm {
    width: 100%;
  }
}
/* Accounting Styles - End */

/* Attendance Add Record Button Styles */
.add-record-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(98, 0, 238, 0.2) !important;
}

.add-record-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(98, 0, 238, 0.3) !important;
}

.add-record-btn .material-icons {
  font-size: 24px !important;
  margin-bottom: 4px !important;
  margin-right: 0 !important;
}

.add-record-btn span {
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.add-record-btn small {
  font-size: 11px !important;
  opacity: 0.9 !important;
  margin-top: 2px !important;
  font-weight: 400 !important;
}

.add-record-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.add-record-btn:hover::before {
  left: 100%;
}


/* Intro.js Custom Styles */
.introjs-skipbutton {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8) !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #666 !important;
  cursor: pointer !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.introjs-skipbutton:hover {
  background: linear-gradient(135deg, #e8e8e8, #ddd) !important;
  color: #333 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.introjs-skipbutton:active {
  transform: scale(0.95) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Only style appearance, not positioning */
.introjs-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.introjs-tooltipbuttons {
  text-align: center !important;
  padding-top: 15px !important;
}

.introjs-tooltipbuttons .introjs-button {
  background: var(--primary, #6200ee) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  margin: 0 4px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}

.introjs-tooltipbuttons .introjs-button:hover {
  background: var(--primary-dark, #3700b3) !important;
}

.introjs-tooltipbuttons .introjs-prevbutton {
  background: #757575 !important;
}

.introjs-tooltipbuttons .introjs-prevbutton:hover {
  background: #616161 !important;
}

/* Llamados Page Specific Styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-badge.active {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.status-badge.pending {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.status-badge.expired {
  background: rgba(117, 117, 117, 0.1);
  color: #757575;
}

.meta-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.stat-card-header {
  margin-bottom: 1rem;
}

.stat-card-content {
  flex: 1;
}

.stat-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.stat-card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stat-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(98, 0, 238, 0.08);
  border-radius: 50%;
  margin-right: 1rem;
}

.stat-card-icon i {
  color: var(--primary);
  font-size: 1.5rem;
}

.stat-card-details {
  flex: 1;
}

.btn-danger-outline {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
}

.btn-danger-outline:hover {
  background: var(--error);
  color: white;
}

.section-count {
  background: rgba(98, 0, 238, 0.08);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Capital Social Styles */
.capital-summary .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  background: var(--background);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-item.total {
  background: rgba(98, 0, 238, 0.08);
  border: 2px solid var(--primary);
}

.summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(98, 0, 238, 0.1);
  margin-right: 1rem;
}

.summary-item.total .summary-icon {
  background: var(--primary);
}

.summary-icon i {
  color: var(--primary);
  font-size: 28px;
}

.summary-item.total .summary-icon i {
  color: white;
}

.summary-content {
  flex: 1;
}

.summary-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.summary-value {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.summary-item.total .summary-value {
  color: var(--primary);
  font-size: 2rem;
}

.summary-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Capital Social Page Styles */
.capital-social-container {
  max-width: 1200px;
  margin: 0 auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-section {
  margin-top: 2rem;
}

.info-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-header i {
  color: var(--primary);
  font-size: 1.5rem;
}

.info-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.info-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-content li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-content li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.info-content strong {
  color: var(--text-primary);
}

/* Contributions Tab Styles */
.contribution-create h3,
.contributions-list h3 {
  margin-bottom: 15px;
  color: #555;
  font-size: 1.1rem;
}

.contribution-form {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.contribution-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contribution-form .form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.contributions-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contributions-table th,
.contributions-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.contributions-table th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.contributions-table tbody tr:hover {
  background: rgba(98, 0, 238, 0.02);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(98, 0, 238, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.contribution-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

.contribution-type.capitalSocial {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.contribution-type.operationalExpenses {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.contribution-type.hoursHelp {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.contribution-type i {
  font-size: 16px;
}

.amount-value {
  color: #4caf50;
  font-weight: 600;
}

.hours-value {
  color: #2196f3;
  font-weight: 600;
}

.no-value {
  color: var(--text-disabled);
  font-style: italic;
}

.date-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.description-value {
  color: var(--text-secondary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

/* About Page Styles */
.about-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background) 0%, rgba(98, 0, 238, 0.05) 100%);
  padding: 2rem 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.about-hero {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.about-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(98, 0, 238, 0.3);
}

.about-logo i {
  color: white;
  font-size: 64px;
}

.about-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sections */
.about-section {
  margin-bottom: 4rem;
  text-align: center;
}

.about-section h2 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(98, 0, 238, 0.1), rgba(98, 0, 238, 0.2));
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  color: var(--primary);
  font-size: 40px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Technology Stack */
.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(98, 0, 238, 0.1);
  border-radius: 8px;
}

.tech-icon i {
  color: var(--primary);
  font-size: 24px;
}

.tech-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Team Grid */
.team-grid {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.team-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 300px;
}

.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.team-avatar i {
  color: white;
  font-size: 48px;
}

.team-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(98, 0, 238, 0.08);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.team-link:hover {
  background: rgba(98, 0, 238, 0.15);
}

.team-link i {
  font-size: 18px;
}

/* Company Links */
.company-links {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.company-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.company-link i {
  font-size: 24px;
}

/* About Footer */
.about-footer {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 3rem;
}

.version-info {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--divider);
}

.version-label {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.version-number {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-link i {
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-container {
    padding: 0 1rem;
  }
  
  .about-hero {
    padding: 2rem 0;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .about-subtitle {
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tech-stack {
    flex-direction: column;
    align-items: center;
  }
  
  .team-links {
    flex-direction: column;
  }
}

/* Override stats-cards for llamados to display as a single column grid */
.admin-section .stats-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Special styling for llamados cards to display properly */
.stat-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Modal Form Styles for Agenda */
.modal-form-group {
  margin-bottom: 1.25rem;
}

.modal-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="date"],
.modal-form-group input[type="time"],
.modal-form-group input[type="number"],
.modal-form-group textarea,
.modal-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--divider);
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: var(--background);
  transition: border-color 0.2s ease;
}

.modal-form-group input[type="text"]:focus,
.modal-form-group input[type="date"]:focus,
.modal-form-group input[type="time"]:focus,
.modal-form-group input[type="number"]:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
}

/* Form Row for horizontal layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Three column layout for date and time fields */
.form-row:has(input[type="date"]) {
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 600px) {
  .form-row:has(input[type="date"]) {
    grid-template-columns: 1fr;
  }
}

/* Toggle Container Styles */
/* .toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
} */

.toggle-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.toggle-label {
  flex: 1;
  min-width: 0; /* Prevents text overflow */
}

.toggle-label label {
  margin-bottom: 0;
  display: block;
}

/* Cost Input Container */
.cost-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.cost-currency {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  pointer-events: none;
}

.cost-input-container input[type="number"] {
  padding-left: 2rem;
}

/* Color Options */
.color-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.color-option {
  position: relative;
  cursor: pointer;
}

.color-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.color-circle {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover .color-circle {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.color-option input[type="radio"]:checked + .color-circle {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--text-primary);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--divider);
  background-color: var(--background);
}

/* Fix modal positioning */
#add-event-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#add-event-modal .modal-content {
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#add-event-modal .modal-body {
  flex: 1;
  overflow-x: hidden;
}

/* Map container styles */
.map-container {
  margin-top: 1rem;
}

.map-controls {
  margin-bottom: 1rem;
}

.map-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#geofence-map {
  cursor: crosshair;
  user-select: none;
}

.geofence-info {
  display: flex;
  align-items: center;
  background-color: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.2);
  color: #1976d2;
}

/* Cost input container */
.cost-input-container {
  display: flex;
  align-items: center;
  position: relative;
}

.cost-currency {
  position: absolute;
  left: 12px;
  color: #666;
  font-weight: 500;
  font-size: 1rem;
}

#event-cost {
  padding-left: 30px;
  width: 100%;
}

/* Recurring event styles */
.weekday-option, .monthday-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  text-align: center;
}

.weekday-option:hover, .monthday-option:hover {
  border-color: #4CAF50;
  background-color: #f8f9fa;
}

.weekday-option input[type="checkbox"],
.monthday-option input[type="checkbox"] {
  margin: 0;
  margin-bottom: 4px;
}

.weekday-option span, .monthday-option span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

.weekday-option input[type="checkbox"]:checked + span,
.monthday-option input[type="checkbox"]:checked + span {
  color: #4CAF50;
}

.weekday-option:has(input:checked),
.monthday-option:has(input:checked) {
  border-color: #4CAF50;
  background-color: #e8f5e8;
}

.monthdays-grid {
  max-height: 150px;
  overflow-y: auto;
}

/* Events widget styles */
.events-widget .events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.events-widget .event-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #1976D2;
  position: relative;
  transition: all 0.2s ease;
}

.events-widget .event-item:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.events-widget .event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.events-widget .event-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1976D2;
  line-height: 1;
}

.events-widget .event-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.5px;
}

.events-widget .event-info {
  flex: 1;
  min-width: 0;
}

.events-widget .event-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-widget .event-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.events-widget .event-time,
.events-widget .event-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #666;
}

.events-widget .event-time i,
.events-widget .event-location i {
  font-size: 1rem;
  color: #999;
}

.events-widget .event-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.events-widget .event-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.events-widget .event-badge.checkin {
  background-color: #4CAF50;
}

.events-widget .event-badge.checkout {
  background-color: #FF9800;
}

.events-widget .event-badge i {
  font-size: 0.875rem;
}

.events-widget .event-color {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 8px 8px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #add-event-modal .modal-content {
    width: 95vw;
    margin: 1rem;
  }
  
  .toggle-container {
    /* Keep flex row layout on mobile for better space usage */
    gap: 0.75rem;
  }
  
  .toggle {
    margin-top: 0.25rem; /* Align with first line of text */
  }
  
  .toggle-label small {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .map-buttons {
    flex-direction: column;
  }
  
  .map-buttons .btn {
    width: 100%;
  }
  
  /* Events widget responsive */
  .events-widget .event-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .events-widget .event-date {
    min-width: 50px;
    padding: 0.4rem;
  }
  
  .events-widget .event-day {
    font-size: 1.25rem;
  }
  
  .events-widget .event-month {
    font-size: 0.7rem;
  }
  
  .events-widget .event-title {
    font-size: 0.9rem;
  }
  
  .events-widget .event-details {
    gap: 0.125rem;
  }
  
  .events-widget .event-time,
  .events-widget .event-location {
    font-size: 0.8rem;
  }
  
  .events-widget .event-badges {
    gap: 0.25rem;
  }
  
  .events-widget .event-badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* Enhanced Payments Widget Styles */
.payments-widget .widget-header {
  position: relative;
}

.widget-badge {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background-color: #ff5252;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
  }
  100% {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.payment-summary-cards {
  margin-bottom: 1.5rem;
}

.summary-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--divider);
  transition: all 0.3s ease;
}

.summary-card.has-pending {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-color: rgba(255, 82, 82, 0.2);
}

.summary-card.all-clear {
  background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
  border-color: rgba(76, 175, 80, 0.2);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-card.has-pending .summary-icon {
  background-color: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

.summary-card.all-clear .summary-icon {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.summary-icon i {
  font-size: 1.5rem;
}

.summary-info {
  flex: 1;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.summary-action:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

.summary-action i {
  font-size: 1rem;
}

/* Recent Payments Section */
.recent-payments-section {
  margin-bottom: 1rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider);
}

.section-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Timeline Style */
.payments-timeline {
  position: relative;
  padding-left: 2rem;
}

.payments-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background-color: var(--divider);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item.last {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 2px solid var(--divider);
  z-index: 1;
}

.timeline-marker.completed {
  background-color: #4caf50;
  border-color: #4caf50;
  color: white;
}

.timeline-marker.pending {
  background-color: #ff9800;
  border-color: #ff9800;
  color: white;
}

.timeline-marker.rejected {
  background-color: #f44336;
  border-color: #f44336;
  color: white;
}

.timeline-marker i {
  font-size: 0.9rem;
}

.timeline-content {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

.timeline-content:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.payment-category {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.payment-category.cuota {
  color: #1976d2;
}

.payment-category.aporte {
  color: #388e3c;
}

.payment-category.multa {
  color: #d32f2f;
}

.payment-category.producto {
  color: #7b1fa2;
}

.payment-category.evento {
  color: #f57c00;
}

.payment-amount {
  font-weight: 600;
  font-size: 1.1rem;
}

.payment-amount.completed {
  color: #4caf50;
}

.payment-amount.pending {
  color: #ff9800;
}

.payment-amount.rejected {
  color: #f44336;
}

.timeline-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.payment-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.payment-date i {
  font-size: 0.9rem;
}

.payment-status-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.payment-status-text.pending {
  color: #ff9800;
}

.payment-status-text.completed {
  color: #4caf50;
}

.payment-status-text i {
  font-size: 0.9rem;
}

/* Empty State */
.empty-state-modern {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--text-disabled);
}

.empty-state-modern h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.empty-state-modern p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Widget Footer */
.payments-widget .widget-footer {
  padding: 1rem;
  margin: -1rem -1rem -1rem -1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--divider);
  border-radius: 0 0 8px 8px;
}

.btn-primary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(98, 0, 238, 0.2);
  text-decoration: none;
  color: white;
}

.btn-primary-link i {
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .payments-timeline {
    padding-left: 1.5rem;
  }
  
  .payments-timeline::before {
    left: 0.5rem;
  }
  
  .timeline-marker {
    left: -1.25rem;
    width: 24px;
    height: 24px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .timeline-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .summary-action {
    margin-top: 0.75rem;
  }
}

/* Enhanced Debt Form Styles */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 2px;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group.half {
  flex: 1;
  min-width: 0;
}

/* Responsive form rows */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group.half {
    width: 100%;
  }
}

/* Modal scrollbar styling */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Enhanced form inputs for better visibility */
.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--divider);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(98, 0, 238, 0.1);
}

/* Required field indicator */
.form-group label:has(+ [required])::after,
.form-group label:has(+ select[required])::after,
.form-group label:has(+ textarea[required])::after {
  content: ' *';
  color: #e53935;
  font-weight: normal;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
}

/* Info notice improvements */
.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-notice i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Recurring payment indicators */
.payment-recurring-indicator {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  gap: 4px;
}

.payment-recurring-indicator i {
  font-size: 12px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Debt indicators in admin view */
.debt-recurring-indicator {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
  gap: 4px;
}

.debt-recurring-indicator i {
  font-size: 14px;
}

.debt-template-indicator {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
  gap: 4px;
}

.debt-template-indicator i {
  font-size: 14px;
}

