:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #697386;
  --line: #dfe6f0;
  --brand: #1c6dd0;
  --brand-dark: #134f9c;
  --ok: #147a47;
  --warn: #9a5b00;
  --danger: #b42318;
  --soft-blue: #e9f2ff;
  --soft-green: #e8f7ef;
  --soft-yellow: #fff4dc;
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #131b33;
}

.login-shell {
  width: min(380px, 100%);
}

.login-panel,
.box,
.profile-strip,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.08);
}

.login-panel {
  padding: 42px 40px 28px;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.brand {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  text-align: center;
}

.brand-mark {
  width: auto;
  height: auto;
  display: inline;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 400;
}

.brand h1,
.topbar h1,
.box h2,
.profile-strip h2 {
  margin: 0;
}

.brand p,
.topbar p,
.profile-strip p {
  margin: 4px 0 0;
  color: var(--muted);
}

.brand h1 {
  color: #07112b;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
}

.brand p {
  color: #7f8796;
  font-size: 0.86rem;
}

.login-form,
.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: #101827;
  font-size: 0.82rem;
  font-weight: 700;
}

.field-hint {
  color: #697589;
  font-size: 0.82rem;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid #dedede;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  background: white;
}

.login-panel input,
.login-panel select {
  height: 46px;
}

.login-panel input::placeholder {
  color: #6e7685;
}

textarea {
  resize: vertical;
}

