
.ab-iit-container{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#111827}
.ab-iit-header{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.ab-iit-logo{height:56px;width:auto;object-fit:contain}
.ab-iit-title h2{margin:0;font-size:22px}
.ab-iit-title p{margin:2px 0 0;color:#6b7280}
.ab-iit-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:12px}
.ab-iit-field label{display:block;font-weight:600;margin-bottom:6px;color:#374151}
.ab-iit-field input,.ab-iit-field select{width:100%;padding:10px;border-radius:10px;border:1px solid #e5e7eb}
.ab-iit-actions{grid-column:1/-1;display:flex;gap:8px}
.ab-btn{padding:10px 14px;border-radius:10px;border:1px solid #d1d5db;background:#fff;cursor:pointer}
.ab-btn.primary{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;border:none}
.ab-results{margin-top:6px}
.ab-meta{margin:8px 0;color:#374151}
.ab-table-wrap{position:relative;border:1px solid #e5e7eb;border-radius:0 0 12px 12px;overflow:auto;padding:0;background:#fff;max-height:70vh}
.ab-table-wrap.with-watermark::before{content:"";position:absolute;inset:0;background-image:var(--ab-watermark-url);background-repeat:no-repeat;background-position:center;background-size:380px auto;opacity:.2;z-index:0;pointer-events:none}
#ab-table{position:relative;z-index:1;width:100% !important;table-layout:fixed;border-collapse:collapse}
#ab-table th,#ab-table td{white-space:normal;word-break:break-word;overflow-wrap:break-word;padding:10px;border-bottom:1px solid #f3f4f6}
/* Suggested widths to fit within page without horizontal scroll */
#ab-table thead th:nth-child(1), #ab-table tbody td:nth-child(1){width:26%} /* Institute */
#ab-table thead th:nth-child(2), #ab-table tbody td:nth-child(2){width:34%} /* Program */
#ab-table thead th:nth-child(3), #ab-table tbody td:nth-child(3){width:14%} /* Seat Type */
#ab-table thead th:nth-child(4), #ab-table tbody td:nth-child(4){width:10%} /* Gender */
#ab-table thead th:nth-child(5), #ab-table tbody td:nth-child(5){width:16%} /* Closing Rank */

.ab-note{margin-top:8px;color:#6b7280;font-size:13px}

/* Colored, sticky toolbar for exports */
.ab-btnbar{display:flex;gap:8px;align-items:center;padding:10px;background:#f8fafc;border:1px solid #e5e7eb;border-bottom:none;border-radius:12px 12px 0 0;position:sticky;top:0;z-index:3}
.dt-button.ab-btn{border:none !important;border-radius:8px !important;padding:8px 12px !important;font-weight:600;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.dt-button.ab-csv{background:#16a34a !important;color:#fff !important}
.dt-button.ab-xlsx{background:#0ea5e9 !important;color:#fff !important}
.dt-button.ab-pdf{background:#ef4444 !important;color:#fff !important}
.dt-button:hover{filter:brightness(1.05)}

@media (max-width: 720px){
  /* On small screens, Responsive extension will stack cells into cards */
  #ab-table{font-size:14px}
}
