/* TDR Cancel Unit Generator Styles */
/* Generated automatically - Do not edit manually */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #dddddd;
  --accent: #6ea8fe;
}

.cancel-analysis-container-days {
  width: 640px;
}

.cancel-analysis-container-times {
  width: 350px;
}

.cancel-rank-section {
  background: var(--panel);
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cancel-rank-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cancel-badge {
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #2AABDD;
  color: #fff;
}

.cancel-peak-message {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5em;
  padding: 8px 4px;
}

.cancel-grid {
  width: 100%;
  overflow-x: auto;
}

.cancel-grid-row {
  display: grid;
  grid-template-columns: repeat(30, 26px);
  gap: 1px;
  margin-bottom: 1px;
}

.cancel-cell {
  border: 1px solid var(--border);
  font-size: 11px;
  text-align: center;
  padding: 2px 0;
  cursor: default;
}

.cancel-day-num {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 600;
  display: block;
  padding-bottom: 2px;
}

.cancel-count {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.bg-0 {
  background: #d4f8d4;
  color: #0b3d0b;
}

.bg-1 {
  background: #d4f8d4;
  color: #2d4a2d;
}

.bg-2 {
  background: #e2f6cd;
  color: #2d4a2d;
}

.bg-3 {
  background: #f1f5c6;
  color: #4a4a00;
}

.bg-4 {
  background: #fff3bf;
  color: #4a4a00;
}

.bg-5 {
  background: #fff3bf;
  color: #5a4600;
}

.bg-6 {
  background: #ffecc5;
  color: #5a4600;
}

.bg-7 {
  background: #ffe5cb;
  color: #5a4600;
}

.bg-8 {
  background: #ffddd0;
  color: #4a2000;
}

.bg-9 {
  background: #ffd6d6;
  color: #4a2000;
}

.bg-10 {
  background: #ffd6d6;
  color: #5a0000;
}


@media (max-width: 768px) {
  .cancel-grid-row {
    grid-template-columns: repeat(30, 24px);
  }

  .cancel-cell {
    font-size: 10px;
    padding: 1px 0;
  }

  .cancel-day-num {
    font-size: 10px;
  }

  .cancel-count {
    font-size: 11px;
  }
}

/* Recent Cancel List Styles */
.tdr-room-cancel .room-info-col {
  position: relative;
  width: 350px;
}

.tdr-room-cancel .time-col {
  width: 82px;
  text-align: center;
}

.stay-date-col {
  font-weight: bold;
  width: 94px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
  padding-top: 4px;
}

.stay-dates {
  line-height: 1.2;
  font-size: 14px;
}

.cancel-room-main-info {
  display: flex;
  align-items: center;
  margin-left: 64px;
  padding: 8px 0;
  margin-top: -36px !important;
}

.tdr-room-cancel .average-time {
  font-size: 14px;
  color: #2d3748;
  vertical-align: middle;
  font-weight: 400;
}

.tdr-room-cancel .count-col {
  width: 44px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.tdr-room-cancel .hotel-icon {
  left: 17px !important;
  position: absolute;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .tdr-room-cancel .time-col {
    width: 66px;
    text-align: center;
  }

  .tdr-room-cancel .room-name {
    min-height: 48px;
    font-size: 14px;
  }

  .tdr-room-cancel .room-info-col {
    width: 200px;
  }

  .cancel-room-main-info {
    margin-top: -36px !important;
    margin-left: 50px;
  }

  .tdr-room-cancel .average-time {
    font-size: 13px;
  }

  .tdr-room-cancel .count-col {
    font-size: 14px;
  }

  .stay-date-col {
    width: 72px;
    font-size: 14px;
  }

  .stay-dates {
    font-size: 14x;
  }

  .tdr-room-cancel .hotel-icon {
    left: 10px !important;
  }
}

/* Time Trend Styles */
.cancel-time-trend {
  margin-top: 16px;
}

.cancel-time-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cancel-time-table thead th {
  background-color: #2AABDD;
  color: #fff;
  font-size: 15px;
  padding: 8px;
  font-weight: 600;
}

.cancel-time-trend table tr:nth-child(even) {
  background-color: #fff;
}

.time-header {
  width: 60px;
  border-right: 2px solid #fff;
  text-align: center !important;
}

tr:nth-child(odd) td.time-cell {
  background-color: #8fe0ff;
}

.trend-header-cell {
  width: 80px;
  text-align: center !important;
  padding: 8px;
  font-weight: 600;
}

.time-trend-row:hover {
  background-color: rgba(110, 168, 254, 0.05);
}

.cancel-analysis-container table .time-cell {
  padding: 6px 8px;
  text-align: center;
  font-weight: 600;
  border-right: 2px solid #fff;
  color: var(--text);
  font-size: 15px;
  background-color: #4acdff;
  width: 48px;
  border-bottom: none;
}

.trend-data-cell {
  width: 80px;
  text-align: center;
  padding: 4px 6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  border-left: none;
  border-radius: 4px;
}

.trend-data-cell span {
  padding: 2px 28px;
  border-radius: 8px;
}

/* 5段階の背景色 */
.trend-data-cell .level-1 {
  background-color: #eaffea;
  color: #0b3d0b;
}

.trend-data-cell .level-2 {
  background-color: #e8f5cd;
  color: #2d4a1d;
}

.trend-data-cell .level-3 {
  background-color: #fff3bf;
  color: #4a4a00;
}

.trend-data-cell .level-4 {
  background-color: #ffe5cb;
  color: #5a3000;
}

.trend-data-cell .level-5 {
  background-color: #ffd6d6;
  color: #5a0000;
}

@media (max-width: 768px) {
  .cancel-analysis-container-days {
    width: 350px;
  }

  .cancel-analysis-container-times {
    width: 350px;
  }

  .cancel-time-table {
    font-size: 12px;
  }

  .time-header {
    width: 40px;
  }

  .time-cell {
    width: 40px;
    padding: 4px 6px;
  }

  .trend-header-cell {
    width: 60px;
    padding: 4px;
    font-size: 11px;
  }

  .trend-data-cell {
    width: 60px;
    padding: 6px 4px 2px;
    font-size: 11px;
    border-left: none;
    border-radius: 3px;
  }
}