/**
 * E-Sevai Works — useful ops board
 */
@import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@700;800;900&family=Outfit:wght@600;700;800&display=swap");

body.esevai-mode #esWorksSection.es-wk-world.active-section {
  background:
    radial-gradient(ellipse 60% 36% at 8% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, #e0f2fe 0%, #f8fafc 40%, #ffffff 100%) !important;
  min-height: calc(100vh - 110px);
  padding: 8px 12px 40px !important;
  font-family: "Outfit", "Catamaran", system-ui, sans-serif;
}

body.esevai-mode #esWorksSection .es-wk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
  max-width: 1320px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(125deg, #0c4a6e 0%, #0284c7 50%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(2, 132, 199, 0.28);
}

body.esevai-mode #esWorksSection .es-wk-header__title {
  margin: 0;
  font-family: "Catamaran", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 900;
}

body.esevai-mode #esWorksSection .es-wk-header__sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
}

body.esevai-mode #esWorksSection .es-wk-header__btn {
  min-height: 46px;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  background: #fff;
  color: #0369a1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

body.esevai-mode #esWorksSection .es-wk-health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-width: 1320px;
  margin: 0 auto 12px;
}

body.esevai-mode #esWorksSection .es-wk-kpi {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  font: inherit;
}

body.esevai-mode #esWorksSection .es-wk-kpi span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.esevai-mode #esWorksSection .es-wk-kpi b {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 1000;
  color: #0f172a;
}

body.esevai-mode #esWorksSection .es-wk-kpi--danger {
  background: linear-gradient(160deg, #fff1f2, #ffe4e6);
  border-color: #fecdd3;
}

body.esevai-mode #esWorksSection .es-wk-kpi--warn {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}

body.esevai-mode #esWorksSection .es-wk-kpi--info {
  background: linear-gradient(160deg, #e0f2fe, #bae6fd);
  border-color: #7dd3fc;
}

body.esevai-mode #esWorksSection .es-wk-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(2, 132, 199, 0.14);
}

body.esevai-mode #esWorksSection .es-wk-search {
  flex: 1 1 240px;
  min-height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
}

body.esevai-mode #esWorksSection .es-wk-search:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

body.esevai-mode #esWorksSection .es-wk-hint {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

body.esevai-mode #esWorksSection #esWorksFilterChips.es-wk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1320px;
  margin: 0 auto 14px !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.esevai-mode #esWorksSection .es-wk-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body.esevai-mode #esWorksSection .es-wk-chip.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

body.esevai-mode #esWorksSection #esWorksGrid.es-wk-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 14px !important;
  max-width: 1320px;
  margin: 0 auto;
}

body.esevai-mode #esWorksSection .es-wk-card {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.esevai-mode #esWorksSection .es-wk-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0ea5e9;
}

body.esevai-mode #esWorksSection .es-wk-card.has-due::before {
  background: #e11d48;
}

body.esevai-mode #esWorksSection .es-wk-card.is-action::before,
body.esevai-mode #esWorksSection .es-wk-card.is-resub::before {
  background: #d97706;
}

body.esevai-mode #esWorksSection .es-wk-card.is-done::before {
  background: #16a34a;
}

body.esevai-mode #esWorksSection .es-wk-card.is-hold::before {
  background: #ca8a04;
}

body.esevai-mode #esWorksSection .es-wk-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

body.esevai-mode #esWorksSection .es-wk-card__svc {
  font-family: "Catamaran", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

body.esevai-mode #esWorksSection .es-wk-card__cust {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

body.esevai-mode #esWorksSection .es-wk-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

body.esevai-mode #esWorksSection .es-wk-card.is-done .es-wk-badge {
  background: #dcfce7;
  color: #166534;
}

body.esevai-mode #esWorksSection .es-wk-card.is-action .es-wk-badge,
body.esevai-mode #esWorksSection .es-wk-card.is-resub .es-wk-badge {
  background: #ffedd5;
  color: #c2410c;
}

body.esevai-mode #esWorksSection .es-wk-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
  background: #fef3c7;
  color: #92400e;
  vertical-align: middle;
}

body.esevai-mode #esWorksSection .es-wk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

body.esevai-mode #esWorksSection .es-wk-hint-line {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
}

body.esevai-mode #esWorksSection .es-wk-card.has-due .es-wk-hint-line {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

body.esevai-mode #esWorksSection .es-wk-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

body.esevai-mode #esWorksSection .es-wk-money > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
}

body.esevai-mode #esWorksSection .es-wk-money span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

body.esevai-mode #esWorksSection .es-wk-money b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 1000;
  color: #0f172a;
}

body.esevai-mode #esWorksSection .es-wk-money .is-due {
  background: #fff1f2;
  border-color: #fecdd3;
}

body.esevai-mode #esWorksSection .es-wk-money .is-due b {
  color: #be123c;
}

body.esevai-mode #esWorksSection .es-wk-money--empty {
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

body.esevai-mode #esWorksSection .es-wk-note {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
}

body.esevai-mode #esWorksSection .es-wk-doc {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}

body.esevai-mode #esWorksSection .es-wk-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body.esevai-mode #esWorksSection .es-wk-more {
  margin-top: 8px;
}

body.esevai-mode #esWorksSection .es-wk-more summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  list-style: none;
}

body.esevai-mode #esWorksSection .es-wk-more__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

body.esevai-mode #esWorksSection .es-wk-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

body.esevai-mode #esWorksSection .es-wk-attach input {
  display: none;
}

body.esevai-mode #esWorksSection .es-wk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  border: 2px dashed #7dd3fc;
  background: #f0f9ff;
  color: #0369a1;
}

body.esevai-mode #esWorksSection .es-wk-empty b {
  display: block;
  font-size: 1.1rem;
  font-weight: 1000;
}

body.esevai-mode #esWorksSection .es-wk-empty p {
  margin: 8px auto 14px;
  max-width: 420px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 720px) {
  body.esevai-mode #esWorksSection .es-wk-header__btn {
    width: 100%;
  }

  body.esevai-mode #esWorksSection .es-wk-hint {
    display: none;
  }
}
