.kic-app {
  --kic-ink: #16324f;
  --kic-blue: #1d4f91;
  --kic-line: #d5e2f2;
  --kic-muted: #607086;
  direction: rtl;
  font-family: "Tajawal", "Cairo", "Noto Naskh Arabic", Tahoma, sans-serif;
  color: #24384d;
  background: #f6f9fc;
  padding: 12px 0 40px;
}
.kic-app h1 {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 800;
  color: #16324f;
}
.kic-app p { margin: 0; color: #24384d; line-height: 1.8; }
.kic-app * { box-sizing: border-box; }
.kic-section { max-width: 1180px; margin: 0 auto; padding: 12px 16px 24px; }
.kic-section h1 { margin: 0; color: var(--kic-ink); font-size: 1.6rem; font-weight: 800; }
.kic-muted { color: var(--kic-muted); font-size: 0.92rem; }
.kic-head, .kic-filters-bar, .kic-tools, .kic-search-row, .kic-pager {
  display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.kic-head { margin-bottom: 16px; }
.kic-filters-bar { margin: 12px 0; }
.kic-pill, .kic-segment { border: 1px solid var(--kic-blue); border-radius: 999px; background: #fff; color: var(--kic-blue); font-weight: 700; }
.kic-pill { padding: 6px 12px; }
.kic-segment { overflow: hidden; border-radius: 10px; }
.kic-segment button { border: 0; background: #fff; color: var(--kic-blue); padding: 8px 16px; font-weight: 700; cursor: pointer; }
.kic-segment button.is-active { background: var(--kic-blue); color: #fff; }
.kic-app .kic-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.kic-app a.kic-btn-dark, .kic-app button.kic-btn-dark { background: #0f2e19; color: #fff; }
.kic-app a.kic-btn-blue, .kic-app button.kic-btn-blue { background: var(--kic-blue); color: #fff; }
.kic-app a.kic-btn-line, .kic-app button.kic-btn-line { background: #fff; color: var(--kic-ink); border-color: var(--kic-line); }
.kic-app .kic-search-row input, .kic-app .kic-opp-form input, .kic-app .kic-opp-form select, .kic-app .kic-opp-form textarea, .kic-app .kic-filter-panel input, .kic-app .kic-admin input {
  width: 100%; min-height: 40px; border: 1px solid var(--kic-line); border-radius: 10px; padding: 8px 10px; background: #fff; font: inherit;
}
.kic-search-row input { min-width: 260px; }
.kic-app .kic-filter-panel,
.kic-app .kic-opp-form,
.kic-app .kic-admin,
.kic-app .kic-meta,
.kic-app .kic-table-card,
.kic-app .kic-sheet,
.kic-app .kic-countdown {
  background: #fff; border: 1px solid var(--kic-line); border-radius: 16px;
}
.kic-app .kic-filter-panel[hidden] { display: none !important; }
.kic-app .kic-filter-panel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 16px; margin-bottom: 12px; }
.kic-app .kic-filter-panel label,
.kic-app .kic-opp-form label,
.kic-app .kic-admin label { display: grid; gap: 6px; font-weight: 700; color: var(--kic-ink); }
.kic-app .kic-filter-panel fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.kic-app .kic-filter-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.kic-table-card { overflow: hidden; }
.kic-table-scroll { overflow-x: auto; }
.kic-app table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.92rem; }
.kic-app th, .kic-app td { padding: 10px 8px; text-align: start; vertical-align: middle; border-bottom: 1px solid #eef3f8; white-space: nowrap; }
.kic-app td:nth-child(3), .kic-app td:nth-child(4), .kic-app td:nth-child(5) { white-space: normal; max-width: 220px; }
.kic-app th:last-child,
.kic-app td.kic-more {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 118px;
  background: #fff;
  box-shadow: 8px 0 10px rgba(22, 50, 79, 0.06);
}
.kic-app td.kic-more .kic-btn { width: auto; max-width: none; white-space: nowrap; }
.kic-app tr[hidden] { display: none !important; }
.kic-app th { color: var(--kic-muted); font-weight: 600; }
.kic-center { text-align: center; }
.kic-days { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 2px solid var(--kic-blue); border-radius: 999px; color: var(--kic-blue); font-weight: 800; }
.kic-days.is-done { border-color: #c5ced8; color: #8b97a3; }
.kic-ongoing, .kic-status { font-weight: 700; color: #047857; }
.kic-status.is-ended, .kic-ongoing { color: var(--kic-blue); }
.kic-status.is-ended { color: var(--kic-muted); }
.kic-empty, .kic-pager, .kic-notice, .kic-banner { padding: 14px 16px; }
.kic-notice, .kic-banner { background: #f4f7fb; border-radius: 12px; }
.kic-notice { color: #9f1239; font-weight: 700; }
.kic-detail { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: start; }
.kic-sheet-bar, .kic-crumb { display: flex; justify-content: space-between; gap: 8px; color: var(--kic-muted); }
.kic-sheet-actions { display: inline-flex; align-items: center; gap: 16px; }
.kic-app button.kic-text-btn { border: 0; background: transparent; color: var(--kic-blue); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.kic-crumb { margin-bottom: 12px; }
.kic-crumb a, .kic-sheet-bar a { color: var(--kic-blue); font-weight: 700; text-decoration: none; }
.kic-sheet-frame { background: #f7f3e8; padding: 12px; }
.kic-sheet-frame iframe { width: 100%; height: 640px; border: 6px solid #1a2744; background: #fff; }
.kic-poster { min-height: 420px; margin: 0; padding: 32px 20px; text-align: center; background: #fbf7ea; border: 6px solid #1a2744; }
.kic-poster h2 { color: #12351f; font-size: 1.8rem; }
.kic-poster strong { display: block; margin: 18px 0; color: #8d6a24; font-size: 1.6rem; }
.kic-side { display: grid; gap: 12px; }
.kic-app .kic-countdown { display: flex; justify-content: flex-start; gap: 18px; align-items: center; background: #f3f8fd; padding: 12px 16px; }
.kic-countdown strong, .kic-count { color: var(--kic-blue); }
.kic-count { display: flex; gap: 12px; text-align: center; }
.kic-count b { display: block; font-size: 1.15rem; }
.kic-app .kic-meta, .kic-app .kic-admin, .kic-app .kic-opp-form { padding: 16px; }
.kic-app .kic-meta p, .kic-app .kic-admin p { margin: 0 0 8px; line-height: 1.8; }
.kic-app .kic-opp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: none; }
.kic-wide, .kic-check { grid-column: 1 / -1; }
.kic-check { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.kic-org { font-weight: 700; }
@media (max-width: 900px) {
  .kic-app .kic-detail, .kic-app .kic-opp-form { grid-template-columns: 1fr; }
  .kic-app .kic-sheet-frame iframe { height: 420px; }
  .kic-app .kic-countdown, .kic-app .kic-count { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .kic-app { padding-top: 0; }
  .kic-section { padding: 8px 12px 24px; }
  .kic-app h1 { font-size: 24px; }
  .kic-head, .kic-filters-bar, .kic-search-row, .kic-tools, .kic-pager { align-items: stretch; }
  .kic-search-row { width: 100%; }
  .kic-search-row input { min-width: 0; width: 100%; }
  .kic-segment { display: flex; }
  .kic-segment button { flex: 1; }
  .kic-app .kic-table-scroll { overflow: visible; }
  .kic-app table, .kic-app tbody, .kic-app tr, .kic-app td { display: block; width: 100%; min-width: 0; max-width: none; }
  .kic-app thead { display: none; }
  .kic-app tr {
    margin: 0 0 12px;
    padding: 8px 14px 12px;
    border: 1px solid var(--kic-line);
    border-radius: 16px;
    background: #fff;
  }
  .kic-app td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border: 0;
    white-space: normal;
    text-align: start;
    box-shadow: none;
    position: static;
  }
  .kic-app td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--kic-muted);
    font-weight: 700;
  }
  .kic-app td.kic-more { display: block; padding-top: 12px; }
  .kic-app td.kic-more::before { content: none; }
  .kic-app td.kic-more .kic-btn { width: 100%; }
}
.kic-print-sheet { display: none; }
@media print {
  body:has(.kic-print-sheet) header,
  body:has(.kic-print-sheet) footer,
  body:has(.kic-print-sheet) #wpadminbar,
  body:has(.kic-print-sheet) .kic-screen { display: none !important; }
  body:has(.kic-print-sheet),
  body:has(.kic-print-sheet) main { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body:has(.kic-print-sheet) .kic-print-sheet { display: block !important; }
  @page { size: A4; margin: 12mm; }
}
.kic-print-sheet { color: #173b34; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kic-print-head { text-align: center; border-bottom: 3px solid #c7a55b; padding-bottom: 8px; margin-bottom: 10px; }
.kic-print-head p { margin: 0; }
.kic-print-org { margin-top: 4px; font-size: 26px; font-weight: 800; color: #073f37; }
.kic-print-kicker { margin-top: 10px; font-size: 20px; font-weight: 800; color: #8b6528; }
.kic-print-purpose { margin-top: 4px; font-size: 14px; color: #697772; }
.kic-print-sheet h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; font-weight: 800; color: #173b34; }
.kic-print-sheet table { width: 100%; border-collapse: collapse; }
.kic-print-sheet th, .kic-print-sheet td { border: 1px solid #173b34; padding: 4px 8px; text-align: right; vertical-align: top; font-size: 13px; line-height: 1.45; }
.kic-print-sheet th { width: 28%; background: #f5f3ee; font-weight: 800; }
.kic-print-sheet section { margin-top: 10px; break-inside: avoid; }
.kic-print-sheet h3 { margin: 0 0 4px; font-size: 15px; }
.kic-print-sheet section p { margin: 0; font-size: 13px; line-height: 1.7; color: #173b34; }
.kic-print-foot { margin-top: 10px; border-top: 1px solid #173b34; padding-top: 6px; font-size: 12px; color: #697772; break-inside: avoid; }
.kic-print-foot p { margin: 0 0 2px; }
