/* /uranus/partials/common.css
 * - 固定列（部屋/氏名）幅・sticky
 * - absent-row / lunch-mark-row 表示
 * - col-other 最小幅
 */
:root{
  --room-width: 40px;
  --name-width: 120px;
}

/* 固定列幅 */
.col-room{
  width:var(--room-width);
  min-width:var(--room-width);
  max-width:var(--room-width);
  text-align:center;
}
.col-name{
  width:var(--name-width);
  min-width:var(--name-width);
  max-width:var(--name-width);
  text-align:left;
  padding-left:6px;
}

/* table base */



/* sticky（部屋・氏名） */
th.sticky, td.sticky{
  position:sticky;
  left:0;
  z-index:2;
  background:#fff;
}
th.sticky{ z-index:4; background:#f7f7f7; }

th.sticky2, td.sticky2{
  position:sticky;
  left:var(--room-width);
  z-index:2;
  background:#fff;
}
th.sticky2{ z-index:4; background:#f7f7f7; }

/* その他列（幅） */
.col-other{
  min-width:60px;
  width:auto;
  max-width:none;
}

/* 入院・外泊・不在・宿泊：行の色替え（スロット文字は見えなくする） */
tr.absent-row td{
  background:#d6d6d6 !important;
}
tr.absent-row td.col-slot{
  color:#d6d6d6 !important;
}
tr.absent-row td.sticky,
tr.absent-row td.sticky2{
  color:#111 !important;
}
tr.absent-row td.col-other{
  color:#111 !important;
}

/* 曜日一致：昼の背景だけ変更 */
tr.lunch-mark-row td[data-slot="昼前"],
tr.lunch-mark-row td[data-slot="昼後"],
tr.lunch-mark-row td[data-slot="主食昼"],
tr.lunch-mark-row td[data-slot="副食昼"],
tr.lunch-mark-row td[data-slot="水分昼"]{
  background:#e9e9e9 !important;
}

/* =========================
   header
========================= */
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#d1d5db;
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:16px;
  --primary:#2563eb;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}

.header-top{
  display:flex;
  align-items:center;
  gap:10px;
}

.header-bottom{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.btn{
  padding:7px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  color:#111;
  font-size:16px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn.current{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(37,99,235,.20);
}

.spacer{
  flex:1;
}

.loginBox{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  font-size:14px;
}

.logoutBtn{
  border:none;
  background:none;
  color:#666;
  cursor:pointer;
  font-size:12px;
  padding:0;
}

.logoutBtn:hover{
  text-decoration:underline;
}

.header label{
  font-weight:700;
  color:var(--muted);
}

.header input[type="date"]{
  padding:6px 8px;
  border-radius:8px;
  border:1px solid var(--line);
}

button{
  padding:7px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
}

.status{
  font-size:13px;
  color:#666;
  border:1px dashed #ccc;
  border-radius:999px;
  padding:6px 10px;
}

@media (max-width: 720px){
  .header-top{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .loginBox{
    align-items:flex-start;
  }
}

table{
  border-collapse:collapse;
  table-layout:fixed;
  font-size:12px;
}

th,
td{
  border:1px solid #ddd;
  padding:6px 8px;
}

th{
  background:#f3f3f3;
}

