@charset "UTF-8";
/**
 * CloudHouse Custom Theme for daisyUI
 * リブランディング対応カスタムテーマ
 *
 * WCAG 2.1 AA準拠（全カラーで4.5:1以上のコントラスト比を達成）
 *
 * デザイン原則:
 * - 背景はニュートラル（白/薄グレー）、ブランドカラーはアクセントのみ
 * - エンタープライズソフトウェアとして長時間使用に配慮
 *
 * カラーマッピング:
 * - Primary: #0F4CA8 (CloudHouseブルー - 全シリーズ統一) - 8.02:1 (WCAG AAA)
 * - Info: #0F4CA8 (同じ) - 8.02:1 (WCAG AAA)
 * - Success: #008389 (ティール) - 4.56:1
 * - Warning: #F5AF32 (オレンジ背景) + #1A2142 (ダークブルー文字) - 15.67:1
 * - Error: #E03030 (赤) - 4.53:1
 * - Base: #FFFFFF (白) / #F8F9FA (薄グレー) / #1A2142 (ダークブルー文字) - 15.67:1
 */
[data-theme=cloudhouse] {
  color-scheme: light;
  /* Primary - CloudHouseブルー（統一） */
  --color-primary: #0F4CA8; /* CloudHouseブルー - 全シリーズ統一 */
  --color-primary-content: #FFFFFF;
  /* Success - CH採用カラー流用（調整後） */
  --color-success: #008389; /* 元 #009399 → WCAG AA準拠に調整 */
  --color-success-content: #FFFFFF;
  /* Info - CloudHouseブルー（変更なし） */
  --color-info: #0F4CA8; /* すでにWCAG AA準拠 */
  --color-info-content: #FFFFFF;
  /* Warning - オレンジ（背景色専用） */
  --color-warning: #F5AF32; /* 背景色として使用 */
  --color-warning-content: #1A2142; /* ダークブルー文字で高コントラスト */
  /* Error - 赤（調整後） */
  --color-error: #E03030; /* 元 #FF5B5B → WCAG AA準拠に調整 */
  --color-error-content: #FFFFFF;
  /* Base colors - 背景とテキスト */
  --color-base-100: #FFFFFF; /* カード背景（白） */
  --color-base-200: #F8F9FA; /* セカンダリ背景（薄いグレー） */
  --color-base-300: #E9ECEF; /* 区切りエリア（薄いグレー） */
  --color-base-content: #1A2142; /* メインテキスト（ダークブルー）*/
  /* Neutral - グレー（従来システム背景） */
  --color-neutral: #363A43; /* グレー */
  --color-neutral-content: #FFFFFF;
  /* Secondary - 現時点では未使用だがデフォルト値を保持 */
  --color-secondary: oklch(65% .241 354.308);
  --color-secondary-content: oklch(94% .028 342.258);
  /* Accent - 先進性を表現するグラデーション終点色 */
  --color-accent: #64F3FC; /* シアン（グラデーション用） */
  --color-accent-content: #1A2142; /* ダークブルー文字 */
  /* UI要素のサイズと丸み（daisyUIデフォルト維持） */
  --radius-selector: 0.5rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 1;
  --noise: 0;
}

/**
 * ダークモード無効化
 * タブレット端末でも常にライトテーマ表示
 */
[data-theme=cloudhouse] {
  color-scheme: light only;
}

