* { box-sizing: border-box; }

  :root {
    --bg-1: #edf4fb;
    --bg-2: #f8fbff;
    --sidebar-bg: #f7fbff;
    --sidebar-border: #dbe7f3;
    --card-bg: rgba(255,255,255,0.92);
    --text-main: #1e293b;
    --text-soft: #64748b;
    --primary: #2563eb;
    --primary-soft: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --secondary-soft: #67e8f9;
    --border: #d6e2ee;
    --input-bg: #f8fbff;
    --success-bg: #ecfdf5;
    --success-border: #34d399;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-border: #f87171;
    --error-text: #991b1b;
    --table-head: #eef6ff;
  }

  body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
    color: var(--text-main);
  }

  .app {
    display: flex;
    min-height: 100vh;
  }

  .sidebar {
  width: 380px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f4c75 0%, #0d5f8f 100%);
  padding: 18px 14px;
  box-sizing: border-box;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.menu-group-title {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 18px 8px 8px;
}

.menu-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: #eaf6ff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateX(2px);
}

.menu-btn.active {
  background: linear-gradient(90deg, #4a7df0 0%, #46b3f3 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(39, 108, 189, 0.25);
}

  .main {
    flex: 1;
    padding: 24px;
  }
    
  .card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid rgba(214, 226, 238, 0.9);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  }

  h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d4ed8;
    font-size: 32px;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .full {
    grid-column: 1 / -1;
  }

  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #334155;
  }

  input, select, textarea, button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 16px;
  }

  input, select, textarea {
    background: var(--input-bg);
    color: var(--text-main);
  }

  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
  }

  textarea {
    min-height: 100px;
    resize: vertical;
  }

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

  .btn-primary {
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
    transition: all 0.2s ease;
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
  }

  .btn-secondary {
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, #0f766e, var(--secondary));
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.16);
    transition: all 0.2s ease;
  }

  .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(14, 165, 233, 0.22);
  }

  .result {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    white-space: pre-wrap;
    display: none;
    font-weight: 600;
  }

  .success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
  }

  .error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
  }

  .section-title {
    margin: 0 0 16px 0;
    color: #2563eb;
    font-size: 26px;
    font-weight: 800;
  }

  .chart-wrap {
    margin-top: 20px;
    background: white;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  th, td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
  }

  th {
    background: var(--table-head);
    color: #334155;
    font-weight: 700;
  }

  #reader {
    width: 100%;
    max-width: 360px;
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
  }

  .small-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-soft);
  }

  @media (max-width: 860px) {
    .app {
      flex-direction: column;
    }

    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid var(--sidebar-border);
    }

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

    button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      box-shadow: none !important;
      transform: none !important;
    }

    #time[readonly] {
      background: #f1f5f9;
      cursor: not-allowed;
      pointer-events: none;
    }

    #date[readonly] {
      background: #f1f5f9;
      cursor: not-allowed;
      pointer-events: none;
    }
    
    textarea.required-warning {
      border-color: #ef4444 !important;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    }

    .btn-clear {
      border: 1px solid #cbd5e1;
      background: #e2e8f0;
      color: #334155;
      font-weight: 700;
      cursor: pointer;
    }

    .btn-clear:hover {
      background: #cbd5e1;
    }

    .note-right {
      text-align: right;
      margin-top: 8px;
      line-height: 1.5;
    }

    .table-wrap {
      margin-top: 18px;
      overflow-x: auto;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      background: white;
    }

    .table-wrap table {
      min-width: 1400px;
    }

    .table-wrap th,
    .table-wrap td {
      white-space: nowrap;
      vertical-align: middle;
    }

    .status-badge {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 13px;
      white-space: nowrap;
    }

    .status-red {
      background: #fee2e2;
      color: #b91c1c;
    }

    .status-orange {
      background: #ffedd5;
      color: #c2410c;
    }

    .status-purple {
      background: #f3e8ff;
      color: #7e22ce;
    }

    .status-green {
      background: #dcfce7;
      color: #15803d;
    }

    .timeline-wrap {
      margin-top: 22px;
      padding: 18px;
      border: 1px solid #d9e7f3;
      border-radius: 18px;
      background: #f8fcff;
    }

    .timeline-title {
      margin: 0 0 16px;
      color: #1e3a5f;
      font-size: 20px;
    }

    .timeline-item {
      position: relative;
      padding-left: 26px;
      margin-bottom: 18px;
      border-left: 3px solid #b8d8f0;
    }

    .timeline-item:last-child {
      margin-bottom: 0;
    }

    .timeline-dot {
      position: absolute;
      left: -8px;
      top: 4px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #46b3f3;
    }

    .timeline-time {
      font-size: 13px;
      color: #5a728a;
      margin-bottom: 4px;
    }

    .timeline-status {
      font-size: 15px;
      font-weight: 700;
      color: #17324d;
      margin-bottom: 6px;
    }

    .timeline-body {
      font-size: 14px;
      color: #304a62;
      line-height: 1.5;
    }

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

    .dashboard-card {
      background: linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
      border: 1px solid #d9e7f3;
      border-radius: 18px;
      padding: 18px;
      box-shadow: 0 6px 14px rgba(30, 58, 95, 0.06);
    }

    .dashboard-card-label {
      font-size: 14px;
      font-weight: 700;
      color: #4c6580;
      line-height: 1.4;
      margin-bottom: 10px;
    }

    .dashboard-card-value {
      font-size: 34px;
      font-weight: 800;
      color: #12385f;
      line-height: 1;
    }


    .monitor-item-title {
      font-size: 22px;
      font-weight: 900;
      color: #12385f;
      line-height: 1.2;
      word-break: break-word;
    }

    .monitor-item-subtitle {
      font-size: 15px;
      color: #56708a;
      margin-top: 6px;
      line-height: 1.4;
    }

    .monitor-status-red {
      background: #fdecea;
      color: #c62828;
      border-color: #f6b5b1;
    }

    .monitor-status-orange {
      background: #fff4e5;
      color: #c77700;
      border-color: #ffd59a;
    }

    .monitor-status-green {
      background: #e8f7ec;
      color: #1f7a3d;
      border-color: #bfe3c9;
    }

    .monitor-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
      gap: 22px;
      margin-top: 18px;
    }

    .monitor-item-card {
      position: relative;
      background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
      border: 2px solid #dbe8f4;
      border-radius: 24px;
      padding: 0;
      overflow: hidden;
      box-shadow: 0 10px 22px rgba(20, 57, 92, 0.08);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .monitor-item-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(20, 57, 92, 0.12);
    }

    .monitor-card-head {
      padding: 18px 22px 14px;
      background: linear-gradient(90deg, rgba(230,242,252,0.9) 0%, rgba(244,249,253,0.95) 100%);
      border-bottom: 1px solid #e4eef7;
    }

    .monitor-item-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
    }

    .monitor-item-title {
      font-size: 24px;
      font-weight: 900;
      color: #12385f;
      line-height: 1.15;
      word-break: break-word;
      letter-spacing: 0.01em;
    }

    .monitor-item-subtitle {
      font-size: 15px;
      color: #5e7891;
      margin-top: 8px;
      line-height: 1.45;
    }

    .monitor-card-body {
      padding: 18px 22px 22px;
    }

    .monitor-status-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 132px;
      padding: 12px 18px;
      border-radius: 999px;
      font-size: 22px;
      font-weight: 900;
      line-height: 1;
      border: 2px solid transparent;
      white-space: nowrap;
      box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    }

    .monitor-status-red {
      background: #fde9e7;
      color: #bd2d22;
      border-color: #efb5ae;
    }

    .monitor-status-orange {
      background: #fff3df;
      color: #b87100;
      border-color: #ffd59e;
    }

    .monitor-status-green {
      background: #e8f7ec;
      color: #1c7a42;
      border-color: #bee1c8;
    }

    .monitor-item-info {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .monitor-item-box {
      background: #ffffff;
      border: 1px solid #e2edf6;
      border-radius: 16px;
      padding: 14px 16px;
      min-height: 96px;
      box-sizing: border-box;
    }

    .monitor-item-label {
      font-size: 13px;
      font-weight: 800;
      color: #70859a;
      margin-bottom: 8px;
      letter-spacing: 0.01em;
    }

    .monitor-item-value {
      font-size: 22px;
      font-weight: 900;
      color: #17324d;
      line-height: 1.35;
      word-break: break-word;
    }

    .monitor-item-value.small-text {
      font-size: 18px;
      font-weight: 800;
    }

    .monitor-empty {
      color: #9aaebf;
    }

    .monitor-card-foot {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px dashed #d8e4ef;
      font-size: 13px;
      color: #607a90;
      line-height: 1.5;
    }

    .monitor-card-foot strong {
      color: #274866;
    }

    /* ขอบการ์ดตามสถานะ */
    .monitor-card-red {
      border-color: #efb5ae;
      box-shadow: 0 10px 24px rgba(189, 45, 34, 0.10);
    }

    .monitor-card-red .monitor-card-head {
      background: linear-gradient(90deg, #fff3f1 0%, #fff8f7 100%);
    }

    .monitor-card-orange {
      border-color: #ffd59e;
      box-shadow: 0 10px 24px rgba(184, 113, 0, 0.10);
    }

    .monitor-card-orange .monitor-card-head {
      background: linear-gradient(90deg, #fff8ec 0%, #fffdf8 100%);
    }

    .monitor-card-green {
      border-color: #bee1c8;
      box-shadow: 0 10px 24px rgba(28, 122, 66, 0.08);
    }

    .monitor-card-green .monitor-card-head {
      background: linear-gradient(90deg, #f2fbf5 0%, #fbfffc 100%);
    }

    @media (max-width: 1100px) {
      .monitor-card-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      .monitor-item-info {
        grid-template-columns: 1fr;
      }

      .monitor-item-title {
        font-size: 20px;
      }

      .monitor-status-badge {
        font-size: 18px;
        min-width: 104px;
        padding: 10px 14px;
      }

      .monitor-item-value {
        font-size: 20px;
      }

      .monitor-item-value.small-text {
        font-size: 16px;
      }
    }
    
    .monitor-item-label {
      font-size: 13px;
      font-weight: 800;
      color: #6a7f93;
      margin-bottom: 8px;
    }

    .monitor-item-value {
      font-size: 18px;
      font-weight: 900;
      color: #17324d;
      line-height: 1.35;
      word-break: break-word;
    }

    .monitor-empty {
      color: #8aa0b5;
    }

    @media (max-width: 1100px) {
      .dashboard-cards {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
      }

      .monitor-card-grid {
        grid-template-columns: 1fr;
      }
    }
    
    @media (max-width: 700px) {
      .dashboard-cards {
        grid-template-columns: 1fr;
      }

      .monitor-item-info {
        grid-template-columns: 1fr;
      }

      .monitor-status-badge {
        font-size: 18px;
        min-width: 96px;
      }

      .monitor-item-title {
        font-size: 20px;
      }
    }

    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      overflow: hidden;
    }

    .app {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    .sidebar {
      width: 380px;
      min-width: 380px;
      height: 100vh;
      position: sticky;
      top: 0;
      overflow-y: auto;
      flex-shrink: 0;
    }

    .main-content {
      flex: 1;
      height: 100vh;
      overflow-y: auto;
      padding: 24px 28px 40px;
      box-sizing: border-box;
    }

    .hidden {
      display: none !important;
    }

    /* ===== Mobile drawer base ===== */
.mobile-topbar,
.sidebar-overlay,
.mobile-sidebar-head {
  display: none;
}

/* ===== Tablet / Mobile ===== */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .app {
    display: block;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #f3f7fb;
    padding: 12px 14px;
    border-bottom: 1px solid #d8e2ee;
  }

  .mobile-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #143a63;
    flex: 1;
    text-align: center;
    margin-right: 48px;
  }

  .mobile-menu-btn {
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    cursor: pointer;
  }

  .sidebar-overlay {
    display: block;
    position: relative;
    inset: 0;
    background: rgba(7, 20, 37, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1290;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 380px);
    min-height: 100vh;
    overflow-y: auto;
    z-index: 1300;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    border-radius: 0 24px 24px 0;
    box-shadow: 10px 0 30px rgba(10, 37, 64, 0.25);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .mobile-close-btn {
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #0f3d69;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .card,
  #dashboardPage,
  #formPage,
  #historyPage,
  #chartPage,
  #,
  #update,
  #incidentHistoryPage {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px 0;
    box-sizing: border-box;
  }

  .dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .row-flex {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .monitor-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .monitor-item-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .monitor-item-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .monitor-status-badge {
    align-self: flex-start;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

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

  canvas#tempChart {
    min-width: 700px;
  }

  .small-note.note-right {
    text-align: left !important;
  }
}

/* ===== Small phone ===== */
@media (max-width: 640px) {
  .mobile-topbar {
    padding: 10px 12px;
  }

  .mobile-topbar-title {
    font-size: 15px;
  }

  .mobile-menu-btn {
    font-size: 14px;
    padding: 9px 12px;
  }

  .main-content {
    padding: 14px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .section-title,
  h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .dashboard-card-value {
    font-size: 42px;
  }

  .monitor-item-title {
    font-size: 20px;
    word-break: break-word;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

    .today-log-status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef7ff;
  border: 1px solid #bfdbfe;
  color: #123456;
  font-weight: 700;
  line-height: 1.7;
}

.today-log-status-title {
  font-size: 16px;
  color: #1d4ed8;
  margin-bottom: 6px;
}

.today-log-ok {
  color: #15803d;
}

.today-log-missing {
  color: #b45309;
}

.today-log-duplicate {
  color: #b91c1c;
}

   .qr-reader-box {
  margin-top: 12px;
  max-width: 520px;
  width: 100%;
}

.qr-reader-box video {
  width: 100% !important;
  border-radius: 18px;
}

@media (max-width: 640px) {
  .qr-reader-box {
    max-width: 100%;
  }
}


.clickable-card {
  cursor: pointer;
  transition: 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(30, 58, 95, 0.12);
}

.dashboard-drill-title {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eef7ff;
  border: 1px solid #dbeafe;
  color: #12385f;
  font-size: 18px;
  font-weight: 800;
}

.filter-input-block {
  margin-bottom: 14px;
}

.filter-input-block input {
  margin-bottom: 6px;
}

.row-flex {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .main-content {
    padding-top: 12px;
  }

  select,
  input,
  textarea {
    font-size: 16px;
  }

  .card {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 768px) {
  .chart-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 8px;
    border-radius: 22px;
    background: #ffffff;
  }
}

@media (max-width: 768px) {
  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #f1f7ff;
    padding: 10px 14px;
  }

  .main-content {
    padding-top: 90px !important;
  }

  .card {
    scroll-margin-top: 110px;
  }

  html {
    scroll-padding-top: 110px;
  }
}

@media (max-width: 768px) {
  .mobile-topbar,
  .mobile-header,
  .topbar,
  .mobile-menu-bar {
    display: none !important;
  }

  .app {
    display: block;
  }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: -82%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    z-index: 1001;
    transition: left 0.25s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
  }

  .mobile-overlay.show {
    display: block;
  }

  .mobile-float-menu {
    display: flex;
    position: fixed;
    right: 18px;
    bottom: 92px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #2563eb, #22b8e8);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  }

  .main-content {
    padding-top: 16px !important;
    width: 100%;
  }

  body {
    padding-top: 0 !important;
  }
}

@media (min-width: 769px) {
  .mobile-float-menu,
  .mobile-overlay {
    display: none !important;
  }
}

/* ===== Desktop chart ===== */
.chart-wrap {
  width: 100%;
  height: 360px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  overflow: hidden;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===== Mobile chart ===== */
@media (max-width: 768px) {
  .chart-wrap {
    height: 420px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px;
  }

  .chart-wrap canvas {
    width: 720px !important;
    min-width: 720px !important;
    height: 380px !important;
  }
}
    
.dashboard-round-section {
  margin-top: 20px;
  padding: 18px;
  background: #f7fbff;
  border: 1px solid #d9e8f5;
  border-radius: 18px;
}

.dashboard-round-title {
  font-size: 22px;
  font-weight: 700;
  color: #163b67;
  margin-bottom: 16px;
}

.dashboard-round-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.dashboard-round-box {
  background: #ffffff;
  border: 1px solid #d7e4f1;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(20, 50, 90, 0.06);
}

.dashboard-round-box-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a4674;
  margin-bottom: 14px;
}

.dashboard-mini-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-card {
  min-height: 120px;
  text-align: left;
  border: none;
  cursor: pointer;
}

.success-card {
  background: #eefaf2;
}

.warning-card {
  background: #fff8eb;
}

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

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

.dashboard-filter-row {
  margin: 18px 0;
  padding: 16px;
  background: #f7fbff;
  border: 1px solid #d9e8f5;
  border-radius: 16px;
}

.dashboard-filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.dashboard-filter-item label {
  font-weight: 700;
  color: #163b67;
}

.dashboard-filter-item input[type="date"] {
  height: 46px;
  border: 1px solid #cfe0ef;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 18px;
  color: #12395f;
  background: #ffffff;
}


    /* ===== QR Scanner Mobile Fix ===== */
#qr-reader,
#reader,
.html5-qrcode-container {
  max-width: 100%;
  overflow: hidden;
}

#qr-reader video,
#reader video {
  width: 100% !important;
  max-height: 320px !important;
  object-fit: cover;
  border-radius: 16px;
}

/* ให้หน้าจอเลื่อนได้เสมอบนมือถือ */
html,
body {
  min-height: 100%;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* กันปุ่ม floating menu บังปุ่มบันทึก */
@media (max-width: 768px) {
  .main-content {
    padding-bottom: 160px;
  }

  .floating-menu,
  .mobile-menu-button,
  .fab,
  #mobileMenuButton {
    z-index: 50;
  }
}

.app-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 60, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.app-popup.hidden {
  display: none;
}

.app-popup-card {
  width: min(420px, 92vw);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(20, 50, 90, 0.22);
  text-align: center;
  animation: popupIn 0.18s ease-out;
}

.app-popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: #e7f8ef;
  color: #0f8a52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
}

.app-popup-icon.error {
  background: #fff1f1;
  color: #c62828;
}

.app-popup-title {
  font-size: 26px;
  font-weight: 800;
  color: #113b65;
  margin-bottom: 8px;
}

.app-popup-message {
  font-size: 18px;
  color: #4c5f73;
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 22px;
}

.app-popup-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0c8b83, #16a8e0);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

    .info-box {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #d7e4f1;
  border-radius: 14px;
  background: #f7fbff;
  color: #173b63;
  font-size: 18px;
  line-height: 1.5;
}

.info-box strong {
  color: #0d3a66;
}

.alarm-due-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #d9e8f5;
  border-radius: 16px;
  background: #f7fbff;
}

.alarm-due-title {
  font-size: 20px;
  font-weight: 800;
  color: #143d66;
}

.alarm-due-subtitle {
  margin-top: 4px;
  font-size: 16px;
  color: #52677d;
}

.sub-section-title {
  margin: 24px 0 14px 0;
  font-size: 22px;
  font-weight: 800;
  color: #123d66;
}

@media (max-width: 768px) {
  .alarm-due-box {
    flex-direction: column;
    align-items: stretch;
  }
}    

.alarm-detail-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d9e8f5;
  border-radius: 16px;
  background: #f7fbff;
  color: #173b63;
  line-height: 1.6;
}

.alarm-detail-box h3 {
  margin-bottom: 12px;
  color: #123d66;
}

.alarm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
}

