.tikhonze-portal {
  --tikhonze-ink: #111827;
  --tikhonze-muted: #667085;
  --tikhonze-line: #e5e7eb;
  --tikhonze-primary: #123c69;
  --tikhonze-primary-dark: #08213d;
  --tikhonze-accent: #0f8f7a;
  --tikhonze-gold: #f4b942;
  --tikhonze-bg: #f6f8fb;
  color: var(--tikhonze-ink);
  max-width: 1040px;
  margin: 28px auto;
  padding: 0 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tikhonze-alert {
  border: 1px solid #d8ebe7;
  border-left: 5px solid var(--tikhonze-accent);
  border-radius: 14px;
  padding: 16px 18px;
  background: #f4fffc;
  color: var(--tikhonze-primary-dark);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.tikhonze-portal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  border: 0;
  border-radius: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(244, 185, 66, .28), transparent 28%),
    linear-gradient(135deg, var(--tikhonze-primary-dark), var(--tikhonze-primary) 55%, var(--tikhonze-accent));
  color: #fff;
  box-shadow: 0 22px 55px rgba(8, 33, 61, .20);
  overflow: hidden;
}

.tikhonze-portal-header::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, .10);
}

.tikhonze-portal-header h2 {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -.04em;
}

.tikhonze-portal-header span {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
}

.tikhonze-exam-filter {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--tikhonze-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.tikhonze-exam-filter label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  color: var(--tikhonze-primary-dark);
  font-weight: 800;
}

.tikhonze-exam-filter select,
.tikhonze-exam-filter button {
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
}

.tikhonze-exam-filter select {
  border: 1px solid #d0d5dd;
  padding: 0 12px;
  background: #fff;
}

.tikhonze-exam-filter select:focus {
  border-color: var(--tikhonze-accent);
  box-shadow: 0 0 0 4px rgba(15, 143, 122, .12);
  outline: none;
}

.tikhonze-exam-filter button,
.tikhonze-download {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tikhonze-primary), var(--tikhonze-accent));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 20px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 60, 105, .20);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.tikhonze-exam-filter button:hover,
.tikhonze-download:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(18, 60, 105, .26);
  opacity: .97;
}

.tikhonze-report {
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
}

.tikhonze-report-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tikhonze-line);
}

.tikhonze-report-title img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--tikhonze-line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.tikhonze-report-title h3,
.tikhonze-report-title p { margin: 0; }

.tikhonze-report-title h3 {
  color: var(--tikhonze-primary-dark);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 850;
  letter-spacing: -.03em;
}

.tikhonze-report-title p {
  margin-top: 4px;
  color: var(--tikhonze-muted);
  font-weight: 600;
}

.tikhonze-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.tikhonze-summary-grid div {
  border: 1px solid var(--tikhonze-line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.tikhonze-summary-grid span {
  display: block;
  color: var(--tikhonze-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tikhonze-summary-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--tikhonze-primary-dark);
  font-size: 18px;
}

.tikhonze-report table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--tikhonze-line);
  border-radius: 18px;
}

.tikhonze-report th,
.tikhonze-report td {
  border-bottom: 1px solid var(--tikhonze-line);
  padding: 13px 14px;
  text-align: left;
}