.qr-print-container {
  width: 100%;
}
.qr-print-container .qr-print-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 20px;
  padding: var(--page-margin, 10mm);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.qr-print-container .qr-print-page:last-child {
  margin-bottom: 0;
}
.qr-print-container .qr-cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 2), 1fr);
  grid-template-rows: repeat(var(--rows, 5), 1fr);
  gap: var(--card-margin, 2mm);
  width: 100%;
  height: 100%;
}
.qr-print-container .qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3mm;
  border: 1px dashed #ced4da;
  background: white;
  box-sizing: border-box;
}
.qr-print-container .qr-card .qr-code-wrapper {
  flex: 0 0 auto;
  margin-bottom: 2mm;
}
.qr-print-container .qr-card .qr-code-wrapper svg {
  display: block;
  width: auto;
  height: 40mm;
  max-width: 100%;
}
.qr-print-container .qr-card .qr-user-info {
  flex: 1 1 auto;
  width: 100%;
  text-align: center;
}
.qr-print-container .qr-card .qr-user-info .user-name {
  font-size: 12pt;
  font-weight: bold;
  margin-bottom: 1mm;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr-print-container .qr-card .qr-user-info .user-employee-number {
  font-size: 10pt;
  color: #495057;
  margin-bottom: 1mm;
}
.qr-print-container .qr-card .qr-user-info .user-department {
  font-size: 9pt;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body {
    margin: 0;
    padding: 0;
  }
  nav, header, footer, .no-print {
    display: none !important;
  }
  .qr-print-container {
    width: 210mm;
  }
  .qr-print-container .qr-print-page {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: var(--page-margin, 10mm);
    box-shadow: none;
    page-break-after: always;
  }
  .qr-print-container .qr-print-page:last-child {
    page-break-after: auto;
  }
  .qr-print-container .qr-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 2), var(--card-width, 93mm));
    grid-template-rows: repeat(var(--rows, 5), var(--card-height, 53.4mm));
    gap: var(--card-margin, 2mm);
    width: 100%;
    height: 100%;
  }
  .qr-print-container .qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2mm;
    border: 1px dashed #ced4da;
    background: white;
    box-sizing: border-box;
    page-break-inside: avoid;
  }
  .qr-print-container .qr-card .qr-code-wrapper {
    flex: 0 0 auto;
    margin-bottom: 2mm;
  }
  .qr-print-container .qr-card .qr-code-wrapper svg {
    display: block;
    width: auto;
    height: calc(var(--card-height, 53.4mm) * 0.5);
    max-width: calc(var(--card-width, 93mm) - 8mm);
  }
  .qr-print-container .qr-card .qr-user-info {
    flex: 1 1 auto;
    width: 100%;
    text-align: center;
  }
  .qr-print-container .qr-card .qr-user-info .user-name {
    font-size: 11pt;
    font-weight: bold;
    margin-bottom: 1mm;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .qr-print-container .qr-card .qr-user-info .user-employee-number {
    font-size: 9pt;
    color: #343a40;
    margin-bottom: 0.5mm;
  }
  .qr-print-container .qr-card .qr-user-info .user-department {
    font-size: 8pt;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .print-settings-info {
    display: none !important;
  }
}
.print-settings-info {
  max-width: 210mm;
  margin: 0 auto 20px;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}
.print-settings-info h6 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: bold;
}
.print-settings-info .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.print-settings-info .settings-grid .setting-item .label {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 2px;
}
.print-settings-info .settings-grid .setting-item .value {
  font-size: 13px;
  font-weight: 500;
}

body.clock-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.clock-container {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding: clamp(12px, 3vw, 32px);
}
@media (min-width: 768px) {
  .clock-container {
    max-width: 720px;
  }
}
@media (min-width: 1024px) and (orientation: portrait) {
  .clock-container {
    max-width: 820px;
  }
}
@media (min-width: 1024px) and (orientation: landscape) {
  .clock-container {
    max-width: 1200px;
  }
}
@media (min-width: 1440px) and (orientation: landscape) {
  .clock-container {
    max-width: 1400px;
  }
}

.clock-header {
  text-align: center;
  margin-bottom: 30px;
}

.clock-title {
  color: #2c3e50;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.clock-time {
  color: #495057;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 500;
}