.alarm-detail-item {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #d7e4f1;
  border-radius: 12px;
}

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

/* ===== Mobile Sidebar Scroll Fix ===== */
@media (max-width: 768px) {
  .sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 140px;
  }

  .sidebar.open {
    overflow-y: auto !important;
  }

  .menu-btn:last-child {
    margin-bottom: 80px;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .sidebar {
    overflow-y: auto !important;
    touch-action: pan-y;
  }
}

.scanner-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 18px;
}

.scanner-popup.hidden {
  display: none;
}

.scanner-popup-card {
  width: min(520px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(20, 50, 90, 0.28);
}

.scanner-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.scanner-popup-title {
  font-size: 24px;
  font-weight: 900;
  color: #12385f;
}

.scanner-popup-subtitle {
  margin-top: 4px;
  font-size: 15px;
  color: #64748b;
}

.scanner-close-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #e2e8f0;
  color: #334155;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.scanner-cancel-btn {
  margin-top: 14px;
}

#reader {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d7e4f1;
  background: #f8fbff;
}

#reader video {
  width: 100% !important;
  max-height: 420px !important;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 768px) {
  .scanner-popup {
    align-items: center;
    padding: 12px;
  }

  .scanner-popup-card {
    width: 96vw;
    max-height: 90vh;
    padding: 16px;
  }

  .scanner-popup-title {
    font-size: 21px;
  }

  #reader {
    min-height: 260px;
  }
}
/* ===== Popup detail readability ===== */
.app-popup-message {
  text-align: left;
}

