/* Odesa Absensi — Modern UI */
.odesa-card {
  max-width:720px;
  margin:20px auto;
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(10,20,40,0.06);
  padding:22px;
  box-sizing:border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.odesa-card-empty { max-width:720px; margin:20px auto; padding:18px; background:#fff; border-radius:8px; box-shadow:0 4px 12px rgba(10,20,40,0.04); }

.odesa-title { margin:0 0 6px; font-size:22px; color:#0b3d91; font-weight:700; }
.odesa-sub { margin:0 0 16px; color:#666; font-size:14px; }

.odesa-form { width:100%; }
.odesa-row { margin-bottom:12px; display:block; }
.odesa-label { display:block; font-weight:600; margin-bottom:6px; color:#333; font-size:14px; }
.odesa-field { display:block; }
.odesa-field-inline { display:flex; align-items:center; gap:10px; }

.odesa-input {
  width:100%;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #e2e8f0;
  box-sizing:border-box;
  font-size:15px;
  color:#1f2937;
  background:#fff;
  transition:box-shadow .12s, border-color .12s;
}
.odesa-input:focus { outline:none; border-color:#6aa7ff; box-shadow:0 6px 18px rgba(11,118,255,0.06); }

.odesa-input-file { padding:8px; border-radius:8px; border:1px dashed #e6eefc; background:#fbfdff; }

.btn-odesa {
  display:inline-block; background:linear-gradient(180deg,#1177ff,#0b62d6);
  color:#fff; border:none; padding:12px 18px; border-radius:10px; font-size:16px;
  cursor:pointer; box-shadow:0 8px 18px rgba(11,118,255,0.16);
  transition:transform .08s ease, box-shadow .12s;
  width:100%;
}
.btn-odesa:active { transform:translateY(1px); }
.btn-odesa:hover { box-shadow:0 12px 24px rgba(11,118,255,0.18); }

/* muted small text */
.odesa-small.muted { color:#7a8696; font-size:13px; }

/* switch */
.switch { position: relative; display:inline-block; width:50px; height:28px; }
.switch input { display:none; }
.slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#d1d5db; transition:.3s; border-radius:28px; }
.slider:before { position:absolute; content:""; height:22px; width:22px; left:3px; bottom:3px; background:white; transition:.3s; border-radius:50%; box-shadow:0 2px 6px rgba(2,6,23,0.08); }
input:checked + .slider { background:#2fbb6e; }
input:checked + .slider:before { transform:translateX(22px); }

/* message */
.odesa-msg { margin-top:12px; }

/* small responsive tweaks */
@media (max-width:640px) {
  .odesa-card { margin:12px; padding:16px; border-radius:10px; }
  .odesa-title { font-size:18px; }
  .odesa-input { font-size:15px; padding:10px; }
  .switch { width:44px; height:24px; }
  .slider:before { height:18px; width:18px; left:3px; bottom:3px; }
  .btn-odesa { padding:12px; font-size:15px; border-radius:8px; }
}




/* --- Card & layout --- */
.odesa-card{
  max-width:760px;
  margin:28px auto;
  background:#fff;
  border-radius:16px;
  padding:22px 22px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.odesa-title{font-size:22px;margin:0 0 6px;font-weight:700;}
.odesa-sub{color:#666;margin:0 0 14px;}

/* --- Welcome & notice --- */
.odesa-welcome{
  background:#eef6ff;
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:12px;
}
.odesa-notice{
  background:#eaffea;
  padding:10px 12px;
  border-radius:10px;
  margin:10px 0 12px;
}
.odesa-notice-warn{
  background:#fff5e6;
  padding:10px 12px;
  border-radius:10px;
  margin:10px 0 12px;
}

/* --- Form --- */
.odesa-row{margin-bottom:14px;}
.odesa-label{display:block;font-weight:600;margin-bottom:6px;}
.odesa-input{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:15px;
}
.odesa-input-file{
  width:100%;
  padding:8px 10px;
  border:1px dashed #ccd;
  border-radius:10px;
  background:#fafcff;
}

/* --- Buttons --- */
.btn-odesa{
  width:100%;
  padding:12px 14px;
  border:none;
  border-radius:10px;
  background:linear-gradient(180deg,#1e7bff,#0d5fe0);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}
.btn-odesa-secondary{
  display:inline-block;
  margin-top:8px;
  width:100%;
  padding:10px 12px;
  text-align:center;
  border-radius:10px;
  background:#f1f1f1;
  color:#333;
  text-decoration:none;
}

/* --- Table siswa --- */
.odesa-table-wrap{overflow:auto;}
.odesa-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
}
.odesa-table th, .odesa-table td{
  border-bottom:1px solid #eee;
  padding:10px;
}
.odesa-check{display:flex;gap:8px;align-items:center;}

/* --- Mobile friendly --- */
@media (max-width:600px){
  .odesa-card{margin:12px;padding:16px;}
  .odesa-title{font-size:19px;}
  .odesa-table th, .odesa-table td{padding:8px;font-size:14px;}
}


.odesa-report-card { margin-top: 12px; }
.odesa-report-filter input[type="date"]{
  padding:6px 8px;border:1px solid #ddd;border-radius:8px;min-width:160px;
}
.odesa-report-table th, .odesa-report-table td{
  vertical-align: top;
}


/* Tata ulang daftar siswa agar tidak berderet dalam satu baris */
#odesa-siswa-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;  /* jarak antar nama */
}

#odesa-siswa-list label {
  display: flex;
  align-items: center;
  gap: 4px;       /* jarak checkbox dengan teks */
  margin-bottom: 4px;
}
