*{
  box-sizing:border-box;
}
body{
  background:#0c161a;
  color:#48e0ff;
  font-family:system-ui;
  background-image: 
    linear-gradient(rgba(30,80,100,0.15) 1px,transparent 1px),
    linear-gradient(90deg,rgba(30,80,100,0.15) 1px,transparent 1px);
  background-size:22px 22px;
  padding:12px;
}
.box,.card{
  background:rgba(12,28,34,0.85);
  border:1px solid #227799;
  border-radius:8px;
  padding:14px;
  margin-bottom:14px;
}
input{
  background:#10232b;
  border:1px solid #2888aa;
  color:#60e8ff;
  padding:7px 9px;
  border-radius:4px;
  margin:3px;
}
button{
  background:#166699;
  color:#e0feff;
  border:none;
  border-radius:5px;
  padding:8px 12px;
  margin:0;
}
button:hover{
  background:#2288bb;
}
.item{
  border-bottom:1px solid #245566;
  padding:8px 0;
}
.item-text{
  width:100%;
  line-height:1.45;
}
/* ==========全局直接使用grid，PC+手机统一两等分布局========== */
.item-btns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
}
.item-btns button{
  width:100%;
  min-height:44px;
  padding:9px 4px;
  margin:0;
}
.sum{
  color:#70f0ff;
  line-height:1.6;
}
/*日历样式*/
.calendar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.calendar-week{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin:6px 0;
}
.calendar-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
}
.c-day{
  border:1px solid #226677;
  text-align:center;
  padding:6px 2px;
  border-radius:4px;
  min-height:46px;
  cursor:pointer;
  font-size:14px;
}
.c-day.other-month{
  opacity:0.25;
}
.c-day.weekend{
  background:rgba(124,42,42,0.72);
  color:#ffbcbc;
}
.c-day.selected{
  border-color:#33ccff;
  box-shadow:0 0 0 1px #33ccff;
  background-color:rgba(22, 135, 195, 0.88) !important;
  color:#ffffff !important;
}
.c-day.status-normal{ border-left:4px solid #2ec270; }
.c-day.status-overtime{ border-left:4px solid #ffc220; }
.c-day.status-rest{ border-left:4px solid #3098dd; }
.c-day.status-leave{ border-left:4px solid #dd4444; }
.c-day small{
  font-size:10px;
  opacity:0.8;
  display:block;
}
/*弹窗*/
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  align-items:center;
  justify-content:center;
}
.modal.show{
  display:flex;
}
.modal-content{
  background:#0f2229;
  border:1px solid #3099bb;
  padding:16px;
  border-radius:8px;
  min-width:320px;
  max-width:440px;
}
.calendar-week div:nth-child(1),
.calendar-week div:nth-child(7){
  color:#ff9494;
}
/*手机端适配，屏幕宽度小于640px执行*/
@media (max-width:640px){
  body{
    padding:6px;
  }
  .box,.card{
    padding:10px;
    margin-bottom:10px;
  }
  button{
    padding:10px 8px;
    font-size:14px;
  }
  .c-day{
    min-height:40px;
    font-size:12px;
    padding:2px 1px;
  }
  .c-day small{
    font-size:9px;
  }
  .item{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  /* ❗❗❗ 这里完全删除 item‑btns 和 button 的样式，不再重写覆盖 */
}
html{
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
  touch-action:manipulation;
}
/*强制输入框字号16px，消除Edge自动放大触发条件*/
input,textarea,select{
  font-size:16px !important;
  touch-action:manipulation;
}
/*兜底：每个item只允许第一组item‑btns显示，其余全部隐藏，解决重复渲染出现两排按钮*/
.item .item-btns ~ .item-btns{
  display:none !important;
}