.tikhonze-report th {
  background: #f7fafc;
  color: var(--tikhonze-primary-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tikhonze-report tr:last-child td { border-bottom: 0; }
.tikhonze-report tbody tr:hover { background: #fbfdfd; }

.tikhonze-promotion {
  border: 1px solid #bfe4dc;
  border-radius: 16px;
  background: linear-gradient(135deg, #effcf8, #fffaf0);
  color: var(--tikhonze-primary-dark);
  font-weight: 850;
  margin-bottom: 22px;
  padding: 15px 16px;
}

.tikhonze-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .tikhonze-portal { margin: 18px auto; padding: 0 10px; }
  .tikhonze-portal-header,
  .tikhonze-exam-filter { display: block; padding: 20px; }
  .tikhonze-exam-filter button { margin-top: 12px; width: 100%; }
  .tikhonze-report { padding: 18px; border-radius: 18px; }
  .tikhonze-report-title { align-items: flex-start; }
  .tikhonze-report { overflow-x: auto; }
}

@media print {
  .tikhonze-portal { max-width: 100%; margin: 0; padding: 0; }
  .tikhonze-portal-header,
  .tikhonze-exam-filter,
  .tikhonze-download { display: none !important; }
  .tikhonze-report { box-shadow: none; border-radius: 0; border-color: #bbb; }
}

/* Tikhonze Frontend Staff Portal */
.tk-staff-wrap{
  max-width:1280px;
  margin:24px auto;
  min-height:720px;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  background:#f4f7f6;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 26px 70px rgba(15,23,42,.10);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#111827;
}
.tk-staff-login-wrap{
  display:block;
  max-width:560px;
  min-height:auto;
  padding:20px;
}
.tk-staff-login-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:24px;
  box-shadow:0 20px 50px rgba(15,23,42,.10);
}
.tk-staff-login-hero{
  background:linear-gradient(135deg,#071f18,#123d30);
  border-radius:18px;
  padding:26px;
  color:#fff;
  margin-bottom:20px;
}
.tk-staff-login-hero span{
  color:#f3bd2e;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.tk-staff-login-hero h2{
  color:#fff;
  margin:10px 0 8px;
  font-size:30px;
  font-weight:950;
  letter-spacing:-.04em;
}
.tk-staff-login-hero p{margin:0;color:#d6e7e1;font-weight:650;}
.tk-staff-login-card label{font-weight:900;color:#24342f;}
.tk-staff-login-card input[type=text],
.tk-staff-login-card input[type=password]{
  width:100%;
  min-height:46px;
  border:1px solid #d9e1df;
  border-radius:12px;
  padding:10px 14px;
  box-sizing:border-box;
}
.tk-staff-login-card input[type=submit]{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,#071f18,#123d30);
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.tk-staff-sidebar{
  background:linear-gradient(180deg,#071f18,#061711);
  color:#fff;
  padding:24px 18px;
}
.tk-staff-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:28px;
}
.tk-staff-logo{
  width:46px;
  height:46px;
  border-radius:14px;
  background:#fff;
  color:#071f18;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
}
.tk-staff-brand strong{display:block;font-size:20px;font-weight:950;line-height:1;}
.tk-staff-brand span{display:block;color:#cfe0da;font-size:13px;font-weight:750;margin-top:5px;}
.tk-staff-menu{
  display:grid;
  gap:8px;
}
.tk-staff-menu a{
  display:grid;
  grid-template-columns:38px 1fr;
  align-items:center;
  min-height:46px;
  padding:0 12px;
  border-radius:11px;
  color:#e9f7f2!important;
  text-decoration:none!important;
  font-weight:850;
}
.tk-staff-menu a b{
  color:#f3bd2e;
  font-size:12px;
  font-weight:950;
}
.tk-staff-menu a:hover,
.tk-staff-menu a.active{
  background:rgba(255,255,255,.12);
  color:#fff!important;
}
.tk-staff-main{
  min-width:0;
}
.tk-staff-topbar{
  min-height:86px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 28px;
  gap:20px;
}
.tk-staff-topbar h1{
  margin:0;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.04em;
}
.tk-staff-topbar p{
  margin:6px 0 0;
  color:#6b7280;
  font-weight:650;
}
.tk-staff-user{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
}
.tk-staff-user span{
  background:#eef8f3;
  color:#13734f;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}
.tk-staff-user strong{font-size:14px;}
.tk-staff-user a{font-size:13px;font-weight:900;color:#b91c1c!important;text-decoration:none!important;}
.tk-staff-content{
  padding:28px;
}
.tk-staff-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.tk-staff-stat,
.tk-staff-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(15,23,42,.07);
}
.tk-staff-stat{
  padding:20px;
}
.tk-staff-stat span{
  display:block;
  color:#6b7280;
  font-size:12px;
  text-transform:uppercase;
  font-weight:950;
  letter-spacing:.06em;
  margin-bottom:8px;
}
.tk-staff-stat strong{
  display:block;
  font-size:34px;
  font-weight:950;
  letter-spacing:-.05em;
}
.tk-staff-card{
  padding:24px;
}
.tk-staff-card h2{
  margin:0 0 10px;
  font-size:23px;
  font-weight:950;
  letter-spacing:-.03em;
}
.tk-staff-card p{
  color:#4b5563;
  font-weight:600;
}
.tk-staff-card code{
  display:inline-block;
  background:#f1f5f9;
  color:#0f172a;
  padding:8px 12px;
  border-radius:10px;
  font-weight:900;
}
.tk-staff-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:11px;
  background:#071f18;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
}
.tk-staff-muted{
  color:#64748b!important;
  font-size:13px;
}
@media(max-width:900px){
  .tk-staff-wrap{
    display:block;
    margin:12px;
    border-radius:20px;
  }
  .tk-staff-sidebar{
    padding:18px;
  }
  .tk-staff-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tk-staff-topbar{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
  }
  .tk-staff-user{
    align-items:flex-start;
  }
  .tk-staff-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .tk-staff-menu,
  .tk-staff-grid{
    grid-template-columns:1fr;
  }
  .tk-staff-content{
    padding:16px;
  }
}



/* Tikhonze Staff Portal - Modern UI Refresh */
:root{
  --tk-primary:#0f3d2e;
  --tk-primary-dark:#071f18;
  --tk-primary-soft:#ecf7f2;
  --tk-accent:#f3bd2e;
  --tk-bg:#f4f7f6;
  --tk-card:#ffffff;
  --tk-text:#111827;
  --tk-muted:#667085;
  --tk-border:#e5e7eb;
  --tk-shadow:0 20px 50px rgba(15,23,42,.08);
  --tk-radius:20px;
}

.tk-staff-wrap{
  max-width:1320px;
  margin:24px auto;
  min-height:760px;
  display:grid;
  grid-template-columns:292px minmax(0,1fr);
  background:var(--tk-bg);
  border:1px solid rgba(229,231,235,.75);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(15,23,42,.10);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--tk-text);
}

.tk-staff-login-wrap{
  display:block;
  max-width:620px;
  min-height:auto;
  padding:22px;
  background:linear-gradient(145deg,#f4f7f6,#ffffff);
}

.tk-staff-login-card{
  background:var(--tk-card);
  border:1px solid var(--tk-border);
  border-radius:26px;
  padding:24px;
  box-shadow:var(--tk-shadow);
}

.tk-staff-login-hero{
  background:
    radial-gradient(circle at top right, rgba(243,189,46,.28), transparent 34%),
    linear-gradient(135deg,var(--tk-primary-dark),var(--tk-primary));
  border-radius:22px;
  padding:30px;
  color:#fff;
  margin-bottom:22px;
  overflow:hidden;
}

.tk-staff-login-hero span{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:var(--tk-accent);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tk-staff-login-hero h2{
  color:#fff;
  margin:14px 0 8px;
  font-size:34px;
  line-height:1.05;
  font-weight:950;
  letter-spacing:-.05em;
}

.tk-staff-login-hero p{
  margin:0;
  color:#d7e8e2;
  font-weight:650;
  line-height:1.5;
}

.tk-staff-login-card label{
  display:block;
  font-weight:900;
  color:#24342f;
  margin-bottom:8px;
}

.tk-staff-login-card input[type=text],
.tk-staff-login-card input[type=password]{
  width:100%;
  min-height:48px;
  border:1px solid #d9e1df;
  border-radius:13px;
  padding:11px 14px;
  box-sizing:border-box;
  background:#fff;
  font-size:15px;
  outline:0;
}

.tk-staff-login-card input[type=text]:focus,
.tk-staff-login-card input[type=password]:focus{
  border-color:var(--tk-primary);
  box-shadow:0 0 0 4px rgba(15,61,46,.10);
}

.tk-staff-login-card input[type=submit]{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,var(--tk-primary-dark),var(--tk-primary));
  color:#fff;
  font-weight:950;
  cursor:pointer;
  margin-top:8px;
  box-shadow:0 12px 25px rgba(15,61,46,.22);
}

.tk-staff-sidebar{
  background:
    radial-gradient(circle at top left, rgba(243,189,46,.18), transparent 30%),
    linear-gradient(180deg,var(--tk-primary-dark),#061711);
  color:#fff;
  padding:26px 18px;
}

.tk-staff-brand{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:30px;
  padding:0 6px;
}

.tk-staff-logo{
  width:50px;
  height:50px;
  border-radius:16px;
  background:#fff;
  color:var(--tk-primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  box-shadow:0 16px 32px rgba(0,0,0,.20);
}

.tk-staff-brand strong{
  display:block;
  font-size:21px;
  font-weight:950;
  line-height:1;
  letter-spacing:-.03em;
}

.tk-staff-brand span{
  display:block;
  color:#cfe0da;
  font-size:13px;
  font-weight:750;
  margin-top:6px;
}

.tk-staff-menu{
  display:grid;
  gap:8px;
}

.tk-staff-menu a{
  display:grid;
  grid-template-columns:40px 1fr;
  align-items:center;
  min-height:48px;
  padding:0 13px;
  border-radius:13px;
  color:#e9f7f2!important;
  text-decoration:none!important;
  font-weight:850;
  transition:transform .16s ease, background .16s ease, color .16s ease;
}

.tk-staff-menu a b{
  color:var(--tk-accent);
  font-size:12px;
  font-weight:950;
  letter-spacing:.04em;
}

.tk-staff-menu a:hover,
.tk-staff-menu a.active{
  background:rgba(255,255,255,.13);
  color:#fff!important;
  transform:translateX(3px);
}

.tk-staff-main{
  min-width:0;
  background:var(--tk-bg);
}

.tk-staff-topbar{
  min-height:92px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--tk-border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 30px;
  gap:20px;
  backdrop-filter:blur(12px);
}

.tk-staff-topbar h1{
  margin:0;
  font-size:30px;
  font-weight:950;
  letter-spacing:-.05em;
  color:#101827;
}

.tk-staff-topbar p{
  margin:7px 0 0;
  color:var(--tk-muted);
  font-weight:650;
}

.tk-staff-user{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  background:#fff;
  border:1px solid var(--tk-border);
  border-radius:16px;
  padding:10px 13px;
  box-shadow:0 10px 25px rgba(15,23,42,.045);
}

.tk-staff-user span{
  background:var(--tk-primary-soft);
  color:#13734f;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.tk-staff-user strong{
  font-size:14px;
  color:#111827;
}

.tk-staff-user a{
  font-size:13px;
  font-weight:900;
  color:#b91c1c!important;
  text-decoration:none!important;
}

.tk-staff-content{
  padding:30px;
}

.tk-staff-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:20px;
}

.tk-staff-stat,
.tk-staff-card{
  background:var(--tk-card);
  border:1px solid var(--tk-border);
  border-radius:var(--tk-radius);
  box-shadow:var(--tk-shadow);
}

.tk-staff-stat{
  padding:22px;
  position:relative;
  overflow:hidden;
}

.tk-staff-stat:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--tk-primary),var(--tk-accent));
}

.tk-staff-stat span{
  display:block;
  color:var(--tk-muted);
  font-size:12px;
  text-transform:uppercase;
  font-weight:950;
  letter-spacing:.06em;
  margin-bottom:8px;
}

.tk-staff-stat strong{
  display:block;
  font-size:36px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.06em;
  color:#0b1220;
}

.tk-staff-card{
  padding:26px;
}

.tk-staff-card h2{
  margin:0 0 10px;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.04em;
  color:#101827;
}

.tk-staff-card p{
  color:#4b5563;
  font-weight:600;
  line-height:1.58;
}

.tk-staff-card code{
  display:inline-block;
  background:#f1f5f9;
  color:#0f172a;
  padding:9px 13px;
  border-radius:11px;
  font-weight:900;
  border:1px solid #e2e8f0;
}

.tk-staff-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:9px 17px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--tk-primary-dark),var(--tk-primary));
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
  box-shadow:0 12px 24px rgba(15,61,46,.20);
}

.tk-staff-muted{
  color:#64748b!important;
  font-size:13px;
}

.tk-staff-card table,
.tk-staff-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--tk-border);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.tk-staff-card th,
.tk-staff-content th{
  background:#f7faf9;
  color:#53615d;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:12px;
  font-weight:950;
  padding:14px 15px;
  text-align:left;
  border-bottom:1px solid var(--tk-border);
}

.tk-staff-card td,
.tk-staff-content td{
  padding:14px 15px;
  border-bottom:1px solid #edf0ef;
  color:#1f2937;
}

.tk-staff-card tr:last-child td,
.tk-staff-content tr:last-child td{
  border-bottom:0;
}

@media(max-width:980px){
  .tk-staff-wrap{
    display:block;
    margin:12px;
    border-radius:22px;
  }
  .tk-staff-sidebar{
    padding:18px;
  }
  .tk-staff-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tk-staff-menu a:hover,
  .tk-staff-menu a.active{
    transform:none;
  }
  .tk-staff-topbar{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    min-height:auto;
  }
  .tk-staff-user{
    align-items:flex-start;
  }
  .tk-staff-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .tk-staff-wrap{
    margin:8px;
    border-radius:18px;
  }
  .tk-staff-menu,
  .tk-staff-grid{
    grid-template-columns:1fr;
  }
  .tk-staff-content{
    padding:16px;
  }
  .tk-staff-card{
    padding:20px;
  }
  .tk-staff-topbar h1{
    font-size:25px;
  }
  .tk-staff-login-hero h2{
    font-size:28px;
  }
}



/* Tikhonze Staff Portal Fixed UI - plugin-style sidebar */
body:has(.tk-staff-wrap){
  background:#f4f7f6!important;
}

.entry-content:has(.tk-staff-wrap),
.wp-block-post-content:has(.tk-staff-wrap),
.site-content:has(.tk-staff-wrap),
#content:has(.tk-staff-wrap),
main:has(.tk-staff-wrap){
  max-width:none!important;
  width:100%!important;
}

.tk-staff-wrap{
  width:min(100% - 32px, 1420px)!important;
  max-width:1420px!important;
  margin:24px auto!important;
  min-height:calc(100vh - 170px)!important;
  display:grid!important;
  grid-template-columns:280px minmax(0,1fr)!important;
  background:#f4f7f6!important;
  border:1px solid #e5e7eb!important;
  border-radius:24px!important;
  overflow:hidden!important;
  box-shadow:0 26px 70px rgba(15,23,42,.10)!important;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
  color:#111827!important;
}

.tk-staff-sidebar{
  display:block!important;
  background:linear-gradient(180deg,#071f18,#061711)!important;
  color:#fff!important;
  padding:26px 18px!important;
  min-height:100%!important;
}

.tk-staff-brand{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  margin:0 0 32px!important;
  padding:0 6px!important;
}

.tk-staff-logo{
  width:50px!important;
  height:50px!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#071f18!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:950!important;
  box-shadow:0 12px 28px rgba(0,0,0,.20)!important;
}

.tk-staff-brand strong{
  display:block!important;
  color:#fff!important;
  font-size:21px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:-.03em!important;
}

.tk-staff-brand span{
  display:block!important;
  color:#cfe0da!important;
  font-size:13px!important;
  font-weight:750!important;
  margin-top:6px!important;
}

.tk-staff-menu{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
}

.tk-staff-menu a{
  display:grid!important;
  grid-template-columns:40px 1fr!important;
  align-items:center!important;
  min-height:48px!important;
  padding:0 13px!important;
  border-radius:12px!important;
  color:#e9f7f2!important;
  text-decoration:none!important;
  font-weight:850!important;
  box-shadow:none!important;
  border:0!important;
}

.tk-staff-menu a b{
  color:#f3bd2e!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.05em!important;
}

.tk-staff-menu a span{
  color:inherit!important;
  font-size:15px!important;
  line-height:1!important;
}

.tk-staff-menu a:hover,
.tk-staff-menu a.active{
  background:rgba(255,255,255,.13)!important;
  color:#fff!important;
}

.tk-staff-main{
  display:block!important;
  min-width:0!important;
  background:#f4f7f6!important;
}

.tk-staff-topbar{
  min-height:88px!important;
  background:#fff!important;
  border-bottom:1px solid #e5e7eb!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  padding:0 30px!important;
  gap:20px!important;
}

.tk-staff-topbar h1{
  margin:0!important;
  color:#101827!important;
  font-size:30px!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:-.05em!important;
}

.tk-staff-topbar p{
  margin:7px 0 0!important;
  color:#667085!important;
  font-weight:650!important;
  font-size:14px!important;
}

.tk-staff-user{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:4px!important;
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
  padding:10px 13px!important;
  box-shadow:0 10px 25px rgba(15,23,42,.045)!important;
  min-width:150px!important;
}

.tk-staff-user span{
  background:#ecf7f2!important;
  color:#13734f!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}

.tk-staff-user strong{
  color:#111827!important;
  font-size:14px!important;
  font-weight:900!important;
}

.tk-staff-user a{
  font-size:13px!important;
  font-weight:900!important;
  color:#b91c1c!important;
  text-decoration:none!important;
}

.tk-staff-content{
  padding:30px!important;
}

.tk-staff-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0 0 20px!important;
  padding:0!important;
}

.tk-staff-stat,
.tk-staff-card{
  display:block!important;
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:20px!important;
  box-shadow:0 20px 50px rgba(15,23,42,.08)!important;
}

.tk-staff-stat{
  padding:22px!important;
  position:relative!important;
  overflow:hidden!important;
}

.tk-staff-stat:before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:4px!important;
  background:linear-gradient(90deg,#0f3d2e,#f3bd2e)!important;
}

.tk-staff-stat span{
  display:block!important;
  color:#667085!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  font-weight:950!important;
  letter-spacing:.06em!important;
  margin:0 0 9px!important;
}

.tk-staff-stat strong{
  display:block!important;
  color:#0b1220!important;
  font-size:36px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.06em!important;
}

.tk-staff-card{
  padding:26px!important;
  margin:0!important;
}

.tk-staff-card h2{
  margin:0 0 10px!important;
  color:#101827!important;
  font-size:24px!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
  line-height:1.15!important;
}

.tk-staff-card p{
  color:#4b5563!important;
  font-weight:600!important;
  line-height:1.58!important;
  font-size:15px!important;
}

.tk-staff-card code{
  display:inline-block!important;
  background:#f1f5f9!important;
  color:#0f172a!important;
  padding:9px 13px!important;
  border-radius:11px!important;
  font-weight:900!important;
  border:1px solid #e2e8f0!important;
}

.tk-staff-login-wrap{
  display:block!important;
  max-width:620px!important;
  min-height:auto!important;
  padding:22px!important;
  background:linear-gradient(145deg,#f4f7f6,#ffffff)!important;
}

.tk-staff-login-card{
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:26px!important;
  padding:24px!important;
  box-shadow:0 20px 50px rgba(15,23,42,.10)!important;
}

.tk-staff-login-hero{
  background:linear-gradient(135deg,#071f18,#123d30)!important;
  border-radius:22px!important;
  padding:30px!important;
  color:#fff!important;
  margin-bottom:22px!important;
}

.tk-staff-login-hero span{
  display:inline-flex!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#f3bd2e!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}

.tk-staff-login-hero h2{
  color:#fff!important;
  margin:14px 0 8px!important;
  font-size:34px!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.05em!important;
}

.tk-staff-login-hero p{
  margin:0!important;
  color:#d7e8e2!important;
  font-weight:650!important;
  line-height:1.5!important;
}

.tk-staff-login-card label{
  display:block!important;
  font-weight:900!important;
  color:#24342f!important;
  margin-bottom:8px!important;
}

.tk-staff-login-card input[type=text],
.tk-staff-login-card input[type=password]{
  width:100%!important;
  min-height:48px!important;
  border:1px solid #d9e1df!important;
  border-radius:13px!important;
  padding:11px 14px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  font-size:15px!important;
}

.tk-staff-login-card input[type=submit]{
  width:100%!important;
  min-height:48px!important;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#071f18,#123d30)!important;
  color:#fff!important;
  font-weight:950!important;
  cursor:pointer!important;
  margin-top:8px!important;
}

@media(max-width:980px){
  .tk-staff-wrap{
    display:block!important;
    width:calc(100% - 20px)!important;
    margin:10px auto!important;
    border-radius:22px!important;
  }
  .tk-staff-sidebar{
    padding:18px!important;
  }
  .tk-staff-menu{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .tk-staff-topbar{
    flex-direction:column!important;
    align-items:flex-start!important;
    padding:20px!important;
    min-height:auto!important;
  }
  .tk-staff-user{
    align-items:flex-start!important;
  }
  .tk-staff-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:600px){
  .tk-staff-menu,
  .tk-staff-grid{
    grid-template-columns:1fr!important;
  }
  .tk-staff-content{
    padding:16px!important;
  }
  .tk-staff-card{
    padding:20px!important;
  }
  .tk-staff-topbar h1{
    font-size:25px!important;
  }
}



/* Staff portal full tools */
.tk-tool-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:18px!important;
}
.tk-tool-card{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
  padding:18px!important;
  text-decoration:none!important;
  color:#111827!important;
  box-shadow:0 10px 25px rgba(15,23,42,.045)!important;
}
.tk-tool-card strong{
  color:#0b1220!important;
  font-size:16px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
.tk-tool-card span{
  color:#667085!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.45!important;
}
.tk-tool-card code{
  width:fit-content!important;
  max-width:100%!important;
  white-space:normal!important;
  font-size:12px!important;
  margin-top:2px!important;
}
.tk-tool-card:hover{
  border-color:#b7cec4!important;
  background:#ffffff!important;
}
@media(max-width:980px){
  .tk-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:600px){
  .tk-tool-grid{grid-template-columns:1fr!important;}
}



.tk-staff-warning{
  background:#fff7e6!important;
  border:1px solid #fde68a!important;
  color:#92400e!important;
  border-radius:14px!important;
  padding:14px 16px!important;
  font-weight:650!important;
  margin:14px 0 18px!important;
}
.tk-staff-warning strong{font-weight:950!important;}



/* Frontend normal import form */
.tk-forms-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  margin:20px 0!important;
}
.tk-form-panel{
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  padding:20px!important;
}
.tk-form-panel h3{
  margin:0 0 8px!important;
  color:#101827!important;
  font-size:20px!important;
  font-weight:950!important;
}
.tk-form-panel p{
  margin:0 0 14px!important;
  color:#667085!important;
  font-size:14px!important;
}
.tk-form-panel label{
  display:block!important;
  color:#24342f!important;
  font-weight:900!important;
  margin:12px 0 7px!important;
}
.tk-form-panel input[type=file],
.tk-form-panel select{
  width:100%!important;
  min-height:46px!important;
  border:1px solid #d9e1df!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.tk-form-panel button{
  width:100%!important;
  min-height:46px!important;
  border:0!important;
  border-radius:12px!important;
  margin-top:16px!important;
  background:linear-gradient(135deg,#071f18,#0f3d2e)!important;
  color:#fff!important;
  font-weight:950!important;
  cursor:pointer!important;
}
.tk-form-panel button[disabled]{
  opacity:.55!important;
  cursor:not-allowed!important;
}
.tk-staff-message{
  border-radius:14px!important;
  padding:14px 16px!important;
  font-weight:750!important;
  margin:14px 0 18px!important;
}
.tk-staff-message-success{background:#ecfdf5!important;color:#065f46!important;border:1px solid #a7f3d0!important;}
.tk-staff-message-warning{background:#fff7e6!important;color:#92400e!important;border:1px solid #fde68a!important;}
.tk-staff-message-error{background:#fef2f2!important;color:#991b1b!important;border:1px solid #fecaca!important;}
.tk-staff-message-info{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;}
@media(max-width:850px){
  .tk-forms-grid{grid-template-columns:1fr!important;}
}



/* Frontend students */
.tk-form-panel input[type=text],
.tk-form-panel input[type=email],
.tk-form-panel input[type=password],
.tk-form-panel input[type=number]{
  width:100%!important;
  min-height:46px!important;
  border:1px solid #d9e1df!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.tk-table-wrap{
  overflow-x:auto!important;
  margin-top:18px!important;
}
.tk-staff-table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid #e5e7eb!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.tk-staff-table th{
  background:#f7faf9!important;
  color:#53615d!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
  font-size:12px!important;
  font-weight:950!important;
  padding:14px 15px!important;
  text-align:left!important;
  border-bottom:1px solid #e5e7eb!important;
}
.tk-staff-table td{
  padding:14px 15px!important;
  border-bottom:1px solid #edf0ef!important;
  color:#1f2937!important;
  vertical-align:middle!important;
}
.tk-staff-table tr:last-child td{border-bottom:0!important;}
.tk-status-pill{
  display:inline-flex!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#ecf7f2!important;
  color:#13734f!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:capitalize!important;
}

.tk-debug-note{margin-top:16px!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:12px!important;color:#475569!important;font-size:12px!important;line-height:1.5!important}.tk-debug-note strong{color:#0f172a!important;font-weight:950!important}

.tk-debug-note{margin:14px 0 18px!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:12px!important;color:#475569!important;font-size:12px!important;line-height:1.55!important}
.tk-debug-note strong{color:#0f172a!important;font-weight:950!important}



.tk-secondary-btn{
  margin-top:10px!important;
  background:#f1f5f9!important;
  color:#0f172a!important;
  box-shadow:none!important;
}
.tk-mini-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:6px 9px!important;
  border-radius:9px!important;
  background:#ecf7f2!important;
  color:#13734f!important;
  font-size:12px!important;
  font-weight:950!important;
  text-decoration:none!important;
  margin:2px!important;
}
.tk-mini-link.danger{
  background:#fef2f2!important;
  color:#b91c1c!important;
}
.tk-staff-message{
  border-radius:14px!important;
  padding:14px 16px!important;
  font-weight:750!important;
  margin:14px 0 18px!important;
}
.tk-staff-message-success{background:#ecfdf5!important;color:#065f46!important;border:1px solid #a7f3d0!important;}
.tk-staff-message-error{background:#fef2f2!important;color:#991b1b!important;border:1px solid #fecaca!important;}
.tk-staff-message-warning{background:#fff7e6!important;color:#92400e!important;border:1px solid #fde68a!important;}



.tk-section-subtitle{
  margin:24px 0 12px!important;
  font-size:20px!important;
  font-weight:950!important;
  letter-spacing:-.03em!important;
  color:#101827!important;
}
.tk-form-panel input[type=number]{
  width:100%!important;
  min-height:46px!important;
  border:1px solid #d9e1df!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}



.tk-status-pill.published{
  background:#ecfdf5!important;
  color:#047857!important;
}
.tk-status-pill.draft{
  background:#fff7e6!important;
  color:#92400e!important;
}



.tk-report-filter{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  padding:18px!important;
  margin:18px 0!important;
}
.tk-report-filter label{
  display:block!important;
  font-weight:900!important;
  color:#24342f!important;
  margin-bottom:7px!important;
}
.tk-report-filter select,
.tk-report-filter button{
  width:100%!important;
  min-height:46px!important;
  border-radius:12px!important;
}
.tk-report-filter select{
  border:1px solid #d9e1df!important;
  padding:10px 13px!important;
  background:#fff!important;
}
.tk-report-filter button{
  border:0!important;
  background:linear-gradient(135deg,#071f18,#0f3d2e)!important;
  color:#fff!important;
  font-weight:950!important;
}
.tk-report-card-print{
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  border-radius:20px!important;
  padding:24px!important;
  margin-top:20px!important;
  box-shadow:0 16px 40px rgba(15,23,42,.07)!important;
}
.tk-report-headline{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:16px!important;
  border-bottom:1px solid #e5e7eb!important;
  padding-bottom:16px!important;
  margin-bottom:18px!important;
}
.tk-report-headline h2{
  margin:0!important;
  font-size:26px!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
}
.tk-report-headline p{margin:5px 0 0!important;color:#667085!important;font-weight:750!important;}
.tk-report-headline button{
  min-height:44px!important;
  border:0!important;
  border-radius:12px!important;
  padding:9px 16px!important;
  background:#071f18!important;
  color:#fff!important;
  font-weight:950!important;
}
.tk-report-meta,
.tk-report-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  margin:18px 0!important;
}
.tk-report-meta div,
.tk-report-summary div{
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:15px!important;
  padding:15px!important;
}
.tk-report-meta span,
.tk-report-summary span{
  display:block!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
  margin-bottom:6px!important;
}
.tk-report-meta strong,
.tk-report-summary strong{
  font-size:20px!important;
  font-weight:950!important;
  color:#111827!important;
}
.tk-paper-list{display:grid!important;gap:6px!important;}
.tk-paper-row{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  background:#f8faf9!important;
  border:1px solid #edf0ef!important;
  border-radius:10px!important;
  padding:7px 10px!important;
  font-size:13px!important;
}
.tk-paper-row span{font-weight:800!important;color:#374151!important;}
.tk-paper-row strong{font-weight:950!important;color:#111827!important;}
@media(max-width:900px){
  .tk-report-filter,.tk-report-meta,.tk-report-summary{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:560px){
  .tk-report-filter,.tk-report-meta,.tk-report-summary{grid-template-columns:1fr!important;}
}
@media print{
  body *{visibility:hidden!important;}
  #tk-report-print-area,#tk-report-print-area *{visibility:visible!important;}
  #tk-report-print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;box-shadow:none!important;border:0!important;border-radius:0!important;}
  .tk-report-headline button{display:none!important;}
}



.tk-mark-input{
  width:120px!important;
  min-height:40px!important;
  border:1px solid #d9e1df!important;
  border-radius:10px!important;
  padding:8px 10px!important;
  background:#fff!important;
}
.tk-mark-input:disabled{
  background:#f1f5f9!important;
  cursor:not-allowed!important;
}
.tk-save-wide-btn{
  margin-top:18px!important;
  min-height:46px!important;
  border:0!important;
  border-radius:12px!important;
  padding:10px 22px!important;
  background:linear-gradient(135deg,#071f18,#0f3d2e)!important;
  color:#fff!important;
  font-weight:950!important;
  cursor:pointer!important;
}

.tk-paper-status{min-height:40px!important;border:1px solid #d9e1df!important;border-radius:10px!important;padding:8px 10px!important;background:#fff!important}.tk-remarks-input{width:180px!important;min-height:40px!important;border:1px solid #d9e1df!important;border-radius:10px!important;padding:8px 10px!important;background:#fff!important}.tk-staff-message-info{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important}



.tk-clean-list{
  margin:12px 0!important;
  padding-left:20px!important;
}
.tk-clean-list li{
  margin:7px 0!important;
  color:#374151!important;
  font-weight:650!important;
}
.tk-form-panel textarea,
.tk-form-panel input[type=email]{
  width:100%!important;
  border:1px solid #d9e1df!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.tk-log-code{
  white-space:normal!important;
  max-width:380px!important;
  display:block!important;
  font-size:11px!important;
}



/* Final polish and report branding */
.tk-staff-content{background:radial-gradient(circle at top right,rgba(15,61,46,.05),transparent 28%),#f3f6f5!important;}
.tk-staff-card,.tk-form-panel,.tk-report-card-print{border-color:#dfe7e4!important;}
.tk-report-school-header{display:flex!important;align-items:center!important;justify-content:center!important;gap:16px!important;text-align:center!important;border-bottom:2px solid #071f18!important;padding-bottom:16px!important;margin-bottom:18px!important;}
.tk-report-school-header img{width:78px!important;height:78px!important;object-fit:contain!important;border-radius:12px!important;}
.tk-report-school-header h1{margin:0!important;color:#071f18!important;font-size:30px!important;line-height:1.05!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:-.04em!important;}
.tk-report-school-header p{margin:4px 0 0!important;color:#374151!important;font-size:13px!important;font-weight:650!important;}
.tk-report-footer{margin-top:22px!important;padding-top:14px!important;border-top:1px solid #e5e7eb!important;text-align:center!important;color:#4b5563!important;font-size:13px!important;font-weight:650!important;}
.tk-report-results-table td,.tk-report-results-table th{font-size:13px!important;}
.tk-staff-stat{transition:transform .15s ease,box-shadow .15s ease!important;}
.tk-staff-stat:hover{transform:translateY(-2px)!important;box-shadow:0 24px 60px rgba(15,23,42,.10)!important;}
.tk-mini-link,.tk-status-pill{white-space:nowrap!important;}
@media print{@page{size:A4;margin:12mm;}body{background:#fff!important}.tk-report-card-print{padding:0!important;margin:0!important}.tk-report-school-header h1{font-size:22px!important}.tk-report-meta,.tk-report-summary{grid-template-columns:repeat(4,1fr)!important;gap:8px!important}.tk-report-meta div,.tk-report-summary div{padding:10px!important}.tk-staff-table th,.tk-staff-table td{padding:8px!important;font-size:11px!important}}



/* School logo picker */
.tk-logo-preview-wrap{
  width:120px!important;
  height:120px!important;
  border:1px solid #d9e1df!important;
  border-radius:16px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  margin:8px 0 12px!important;
}
.tk-logo-preview-wrap img{
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}
.tk-logo-picker-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-bottom:12px!important;
}
.tk-inline-btn{
  min-height:42px!important;
  border:0!important;
  border-radius:11px!important;
  padding:9px 14px!important;
  background:#071f18!important;
  color:#fff!important;
  font-weight:950!important;
  cursor:pointer!important;
}
.tk-inline-danger{
  background:#fef2f2!important;
  color:#b91c1c!important;
  border:1px solid #fecaca!important;
}



/* Dashboard + report upgrade */
.tk-dashboard-split{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.tk-quick-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:14px!important;
}
.tk-quick-actions a{
  display:flex!important;
  align-items:center!important;
  min-height:44px!important;
  padding:10px 13px!important;
  border-radius:12px!important;
  background:#ecf7f2!important;
  color:#0f3d2e!important;
  text-decoration:none!important;
  font-weight:950!important;
}
.tk-mini-stats{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  margin-top:14px!important;
}
.tk-mini-stats div{
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:15px!important;
  padding:18px!important;
}
.tk-mini-stats span{
  display:block!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}
.tk-mini-stats strong{
  font-size:32px!important;
  font-weight:950!important;
}
.tk-activity-list{
  display:grid!important;
  gap:10px!important;
  margin-top:12px!important;
}
.tk-activity-list div{
  border:1px solid #e5e7eb!important;
  background:#f8faf9!important;
  border-radius:12px!important;
  padding:12px!important;
}
.tk-activity-list strong{display:block!important;color:#111827!important;}
.tk-activity-list span{display:block!important;color:#667085!important;font-size:12px!important;margin-top:4px!important;}
.tk-report-comments{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  margin-top:18px!important;
}
.tk-report-comments div{
  border:1px solid #e5e7eb!important;
  border-radius:14px!important;
  padding:14px!important;
  background:#fff!important;
}
.tk-report-comments span,
.tk-signature-row span{
  display:block!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  margin-bottom:8px!important;
}
.tk-report-comments p{margin:0!important;color:#111827!important;}
.tk-signature-row{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:18px!important;
}
.tk-signature-row div{
  border-top:1px solid #111827!important;
  padding-top:10px!important;
  min-height:54px!important;
}
.tk-signature-row strong{font-size:13px!important;color:#111827!important;}
@media(max-width:900px){
  .tk-dashboard-split,.tk-report-comments,.tk-signature-row{grid-template-columns:1fr!important;}
}
@media print{
  .tk-quick-actions,.tk-dashboard-split{display:none!important;}
  .tk-report-comments,.tk-signature-row{grid-template-columns:1fr 1fr 1fr!important;gap:8px!important;}
}



.tk-signature-preview-wrap{
  width:180px!important;
  height:90px!important;
  border:1px solid #d9e1df!important;
  border-radius:14px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  margin:8px 0 12px!important;
}
.tk-signature-preview-wrap img{
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}
.tk-report-signature-img{
  display:block!important;
  max-width:160px!important;
  max-height:52px!important;
  object-fit:contain!important;
  margin-top:4px!important;
}
@media print{
  .tk-report-signature-img{max-width:130px!important;max-height:45px!important;}
}

.tk-inner-backup-card{margin-top:22px!important;box-shadow:none!important;background:#f8faf9!important}.tk-inner-backup-card .tk-form-panel{background:#fff!important}

.tk-visible-backup-card{margin:18px 0!important;background:#f8faf9!important;box-shadow:none!important}.tk-visible-backup-card .tk-form-panel{background:#fff!important}



.tk-report-comments-editor{
  margin-top:18px!important;
}
.tk-report-comments-editor label{
  display:block!important;
  color:#24342f!important;
  font-weight:900!important;
  margin:12px 0 7px!important;
}
.tk-report-comments-editor textarea{
  width:100%!important;
  border:1px solid #d9e1df!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.tk-report-comments p{
  min-height:28px!important;
}
@media print{
  .tk-report-comments-editor{display:none!important;}
}



.tk-mini-title{
  margin-top:18px!important;
  font-size:18px!important;
}
.tk-status-mini-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
}
.tk-status-mini-list div{
  background:#f8faf9!important;
  border:1px solid #e5e7eb!important;
  border-radius:12px!important;
  padding:12px!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
}
.tk-status-mini-list span{
  color:#667085!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}
.tk-status-mini-list strong{
  color:#111827!important;
  font-size:20px!important;
  font-weight:950!important;
}



.tk-backup-confirm{
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  background:#fff7e6!important;
  color:#92400e!important;
  border:1px solid #fde68a!important;
  border-radius:12px!important;
  padding:12px 14px!important;
  margin:14px 0!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.tk-backup-confirm input{
  margin-top:3px!important;
}



.tk-batch-reports-box{
  margin:18px 0!important;
  background:#f8faf9!important;
  box-shadow:none!important;
}
.tk-batch-toolbar{
  background:#071f18!important;
  color:#fff!important;
  border-radius:18px!important;
  padding:18px!important;
  margin:18px 0!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:16px!important;
}
.tk-batch-toolbar h2{margin:0!important;color:#fff!important;font-weight:950!important;}
.tk-batch-toolbar p{margin:4px 0 0!important;color:#d7e8e2!important;font-weight:700!important;}
.tk-batch-toolbar button{
  min-height:44px!important;
  border:0!important;
  border-radius:12px!important;
  padding:10px 16px!important;
  background:#fff!important;
  color:#071f18!important;
  font-weight:950!important;
  cursor:pointer!important;
}
.tk-batch-report-page{
  margin-bottom:24px!important;
}
@media print{
  body *{visibility:hidden!important;}
  #tk-batch-print-area,#tk-batch-print-area *{visibility:visible!important;}
  #tk-batch-print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;}
  .tk-batch-report-page{
    page-break-after:always!important;
    break-after:page!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    margin:0!important;
  }
  .tk-batch-report-page:last-child{
    page-break-after:auto!important;
    break-after:auto!important;
  }
  .tk-batch-toolbar{display:none!important;}
}



.tk-class-summary-card{
  margin:20px 0!important;
}
.tk-class-summary-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
@media(max-width:900px){
  .tk-class-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .tk-class-summary-grid{grid-template-columns:1fr!important;}
}
@media print{
  body *{visibility:hidden!important;}
  #tk-class-summary-print-area,#tk-class-summary-print-area *{visibility:visible!important;}
  #tk-class-summary-print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;box-shadow:none!important;border:0!important;border-radius:0!important;}
  #tk-class-summary-print-area .tk-report-headline button{display:none!important;}
}



/* Print / Save as PDF polish */
.tk-print-help{
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1d4ed8!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  font-weight:750!important;
  margin:14px 0!important;
}

@media print{
  @page{
    size:A4 portrait;
    margin:10mm;
  }

  html,
  body{
    background:#fff!important;
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:0!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }

  body *{
    visibility:hidden!important;
  }

  #tk-report-print-area,
  #tk-report-print-area *,
  #tk-batch-print-area,
  #tk-batch-print-area *,
  #tk-class-summary-print-area,
  #tk-class-summary-print-area *{
    visibility:visible!important;
  }

  #tk-report-print-area,
  #tk-batch-print-area,
  #tk-class-summary-print-area{
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    background:#fff!important;
  }

  .tk-report-card-print,
  .tk-batch-report-page,
  .tk-class-summary-card{
    width:100%!important;
    max-width:100%!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }

  .tk-batch-report-page{
    page-break-after:always!important;
    break-after:page!important;
  }

  .tk-batch-report-page:last-child{
    page-break-after:auto!important;
    break-after:auto!important;
  }

  .tk-report-headline button,
  .tk-batch-toolbar,
  .tk-report-comments-editor,
  .tk-print-help,
  .tk-staff-sidebar,
  .tk-staff-topbar,
  .tk-report-filter,
  .tk-batch-reports-box{
    display:none!important;
  }

  .tk-report-school-header{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    border-bottom:1.5px solid #071f18!important;
    padding-bottom:8px!important;
    margin-bottom:10px!important;
    page-break-inside:avoid!important;
  }

  .tk-report-school-header img{
    width:58px!important;
    height:58px!important;
    object-fit:contain!important;
  }

  .tk-report-school-header h1{
    font-size:18px!important;
    line-height:1.05!important;
    margin:0!important;
    color:#071f18!important;
    text-transform:uppercase!important;
    letter-spacing:-.02em!important;
  }

  .tk-report-school-header p{
    margin:2px 0 0!important;
    font-size:10px!important;
    line-height:1.25!important;
    color:#374151!important;
  }

  .tk-report-headline{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-end!important;
    border-bottom:1px solid #e5e7eb!important;
    padding-bottom:6px!important;
    margin-bottom:8px!important;
    page-break-inside:avoid!important;
  }

  .tk-report-headline h2{
    font-size:15px!important;
    margin:0!important;
    color:#111827!important;
  }

  .tk-report-headline p{
    margin:2px 0 0!important;
    font-size:10px!important;
    color:#4b5563!important;
  }

  .tk-report-meta,
  .tk-report-summary,
  .tk-class-summary-grid{
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:5px!important;
    margin:7px 0!important;
    page-break-inside:avoid!important;
  }

  .tk-report-meta div,
  .tk-report-summary div{
    border:1px solid #d1d5db!important;
    border-radius:5px!important;
    padding:5px!important;
    background:#f9fafb!important;
    min-height:auto!important;
  }

  .tk-report-meta span,
  .tk-report-summary span,
  .tk-report-comments span,
  .tk-signature-row span{
    display:block!important;
    font-size:7.5px!important;
    line-height:1.1!important;
    margin-bottom:2px!important;
    color:#4b5563!important;
    text-transform:uppercase!important;
    font-weight:900!important;
  }

  .tk-report-meta strong,
  .tk-report-summary strong{
    font-size:10px!important;
    line-height:1.15!important;
    color:#111827!important;
    font-weight:900!important;
  }

  .tk-table-wrap{
    overflow:visible!important;
    margin-top:6px!important;
  }

  .tk-staff-table,
  .tk-report-results-table{
    width:100%!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
    border:1px solid #d1d5db!important;
    font-size:9px!important;
    page-break-inside:auto!important;
  }

  .tk-staff-table thead{
    display:table-header-group!important;
  }

  .tk-staff-table tr{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }

  .tk-staff-table th{
    background:#f3f4f6!important;
    color:#111827!important;
    border:1px solid #d1d5db!important;
    padding:4px!important;
    font-size:8px!important;
    line-height:1.15!important;
    text-transform:uppercase!important;
    letter-spacing:0!important;
  }

  .tk-staff-table td{
    border:1px solid #e5e7eb!important;
    padding:4px!important;
    font-size:8px!important;
    line-height:1.15!important;
    color:#111827!important;
    vertical-align:top!important;
  }

  .tk-status-pill{
    border-radius:999px!important;
    padding:2px 5px!important;
    font-size:7px!important;
    line-height:1!important;
    font-weight:900!important;
  }

  .tk-paper-list{
    display:grid!important;
    gap:2px!important;
  }

  .tk-paper-row{
    border:0!important;
    border-bottom:1px dotted #d1d5db!important;
    border-radius:0!important;
    background:transparent!important;
    padding:1px 0!important;
    font-size:7.5px!important;
  }

  .tk-section-subtitle{
    font-size:12px!important;
    margin:8px 0 5px!important;
    color:#111827!important;
    page-break-after:avoid!important;
  }

  .tk-report-comments{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    margin-top:7px!important;
    page-break-inside:avoid!important;
  }

  .tk-report-comments div{
    border:1px solid #d1d5db!important;
    border-radius:5px!important;
    padding:5px!important;
    min-height:34px!important;
    background:#fff!important;
  }

  .tk-report-comments p{
    font-size:9px!important;
    line-height:1.25!important;
    margin:0!important;
    min-height:auto!important;
  }

  .tk-signature-row{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:8px!important;
    margin-top:12px!important;
    page-break-inside:avoid!important;
  }

  .tk-signature-row div{
    border-top:1px solid #111827!important;
    padding-top:4px!important;
    min-height:35px!important;
  }

  .tk-signature-row strong{
    font-size:8px!important;
    font-weight:800!important;
    color:#111827!important;
  }

  .tk-report-signature-img{
    max-width:110px!important;
    max-height:32px!important;
    object-fit:contain!important;
    display:block!important;
    margin-top:1px!important;
  }

  .tk-report-footer{
    border-top:1px solid #e5e7eb!important;
    margin-top:8px!important;
    padding-top:5px!important;
    text-align:center!important;
    color:#4b5563!important;
    font-size:8px!important;
    line-height:1.2!important;
    page-break-inside:avoid!important;
  }
}



.tk-tool-grid-compact{
  grid-template-columns:1fr!important;
}
.tk-inner-data-card{
  margin-top:22px!important;
  background:#f8faf9!important;
  box-shadow:none!important;
}
.tk-inner-data-card .tk-tool-card{
  background:#fff!important;
}



.tk-preview-card{
  margin:18px 0!important;
  background:#f8faf9!important;
}
.tk-preview-card .tk-staff-table td{
  vertical-align:top!important;
}
.tk-muted-import-panel{
  opacity:.92!important;
}

.tk-preview-card{margin:18px 0!important;background:#f8faf9!important}


/* Dashboard + Staff Portal UX polish */
.tk-staff-shell {
    background: linear-gradient(135deg, #f7faf9 0%, #eef7f3 45%, #ffffff 100%);
}

.tk-staff-sidebar {
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
    border-right: 1px solid rgba(15, 23, 42, .06);
}

.tk-staff-brand {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.tk-staff-brand h2 {
    letter-spacing: -.04em;
}

.tk-staff-nav a {
    border-radius: 16px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.tk-staff-nav a:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.tk-staff-nav a.active {
    box-shadow: 0 12px 28px rgba(16, 185, 129, .20);
}

.tk-staff-main {
    padding-top: 28px;
}

.tk-staff-topbar {
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}

.tk-staff-topbar h1 {
    letter-spacing: -.045em;
}

.tk-staff-card,
.tk-form-panel,
.tk-dashboard-card {
    border: 1px solid rgba(15, 23, 42, .06) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07) !important;
    border-radius: 24px !important;
}

.tk-dashboard-grid,
.tk-stats-grid,
.tk-report-summary {
    gap: 18px !important;
}

.tk-dashboard-card,
.tk-stat-card,
.tk-report-summary > div {
    position: relative;
    overflow: hidden;
}

.tk-dashboard-card::after,
.tk-stat-card::after,
.tk-report-summary > div::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -45px;
    top: -45px;
    background: rgba(16, 185, 129, .10);
    border-radius: 999px;
}

.tk-dashboard-card strong,
.tk-stat-card strong,
.tk-report-summary strong {
    letter-spacing: -.04em;
}

.tk-staff-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.tk-staff-table th {
    background: #f1f8f5 !important;
    color: #0f3d2e !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tk-staff-table td,
.tk-staff-table th {
    border-bottom: 1px solid rgba(15,23,42,.06) !important;
}

.tk-staff-table tbody tr {
    transition: background .12s ease;
}

.tk-staff-table tbody tr:hover {
    background: #f8fffc;
}

.tk-save-wide-btn,
.tk-staff-btn,
.tk-form-panel button,
.tk-tool-card {
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.tk-save-wide-btn:hover,
.tk-staff-btn:hover,
.tk-form-panel button:hover,
.tk-tool-card:hover {
    transform: translateY(-1px);
    filter: brightness(.99);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.tk-tool-card {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f7fffb 100%) !important;
}

.tk-status-pill {
    border-radius: 999px !important;
    padding: 6px 11px !important;
    font-weight: 700 !important;
}

.tk-muted {
    color: #64748b;
}

.tk-backup-confirm {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-weight: 650;
    margin: 14px 0;
}

.tk-preview-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tk-preview-card h2::before {
    content: "✓";
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
}

@media (max-width: 900px) {
    .tk-staff-main {
        padding: 18px;
    }

    .tk-staff-topbar {
        border-radius: 20px;
    }

    .tk-staff-card,
    .tk-form-panel,
    .tk-dashboard-card {
        border-radius: 20px !important;
    }
}


/* Report card UI + print polish */
.tk-report-card,
.tk-print-report,
.tk-student-report {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    border-radius: 26px !important;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .08) !important;
    overflow: hidden;
}

.tk-report-header,
.tk-report-school-header {
    background: linear-gradient(135deg, #0f3d2e 0%, #146c43 100%) !important;
    color: #ffffff !important;
    padding: 28px !important;
    border-radius: 0 !important;
    position: relative;
}

.tk-report-header::after,
.tk-report-school-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    background: rgba(255,255,255,.10);
    border-radius: 999px;
}

.tk-report-header h1,
.tk-report-header h2,
.tk-report-school-header h1,
.tk-report-school-header h2 {
    color: #ffffff !important;
    letter-spacing: -.04em;
    margin-bottom: 6px !important;
}

.tk-report-logo,
.tk-school-logo,
.tk-report-header img,
.tk-report-school-header img {
    background: #ffffff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    max-height: 92px;
    object-fit: contain;
}

.tk-report-meta,
.tk-report-student-info,
.tk-report-details {
    background: #f8fafc !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin: 18px 0 !important;
}

.tk-report-meta strong,
.tk-report-student-info strong,
.tk-report-details strong {
    color: #0f3d2e !important;
}

.tk-report-table,
.tk-report-card table,
.tk-student-report table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: 18px !important;
    border: 1px solid rgba(15,23,42,.10) !important;
}

.tk-report-table th,
.tk-report-card table th,
.tk-student-report table th {
    background: #eaf7f0 !important;
    color: #0f3d2e !important;
    text-transform: uppercase;
    font-size: 11px !important;
    letter-spacing: .05em;
    padding: 12px !important;
    border-bottom: 1px solid rgba(15,23,42,.10) !important;
}

.tk-report-table td,
.tk-report-card table td,
.tk-student-report table td {
    padding: 11px 12px !important;
    border-bottom: 1px solid rgba(15,23,42,.06) !important;
}

.tk-report-table tr:last-child td,
.tk-report-card table tr:last-child td,
.tk-student-report table tr:last-child td {
    border-bottom: none !important;
}

.tk-report-table tbody tr:nth-child(even),
.tk-report-card table tbody tr:nth-child(even),
.tk-student-report table tbody tr:nth-child(even) {
    background: #fbfdfc !important;
}

.tk-report-summary,
.tk-report-totals,
.tk-student-report-summary {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin: 18px 0 !important;
}

.tk-report-comments,
.tk-report-signatures,
.tk-report-footer {
    border-top: 1px dashed rgba(15,23,42,.18);
    margin-top: 22px !important;
    padding-top: 18px !important;
}

.tk-report-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tk-report-signature-box {
    min-height: 86px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
}

.tk-report-signature-box img,
.tk-report-signatures img {
    max-height: 52px;
    object-fit: contain;
}

.tk-print-actions,
.tk-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.tk-print-actions button,
.tk-report-actions button,
.tk-print-actions a,
.tk-report-actions a {
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 750 !important;
}

@media print {
    body {
        background: #ffffff !important;
    }

    .tk-staff-sidebar,
    .tk-staff-topbar,
    .tk-print-actions,
    .tk-report-actions,
    .tk-form-panel,
    .tk-dashboard-welcome-note,
    .tk-no-print,
    nav,
    header,
    footer {
        display: none !important;
    }

    .tk-staff-shell,
    .tk-staff-main,
    .tk-staff-content {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .tk-report-card,
    .tk-print-report,
    .tk-student-report {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        page-break-after: always;
    }

    .tk-report-card:last-child,
    .tk-print-report:last-child,
    .tk-student-report:last-child {
        page-break-after: auto;
    }

    .tk-report-header,
    .tk-report-school-header {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 18px !important;
    }

    .tk-report-table th,
    .tk-report-card table th,
    .tk-student-report table th {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }
}


/* Offline Tools visible import grid */
.tk-offline-import-grid-card {
    margin-bottom: 22px !important;
}

.tk-offline-import-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.tk-offline-import-grid .tk-form-panel {
    margin: 0 !important;
    height: 100%;
}

.tk-offline-import-grid .tk-form-panel h3 {
    margin-bottom: 8px !important;
}

.tk-offline-import-grid .tk-form-panel p {
    min-height: 42px;
}

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


/* Offline import wording helper */
.tk-import-flow-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
    font-size: 13px;
}

.tk-import-flow-note strong {
    font-weight: 800;
}

.tk-import-flow-note span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, .10);
}


/* Help / Guide section proper */
.tk-help-guide-direct-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:999px;background:#ecfdf5;color:#14532d!important;border:1px solid #bbf7d0;font-weight:800;text-decoration:none;margin-right:12px}
.tk-help-guide{margin-bottom:22px!important}
.tk-guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.tk-guide-steps>div{padding:18px;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f7fffb 100%);border:1px solid rgba(15,23,42,.08);box-shadow:0 12px 30px rgba(15,23,42,.05)}
.tk-guide-steps strong{display:block;color:#0f3d2e;font-size:16px;margin-bottom:8px}
.tk-guide-steps p{margin:0;color:#64748b}
.tk-guide-flow{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.tk-guide-flow span{padding:10px 14px;border-radius:999px;background:#ecfdf5;color:#14532d;border:1px solid #bbf7d0;font-weight:750}
.tk-guide-list{margin:14px 0 0 0;padding:0;list-style:none}
.tk-guide-list li{position:relative;padding:12px 12px 12px 42px;margin-bottom:10px;border-radius:16px;background:#f8fafc;border:1px solid rgba(15,23,42,.06);color:#334155}
.tk-guide-list li:before{content:"✓";position:absolute;left:14px;top:10px;width:22px;height:22px;border-radius:999px;background:#dcfce7;color:#166534;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
@media(max-width:900px){.tk-guide-steps{grid-template-columns:1fr}}


/* Student login + logout polish */
.tk-student-login-error {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    margin-bottom: 14px;
    font-weight: 700;
}

.tk-student-logout-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 16px;
}

.tk-student-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f3d2e;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 61, 46, .18);
}

.tk-student-logout-btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}


/* Student logout shortcode */
.tk-student-shortcode-logout {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 1080px !important;
    margin: 0 auto 16px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.tk-student-shortcode-logout a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    background: #b91c1c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 28px rgba(185, 28, 28, .22) !important;
}

.tk-student-shortcode-logout a:hover {
    filter: brightness(.95);
}


/* Premium student portal login design */
.tikhonze-student-login,
.tk-student-login,
.student-login,
form:has(input[name="student_number"]) {
    max-width: 460px !important;
    margin: 42px auto !important;
    padding: 34px !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f7fffb 100%) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12) !important;
    position: relative !important;
    overflow: hidden !important;
}

.tikhonze-student-login::before,
.tk-student-login::before,
.student-login::before,
form:has(input[name="student_number"])::before {
    content: "Student Portal";
    display: block;
    margin: -34px -34px 28px;
    padding: 26px 34px;
    background: linear-gradient(135deg, #0f3d2e 0%, #146c43 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.tikhonze-student-login::after,
.tk-student-login::after,
.student-login::after,
form:has(input[name="student_number"])::after {
    content: "Login using your student number and password";
    display: block;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.tikhonze-student-login label,
.tk-student-login label,
.student-login label,
form:has(input[name="student_number"]) label {
    display: block !important;
    margin: 14px 0 7px !important;
    color: #0f3d2e !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

.tikhonze-student-login input[type="text"],
.tikhonze-student-login input[type="password"],
.tk-student-login input[type="text"],
.tk-student-login input[type="password"],
.student-login input[type="text"],
.student-login input[type="password"],
form:has(input[name="student_number"]) input[type="text"],
form:has(input[name="student_number"]) input[type="password"] {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    background: #ffffff !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
}

.tikhonze-student-login input:focus,
.tk-student-login input:focus,
.student-login input:focus,
form:has(input[name="student_number"]) input:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12) !important;
}

.tikhonze-student-login button,
.tikhonze-student-login input[type="submit"],
.tk-student-login button,
.tk-student-login input[type="submit"],
.student-login button,
.student-login input[type="submit"],
form:has(input[name="student_number"]) button,
form:has(input[name="student_number"]) input[type="submit"] {
    width: 100% !important;
    margin-top: 18px !important;
    min-height: 50px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0f3d2e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    box-shadow: 0 16px 34px rgba(22, 163, 74, .22) !important;
}

.tikhonze-student-login button:hover,
.tikhonze-student-login input[type="submit"]:hover,
.tk-student-login button:hover,
.tk-student-login input[type="submit"]:hover,
.student-login button:hover,
.student-login input[type="submit"]:hover,
form:has(input[name="student_number"]) button:hover,
form:has(input[name="student_number"]) input[type="submit"]:hover {
    filter: brightness(.96) !important;
    transform: translateY(-1px) !important;
}

.tk-student-login-error {
    max-width: 460px !important;
    margin: 20px auto -20px !important;
    padding: 13px 16px !important;
    border-radius: 16px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    font-weight: 800 !important;
}

@media (max-width: 640px) {
    .tikhonze-student-login,
    .tk-student-login,
    .student-login,
    form:has(input[name="student_number"]) {
        margin: 24px 12px !important;
        padding: 26px !important;
        border-radius: 24px !important;
    }

    .tikhonze-student-login::before,
    .tk-student-login::before,
    .student-login::before,
    form:has(input[name="student_number"])::before {
        margin: -26px -26px 22px;
        padding: 22px 26px;
        font-size: 21px;
    }
}


/* Staff portal full-width page fix */
body:has(.tk-staff-shell) .entry-title,
body:has(.tk-staff-shell) .page-title,
body:has(.tk-staff-shell) .post-title,
body:has(.tk-staff-shell) .wp-block-post-title {
    display: none !important;
}

body:has(.tk-staff-shell) .site-main,
body:has(.tk-staff-shell) .content-area,
body:has(.tk-staff-shell) .entry-content,
body:has(.tk-staff-shell) .page-content,
body:has(.tk-staff-shell) .wp-site-blocks,
body:has(.tk-staff-shell) .elementor,
body:has(.tk-staff-shell) .elementor-section,
body:has(.tk-staff-shell) .elementor-container,
body:has(.tk-staff-shell) .elementor-widget-container,
body:has(.tk-staff-shell) .elementor-widget-shortcode {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tk-staff-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
}

.tk-staff-main,
.tk-staff-content {
    max-width: none !important;
    width: 100% !important;
}

@media (min-width: 1024px) {
    .tk-staff-shell {
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
    }

    .tk-staff-sidebar {
        min-height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
    }
}

body.admin-bar .tk-staff-sidebar {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar .tk-staff-sidebar {
        top: 46px !important;
    }
}