.filter-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #5867dd 0%, #536be2 100%);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(88, 103, 221, 0.3);
  animation: fadeInDown 0.5s ease-out;
}
.filter-badge svg {
  flex-shrink: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clock-card {
  background: #ffffff;
  border-radius: clamp(16px, 2vw, 28px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.clock-icon {
  text-align: center;
  color: #536be2;
  margin-bottom: 20px;
}

.clock-prompt {
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: #343a40;
  margin-bottom: 30px;
}

.clock-identity {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.clock-identity-logo {
  color: #536be2;
  margin-bottom: 16px;
}

.clock-identity-company {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px;
}

.clock-identity-time-large {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #536be2;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.clock-identity-date {
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  color: #495057;
  margin: 0 0 16px;
}

.clock-interaction {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) and (orientation: landscape) {
  .clock-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(24px, 3vw, 56px);
    align-items: stretch;
  }
  .clock-identity {
    border-right: 1px solid #e9ecef;
    padding-right: clamp(20px, 2vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-bottom: 0;
  }
  .clock-identity-logo {
    text-align: left;
  }
  .clock-interaction {
    gap: clamp(16px, 2vw, 32px);
  }
  .numpad-btn {
    height: 88px;
    max-height: none;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  }
}
@media (min-width: 1440px) and (orientation: landscape) {
  .clock-identity-time-large {
    font-size: clamp(4rem, 7vw, 6.5rem);
  }
}
.pin-display {
  margin-bottom: 30px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border: 3px solid #536be2;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: #536be2;
  transform: scale(1.2);
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.numpad-btn {
  height: clamp(56px, 8vw, 88px);
  border: none;
  border-radius: clamp(12px, 1.5vw, 20px);
  background: #f8f9fa;
  color: #343a40;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numpad-btn:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.numpad-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (hover: none) and (pointer: coarse) {
  .numpad-btn {
    min-height: 80px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .numpad-btn:active {
    animation: touchPulse 0.3s ease-out;
  }
  @keyframes touchPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(0.95);
    }
    100% {
      transform: scale(1);
    }
  }
}
@media (hover: hover) and (pointer: fine) {
  .numpad-btn {
    max-height: 72px;
  }
}
.numpad-btn-clear {
  background: #ff6b6b;
  color: white;
}

.numpad-btn-clear:hover {
  background: #ff5252;
}

.numpad-btn-submit {
  background: #51cf66;
  color: white;
}

.numpad-btn-submit:hover {
  background: #40c057;
}

.clock-help {
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.clock-footer {
  text-align: center;
  margin-top: 20px;
}
.clock-footer small {
  color: #495057;
}

.auth-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1vw, 12px);
  margin-bottom: clamp(20px, 3vw, 32px);
  background: #f8f9fa;
  padding: 5px;
  border-radius: 12px;
}

.auth-toggle-btn {
  flex: 1 1 auto;
  min-width: max-content;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
  background: rgba(83, 107, 226, 0.1);
}

.auth-toggle-btn.active {
  background: white;
  color: #536be2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-toggle-btn svg {
  flex-shrink: 0;
}

.clock-camera-frame {
  width: 100%;
  max-width: clamp(280px, 55vw, 560px);
  aspect-ratio: 4/3;
  margin-inline: auto;
  background: #000;
  border-radius: clamp(8px, 1.5vw, 16px);
  overflow: hidden;
  position: relative;
}

.clock-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.clock-camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.clock-camera-mock-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#qrReader.clock-camera-frame video {
  transform: none;
}

.qr-help {
  text-align: center;
  margin-top: 20px;
}
.qr-help p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.face-preview-container {
  margin-bottom: 20px;
}

.face-status {
  text-align: center;
  color: #6c757d;
}

.success-card {
  padding: 50px 40px;
  text-align: center;
}

.success-icon {
  color: #1dc9b7;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 15px;
}

.success-message {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 40px;
}

.success-details {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}
.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

.detail-value {
  font-size: 1.1rem;
  color: #343a40;
  font-weight: 600;
}
.detail-value.text-muted {
  color: #6c757d;
  font-weight: 400;
  font-size: 0.9rem;
}

.success-footer {
  margin-top: 20px;
}

.auto-redirect {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.search-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.search-input:focus {
  outline: none;
  border-color: #5867dd;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.user-result-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-result-item:hover {
  background: #f8f9fa;
  border-color: #5867dd;
  transform: translateX(4px);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5867dd 0%, #536be2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  text-align: left;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.user-number, .user-dept {
  font-size: 0.9rem;
  color: #495057;
}

.no-results, .error-message {
  text-align: center;
  padding: 2rem;
  color: #495057;
}

.search-help {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.pin-entry-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
}

.user-info-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5867dd 0%, #536be2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.pin-input-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pin-title {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.pin-input-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto 1rem;
}

.pin-key {
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pin-key:hover {
  background: #f8f9fa;
  border-color: #5867dd;
}
.pin-key:active {
  transform: scale(0.95);
}

.pin-key-clear, .pin-key-back {
  background: #f8f9fa;
  color: #495057;
}

.kiosk-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.kiosk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kiosk-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kiosk-company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.kiosk-location-name {
  font-size: 1rem;
  color: #6c757d;
  padding-left: 16px;
  border-left: 2px solid #e9ecef;
}

.kiosk-header-right {
  text-align: right;
}

.kiosk-time {
  font-size: 2rem;
  font-weight: 700;
  color: #536be2;
  font-variant-numeric: tabular-nums;
}

.kiosk-gojuon-filter {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.kiosk-gojuon-filter::-webkit-scrollbar {
  display: none;
}

.kiosk-gojuon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 12px 8px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.kiosk-gojuon-btn:hover {
  border-color: #536be2;
  color: #536be2;
}
.kiosk-gojuon-btn.active {
  border-color: #536be2;
  background: #536be2;
  color: white;
}

.kiosk-gojuon-count {
  font-size: 0.75rem;
  font-weight: 400;
}

.kiosk-main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.kiosk-employee-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .kiosk-employee-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 1024px) {
  .kiosk-employee-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .kiosk-employee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.kiosk-employee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: white;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.kiosk-employee-card:hover {
  border-color: #536be2;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.kiosk-employee-card:active {
  transform: translateY(0);
}

.kiosk-employee-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
@media (max-width: 767px) {
  .kiosk-employee-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
}

.kiosk-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.kiosk-avatar-placeholder {
  width: 100%;
  height: 100%;
  color: #dee2e6;
}

.kiosk-employee-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.3;
}
@media (max-width: 767px) {
  .kiosk-employee-name {
    font-size: 0.9rem;
  }
}

.kiosk-employee-number {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  .kiosk-employee-number {
    font-size: 0.7rem;
  }
}

.kiosk-employee-department {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .kiosk-employee-department {
    font-size: 0.75rem;
  }
}

.kiosk-employee-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.kiosk-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kiosk-status-working {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.kiosk-status-working .kiosk-status-dot {
  background: #22c55e;
  animation: pulse 2s infinite;
}

.kiosk-status-break {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}
.kiosk-status-break .kiosk-status-dot {
  background: #eab308;
}

.kiosk-status-out {
  background: #f8f9fa;
  color: #6c757d;
}
.kiosk-status-out .kiosk-status-dot {
  background: #ced4da;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.kiosk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #ced4da;
}
.kiosk-empty-state p {
  margin-top: 16px;
  font-size: 1.1rem;
}

.kiosk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: white;
  border-top: 1px solid #e9ecef;
}
@media (max-width: 767px) {
  .kiosk-footer {
    flex-direction: column;
  }
}

.kiosk-search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}
@media (max-width: 767px) {
  .kiosk-search-container {
    width: 100%;
    max-width: none;
  }
}

.kiosk-search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.kiosk-search-input:focus {
  outline: none;
  border-color: #536be2;
}

.kiosk-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ced4da;
  width: 20px;
  height: 20px;
}

.kiosk-fallback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kiosk-fallback-btn:hover {
  border-color: #536be2;
  color: #536be2;
}
@media (max-width: 767px) {
  .kiosk-fallback-btn {
    width: 100%;
    justify-content: center;
  }
}

.kiosk-auth-container {
  justify-content: flex-start;
}

.kiosk-auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.kiosk-auth-employee {
  text-align: center;
  margin-bottom: 32px;
}

.kiosk-auth-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.kiosk-avatar-img-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.kiosk-auth-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.kiosk-auth-employee-number {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.kiosk-auth-department {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 16px;
}

.kiosk-auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.kiosk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.kiosk-status-time {
  font-size: 0.9rem;
  color: #6c757d;
}

.kiosk-pin-section {
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
}

.kiosk-pin-label {
  display: block;
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 16px;
}

.kiosk-pin-input {
  width: 200px;
  padding: 16px;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.kiosk-pin-input:focus {
  outline: none;
  border-color: #536be2;
}

.kiosk-pin-error {
  margin-top: 12px;
  color: #dc2626;
  font-size: 0.9rem;
}

.kiosk-auth-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.kiosk-action-form {
  width: 100%;
}

.kiosk-action-row {
  width: 100%;
}

.kiosk-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kiosk-action-btn-large {
  padding: 24px;
  font-size: 1.5rem;
}

.kiosk-action-btn-primary {
  background: #536be2;
  color: white;
}
.kiosk-action-btn-primary:hover {
  background: rgb(48.0865671642, 76.9582089552, 220.1134328358);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(88, 103, 221, 0.3);
}

.kiosk-action-btn-secondary {
  background: #343a40;
  color: white;
}
.kiosk-action-btn-secondary:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.kiosk-break-row {
  margin-top: 16px;
}

.kiosk-break-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.kiosk-break-btn:hover {
  border-color: #536be2;
  color: #536be2;
}

.kiosk-auth-back {
  margin-top: auto;
}

.kiosk-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.kiosk-back-link:hover {
  color: #536be2;
}

.kiosk-success-container {
  justify-content: center;
}

.kiosk-success-main {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.kiosk-success-icon {
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease-out;
}

.kiosk-success-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
}

.kiosk-success-details {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.kiosk-success-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.kiosk-success-time {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 16px;
}

.kiosk-success-duration {
  font-size: 1rem;
  color: #536be2;
  font-weight: 500;
}

.kiosk-success-message {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.kiosk-success-message #countdown {
  font-weight: 700;
  color: #536be2;
}

.kiosk-success-back-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #f8f9fa;
  color: #495057;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.kiosk-success-back-btn:hover {
  background: #e9ecef;
  color: #2c3e50;
}

.personal-clock-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.personal-clock-header {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-bottom: 1px solid #e9ecef;
}

.personal-clock-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
}

.personal-clock-time {
  font-size: 3.5rem;
  font-weight: 700;
  color: #536be2;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .personal-clock-time {
    font-size: 2.5rem;
  }
}

.personal-clock-date {
  font-size: 1.1rem;
  color: #6c757d;
}

.personal-clock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.personal-clock-user {
  text-align: center;
  margin-bottom: 32px;
}

.personal-clock-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.personal-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.personal-clock-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.personal-clock-department {
  font-size: 1rem;
  color: #6c757d;
}

.personal-clock-status {
  text-align: center;
  margin-bottom: 32px;
}

.personal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.personal-status-working {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.personal-status-break {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.personal-status-out {
  background: #f8f9fa;
  color: #6c757d;
}

.personal-status-none {
  background: #f8f9fa;
  color: #ced4da;
}

.personal-status-detail {
  font-size: 0.9rem;
  color: #6c757d;
}

.personal-clock-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.personal-action-form {
  width: 100%;
}

.personal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 24px;
  border: none;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.personal-action-btn-primary {
  background: #536be2;
  color: white;
}
.personal-action-btn-primary:hover {
  background: rgb(48.0865671642, 76.9582089552, 220.1134328358);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(88, 103, 221, 0.3);
}

.personal-action-btn-secondary {
  background: #343a40;
  color: white;
}
.personal-action-btn-secondary:hover {
  background: #2c3e50;
  transform: translateY(-2px);
}

.personal-break-buttons {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.personal-break-form {
  display: inline-block;
}

.personal-break-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.personal-break-btn:hover {
  border-color: #536be2;
  color: #536be2;
}

.personal-clock-footer {
  text-align: center;
  padding: 24px;
  background: white;
  border-top: 1px solid #e9ecef;
}

.personal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.personal-back-link:hover {
  color: #536be2;
}

.select-container {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: 20px;
}

.select-header {
  text-align: center;
  margin-bottom: 30px;
}

.select-title {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.select-time {
  color: #5a6c7d;
  font-size: 1.1rem;
  font-weight: 500;
}

.select-card {
  background: white;
  border-radius: 8px;
  padding: 50px 60px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.select-user-info {
  text-align: center;
  margin-bottom: 45px;
}

.select-user-icon {
  color: #6c757d;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.select-user-icon svg {
  width: 80px;
  height: 80px;
}

.select-user-name {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.select-user-employee-number {
  font-size: 1.05rem;
  color: #6c757d;
  margin: 0 0 12px;
}

.last-action {
  color: #6c757d;
  font-size: 1.1rem;
  margin: 0;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto 35px;
  max-width: 420px;
}

.clock-form[data-action=clock-out] {
  margin-bottom: 28px;
}

.action-btn {
  width: 100%;
  height: 140px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.action-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.action-btn small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

@media (hover: none) and (pointer: coarse) {
  .action-btn {
    height: 180px;
    font-size: 1.75rem;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .action-btn:active:not(:disabled) {
    animation: touchPulse 0.2s ease-out;
  }
  @keyframes touchPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(0.98);
    }
    100% {
      transform: scale(1);
    }
  }
}
.action-btn-clock-in {
  background: #28a745;
}
.action-btn-clock-in:hover:not(:disabled) {
  background: #218838;
}

.action-btn-clock-out {
  background: #dc3545;
}
.action-btn-clock-out:hover:not(:disabled) {
  background: #c82333;
}

.action-btn-break {
  background: #ffc107;
}
.action-btn-break:hover:not(:disabled) {
  background: #e0a800;
}

.action-btn-break-end {
  background: #007bff;
}
.action-btn-break-end:hover:not(:disabled) {
  background: #0069d9;
}

.btn-cancel {
  display: inline-block;
  padding: 14px 40px;
  background: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid #dee2e6;
}
.btn-cancel:hover {
  background: #e9ecef;
  border-color: #ced4da;
  color: #495057;
}

@media (max-width: 991px) and (min-width: 768px) {
  .select-title {
    font-size: 2.2rem;
  }
  .select-card {
    padding: 40px 50px;
  }
  .select-user-name {
    font-size: 1.85rem;
  }
  .action-btn {
    height: 130px;
    font-size: 2rem;
  }
  .action-buttons {
    max-width: 380px;
  }
}
@media (max-width: 767px) {
  .select-container {
    max-width: 100%;
    padding: 15px;
  }
  .select-title {
    font-size: 2rem;
  }
  .select-card {
    padding: 35px 50px;
  }
  .select-user-name {
    font-size: 1.6rem;
  }
  .action-btn {
    height: 120px;
    font-size: 1.8rem;
  }
  .action-buttons {
    max-width: 100%;
  }
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background-color: #dee2e6;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.calendar-weekday {
  background-color: #f8f9fa;
  color: #343a40;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  padding: 8px 4px;
  border-bottom: 2px solid #ced4da;
}
.calendar-weekday.sunday {
  color: #fd397a;
}
.calendar-weekday.saturday {
  color: #5578eb;
}

.calendar-day-cell {
  background-color: #ffffff;
  min-height: 80px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calendar-day-cell:hover {
  background-color: #f8f9fa;
}
.calendar-day-cell.other-month {
  background-color: #f8f9fa;
  opacity: 0.5;
}
.calendar-day-cell.other-month .calendar-cell-date {
  color: #6c757d;
}
.calendar-day-cell.other-month:hover {
  background-color: #e9ecef;
}
.calendar-day-cell.today {
  background-color: white;
  border: 2px solid #5578eb;
}
.calendar-day-cell.today .calendar-cell-date {
  color: #5578eb;
  font-weight: 700;
}
.calendar-day-cell.has-warnings {
  background-color: rgb(255, 249.5384615385, 238);
}
.calendar-day-cell.text-danger:not(.other-month) {
  background-color: white;
}
.calendar-day-cell.text-primary:not(.other-month) {
  background-color: white;
}

.calendar-cell-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.calendar-cell-times {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #343a40;
  margin-bottom: 4px;
}
.calendar-cell-times .clock-in-time,
.calendar-cell-times .clock-out-time {
  white-space: nowrap;
}

.calendar-cell-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.calendar-cell-badges .badge-sm {
  font-size: 0.7rem;
  padding: 2px 4px;
}
.calendar-cell-badges a {
  display: inline-block;
}
.calendar-cell-badges a:hover {
  opacity: 0.8;
}

@media (max-width: 576px) {
  .calendar-day-cell {
    min-height: 70px;
    padding: 6px;
  }
  .calendar-cell-date {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .calendar-cell-times {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .calendar-cell-badges {
    gap: 1px;
  }
  .calendar-cell-badges .badge-sm {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
  .calendar-weekday {
    font-size: 0.75rem;
    padding: 6px 2px;
  }
  .card-header .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  .alert .badge {
    margin-bottom: 4px;
  }
}
@media (min-width: 577px) and (max-width: 992px) {
  .calendar-day-cell {
    min-height: 75px;
    padding: 8px;
  }
  .calendar-cell-date {
    font-size: 1.05rem;
  }
  .calendar-cell-times {
    font-size: 0.7rem;
  }
  .calendar-cell-badges .badge-sm {
    font-size: 0.65rem;
  }
}
@media (min-width: 993px) {
  .calendar-day-cell {
    min-height: 90px;
    padding: 10px;
  }
  .calendar-cell-date {
    font-size: 1.2rem;
  }
  .calendar-cell-times {
    font-size: 0.8rem;
  }
  .calendar-cell-badges .badge-sm {
    font-size: 0.75rem;
    padding: 2px 5px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .calendar-day-cell {
    min-height: 80px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .calendar-day-cell:active {
    background-color: rgba(0, 0, 0, 0.05);
  }
}
.bottom-sheet-header {
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}
.bottom-sheet-header h5 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.bottom-sheet-section {
  margin-bottom: 24px;
}
.bottom-sheet-section .section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.attendance-info {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
}
.attendance-info .alert {
  border-radius: 6px;
  font-size: 0.875rem;
}

.correction-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
}
.correction-card strong {
  color: #2c3e50;
}
.correction-card .badge {
  font-size: 0.75rem;
}

.quick-correction-hint .btn-primary {
  font-weight: 600;
}

.select-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-mode-controls .alert {
  border-radius: 8px;
}
.select-mode-controls .btn-group {
  white-space: nowrap;
}
.select-mode-controls small {
  font-size: 0.75rem;
  text-align: center;
}

.cell-checkbox {
  position: absolute;
  top: 4px;
  left: 4px;
  display: none;
  z-index: 10;
}
.cell-checkbox input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.calendar-grid.select-mode .calendar-day-cell {
  position: relative;
  cursor: pointer;
}
.calendar-grid.select-mode .calendar-day-cell:not(.other-month):hover {
  background-color: #e9ecef;
  border: 1px solid #5578eb;
}
.calendar-grid.select-mode .calendar-day-cell .cell-checkbox {
  display: block;
}
.calendar-grid.select-mode .calendar-day-cell.selected {
  background-color: white;
  border: 2px solid #5578eb;
}
.calendar-grid.select-mode .calendar-day-cell.selected .cell-checkbox input[type=checkbox] {
  accent-color: #5578eb;
}
.calendar-grid.select-mode .calendar-day-cell.other-month {
  cursor: not-allowed;
  opacity: 0.5;
}
.calendar-grid.select-mode .calendar-day-cell.other-month:hover {
  background-color: #f8f9fa;
  border: none;
}
.calendar-grid.select-mode .calendar-day-cell.other-month .cell-checkbox {
  display: none;
}

@media (max-width: 576px) {
  .select-mode-controls small {
    display: none;
  }
  .cell-checkbox input[type=checkbox] {
    width: 18px;
    height: 18px;
  }
}
@media (min-width: 577px) and (max-width: 992px) {
  .cell-checkbox input[type=checkbox] {
    width: 22px;
    height: 22px;
  }
}
@media (min-width: 993px) {
  .select-mode-controls .btn-group-sm {
    font-size: 0.875rem;
  }
  .cell-checkbox input[type=checkbox] {
    width: 24px;
    height: 24px;
  }
}
.bulk-form-container {
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .bulk-form-container {
    padding: 1.5rem;
    max-width: 800px;
  }
}
@media (min-width: 992px) {
  .bulk-form-container {
    padding: 2rem;
    max-width: 900px;
  }
}

.bulk-form-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .bulk-form-header h4 {
    font-size: 1.5rem;
  }
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 1.25rem;
  }
}

.common-settings-section {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
}
@media (min-width: 768px) {
  .common-settings-section {
    padding: 1.5rem;
  }
}

.date-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}
.date-card:hover {
  border-color: #5578eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.date-card .date-card-header {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.date-card .date-card-header:hover {
  background-color: #e9ecef;
}
.date-card .date-card-header .date-info {
  flex: 1;
}
.date-card .date-card-header .date-info .date-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.date-card .date-card-header .date-info .date-main .date-number {
  font-size: 1.1rem;
  font-weight: 600;
}
.date-card .date-card-header .date-info .date-main .date-weekday {
  font-size: 0.9rem;
  font-weight: 500;
}
.date-card .date-card-header .date-info .date-status {
  font-size: 0.85rem;
}
.date-card .date-card-header .date-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.date-card .date-card-header .date-controls .form-check {
  margin-bottom: 0;
}
.date-card .date-card-header .date-controls .expand-icon {
  font-size: 1.25rem;
  color: #495057;
  transition: transform 0.3s ease;
}
.date-card .date-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}
.date-card.expanded .date-card-content {
  max-height: 1000px;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.date-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.current-attendance {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.25rem;
}
.current-attendance .attendance-times .time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}
.current-attendance .attendance-times .time-row .time-label {
  font-weight: 500;
  color: #343a40;
}
.current-attendance .attendance-times .time-row .time-value {
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.original-time-display {
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  background-color: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
}

.form-actions {
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}
@media (min-width: 768px) {
  .form-actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
  }
  .form-actions .btn {
    width: auto !important;
    min-width: 200px;
  }
  .form-actions .btn-primary {
    flex: 0 0 auto;
  }
  .form-actions .btn-secondary {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }
}

.date-card[style*="opacity: 0.6"] .date-card-header {
  background-color: #e9ecef;
}
.date-card[style*="opacity: 0.6"] .date-card-content {
  background-color: #f8f9fa;
}

.attendance-schedule-calendar th {
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.attendance-schedule-calendar .schedule-cell {
  height: 100px;
  vertical-align: top;
  padding: 0.5rem;
  position: relative;
}
.attendance-schedule-calendar .schedule-cell:hover {
  background-color: rgba(85, 120, 235, 0.03);
}
.attendance-schedule-calendar .schedule-cell:hover .schedule-cell-add {
  opacity: 1;
}
.attendance-schedule-calendar .schedule-cell:hover .schedule-cell-actions {
  opacity: 1;
}
.attendance-schedule-calendar .schedule-cell-empty {
  background-color: #f8f9fa;
}
.attendance-schedule-calendar .schedule-cell-today {
  background-color: rgba(85, 120, 235, 0.08);
  border: 2px solid #5578eb !important;
}
.attendance-schedule-calendar .schedule-cell-weekend {
  background-color: #f8f9fa;
}
.attendance-schedule-calendar .schedule-cell-date {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.375rem;
}
.attendance-schedule-calendar .schedule-cell-content {
  font-size: 0.875rem;
}
.attendance-schedule-calendar .schedule-time {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.attendance-schedule-calendar .schedule-cell-add {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.attendance-schedule-calendar .schedule-add-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.attendance-schedule-calendar .schedule-cell-actions {
  margin-top: 0.375rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
  z-index: 1020;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  padding: 8px 4px;
  color: #495057;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.bottom-nav-item:hover, .bottom-nav-item:focus {
  color: #5578eb;
  text-decoration: none;
}
.bottom-nav-item.active {
  color: #5578eb;
}
.bottom-nav-item.active .bottom-nav-icon {
  background-color: rgba(85, 120, 235, 0.1);
  border-radius: 16px;
  padding: 4px 12px;
}

.bottom-nav-icon {
  position: relative;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 4px;
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.bottom-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #ffffff;
  background-color: #fd397a;
  border-radius: 9px;
}

.bottom-nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
}

.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  pointer-events: none;
}
.bottom-sheet:not(.hidden) {
  pointer-events: auto;
}
.bottom-sheet:not(.hidden) .bottom-sheet-overlay {
  opacity: 1;
}
.bottom-sheet:not(.hidden) .bottom-sheet-content {
  transform: translateY(0);
}
.bottom-sheet .bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bottom-sheet .bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background-color: #ffffff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
}
.bottom-sheet .bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: #ced4da;
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
}
.bottom-sheet .bottom-sheet-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid #e9ecef;
}
.bottom-sheet .bottom-sheet-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}
.bottom-sheet .bottom-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.bottom-sheet .bottom-sheet-section {
  margin-bottom: 20px;
}
.bottom-sheet .bottom-sheet-section:last-child {
  margin-bottom: 0;
}
.bottom-sheet .bottom-sheet-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.bottom-sheet .bottom-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bottom-sheet .bottom-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background-color: #f8f9fa;
  border-radius: 12px;
  color: #343a40;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.bottom-sheet .bottom-sheet-item:hover, .bottom-sheet .bottom-sheet-item:focus {
  background-color: #e9ecef;
  color: #2c3e50;
  text-decoration: none;
}
.bottom-sheet .bottom-sheet-item-icon {
  position: relative;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
}
.bottom-sheet .bottom-sheet-item-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: #ffffff;
  background-color: #fd397a;
  border-radius: 8px;
}
.bottom-sheet .bottom-sheet-item-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.sidebar-subgroup-label {
  padding: 8px 12px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.monthly-attendance-table {
  font-size: 0.95rem;
}
.monthly-attendance-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  vertical-align: middle;
}
.monthly-attendance-table .attendance-normal {
  background-color: #ffffff;
}
.monthly-attendance-table .attendance-warning {
  background-color: #fff3cd;
}
.monthly-attendance-table .attendance-error {
  background-color: #f8d7da;
}
.monthly-attendance-table .attendance-holiday {
  background-color: #f8f9fa;
}
.monthly-attendance-table .attendance-future {
  background-color: #f8f9fa;
  opacity: 0.5;
}
.monthly-attendance-table .attendance-normal:hover,
.monthly-attendance-table .attendance-warning:hover,
.monthly-attendance-table .attendance-error:hover,
.monthly-attendance-table .attendance-holiday:hover,
.monthly-attendance-table .attendance-future:hover {
  background-color: #e9ecef;
}
.monthly-attendance-table .form-check-input {
  cursor: pointer;
  width: 1.2rem;
  height: 1.2rem;
}

#bulk-correction-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .monthly-attendance-table {
    font-size: 0.85rem;
  }
  .monthly-attendance-table th, .monthly-attendance-table td {
    padding: 0.5rem 0.25rem;
  }
}
.qr-code-display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
}
.qr-code-display svg {
  max-width: 100%;
  height: auto;
  width: 300px;
}

@media (max-width: 576px) {
  .qr-code-display svg {
    width: 250px;
  }
  .card-body {
    padding: 2rem 1rem !important;
  }
}
@media print {
  .qr-code-display {
    background-color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
