/* Component Classes for Asistencia App */
/* Extends main.css with reusable component classes */

/* ===== TYPOGRAPHY SYSTEM ===== */

/* Heading sizes */
.text-2xl {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.text-xl {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.text-lg {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.text-base {
  font-size: 16px;
  line-height: 1.5;
}

.text-sm {
  font-size: 14px;
  line-height: 1.4;
}

.text-xs {
  font-size: 12px;
  line-height: 1.3;
}

/* Font weights */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text colors */
.text-gray-900 {
  color: #111827;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-red-600 {
  color: #dc2626;
}

.text-green-600 {
  color: #059669;
}

.text-blue-600 {
  color: #2563eb;
}

/* Text transforms */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

/* Letter spacing */
.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

/* ===== LAYOUT UTILITIES ===== */

/* Flexbox utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 1 1 auto;
}

.flex-none {
  flex: none;
}

/* Justify content */
.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

/* Align items */
.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

/* Align self */
.self-start {
  align-self: flex-start;
}

.self-end {
  align-self: flex-end;
}

.self-center {
  align-self: center;
}

.self-stretch {
  align-self: stretch;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Gap utilities */
.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* ===== SPACING UTILITIES ===== */

/* Margin */
.m-0 {
  margin: 0;
}
.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.m-3 {
  margin: 0.75rem;
}
.m-4 {
  margin: 1rem;
}
.m-5 {
  margin: 1.25rem;
}
.m-6 {
  margin: 1.5rem;
}
.m-8 {
  margin: 2rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}

.mr-0 {
  margin-right: 0;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mr-5 {
  margin-right: 1.25rem;
}
.mr-6 {
  margin-right: 1.5rem;
}
.mr-8 {
  margin-right: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}

.ml-0 {
  margin-left: 0;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-5 {
  margin-left: 1.25rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-8 {
  margin-left: 2rem;
}

/* Padding */
.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.pt-0 {
  padding-top: 0;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-5 {
  padding-top: 1.25rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-8 {
  padding-top: 2rem;
}

.pr-0 {
  padding-right: 0;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pr-5 {
  padding-right: 1.25rem;
}
.pr-6 {
  padding-right: 1.5rem;
}
.pr-8 {
  padding-right: 2rem;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-8 {
  padding-bottom: 2rem;
}

.pl-0 {
  padding-left: 0;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pl-8 {
  padding-left: 2rem;
}

/* ===== FORM ELEMENTS ===== */

/* Form controls */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: white;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.form-control-lg {
  padding: 12px 16px;
  font-size: 16px;
}

/* Form labels */
.form-label {
  display: block;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-label-sm {
  font-size: 12px;
  margin-bottom: 4px;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}

.form-group-sm {
  margin-bottom: 12px;
}

/* ===== BUTTONS ===== */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button sizes */
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 18px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Button variants */
.btn-primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.btn-primary:hover:not(:disabled) {
  background: #1f2937;
  border-color: #1f2937;
}

.btn-secondary {
  background: #f9fafb;
  color: #374151;
  border-color: #e5e7eb;
}

.btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.btn-outline {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
}

.btn-outline:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: #f9fafb;
}

/* ===== CARDS & BOXES ===== */

/* Card component */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-sm {
  padding: 16px;
}

.card-lg {
  padding: 24px;
}

.card-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Box component */
.box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.box-sm {
  padding: 12px;
}

.box-lg {
  padding: 20px;
}

/* ===== STATUS BADGES ===== */

/* Base badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-sm {
  padding: 2px 6px;
  font-size: 10px;
}

.badge-lg {
  padding: 4px 12px;
  font-size: 14px;
}

/* Badge variants */
.badge-default {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-exempt {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-inactive {
  background: #fef2f2;
  color: #dc2626;
}

/* ===== ALERTS & MESSAGES ===== */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ===== DIVIDERS ===== */

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.divider-sm {
  margin: 8px 0;
}

.divider-lg {
  margin: 24px 0;
}

/* ===== BORDERS ===== */

.border {
  border: 1px solid #e5e7eb;
}

.border-t {
  border-top: 1px solid #e5e7eb;
}

.border-r {
  border-right: 1px solid #e5e7eb;
}

.border-b {
  border-bottom: 1px solid #e5e7eb;
}

.border-l {
  border-left: 1px solid #e5e7eb;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

/* Border radius */
.rounded {
  border-radius: 8px;
}

.rounded-sm {
  border-radius: 6px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-xl {
  border-radius: 16px;
}

/* ===== BACKGROUNDS ===== */

.bg-white {
  background: white;
}

.bg-gray-50 {
  background: #f9fafb;
}

.bg-gray-100 {
  background: #f3f4f6;
}

.bg-gray-200 {
  background: #e5e7eb;
}

.bg-success {
  background: #f0fdf4;
}

.bg-error {
  background: #fef2f2;
}

.bg-info {
  background: #eff6ff;
}

/* ===== SHADOWS ===== */

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== WIDTH & HEIGHT ===== */

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-full {
  height: 100%;
}

.h-auto {
  height: auto;
}

.max-w-full {
  max-width: 100%;
}

/* ===== POSITIONING ===== */

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* ===== Z-INDEX ===== */
.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* ===== OVERFLOW ===== */

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-scroll {
  overflow: scroll;
}

/* ===== CURSOR ===== */

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* ===== TRANSITIONS ===== */

.transition {
  transition: all 0.15s ease-in-out;
}

.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.transition-opacity {
  transition: opacity 0.15s ease-in-out;
}

.transition-transform {
  transition: transform 0.15s ease-in-out;
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Responsive grid */
@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== DASHBOARD SPECIFIC ===== */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-section {
  margin-bottom: 24px;
}

.dashboard-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.dashboard-subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.dashboard-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

/* ===== EMPLOYEE PROFILE ===== */

.employee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.employee-name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.employee-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.employee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.employee-card {
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.employee-card-title {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.employee-form-group {
  margin-bottom: 16px;
}

.employee-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.employee-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ===== TABLE ENHANCEMENTS ===== */

.table-container {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.table-header {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.table-row:hover {
  background: #f9fafb;
}

.table-cell {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

/* ===== UTILITY CLASSES ===== */

/* Display */
.block {
  display: block;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none;
}

/* Visibility */
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

/* White space */
.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre {
  white-space: pre;
}

.whitespace-pre-line {
  white-space: pre-line;
}

/* Text alignment */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}

/* Vertical alignment */
.align-top {
  vertical-align: top;
}
.align-middle {
  vertical-align: middle;
}
.align-bottom {
  vertical-align: bottom;
}

/* Opacity */
.opacity-0 {
  opacity: 0;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-100 {
  opacity: 1;
}

/* Pointer events */
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}

/* User select */
.select-none {
  user-select: none;
}
.select-text {
  user-select: text;
}
.select-all {
  user-select: all;
}

/* Resize */
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.resize-x {
  resize: horizontal;
}
.resize {
  resize: both;
}

/* Scroll behavior */
.scroll-smooth {
  scroll-behavior: smooth;
}
.scroll-auto {
  scroll-behavior: auto;
}

/* ===== NOTES TABS ===== */

.notes-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.notes-tab:hover {
  color: #111827;
}

.notes-tab.active {
  color: #111827;
  border-color: #111827;
}

.notes-tab-content {
  display: block;
}

.notes-tab-content[style*="display: none"] {
  display: none !important;
}

/* ===== ATTACHMENT GALLERY ===== */

.attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.attachment-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  background: white;
}

.attachment-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 6px;
}

.attachment-icon {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 3px;
  margin-bottom: 6px;
  font-size: 3em;
}

.attachment-filename {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 3px;
  word-break: break-word;
}

.attachment-size {
  font-size: 0.75em;
  color: #999;
  margin-bottom: 6px;
}

.attachment-note {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 6px;
}

/* ===== PRINT STYLES ===== */

.print-break {
  page-break-before: always;
}

.print-no-break {
  page-break-inside: avoid;
}

.print-break-after {
  page-break-after: always;
}

/* ===== DAYS GRID ===== */

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

.day-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  page-break-inside: avoid;
}

.day-card-header {
  font-weight: 500;
  color: #111827;
  margin-bottom: 12px;
  font-size: 0.875em;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 8px;
}

.punch-section {
  margin-bottom: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.punch-section:last-child {
  margin-bottom: 0;
}

.punch-label {
  font-size: 0.75em;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.punch-time {
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

.punch-address {
  font-size: 0.9em;
  color: #666;
  margin-top: 3px;
}

.punch-geo {
  font-size: 0.9em;
  color: #999;
  margin-top: 2px;
}

.punch-map-link {
  font-size: 0.65em;
  margin-top: 3px;
}

.punch-map-link a {
  color: #2196f3;
  text-decoration: none;
}

.punch-no-gps {
  font-size: 0.9em;
  color: #f57c00;
  margin-top: 3px;
  font-style: italic;
}

.punch-photo {
  width: 100%;
  height: auto;
  margin-top: 6px;
  border-radius: 3px;
  max-height: 120px;
  object-fit: cover;
}

.punch-no-entry {
  color: #999;
  font-size: 0.85em;
}

.punch-missing-exit {
  color: #ff9800;
  font-size: 0.8em;
  font-weight: 600;
}

/* ===== STATISTICS CARDS ===== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0 30px 0;
}

.stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 12px;
}

.stat-label {
  font-size: 0.75em;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2em;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 0.75em;
  color: #9ca3af;
}

.stat-dates {
  font-size: 0.75em;
  color: #9ca3af;
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== PRIZE SECTION ===== */

.prize-section {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.prize-label {
  font-size: 0.75em;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prize-value {
  font-size: 2em;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.prize-status {
  font-size: 0.875em;
  color: #6b7280;
  margin-bottom: 12px;
}

.prize-details {
  margin-top: 12px;
}

.prize-summary {
  cursor: pointer;
  font-size: 0.8125em;
  color: #6b7280;
  font-weight: 500;
}

.prize-rules {
  margin-top: 8px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 0.8125em;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== OVERRIDE FORMS ===== */

.override-form-group {
  margin-bottom: 15px;
}

.override-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.override-form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

.override-form-file {
  width: 100%;
  font-size: 0.9em;
}

.override-form-help {
  font-size: 0.75em;
  color: #666;
  margin-top: 4px;
}

.override-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== VIOLATION INDICATORS ===== */

.violation-excused {
  margin-bottom: 6px;
  padding: 6px;
  background: #fff3e0;
  border-left: 3px solid #ff9800;
  border-radius: 3px;
  font-size: 0.8em;
}

.violation-overridden {
  margin-bottom: 6px;
  padding: 6px;
  background: #e8f5e9;
  border-left: 3px solid #4caf50;
  border-radius: 3px;
  font-size: 0.8em;
}

.violation-active {
  margin-bottom: 6px;
  padding: 6px;
  background: #ffebee;
  border-left: 3px solid #d32f2f;
  border-radius: 3px;
  font-size: 0.8em;
}

.violation-title {
  font-weight: 600;
}

.violation-reason {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
}

.violation-files {
  font-size: 0.75em;
  color: #2196f3;
  margin-top: 2px;
}

.violation-actions {
  margin-top: 6px;
  display: flex;
  gap: 4px;
}

/* ===== RESPONSIVE UTILITIES ===== */

@media print {
  .days-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .day-card {
    page-break-inside: avoid;
  }
}

@media (max-width: 1200px) {
  .days-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .days-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .days-grid {
    grid-template-columns: 1fr !important;
  }
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-break {
    page-break-before: always;
  }

  .print-break-after {
    page-break-after: always;
  }

  .print-no-break {
    page-break-inside: avoid;
  }
}
