/* ============================================
   ATTENDANCE MODULE STYLES
   ============================================ */

.attendance-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.attendance-actions {
  margin-bottom: 8px;
}

.btn-history-toggle {
  font-size: 12px !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.attendance-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--text-main);
}

.attendance-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-card {
  padding: 24px;
  gap: 12px;
  background-color: var(--primary-color) !important;
  color: #000000 !important;
  border-color: rgba(14, 15, 12, 0.08) !important;
}

.stats-card-label {
  font-size: 12px;
  color: rgba(14, 15, 12, 0.6) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stats-card-value {
  font-size: 64px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #000000 !important;
}

.stats-card-desc {
  font-size: 13px;
  color: rgba(14, 15, 12, 0.7) !important;
  font-weight: 700;
  margin-top: 4px;
}


/* Day Focus Cards (primarily used in Attendance & Dashboard) */
.day-focus-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.day-focus-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.premium-row {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
}

.premium-row:hover {
  transform: scale(1.02);
  background-color: #fff !important;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.premium-row td {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.premium-row:hover td {
  border-top-color: var(--border-color);
  border-bottom-color: var(--border-color);
}

.premium-row td:first-child {
  border-left: 1px solid transparent;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.premium-row:hover td:first-child {
  border-left-color: var(--border-color);
}

.premium-row td:last-child {
  border-right: 1px solid transparent;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.premium-row:hover td:last-child {
  border-right-color: var(--border-color);
}

.day-focus-card .day-header {
  line-height: 0.85;
}

.day-focus-card .day-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.day-focus-card .day-num {
  font-size: 80px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.05em;
}

.day-focus-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  width: fit-content;
  white-space: nowrap;
}

.day-focus-card .status-pill.ready {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.day-focus-card .status-pill.empty {
  background: #f1f3f5;
  color: var(--text-light);
}

/* Table Header Refinement */
.scheduler-table thead th {
  background-color: #f8f9f6 !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
}

/* ============================================
   MOBILE TIMESHEETS (WISE STYLE)
   ============================================ */
/* ============================================
   PERSONAL TIMESHEET VIEW (Employees)
   ============================================ */
#attendance-panel.personal-view {
  background-color: #f8f9f6 !important;
  padding: 16px !important;
  min-height: 100vh;
}

.m-ts-header {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(232, 235, 230, 0.5);
  position: sticky;
  top: 56px;
  z-index: 100;
}

.m-ts-back {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-ts-back span:first-child {
  font-weight: 400;
  color: #868685;
}

.m-ts-month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-ts-month-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.m-ts-month-name {
  font-size: 17px;
  font-weight: 900;
  color: #0e0f0c;
}

.m-ts-year-name {
  font-size: 11px;
  font-weight: 700;
  color: #868685;
}

.m-ts-labels {
  background: #ffffff;
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1.2fr;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(232, 235, 230, 0.5);
  position: sticky;
  top: 105px;
  z-index: 99;
}

.m-ts-labels span {
  font-size: 12px;
  font-weight: 700;
  color: #868685;
  text-align: center;
}

.m-ts-labels span:first-child {
  visibility: hidden;
}

.m-ts-list {
  padding: 16px 8px 120px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.m-ts-day-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.m-ts-day-info {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  color: #868685;
}

.m-ts-day-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.m-ts-day-date {
  font-size: 22px;
  font-weight: 900;
  color: #454745;
  line-height: 1;
}

.m-ts-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ebe6;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(14, 15, 12, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-ts-card:active {
  transform: scale(0.98);
  background-color: #f9faf8;
}

.m-ts-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.m-ts-card-header {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #868685;
}

.m-ts-role {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-ts-dept-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  max-width: 100%;
}

.m-ts-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 30px;
  padding: 10px 0;
  align-items: center;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #0e0f0c;
}

.m-ts-row-actual {
  background-color: #fffde6;
  border-top: 1px solid #fff3cc;
  border-bottom: 1px solid #fff3cc;
}

.m-ts-row-actual .time-val {
  position: relative;
  display: inline-block;
}

.m-ts-row-actual .time-val::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--warning);
}

.m-ts-row-scheduled {
  color: #868685;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}

.m-ts-chevron {
  color: #ccc;
  display: flex;
  justify-content: center;
}

.m-ts-day-off {
  height: 80px;
  background: repeating-linear-gradient(-45deg,
      #ffffff,
      #ffffff 10px,
      #f8f9f6 10px,
      #f8f9f6 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8ebe6;
  border-radius: 12px;
  flex: 1;
}

.m-ts-day-off-text {
  background: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #868685;
  border: 1px solid #e8ebe6;
}

.m-ts-summary {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e8ebe6;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  z-index: 100;
}

.m-ts-summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.m-ts-summary-label {
  font-size: 11px;
  font-weight: 700;
  color: #868685;
  text-transform: uppercase;
}

.m-ts-summary-val {
  font-size: 16px;
  font-weight: 900;
  color: #0e0f0c;
}

@media (max-width: 1024px) {
  .m-ts-labels {
    top: 56px;
  }

  .m-ts-summary {
    bottom: 0;
    padding-bottom: 24px;
  }
}


/* Attendance Record Detail View */
.btn-pill-primary {
  background: var(--primary-color);
  color: var(--primary-dark);
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-pill-primary:hover {
  transform: scale(1.05);
  background: #b1f08a;
  box-shadow: var(--shadow-md);
}

.btn-pill-primary:active {
  transform: scale(0.95);
}

.btn-pill-secondary {
  background: #f8f9f6;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pill-secondary:hover {
  transform: scale(1.05);
  background: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--text-main);
}

.btn-pill-secondary:active {
  transform: scale(0.95);
}


.m-ar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 0.85;
}

.m-ar-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary-dark);
  border: 1px solid rgba(22, 51, 0, 0.1);
}

.m-ar-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.m-ar-date {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.m-ar-grid {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.m-ar-grid-header,
.m-ar-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 12px;
  text-align: center;
  align-items: center;
}

.m-ar-grid-header {
  background: #f8f9f6;
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
}

.m-ar-grid-row {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
}

.m-ar-actual {
  border-bottom: 1px solid var(--border-color);
}

.m-ar-sched {
  background: #f8f9f6;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.m-ar-grid-footer {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.m-ar-warn {
  color: var(--danger);
}

.m-ar-status-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.badge-premium {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-success-premium {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(22, 51, 0, 0.1);
}

.badge-danger-premium {
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid rgba(208, 50, 56, 0.1);
}

.badge-neutral-premium {
  background: #f8f9f6;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.m-ar-section {
  margin-top: 24px;
}

.m-ar-section-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.m-ar-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-ar-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.m-ar-activity-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-ar-activity-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.m-ar-activity-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.m-ar-breaks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.m-ar-break-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9f6;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.m-ar-break-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.m-ar-break-times {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.m-ar-break-duration {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.m-ar-icon-warn {
  font-size: 18px;
}

.m-ar-icon-ok {
  color: var(--success);
  font-size: 16px;
}

.m-ar-icon-info {
  font-size: 16px;
}

/* Clock-In Modal Specifics */
.clock-modal-box {
  max-width: 850px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 0;
  overflow: hidden;
}

.clock-modal-form-side {
  padding: 32px;
  border-right: 1px solid var(--border-color);
}

.clock-modal-header {
  padding: 0;
  border: none;
  margin-bottom: 24px;
}

.clock-modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.readonly-input {
  background: var(--bg-color);
  cursor: not-allowed;
}

.clock-time-input {
  font-size: 18px !important;
  font-weight: 900 !important;
}

.clock-late-man-toggle {
  margin-bottom: 24px;
}

.clock-late-man-toggle .checkbox-item {
  font-weight: 700;
}

.finalize-btn {
  width: 100%;
}

.clock-modal-summary-side {
  background: var(--bg-color);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-title {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.clock-summary-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clock-modal-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-preview-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-preview-label {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
}

.summary-preview-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}