.app-popup-card {
  max-height: 92vh;
  overflow-y: auto;
}

/* ================================
   Desktop Sidebar Collapse
   ใช้เฉพาะหน้าจอคอม
================================ */

.desktop-sidebar-toggle {
  display: none;
}

@media (min-width: 901px) {
  .desktop-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 14px;
    transition: 0.2s ease;
  }

  .desktop-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
  }

  .sidebar {
    transition: width 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
    overflow-x: hidden;
  }

  .main-content {
    transition: margin 0.25s ease, width 0.25s ease;
  }

  body.desktop-sidebar-collapsed .sidebar {
    width: 92px;
    min-width: 92px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.desktop-sidebar-collapsed .brand-box {
    justify-content: center;
    padding: 12px 8px;
  }

  body.desktop-sidebar-collapsed .brand-box > div:not(.brand-icon) {
    display: none;
  }

  body.desktop-sidebar-collapsed .brand-icon {
    margin: 0;
  }

  body.desktop-sidebar-collapsed .menu-group-title {
    opacity: 0;
    height: 10px;
    margin: 10px 0;
    overflow: hidden;
  }

  body.desktop-sidebar-collapsed .menu-btn {
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
  }

  body.desktop-sidebar-collapsed .menu-btn .menu-label {
    display: none;
  }

  body.desktop-sidebar-collapsed .menu-btn .menu-icon {
    width: 58px;
    min-width: 58px;
    height: 58px;
    font-size: 24px;
    justify-content: center;
  }

    body.desktop-sidebar-collapsed .menu-btn:hover {
      transform: translateX(0);
    }

    body.desktop-sidebar-collapsed .desktop-sidebar-toggle {
      margin-left: auto;
      margin-right: auto;
    }
  }

