/* 11th All India Sanskaram Olympiad - shared styles (form, admit card, status, admin) */
:root {
  --oly-orange: #e8661b;
  --oly-orange-dark: #c4510f;
  --oly-brown: #8b3a0f;
  --oly-cream: #fdf4ee;
  --oly-ink: #2b2420;
  --oly-muted: #6f625a;
  --oly-line: #ead8cb;
  --oly-ok: #1f7a3d;
  --oly-ok-bg: #e7f5ec;
  --oly-err: #b42318;
  --oly-err-bg: #fdecea;
  --oly-radius: 10px;
}

.oly, .oly * { box-sizing: border-box; }
.oly { font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--oly-ink); background: var(--oly-cream); line-height: 1.45; margin: 0; padding: 0 0 40px; min-height: 100vh; }
.oly a { color: var(--oly-orange-dark); }

.oly-top { background: var(--oly-brown); color: #fff; padding: 14px 16px; }
.oly-top-in { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.oly-top img { height: 52px; width: auto; background: #fff; border-radius: 6px; padding: 3px; }
.oly-top .t1 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.oly-top .t2 { font-size: 20px; font-weight: 700; line-height: 1.2; }

.oly-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.oly-hero { background: #fff; border: 1px solid var(--oly-line); border-radius: var(--oly-radius); margin: 18px 0 14px; padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.oly-hero div { border-left: 3px solid var(--oly-orange); padding-left: 10px; }
.oly-hero b { display: block; font-size: 12px; text-transform: uppercase; color: var(--oly-muted); letter-spacing: .04em; font-weight: 600; }
.oly-hero span { font-size: 16px; font-weight: 600; }

.oly-card { background: #fff; border: 1px solid var(--oly-line); border-radius: var(--oly-radius); padding: 20px; margin-bottom: 14px; }
.oly-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--oly-brown); }
.oly-card .sub { margin: 0 0 16px; color: var(--oly-muted); font-size: 14px; }
.oly-section { font-size: 13px; font-weight: 700; color: var(--oly-orange-dark); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--oly-line); }
.oly-section:first-of-type { margin-top: 4px; }

.oly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.oly-grid .full { grid-column: 1 / -1; }
.oly-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.oly-field label .req { color: var(--oly-err); }
.oly-field .hint { font-size: 12px; color: var(--oly-muted); margin-top: 4px; }
.oly-field input, .oly-field select, .oly-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cdb9aa; border-radius: 8px; background: #fff; color: var(--oly-ink);
}
.oly-field textarea { min-height: 70px; resize: vertical; }
.oly-field input:focus, .oly-field select:focus, .oly-field textarea:focus { outline: 2px solid rgba(232,102,27,.35); border-color: var(--oly-orange); }
.oly-field.bad input, .oly-field.bad select, .oly-field.bad textarea { border-color: var(--oly-err); background: #fffafa; }
.oly-radio { display: flex; gap: 10px; flex-wrap: wrap; }
.oly-radio label { display: flex; align-items: center; gap: 6px; font-weight: 500; border: 1px solid #cdb9aa; border-radius: 8px; padding: 9px 14px; cursor: pointer; margin: 0; }
.oly-radio input { width: auto; }

.oly-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 16px; }
.oly-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.oly-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer; background: var(--oly-orange); color: #fff; text-decoration: none; }
.oly-btn:hover { background: var(--oly-orange-dark); }
.oly-btn[disabled] { opacity: .6; cursor: not-allowed; }
.oly-btn.ghost { background: #fff; color: var(--oly-orange-dark); border: 1px solid var(--oly-orange); }
.oly-btn.small { font-size: 13px; padding: 6px 10px; font-weight: 600; }
.oly-btn.block { width: 100%; }
.oly-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.oly-msg { border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 14px 0 0; display: none; }
.oly-msg.show { display: block; }
.oly-msg.err { background: var(--oly-err-bg); color: var(--oly-err); border: 1px solid #f5c2bd; }
.oly-msg.ok { background: var(--oly-ok-bg); color: var(--oly-ok); border: 1px solid #b6e0c4; }
.oly-msg.info { background: #fff6ee; color: var(--oly-brown); border: 1px solid var(--oly-line); }

.oly-note { font-size: 13px; color: var(--oly-muted); }
.oly-foot { text-align: center; font-size: 13px; color: var(--oly-muted); margin-top: 18px; }

/* admit card */
.oly-slip { background: #fff; border: 2px solid var(--oly-brown); border-radius: 8px; overflow: hidden; }
.oly-slip-head { background: var(--oly-brown); color: #fff; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.oly-slip-head img { height: 54px; background: #fff; border-radius: 6px; padding: 3px; }
.oly-slip-head .t2 { font-size: 18px; font-weight: 700; }
.oly-slip-title { text-align: center; font-weight: 700; letter-spacing: .12em; padding: 8px; background: #fbe7d9; color: var(--oly-brown); }
.oly-roll { text-align: center; padding: 14px 10px 6px; }
.oly-roll b { display: block; font-size: 12px; text-transform: uppercase; color: var(--oly-muted); letter-spacing: .08em; }
.oly-roll span { font-size: 30px; font-weight: 800; letter-spacing: .04em; color: var(--oly-brown); }
.oly-slip table { width: 100%; border-collapse: collapse; }
.oly-slip td { padding: 8px 14px; border-top: 1px solid var(--oly-line); font-size: 14px; vertical-align: top; }
.oly-slip td:first-child { width: 38%; color: var(--oly-muted); font-weight: 600; }
.oly-slip .strong td { background: #fff6ee; font-weight: 700; }
.oly-slip ol { margin: 0; padding: 10px 14px 12px 32px; font-size: 13px; border-top: 1px solid var(--oly-line); }
.oly-slip .sign { display: flex; justify-content: space-between; padding: 26px 16px 12px; font-size: 13px; color: var(--oly-muted); border-top: 1px solid var(--oly-line); }

/* status list */
.oly-list { list-style: none; padding: 0; margin: 14px 0 0; }
.oly-list li { border: 1px solid var(--oly-line); border-radius: 8px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }

/* admin */
.oly-admin .oly-wrap { max-width: 1240px; }
.oly-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.oly-tabs button { font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--oly-line); background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; color: var(--oly-ink); }
.oly-tabs button.on { background: var(--oly-brown); color: #fff; border-color: var(--oly-brown); }
.oly-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.oly-kpi { background: #fff; border: 1px solid var(--oly-line); border-radius: 8px; padding: 12px; }
.oly-kpi b { display: block; font-size: 12px; color: var(--oly-muted); font-weight: 600; }
.oly-kpi span { font-size: 22px; font-weight: 700; }
.oly-kpi.warn span { color: var(--oly-err); }
.oly-table-wrap { overflow-x: auto; }
.oly-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.oly-table th, .oly-table td { border-bottom: 1px solid var(--oly-line); padding: 7px 8px; text-align: left; white-space: nowrap; }
.oly-table th { background: #fbe7d9; color: var(--oly-brown); position: sticky; top: 0; }
.oly-table td.num, .oly-table th.num { text-align: right; }
.oly-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.oly-filters input, .oly-filters select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid #cdb9aa; border-radius: 6px; background: #fff; }
.oly-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: #eee; }
.oly-pill.PAID, .oly-pill.SENT { background: var(--oly-ok-bg); color: var(--oly-ok); }
.oly-pill.PENDING, .oly-pill.NONE, .oly-pill.SENDING { background: #fff3d6; color: #8a5a00; }
.oly-pill.FAILED, .oly-pill.CANCELLED { background: var(--oly-err-bg); color: var(--oly-err); }
.oly-pager { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .oly-grid { grid-template-columns: 1fr; }
  .oly-hero { grid-template-columns: 1fr 1fr; }
  .oly-top .t2 { font-size: 17px; }
  .oly-card { padding: 16px; }
  .oly-roll span { font-size: 24px; }
    .Responsive {
    display:none
    }
}


@media (max-width: 370px) {
    .oly-top .t1 {
    font-size:11px;
}
    .oly-top .t2 {
    font-size:14px
    }
}



@media print {
  .oly { background: #fff; padding: 0; min-height: 0; }
  .oly-slip { break-inside: avoid; page-break-inside: avoid; }
  .oly-msg { display: none !important; }
  .oly-top, .noprint, .oly-foot { display: none !important; }
  .oly-wrap { padding: 0; max-width: none; }
  .oly-card { border: 0; padding: 0; }
}
