.hidden {
  display: none !important;
}

.color-dot {
  width: 24px;
  height: 24px;
  background-color: var(--dot-color, #cccccc);
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ddd;
}

.choose-color-display {
  margin-right: 10px;
  border: 2px solid #444;
}

.color-grid {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fafafa;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(5, 20px);
  grid-gap: 10px;
  width: max-content;
}

.color-dot:hover {
  transform: scale(1.2);
  border-color: #666;
}

/* --- Form layout --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.5rem 0.7rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.wide {
  grid-column: span 2; /* make long fields like address stretch wider */
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* static/css/table_vw.css */
.view-container {
  padding: 1.2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--primary-color);
}

.view-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.view-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--navbar-color));
  color: var(--secondary-color);
}

.view-table th {
  padding: 0.5rem;
  text-align: left;
  font-weight: 550;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.view-table tbody tr {
  transition: var(--transition);
}

.view-table tbody tr a:hover {
  color: var(--secondary-color);
}

.view-table tbody tr:hover {
  background-color: var(--hover-bg);
}

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

tr.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Column specific styles */

.col-index {
  width: 1%;
  font-weight: 400;
}

.col-single {
  width: 7%;
  font-weight: 500;
}

.col-name {
  width: 15%;
  min-width: 10%;
  font-weight: 500;
}

.col-telemail {
  width: 15%;
  min-width: 8%;
  font-weight: 500;
  white-space: pre-line;
}

.col-number {
  width: 10%;
  font-weight: 500;
}

.col-text {
  width: 35%;
  min-width: 30%;
  font-weight: 500;
}

.col-description {
  width: 25%;
  min-width: 20%;
  /* color: var(--gray); */
}

.col-date {
  width: 10%;
  font-size: 0.85rem;
}

.col-created {
  width: 10%;
  /* color: var(--gray); */
  font-size: 0.7rem;
}

.col-icon {
  width: 7%;
  text-align: center;
  /* color: var(--gray); */
  font-size: 0.8rem;
}

.col-note {
  width: 10%;
  /* color: var(--gray); */
}

.col-actions {
  width: 7%;
  text-align: center;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-active {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-inactive {
  background-color: rgba(108, 117, 125, 0.1);
  color: var(--gray);
  border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.record-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.record-parishioner {
  background: #e0f2fe;
  color: #075985;
}

.record-baptism {
  background: #dcfce7;
  color: #166534;
}

.record-service {
  background: #fef3c7;
  color: #92400e;
}

.record-ocia {
  background: #ede9fe;
  color: #5b21b6;
}

.small-muted {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.sacrament-list {
  margin: 0;
  /* padding-left: 14px; */
}

.sacrament-list li {
  margin-bottom: 4px;
}

.sacrament-name {
  font-size: small;
  font-weight: bold;
}

.sacrament-detail {
  font-size: smaller;
  color: #333;
}
/* .text-muted {
  color: #6b7280;
} */

/* Responsive design */
@media (max-width: 1200px) {
  .view-container {
    padding: 1rem;
  }
  
  .view-table {
    font-size: 0.9rem;
  }
  
  .view-table th,
  .view-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 992px) {
  .view-table {
    display: block;
    overflow-x: auto;
  }
  
  .col-created,
  .col-description {
    display: none;
  }
}

@media (max-width: 768px) {
  .view-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .col-slug {
    display: none;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .btn-action {
    width: 100%;
  }
}

/* Loading animation */
/* .loading-row {
    animation: pulse 1.5s infinite;
} */

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