.role-field {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.role-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.role-field input {
  width: auto;
}

.btn,
.upload-btn,
.logout {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font: inherit;
}

.primary {
  background: var(--brand);
  color: white;
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  background: #eef2f7;
  color: #263244;
}

.error-msg {
  color: var(--danger);
  margin: 0;
  font-weight: 700;
}

.success-msg {
  margin: 0;
  color: var(--ok);
  font-weight: 700;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  background: #101827;
  color: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 900;
}

.sidebar-role {
  width: fit-content;
  color: #b9d7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.sidebar a,
.logout {
  color: #d8e2f2;
  text-align: left;
}

.sidebar a {
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.logout {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
}

.content {
  padding: 28px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.topbar,
.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge-info,
.status {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge-info {
  background: var(--soft-blue);
  color: var(--brand-dark);
}

.profile-strip {
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 78px;
  height: 98px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eef2f7;
}

.upload-btn {
  background: var(--soft-blue);
  color: var(--brand-dark);
  position: relative;
  overflow: hidden;
}

.upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.card-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.card-value {
  font-size: 1.7rem;
  font-weight: 900;
}

.card-value.small {
  font-size: 1rem;
}

.box {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #4b5870;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.student-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.status.approved {
  background: var(--soft-green);
  color: var(--ok);
}

.status.pending {
  background: var(--soft-yellow);
  color: var(--warn);
}

.status.rejected {
  background: #ffe8e4;
  color: var(--danger);
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field.full,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.search {
  max-width: 320px;
}

.report-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.period-tabs {
  display: flex;
  gap: 8px;
}

.period-tabs button {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.period-tabs button.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.report-grid {
  display: grid;
  gap: 14px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}

.report-card h3 {
  margin: 0 0 6px;
}

.report-card p {
  margin: 6px 0;
  color: #354155;
}

.report-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.report-status-row p {
  margin: 0;
}

.approve-btn {
  background: #147a47;
  color: #ffffff;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 0.82rem;
}

.approve-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.activity-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.report-attachment {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-self: start;
  background: #f8fafc;
}

.report-attachment .attachment-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7eef8;
  color: #1f4f8a;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.report-attachment strong,
.report-attachment span {
  display: block;
}

.report-attachment span {
  margin-top: 3px;
  color: #697589;
  font-size: 0.82rem;
  word-break: break-word;
}

.report-attachment .btn-small {
  grid-column: 1 / -1;
  justify-self: start;
}

.signature-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.sign-badge.signed {
  background: #cbf7df;
  color: #047857;
}

.sign-badge.unsigned {
  background: #eef2f7;
  color: #64748b;
}

.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat-card {
  min-height: 118px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.admin-stat-card .card-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.admin-stat-card .card-label {
  min-height: 32px;
}

.admin-stat-card .card-value {
  color: #061331;
  font-size: 1.55rem;
}

.admin-tools-box {
  padding: 20px;
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tool-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 7px;
  text-align: left;
  cursor: default;
  min-height: 122px;
}

.tool-card:hover {
  border-color: #b7c5f8;
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.1);
}

.tool-card.active {
  border-color: #4361ee;
  background: #f6f8ff;
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.14);
}

.tool-icon {
  font-size: 1.35rem;
}

.tool-title {
  color: #061331;
  font-weight: 900;
}

.tool-desc {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.tool-detail-box {
  padding: 20px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.tool-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 7px;
}

.mini-panel strong {
  color: #061331;
  font-size: 1rem;
}

.mini-panel span {
  color: #64748b;
  font-size: 0.86rem;
}

.tool-note {
  color: #64748b;
  margin: 14px 0 0;
}

.tool-note.inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 0.86rem;
}

/* Student LI screen */
.app-page {
  background: #edf2f8;
}

.student-layout {
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.student-layout .sidebar {
  background: #17182d;
  padding: 26px 16px 28px;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.student-layout .sidebar-title {
  font-size: 1.16rem;
  font-weight: 800;
  padding: 0 10px;
}

.student-layout .sidebar nav {
  gap: 10px;
}

.student-layout .sidebar a,
.student-layout .logout {
  color: #d9ddec;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  background: transparent;
}

.student-layout .sidebar a.active {
  background: #465cf3;
  color: #ffffff;
}

.student-layout .sidebar a:hover {
  background: #465cf3;
  color: #ffffff;
}

.student-layout .logout {
  color: #ff866f;
  margin-top: auto;
  justify-content: flex-start;
}

.student-content {
  padding: 32px;
  gap: 24px;
  background: #edf2f8;
}

.student-topbar,
.log-titlebar {
  min-height: 32px;
}

.student-topbar h1,
.log-titlebar h1 {
  color: #020a25;
  font-size: 1.46rem;
  font-weight: 800;
  line-height: 1.2;
}

.student-topbar .badge-info {
  background: #dfe6ff;
  color: #3042d8;
  padding: 8px 16px;
  font-size: 0.82rem;
}

.student-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 138px;
  padding: 26px 22px 20px;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  align-content: start;
  gap: 8px;
}

.stat-card .card-icon {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-card .card-label {
  color: #838895;
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-card .card-value {
  color: #020a25;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.15;
}

.student-box {
  border: 0;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  padding: 25px;
}

.student-profile-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.passport-photo {
  width: 86px;
  height: 108px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eef2f7;
}

.profile-info {
  display: grid;
  gap: 12px;
}

.info-grid.compact {
  margin-top: 0;
  row-gap: 10px;
}

.passport-upload {
  background: #e9f2ff;
  color: #134f9c;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.student-box .box-header {
  margin-bottom: 16px;
}

.student-box h2 {
  color: #05091d;
  font-size: 1rem;
  font-weight: 800;
}

.student-box .btn.primary {
  background: #465cf3;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 0.85rem;
}

.student-box .table-wrap {
  margin-top: 0;
}

.student-box table th {
  background: #f6f8fb;
  color: #3d4658;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: none;
  padding: 13px 16px;
}

.student-box table td {
  padding: 12px 16px;
  color: #000000;
  font-size: 0.88rem;
}

.student-box table tbody tr:nth-child(odd) {
  background: #fbfbfc;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.status.pending,
.status.yellow {
  background: #ffefc7;
  color: #b45309;
}

.status.approved,
.status.green {
  background: #cbf7df;
  color: #047857;
}

.placement-box {
  margin-bottom: 24px;
}

.student-detail-panel {
  scroll-margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 90px;
  row-gap: 22px;
  margin-top: 18px;
}

.info-item {
  display: grid;
  gap: 7px;
}

.info-label {
  color: #7b8190;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-item span:last-child {
  color: #000000;
  font-size: 0.95rem;
}

.log-titlebar {
  justify-content: flex-start;
}

.log-box {
  margin-top: 0;
}

.student-log-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 34px;
  margin-top: 18px;
}

.student-log-form .field {
  gap: 8px;
}

.student-log-form .field label {
  color: #111827;
  font-size: 0.86rem;
  font-weight: 600;
}

.student-log-form input,
.student-log-form textarea {
  border: 2px solid #dedede;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.student-log-form input {
  height: 48px;
}

.student-log-form textarea {
  min-height: 106px;
}

.student-log-form .full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: 0;
  }

  .cards,
  .form-grid,
  .report-card,
  .report-header,
  .student-profile-box,
  .profile-strip {
    grid-template-columns: 1fr;
  }

  .topbar,
  .box-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search {
    max-width: none;
  }
}
/* Digital logbook refresh */
:root { --bg:#f5f7fb; --panel:#fff; --ink:#182235; --muted:#748096; --line:#e3e8f0; --brand:#3157d5; --brand-dark:#2342ad; --soft-blue:#eef2ff; --soft-green:#eaf8f0; --soft-yellow:#fff6df; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:#f5f7fb; color:var(--ink); }
.sidebar { background:#111a2f; padding:26px 18px 20px; border-right:1px solid #24304b; }
.brand-lockup { display:flex; align-items:center; gap:11px; color:#fff; margin:0 8px 28px; } .brand-lockup strong{display:block;font-size:1.04rem;letter-spacing:.01em}.brand-lockup small{display:block;color:#8e9bb5;font-size:.72rem;margin-top:3px}.brand-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#4265e2;color:#fff;font-weight:900;font-size:.78rem;box-shadow:0 6px 14px #0003}.sidebar-profile{display:flex;align-items:center;gap:10px;padding:12px 10px;margin-bottom:20px;background:#1c2742;border:1px solid #2c3a5d;border-radius:14px}.sidebar-profile img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#cad3e4}.sidebar-profile strong,.sidebar-profile small{display:block}.sidebar-profile strong{font-size:.83rem;color:#fff}.sidebar-profile small{font-size:.7rem;color:#9ba9c2;margin-top:3px}.sidebar nav{gap:5px}.sidebar a{border-radius:10px;padding:12px 11px;color:#aebbd1;font-size:.86rem;font-weight:700}.sidebar a span{display:inline-block;width:24px;color:#8190ae;font-size:1rem}.sidebar a.active,.sidebar a:hover{background:#26365d;color:#fff}.sidebar a.active span{color:#8ea8ff}.sidebar-foot{margin-top:auto;color:#8390aa;font-size:.7rem;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 8px}.online-dot{width:7px;height:7px;border-radius:50%;background:#56d692;box-shadow:0 0 0 4px #56d69222}.sidebar-foot .logout{width:100%;margin-top:10px;background:#202d4d;color:#dbe4f6;border:1px solid #344568;padding:10px}.content{max-width:1400px;padding:34px 46px}.topbar{padding:0 0 28px;border-bottom:0}.topbar h1{font-size:2rem;letter-spacing:-.04em}.eyebrow{font-size:.68rem;letter-spacing:.14em;font-weight:900;color:#8390a8;margin:0 0 7px}.subtle{color:#7b879a;font-size:.86rem;margin:7px 0 0}.topbar-actions{display:flex;align-items:center;gap:12px}.date-chip{background:#fff;border:1px solid var(--line);padding:10px 13px;border-radius:10px;color:#657289;font-size:.78rem;font-weight:800}.btn{border-radius:10px;padding:11px 15px;font-size:.78rem}.primary{background:var(--brand);box-shadow:0 5px 12px #3157d52c}.secondary{background:#fff;border:1px solid var(--line);color:#536078}.progress-banner{background:linear-gradient(112deg,#243c91,#4264e2);color:#fff;border-radius:18px;padding:24px 28px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 15px 30px #3157d522}.progress-banner .eyebrow{color:#b9c7ff}.progress-banner strong{display:block;font-size:1.5rem;letter-spacing:-.03em}.progress-banner p{color:#d1d9ff;margin:5px 0 0;font-size:.82rem}.progress-ring{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:conic-gradient(#fff 0deg,#fff 0deg,#ffffff32 0deg);position:relative}.progress-ring:after{content:"";position:absolute;inset:7px;border-radius:50%;background:#30499f}.progress-ring span{position:relative;z-index:1;font-weight:900;font-size:.85rem}.overview-cards{grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.metric-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 16px;box-shadow:0 8px 18px #1d2d4b08}.metric-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;font-weight:900;font-size:1rem}.metric-icon.blue{color:#3157d5;background:#eef2ff}.metric-icon.green{color:#198754;background:#e9f8ef}.metric-icon.amber{color:#b77509;background:#fff4dc}.metric-icon.purple{color:#7956c5;background:#f1ebff}.metric-card small,.metric-card span{display:block;color:#7b879a;font-size:.72rem}.metric-card strong{display:block;font-size:1.26rem;letter-spacing:-.03em;margin:2px 0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:18px}.box{border-radius:16px;border:1px solid var(--line);box-shadow:0 8px 22px #24344e08;padding:22px;background:#fff}.box-header{align-items:flex-start}.box h2{font-size:1.03rem;letter-spacing:-.02em}.month-select,.search{width:auto;min-width:140px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;font-size:.78rem;background:#fff}.legend{display:flex;gap:16px;margin:17px 0 12px;color:#7a879a;font-size:.72rem}.legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.legend-dot.present{background:#43b87a}.legend-dot.leave{background:#f0a941}.legend-dot.missing{background:#dce2eb}.attendance-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.day-name{text-align:center;color:#929caf;font-size:.64rem;font-weight:800;padding:5px 0}.day-cell{min-height:45px;border:1px solid #edf0f5;border-radius:9px;background:#fbfcfe;padding:6px 7px;color:#9ba5b5;font-size:.7rem;position:relative}.day-cell strong{font-size:.75rem;color:#5f6d83}.day-cell.present{background:#eaf8f0;border-color:#c8ecd7}.day-cell.present strong{color:#187b4b}.day-cell.leave{background:#fff6e3;border-color:#f4dfb1}.day-cell.leave strong{color:#a66c13}.day-cell.missing{cursor:pointer}.day-cell.today{outline:2px solid #3157d5;outline-offset:1px}.day-cell button{border:0;background:none;position:absolute;inset:0;cursor:pointer}.calendar-note{font-size:.72rem;color:#8994a5;margin:16px 0 0;border-top:1px solid #edf0f5;padding-top:12px}.action-list{display:grid;gap:11px;margin:2px 0 18px}.action-item{display:flex;gap:10px;align-items:flex-start;padding:12px;background:#fafbfe;border-radius:11px}.action-item .action-mark{width:26px;height:26px;border-radius:8px;background:#fff0d2;color:#b47717;display:grid;place-items:center;font-weight:900}.action-item strong{font-size:.79rem;display:block}.action-item span{display:block;font-size:.7rem;color:#8490a3;margin-top:2px}.text-link{font-size:.78rem;color:#3157d5;font-weight:800;text-decoration:none}.recent-box,.placement-box{margin-top:18px}.recent-list{display:grid;gap:0}.recent-row{display:grid;grid-template-columns:105px 1fr auto;gap:15px;align-items:center;padding:14px 0;border-top:1px solid #edf0f5}.recent-row:first-child{border-top:0}.recent-date{font-size:.72rem;color:#748097;font-weight:800}.recent-row strong{font-size:.82rem}.recent-row p{font-size:.73rem;color:#7e899b;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill{padding:5px 9px;border-radius:999px;font-size:.67rem;font-weight:900;white-space:nowrap}.status-pill.success{color:#177849;background:#e8f7ef}.status-pill.warning{color:#98600b;background:#fff2d7}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mini-detail{padding:13px;background:#fafbfe;border:1px solid #edf0f5;border-radius:11px}.mini-detail small,.mini-detail strong{display:block}.mini-detail small{font-size:.67rem;color:#8a95a5;margin-bottom:5px}.mini-detail strong{font-size:.8rem}.log-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:18px}.log-form-box .form-grid{grid-template-columns:repeat(2,1fr)}.log-side-box{height:max-content}.field em{color:#d24b42;font-style:normal}.form-actions{display:flex;justify-content:flex-end;gap:9px}.side-progress{padding:16px;background:#f5f7ff;border-radius:12px;margin-bottom:15px}.side-progress strong{font-size:1.4rem;display:block}.side-progress span{color:#7d899d;font-size:.72rem}.progress-track{height:7px;border-radius:99px;background:#e0e6f1;margin-top:11px;overflow:hidden}.progress-track i{height:100%;width:0;display:block;background:#3157d5;border-radius:99px}.month-checklist{display:grid;gap:8px}.month-check{display:flex;justify-content:space-between;padding:10px 11px;border:1px solid #edf0f5;border-radius:10px;font-size:.76rem}.month-check span{color:#8390a4}.tip-card{margin-top:17px;background:#fff6df;border:1px solid #f5e3b6;padding:13px;border-radius:11px}.tip-card strong{font-size:.77rem;color:#9a691c}.tip-card p{font-size:.71rem;line-height:1.5;color:#8d784a;margin:5px 0 0}.history-box{margin-top:18px}.daily-history{display:grid;gap:9px}.history-item{display:grid;grid-template-columns:95px 1fr auto;gap:14px;align-items:center;padding:13px;border:1px solid #edf0f5;border-radius:11px}.history-item strong{font-size:.8rem}.history-item p{margin:4px 0 0;color:#7c899b;font-size:.72rem}.admin-stats{grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 18px}.admin-tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tool-card{border:1px solid #e8edf4;background:#fbfcff;border-radius:12px;padding:15px;text-align:left;cursor:pointer}.tool-card:hover,.tool-card.active{border-color:#aebeff;background:#f3f6ff}.tool-card strong{display:block;font-size:.78rem}.tool-card span{display:block;font-size:.71rem;color:#7d899c;margin-top:5px;line-height:1.4}.reviewer-card{display:flex;gap:10px;align-items:center;padding:11px 10px;background:#1c2742;border:1px solid #2c3a5d;border-radius:14px;margin-bottom:20px;color:#fff}.reviewer-avatar{display:grid;place-items:center;width:32px;height:32px;background:#5b74da;border-radius:50%;font-weight:900}.reviewer-card strong,.reviewer-card small{display:block}.reviewer-card small{font-size:.68rem;color:#a9b7d0;margin-top:2px}.admin-tools-box,.tool-detail-box{margin-bottom:18px}.search{min-width:220px}.table-wrap table{font-size:.78rem}.table-wrap th{font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:#8994a6}.table-wrap td{padding:14px 10px}.empty-state{padding:25px;text-align:center;color:#8390a3;font-size:.8rem}
@media (max-width: 980px){.layout{grid-template-columns:1fr}.sidebar{position:static;min-height:auto}.sidebar-foot{margin-top:8px}.sidebar nav{display:flex;overflow:auto}.sidebar a{white-space:nowrap}.content{padding:24px 18px}.overview-cards,.admin-stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.log-layout{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}.admin-tools-grid{grid-template-columns:1fr 1fr}}
@media (max-width: 620px){.hero-topbar,.topbar{display:block}.topbar-actions{margin-top:15px;justify-content:space-between}.progress-banner{padding:20px}.attendance-calendar{gap:4px}.day-cell{min-height:39px;padding:5px}.recent-row,.history-item{grid-template-columns:1fr;gap:5px}.overview-cards,.admin-stats,.detail-grid,.admin-tools-grid{grid-template-columns:1fr 1fr}.log-form-box .form-grid{grid-template-columns:1fr}.box{padding:17px}.search{min-width:150px}.box-header{gap:10px}}
.field input,
.field textarea,
.field select,
.register-form input,
.register-form textarea,
.register-form select {
  min-height: 48px;
  line-height: 1.45;
  padding: 12px 14px;
  font-size: 0.95rem;
  vertical-align: middle;
}
.field textarea { min-height: 104px; }
.field select,
.register-form select {
  height: 50px;
  line-height: 1.25;
  padding-top: 0;
  padding-bottom: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field select option,
.register-form select option {
  line-height: 1.4;
  padding: 8px;
}
.field label { line-height: 1.35; }
.booklog-tabs{display:flex;gap:8px;overflow:auto;margin:0 0 18px;padding-bottom:2px}.booklog-tab{min-width:128px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#6e7b91;text-align:left;font:inherit;font-size:.78rem;font-weight:900;cursor:pointer}.booklog-tab small{font-size:.68rem;font-weight:500;color:#8a95a8}.booklog-tab.active{color:#3157d5;border-color:#aebeff;background:#eef2ff;box-shadow:0 5px 12px #3157d51a}.booklog-panel{display:none}.booklog-panel.active{display:block}.booklog-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.compact-form{grid-template-columns:1fr 1fr}.compact-form .field.full{grid-column:1/-1}.info-strip{padding:12px 14px;border-radius:10px;background:#f5f7ff;border:1px solid #e2e8ff;color:#66738b;font-size:.76rem;line-height:1.6;margin:14px 0}.approval-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.approval-card{padding:16px;background:#fafbfe;border:1px solid #edf0f5;border-radius:12px}.approval-card strong{font-size:.8rem}.approval-card p,.approval-card span{display:block;color:#7d899b;font-size:.72rem;line-height:1.5;margin:7px 0}.rating-table{border:1px solid #edf0f5;border-radius:11px;overflow:hidden}.rating-row{display:grid;grid-template-columns:1fr 85px;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid #edf0f5;font-size:.76rem}.rating-row:last-child{border-bottom:0}.rating-row select{min-height:37px;height:37px;padding:0 8px;font-size:.76rem}.monthly-attendance{display:grid;gap:18px;margin-top:18px}.attendance-month h3{font-size:.86rem;margin:0 0 8px}.attendance-grid{border:1px solid #edf0f5;border-radius:11px;overflow:hidden}.attendance-head{display:block;padding:9px 11px;background:#f5f7ff;color:#7d899e;font-size:.67rem;font-weight:900}.attendance-grid{display:grid;grid-template-columns:110px 100px 1fr}.attendance-line{display:contents;color:inherit;text-decoration:none}.attendance-line>*{padding:10px 11px;border-top:1px solid #edf0f5;font-size:.72rem}.attendance-line b{color:#b17616}.attendance-line.filled b{color:#187b4b}.attendance-line.empty:hover>*{background:#fff8e9;cursor:pointer}.attendance-code{display:flex;gap:15px;flex-wrap:wrap;margin-top:15px;color:#77849a;font-size:.72rem}.attendance-code b{display:inline-grid;place-items:center;min-width:25px;padding:4px 5px;border-radius:5px;background:#eef2ff;color:#3157d5;margin-right:4px}.signature-row{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid #edf0f5;margin-top:18px;padding-top:16px;color:#7c889a;font-size:.72rem}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.score-card .box-header{margin-bottom:13px}.score-value{font-size:1rem;font-weight:900;color:#3157d5}.score-rule{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf0f5;font-size:.76rem}.score-rule strong{color:#177849}.score-rule em{font-style:normal;color:#7c899b;font-size:.7rem}.score-comment{display:grid;gap:7px;color:#7b8799;font-size:.73rem;font-weight:800;margin-top:14px}.score-comment textarea{font-weight:400}.score-card [id$="Ratings"]{display:grid;gap:0}.score-card .rating-row{grid-template-columns:1fr 75px}.score-card .rating-row span{line-height:1.35}
@media(max-width:980px){.booklog-grid,.score-grid{grid-template-columns:1fr}.booklog-tabs{margin-right:-18px;padding-right:18px}.booklog-tab{min-width:115px}.approval-grid{grid-template-columns:1fr}}
@media(max-width:620px){.compact-form{grid-template-columns:1fr}.compact-form .field.full{grid-column:auto}.attendance-grid{grid-template-columns:88px 85px 1fr}.attendance-line>*{padding:9px 7px;font-size:.67rem}}
.register-page{align-items:start;padding:34px 20px;background:#111a2f}.register-shell{width:min(680px,100%)}.register-panel{padding:34px 42px 30px}.register-intro{display:grid;gap:4px;margin:0 0 22px;padding:14px 16px;background:#f3f6ff;border:1px solid #e0e7ff;border-radius:12px}.register-intro strong{font-size:.86rem}.register-intro span{font-size:.74rem;color:#748097}.register-form{gap:14px}.register-form .field{gap:6px}.register-form input,.register-form textarea{padding:11px 13px;font-size:.82rem}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-section-label{padding-top:8px;color:#3157d5;font-size:.68rem;letter-spacing:.12em;font-weight:900;border-bottom:1px solid #e9edf4;padding-bottom:8px}.auth-switch{text-align:center;color:#7b879a;font-size:.78rem;margin:3px 0 0}.auth-switch a{color:#3157d5;font-weight:800;text-decoration:none}.register-panel .success-msg{background:#eaf8f0;padding:11px 12px;border-radius:9px}.register-panel .error-msg{background:#fff0ef;padding:11px 12px;border-radius:9px;font-size:.78rem}@media(max-width:620px){.register-panel{padding:28px 20px}.field-row{grid-template-columns:1fr}}