/* จัด icon/text ของเมนูให้แยกกัน */
.menu-btn {
  gap: 12px;
}

.menu-icon {
  width: 26px;
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.menu-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* v1.6: history/export, graph auto-load, and BEM-friendly Incident UX */
.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.excel-table th {
  position: sticky;
  top: 0;
  background: #eaf4ff;
  z-index: 1;
}

.excel-table th,
.excel-table td {
  border: 1px solid #dbe7f3;
  padding: 10px 12px;
  vertical-align: top;
  white-space: nowrap;
}

.excel-table td:nth-child(6) {
  white-space: normal;
  min-width: 240px;
}

.empty-cell {
  text-align: center;
  color: #64748b;
  padding: 18px !important;
}

.bem-guide-box,
.bem-quick-box,
.incident-summary {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  color: #1e3a8a;
  line-height: 1.6;
}

.bem-quick-title,
.incident-summary-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: #1d4ed8;
}

.bem-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.bem-incident-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.bem-incident-card {
  border: 1px solid #dbeafe;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bem-incident-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.bem-incident-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.bem-incident-card-body {
  color: #334155;
  line-height: 1.7;
  font-size: 14px;
}

.bem-card-select-btn {
  width: 100%;
  margin-top: 12px;
}

.incident-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  color: #334155;
}

