* {
  box-sizing: border-box;
}

body.bg {
  margin: 0;
  font-family: Arial, "맑은 고딕", sans-serif;
  background: #f4f6fb;
  color: #222;
}

.container {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 16px;
}

.container.small {
  max-width: 420px;
}

.container.wide {
  max-width: 1200px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.sub-title {
  font-size: 14px;
  color: #666;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input, button {
  font: inherit;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

button {
  border: 0;
  background: #3c6cff;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.alert.error {
  background: #fdecec;
  color: #b12222;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.top-left h1 {
  margin: 0;
  font-size: 24px;
}

.top-menu {
  display: flex;
  gap: 12px;
}

.top-menu a {
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #333;
  background: #f3f4f6;
}

.top-menu a.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.readonly-box {
  background: #f7f9fd;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-card {
  background: #fafbfd;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 18px;
}

.menu-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.menu-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

.alert.success {
  background: #e9f8ee;
  color: #0d7f33;
}

.filter-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.button-field {
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  border: 1px solid #e1e7f0;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  background: #f2f5fa;
  font-weight: 700;
  white-space: nowrap;
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  color: #3c6cff;
  font-weight: 700;
  background: none;
  padding: 0;
  margin-right: 8px;
  border: 0;
  cursor: pointer;
}

.btn-link.danger {
  color: #d02727;
}

.empty {
  text-align: center;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.container.db-form-page {
  max-width: 620px;
}

.db-table th,
.db-table td {
  font-size: 13px;
  padding: 8px 10px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-buttons form {
  margin: 0;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #3c6cff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.action-link:hover {
  background: #f6f8fc;
}

.action-link.danger {
  border-color: #ffd5d5;
  background: #fff5f5;
  color: #d02727;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section-line {
  border: 0;
  border-top: 1px solid #e3e8f1;
  margin: 20px 0;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-btn {
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
}

.hidden {
  display: none;
}

.success-card {
  text-align: center;
}

.success-message {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

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

.menu-card-link {
  text-decoration: none;
  color: inherit;
}

.comment-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  white-space: normal;
  line-height: 1.5;
}

.comment-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-detail-item {
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fafbfd;
  line-height: 1.6;
}

.comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 6px;
  background: #6f8fb1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.week-section {
  margin-top: 28px;
}

.week-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

/* ===== 관리자 사이드바 레이아웃 ===== */

.admin-body {
  margin: 0;
  font-family: Arial, "맑은 고딕", sans-serif;
  background: #f4f6fb;
  color: #222;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: #1f2937;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  box-sizing: border-box;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.4;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 700;
  background: transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
  background: #3b82f6;
  color: #fff;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.sidebar-user {
  margin-bottom: 12px;
  font-weight: 700;
  color: #f3f4f6;
}

.sidebar-logout {
  display: inline-block;
  text-decoration: none;
  color: #fecaca;
  font-weight: 700;
}

.admin-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

.admin-main-inner {
  padding: 28px;
}

.admin-page-header {
  margin-bottom: 18px;
}

.admin-page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.admin-sub-title {
  font-size: 14px;
  color: #666;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7deea;
  text-decoration: none;
  color: #374151;
  font-weight: 700;
}

.admin-subnav-link:hover {
  background: #f8fafc;
}

.admin-subnav-link.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.admin-content-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* 기존 card/grid와 겹치지 않게 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-card-link {
  text-decoration: none;
  color: inherit;
}

.menu-card {
  background: #fafbfd;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 18px;
  min-height: 120px;
}

.menu-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.menu-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-radius: 0;
  }

  .admin-main-inner {
    padding: 18px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.empty-dashboard {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-dashboard-box {
  width: 100%;
  max-width: 520px;
  padding: 32px;
  text-align: center;
  border: 1px dashed #cdd6e3;
  border-radius: 18px;
  background: #fafbfd;
}

.empty-dashboard-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.empty-dashboard-box p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.total-row {
  background: #f8fbff;
  font-weight: 700;
}

.diff {
  font-weight: 700;
}

.diff.up {
  color: #2563eb;
}

.diff.down {
  color: #dc2626;
}

.diff.same {
  color: #666;
}

.sidebar-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.sidebar-user-actions a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 700;
}

.sidebar-user-actions a:hover {
  text-decoration: underline;
}

.sidebar-user-actions .danger-link {
  color: #fecaca;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
}

.attendance-filter-box {
  grid-template-columns: 180px 180px auto auto;
}

.attendance-filter-box-history {
  grid-template-columns: 180px 180px 1fr auto;
}

.attendance-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.attendance-stat-card {
  background: #fafbfd;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 18px;
}

.attendance-stat-card.present {
  background: #eefbf1;
}

.attendance-stat-card.absent {
  background: #fff5f5;
}

.attendance-stat-card.unreported {
  background: #f7f8fb;
}

.attendance-stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 700;
}

.attendance-stat-value {
  font-size: 30px;
  font-weight: 800;
}

.attendance-two-column {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.attendance-panel {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  padding: 18px;
}

.attendance-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.attendance-summary-btn {
  border: 1px solid #d7deea !important;
  background: #fff !important;
  color: #3c6cff !important;
  height: 46px;
}

.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.custom-modal.hidden {
  display: none;
}

.custom-modal-content {
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.modal-close-btn {
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .attendance-two-column {
    grid-template-columns: 1fr;
  }

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

  .attendance-filter-box,
  .attendance-filter-box-history {
    grid-template-columns: 1fr;
  }
}


/* ===== attendance stats toolbar ===== */
.attendance-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.attendance-toolbar-left {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.attendance-inline-field {
  margin-bottom: 0;
  min-width: 180px;
}

.attendance-inline-field label {
  margin-bottom: 8px;
  font-size: 14px;
}

.attendance-inline-field input[type="date"],
.attendance-inline-field select {
  height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
}

.attendance-toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.attendance-primary-btn,
.attendance-outline-btn {
  min-width: 92px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.attendance-primary-btn {
  border: 0;
  background: #3c6cff;
  color: #fff;
}

.attendance-outline-btn {
  border: 1px solid #cfd8e6;
  background: #fff;
  color: #3c6cff;
  cursor: pointer;
}

/* ===== attendance cards ===== */
.attendance-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.attendance-stat-card {
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 108px;
  background: #fff;
}

.attendance-stat-card.total {
  background: #f5f7fb;
}

.attendance-stat-card.present {
  background: #edf7ef;
}

.attendance-stat-card.absent {
  background: #fcf0f0;
}

.attendance-stat-card.unreported {
  background: #f4f5f8;
}

.attendance-stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 700;
}

.attendance-stat-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

/* ===== attendance layout ===== */
.attendance-two-column {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
}

.attendance-panel {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 18px;
  padding: 18px;
}

.attendance-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

/* ===== summary modal ===== */
.attendance-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.attendance-modal.hidden {
  display: none;
}

.attendance-modal-dialog {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.attendance-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef1f6;
}

.attendance-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.attendance-modal-close {
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.attendance-modal-subtitle {
  padding: 14px 18px 0;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.attendance-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 0;
}

.attendance-summary-table th,
.attendance-summary-table td {
  border-bottom: 1px solid #edf0f5;
  padding: 12px 14px;
  text-align: center;
  font-size: 15px;
}

.attendance-summary-table th:first-child {
  border-top-left-radius: 14px;
}

.attendance-summary-table th:last-child {
  border-top-right-radius: 14px;
}

.summary-col-region {
  background: #dfeade;
}

.summary-col-total {
  background: #eef2df;
}

.summary-col-present {
  background: #d9ebf9;
}

.summary-col-absent {
  background: #f3ebcf;
}

.summary-col-unreported {
  background: #f2dfe4;
}

.attendance-summary-total-row td {
  font-weight: 800;
  background: #e9edf8;
  border-top: 2px solid #6d7480;
  border-bottom: 0;
}

.attendance-summary-total-row td:first-child {
  border-bottom-left-radius: 14px;
}

.attendance-summary-total-row td:last-child {
  border-bottom-right-radius: 14px;
}

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .attendance-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .attendance-toolbar {
    align-items: stretch;
  }

  .attendance-toolbar-left {
    width: 100%;
    align-items: stretch;
  }

  .attendance-inline-field {
    min-width: 100%;
  }

  .attendance-toolbar-buttons {
    width: 100%;
  }

  .attendance-primary-btn,
  .attendance-outline-btn {
    flex: 1;
  }

  .attendance-stat-cards {
    grid-template-columns: 1fr;
  }
}

.attendance-inline-field-search {
  min-width: 260px;
}


.attendance-green-btn,
.attendance-purple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.attendance-green-btn {
  background: #2f9e44;
  color: #fff;
  border: 0;
}

.attendance-purple-btn {
  background: #6f2dbd;
  color: #fff;
  border: 0;
}

.attendance-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 20px;
}

.attendance-qr-card {
  width: 100%;
  max-width: 560px;
  background: #fafbfd;
  border: 1px solid #e5e9f2;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
}

.attendance-qr-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.attendance-qr-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 22px;
}

.attendance-qr-image-box {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.attendance-qr-image-box img {
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 18px;
  padding: 14px;
}

.attendance-qr-countdown {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.attendance-qr-url-box input {
  text-align: center;
  font-size: 13px;
  color: #666;
  background: #fff;
}

.attendance-qr-admin-panel {
  max-width: 720px;
}

.attendance-qr-admin-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.attendance-qr-admin-status-text {
  font-size: 22px;
  font-weight: 700;
}

.status-on {
  color: #15803d;
}

.status-off {
  color: #dc2626;
}

.attendance-qr-admin-form {
  margin: 0;
}

.attendance-red-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: #dc2626;
  color: #fff;
  border: 0;
}

.attendance-qr-password-box {
  padding: 18px 20px;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  background: #fafbfd;
}

.attendance-qr-password-title {
  font-size: 14px;
  color: #666;
  font-weight: 700;
  margin-bottom: 10px;
}

.attendance-qr-password-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #111827;
}

.attendance-qr-password-help {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

.attendance-qr-access-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.attendance-qr-access-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.attendance-qr-access-card h1 {
  margin: 0 0 10px;
  font-size: 32px;
  text-align: center;
}

.attendance-qr-access-subtitle {
  margin-bottom: 22px;
  text-align: center;
  color: #666;
  line-height: 1.5;
}

.attendance-qr-access-form {
  margin-top: 8px;
}

.attendance-full-btn {
  width: 100%;
}

.attendance-qr-display-body {
  margin: 0;
  background: #ffffff;
}

.attendance-qr-display-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.attendance-qr-display-card {
  text-align: center;
}

.attendance-qr-display-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.attendance-qr-display-image-box img {
  width: min(80vw, 420px);
  height: min(80vw, 420px);
  object-fit: contain;
}

.attendance-qr-display-timer {
  margin-top: 20px;
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 1px;
}

.region-delete-blocked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
}

input[type="time"] {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #111827;
}

input[type="time"]:focus {
  outline: none;
  border-color: #3c6cff;
  box-shadow: 0 0 0 3px rgba(60, 108, 255, 0.12);
}

input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
}

.attendance-qr-admin-panel input[type="time"] {
  background: #fafbfd;
}

.qr-time-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.qr-time-subtitle {
  margin-bottom: 18px;
  color: #666;
  font-size: 14px;
}

.month-compare-section {
  margin-top: 28px;
}

.compare-diff {
  font-weight: 800;
  font-size: 20px;
}

.compare-diff.up {
  color: #2563eb;   /* 상승 = 파랑 */
}

.compare-diff.down {
  color: #dc2626;   /* 하락 = 빨강 */
}

.compare-diff.same {
  color: #6b7280;   /* 동일 = 회색 */
}

.compact-field {
  width: 220px !important;
  max-width: 220px;
}

.compact-year-field {
  width: 120px !important;
  max-width: 120px;
}

.filter-box .compact-field,
.filter-box .compact-year-field {
  justify-self: start;
}

.filter-box .field {
  margin-bottom: 0;
}

.filter-box .button-field {
  align-self: flex-end;
}

.month-compare-section .db-table {
  width: 100%;
  table-layout: fixed;
}

.month-compare-section .db-table th,
.month-compare-section .db-table td {
  text-align: center;
}

.month-compare-section .db-table th:first-child,
.month-compare-section .db-table td:first-child {
  text-align: left;
  width: 28%;
}

.month-compare-section .db-table th:nth-child(2),
.month-compare-section .db-table td:nth-child(2),
.month-compare-section .db-table th:nth-child(3),
.month-compare-section .db-table td:nth-child(3),
.month-compare-section .db-table th:nth-child(4),
.month-compare-section .db-table td:nth-child(4) {
  width: 24%;
}

.bitdam-filter-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bitdam-filter-box .field {
  margin-bottom: 0;
}

.bitdam-filter-box .button-field {
  align-self: flex-end;
}