/* =========================
   打刻：本日の履歴
   ========================= */
.today-log .log-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.today-log .log-list li{
  position:relative;
  display:grid;
  grid-template-columns:72px 110px 1fr;
  align-items:center;
  gap:10px;
  padding:12px 14px 12px 16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  transition:transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.today-log .log-list li:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.today-log .log-list li::before{
  content:"";
  position:absolute;
  left:6px;
  top:8px;
  bottom:8px;
  width:4px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.today-log .log-time{
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  opacity:.95;
  font-weight:700;
}

.today-log .log-type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  font-size:12px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  white-space:nowrap;
  font-weight:700;
}

.today-log .log-staff{
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.today-log .log-list li:first-child{
  border-color:rgba(110,231,216,.38);
  background:rgba(110,231,216,.08);
}

.today-log .log-item.type-board::before,
.today-log .log-item.type-on_site_board::before{
  background:#34d399;
}
.today-log .log-item.type-alight::before,
.today-log .log-item.type-on_site_alight::before{
  background:#f59e0b;
}
.today-log .log-item.type-break_in::before,
.today-log .log-item.type-break_out::before{
  background:#60a5fa;
}
.today-log .log-item.type-standby_in::before,
.today-log .log-item.type-standby_out::before{
  background:#a78bfa;
}
.today-log .log-item.type-cancel::before{
  background:#f87171;
}

.today-log .log-item.type-board .log-type,
.today-log .log-item.type-on_site_board .log-type{
  color:#bbf7d0;
  background:rgba(52,211,153,.12);
  border-color:rgba(52,211,153,.28);
}
.today-log .log-item.type-alight .log-type,
.today-log .log-item.type-on_site_alight .log-type{
  color:#fde68a;
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.28);
}
.today-log .log-item.type-break_in .log-type,
.today-log .log-item.type-break_out .log-type{
  color:#bfdbfe;
  background:rgba(96,165,250,.12);
  border-color:rgba(96,165,250,.28);
}
.today-log .log-item.type-standby_in .log-type,
.today-log .log-item.type-standby_out .log-type{
  color:#ddd6fe;
  background:rgba(167,139,250,.12);
  border-color:rgba(167,139,250,.28);
}

@media (max-width: 520px){
  .today-log .log-list li{
    grid-template-columns:72px 1fr;
    grid-template-areas:
      "time type"
      "name name";
    row-gap:8px;
  }
  .today-log .log-time{ grid-area:time; }
  .today-log .log-type{ grid-area:type; justify-self:end; }
  .today-log .log-staff{ grid-area:name; }
}

/* =========================
   月次サマリーカード
   ========================= */
.att-month-summary{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin:0 0 18px;
}

.att-month-summary .summary-card{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:16px;
  padding:14px 16px;
  min-height:92px;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.att-month-summary .summary-label{
  font-size:12px;
  color:#9ca3af;
  margin-bottom:8px;
  font-weight:600;
}

.att-month-summary .summary-value{
  font-size:26px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.01em;
}

.att-month-summary .summary-sub{
  margin-top:6px;
  font-size:12px;
  color:#cbd5e1;
}

@media (max-width: 900px){
  .att-month-summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .att-month-summary{
    grid-template-columns:1fr;
  }
}

/* =========================
   月次一覧テーブル
   ========================= */
.att-month-table-wrap{
  overflow:auto;
  border-radius:16px;
}

.att-month-table{
  width:100%;
  min-width:940px;
  border-collapse:separate;
  border-spacing:0;
}

.att-month-table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(15,23,42,.96);
  backdrop-filter:blur(8px);
}

.att-month-table tbody tr{
  cursor:pointer;
  transition:background .12s ease, transform .08s ease;
}

.att-month-table tbody tr:hover{
  background:rgba(255,255,255,.04);
}

.att-month-table tbody tr.is-clickable:hover td{
  background:rgba(96,165,250,.06);
}

.att-month-table .cell-date{
  font-weight:700;
  white-space:nowrap;
}

.att-month-table .cell-error{
  color:#fca5a5;
  font-size:12px;
  line-height:1.5;
}

.att-month-table .badge-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.14);
  white-space:nowrap;
}

.att-month-table .badge-ok{
  color:#bbf7d0;
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.28);
}
.att-month-table .badge-warn{
  color:#fde68a;
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.28);
}
.att-month-table .badge-error{
  color:#fecaca;
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.28);
}
.att-month-table .badge-holiday{
  color:#bfdbfe;
  background:rgba(59,130,246,.12);
  border-color:rgba(59,130,246,.28);
}

.att-month-table tr.row-holiday td{
  background:rgba(59,130,246,.04);
}

.att-month-table tr.row-error td{
  background:rgba(239,68,68,.05);
}

.att-month-table tr.row-warning td{
  background:rgba(245,158,11,.05);
}

.att-month-table tr.row-error:hover td{
  background:rgba(239,68,68,.09);
}

.att-month-table tr.row-warning:hover td{
  background:rgba(245,158,11,.09);
}

/* =========================
   Bath logs ODO helper
   ========================= */
.odo-hint-box{
  margin-top:8px;
  font-size:12px;
  color:#cbd5e1;
}
.odo-hint-value{
  font-weight:800;
  color:#fef08a;
}

.att-month-table tbody tr.is-clickable{
  cursor:pointer;
  transition:background .12s ease;
}

.att-month-table tbody tr.is-clickable:hover td{
  background:rgba(96,165,250,.06);
}

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