.incident-summary-grid .full {
  grid-column: 1 / -1;
}

.status-gray {
  background: #e5e7eb;
  color: #374151;
}

@media (max-width: 768px) {
  .bem-quick-grid,
  .bem-incident-card-list,
  .incident-summary-grid {
    grid-template-columns: 1fr;
  }

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

/* ===== v1.7: calmer UI + auth + accordion sidebar ===== */
body {
  background: #f4f8fc !important;
}
.sidebar {
  background: #0f4c75 !important;
}
.menu-btn.active {
  background: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}
.btn-primary {
  background: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14) !important;
}
.btn-secondary {
  background: #0f766e !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12) !important;
}
.mobile-menu-btn,
.app-popup-btn {
  background: #2563eb !important;
}
.dashboard-card,
.card,
.monitor-card,
.bem-incident-card,
.info-box {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}
.auth-hidden {
  display: none !important;
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f4f8fc;
}
.auth-card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid #dbe7f3;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}
.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f4c75;
}
.auth-subtitle {
  color: #64748b;
  font-size: 13px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.auth-tab {
  border: 1px solid #cbd5e1;
  background: #f8fbff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}
.auth-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.auth-panel label {
  margin-top: 12px;
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.auth-full-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
}
.force-logout-btn {
  margin-top: 18px;
}
.current-user-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}
.current-user-name {
  font-weight: 800;
  color: #fff;
}
.current-user-meta {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.mini-logout-btn {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}
.menu-accordion {
  margin-bottom: 10px;
}
.menu-accordion-head {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.10);
  color: #eaf6ff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.menu-accordion-body {
  margin-top: 8px;
}
.menu-accordion-body.collapsed {
  display: none;
}
.menu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  margin-left: 4px;
}
.menu-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.menu-setting-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  font-weight: 700;
}
.menu-setting-item input {
  width: auto;
}
@media (max-width: 768px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 18px;
    border-radius: 18px;
  }
}

/* v1.7.1: ช่องผู้บันทึก/ผู้ดำเนินการจาก Login */
input[readonly], textarea[readonly] {
  background: #eef6fb;
  color: #24445c;
  cursor: not-allowed;
}
.login-autofill-note {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}


/* ===== v1.7.2: คู่มือการใช้งาน เปิดได้ทั้ง Login / หลังเข้าสู่ระบบ ===== */
.auth-help-row {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}
.btn-guide {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  padding: 11px 14px;
  cursor: pointer;
}
.btn-guide:hover {
  background: #dbeafe;
}
.auth-help-note {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.guide-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.guide-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}
.guide-alert-box {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  line-height: 1.65;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.guide-card {
  border: 1px solid #dbe7f3;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.guide-card h3 {
  margin: 0 0 10px;
  color: #0f4c75;
  font-size: 17px;
}
.guide-card ol {
  margin: 0;
  padding-left: 20px;
}
.guide-card li,
.guide-card p {
  color: #334155;
  line-height: 1.65;
  font-size: 14px;
}
.guide-card code {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 5px;
  color: #0f172a;
}
.guide-mini-note {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569 !important;
}
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.guide-modal-card {
  width: min(980px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}
.guide-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.guide-modal-title {
  color: #0f4c75;
  font-size: 20px;
  font-weight: 900;
}
.guide-modal-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}
.guide-modal-close {
  border: 0;
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-weight: 900;
  cursor: pointer;
}
.guide-modal-body {
  padding: 18px 20px 22px;
}
.modal-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
body.guide-modal-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .guide-header {
    display: block;
  }
  .guide-header .btn-secondary {
    width: 100%;
    margin-top: 10px;
  }
  .guide-grid,
  .modal-guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-modal {
    align-items: stretch;
    padding: 10px;
  }
  .guide-modal-card {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .guide-modal-head {
    padding: 14px 14px;
  }
  .guide-modal-body {
    padding: 14px;
  }
}

.temp-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.temp-input-row input {
  flex: 1;
  min-width: 0;
}
.temp-minus-btn {
  width: 56px;
  border: 1px solid #b9d6f2;
  border-radius: 14px;
  background: #eef7ff;
  color: #1f3a5f;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.temp-minus-btn:active {
  transform: translateY(1px);
}
