/* VCCI EXPO 2026 — design system (§5) */
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --vcci-navy: #322D56;
  --vcci-purple: #423585;
  --vcci-magenta: #742F7F;
  --vcci-orange: #EF7F1B;
  --vcci-red: #E52B36;
  --vcci-blue: #0769B2;
  --vcci-green: #009746;
  --vcci-periwinkle: #8F9CD0;
  --vcci-bg: #F4F3FA;
  --bs-primary: #423585;
  --bs-primary-rgb: 66, 53, 133;
  --bs-link-color: #423585;
  --bs-link-color-rgb: 66, 53, 133;
  --bs-link-hover-color: #EF7F1B;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-color: #2b2840;
}
body { font-family: var(--bs-body-font-family); }
h1, h2, h3, h4, h5, h6, .font-poppins { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; color: var(--vcci-navy); }

/* Bootstrap brand overrides */
.btn-primary { --bs-btn-bg: var(--vcci-purple); --bs-btn-border-color: var(--vcci-purple); --bs-btn-hover-bg: var(--vcci-orange); --bs-btn-hover-border-color: var(--vcci-orange); --bs-btn-active-bg: #d96d0e; --bs-btn-active-border-color: #d96d0e; --bs-btn-disabled-bg: #8b84b8; --bs-btn-disabled-border-color: #8b84b8; }
.btn-outline-primary { --bs-btn-color: var(--vcci-purple); --bs-btn-border-color: var(--vcci-purple); --bs-btn-hover-bg: var(--vcci-purple); --bs-btn-hover-border-color: var(--vcci-purple); --bs-btn-active-bg: var(--vcci-purple); }
.btn-orange { --bs-btn-color: #fff; --bs-btn-bg: var(--vcci-orange); --bs-btn-border-color: var(--vcci-orange); --bs-btn-hover-bg: #d96d0e; --bs-btn-hover-border-color: #d96d0e; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #c4620c; }
.btn-success { --bs-btn-bg: var(--vcci-green); --bs-btn-border-color: var(--vcci-green); }
.btn-danger { --bs-btn-bg: var(--vcci-red); --bs-btn-border-color: var(--vcci-red); }
.text-brand { color: var(--vcci-purple) !important; }
.text-orange { color: var(--vcci-orange) !important; }
.text-magenta { color: var(--vcci-magenta) !important; }
.bg-navy { background: var(--vcci-navy) !important; color: #fff; }
.bg-brand { background: var(--vcci-purple) !important; color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--vcci-periwinkle); box-shadow: 0 0 0 .2rem rgba(66, 53, 133, .18); }
.form-check-input:checked { background-color: var(--vcci-purple); border-color: var(--vcci-purple); }
.invalid-feedback { color: var(--vcci-red); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--vcci-red); }
.req::after { content: ' *'; color: var(--vcci-red); }

/* Rainbow strip (9 equal segments) — reusable */
div.rainbow-strip { display: flex; height: 7px; width: 100%; }
div.rainbow-strip > span { flex: 1; }
.rainbow-strip > span:nth-child(1) { background: #DE6783; } .rainbow-strip > span:nth-child(2) { background: #87C59C; }
.rainbow-strip > span:nth-child(3) { background: #DDA45F; } .rainbow-strip > span:nth-child(4) { background: #F0865E; }
.rainbow-strip > span:nth-child(5) { background: #DD90B2; } .rainbow-strip > span:nth-child(6) { background: #909CCE; }
.rainbow-strip > span:nth-child(7) { background: #4DA3A4; } .rainbow-strip > span:nth-child(8) { background: #89C06D; }
.rainbow-strip > span:nth-child(9) { background: #54B8CF; }

/* ---------------- Public pages ---------------- */
.public-body { min-height: 100vh; background-color: #2a2150; position: relative; margin: 0; }
.public-body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url('../img/bg-expo-hall-desktop.jpg') center / cover no-repeat; }
.login-body::before { background-image: url('../img/bg-stage-desktop.jpg'); }
@media (max-width: 767.98px) {
  .public-body::before { background-image: url('../img/bg-expo-hall-mobile.jpg'); }
  .login-body::before { background-image: url('../img/bg-stage-mobile.jpg'); }
}
.public-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 12px 16px; }
.reg-card { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 8, 40, .45); }
.reg-card.wide { max-width: 1040px; }
.card-banner { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; background: #fff; }
.reg-card .card-inner { padding: 22px 24px 26px; }
.reg-title { overflow-wrap: anywhere; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--vcci-navy); text-align: center; margin: 2px 0 4px; }
.reg-sub { text-align: center; color: #6b6787; font-size: .92rem; margin-bottom: 18px; }
.reg-card .form-label { font-weight: 500; color: #3a3560; margin-bottom: 4px; }
.reg-card .form-control, .reg-card .form-select { min-height: 48px; font-size: 16px; border-radius: 10px; }
.reg-card .select2-container--bootstrap-5 .select2-selection { min-height: 48px; font-size: 16px; border-radius: 10px; padding-top: .55rem; }
.reg-card .btn-lg { min-height: 52px; border-radius: 12px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.public-footer { color: rgba(255, 255, 255, .85); font-size: .8rem; text-align: center; padding: 14px 8px 6px; max-width: 760px; line-height: 1.6; }
.public-footer a { color: #fff; }
.public-footer .sponsors { font-size: .72rem; opacity: .75; margin-top: 4px; }
.dup-alert { border-left: 4px solid var(--vcci-orange); background: #FFF6EC; color: #6b3a07; }
.invite-box { background: linear-gradient(135deg, #F4F1FF, #FFF4EA); border: 1px solid #E3DDF7; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.invite-box img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* seminar list */
.sem-date-head { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--vcci-magenta); font-size: .95rem; margin: 14px 0 6px; border-bottom: 1px dashed #e3d8ec; padding-bottom: 4px; }
.sem-item { border: 1px solid #e8e6f3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fcfcff; }
.sem-item .form-check-input { width: 1.3em; height: 1.3em; margin-top: .15em; }
.sem-item .form-check-label { font-weight: 500; color: #2f2a55; cursor: pointer; }
.sem-item .sem-info { font-size: .85rem; color: #666; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e8e6f3; cursor: pointer; font-weight: 400; }
/* seminar-view: personal details are locked (only seminars can be changed) */
.locked-details .form-control:disabled { background: #f1f0f7; color: #3a3560; opacity: 1; cursor: not-allowed; border-color: #e3e1ef; }
.step-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #8a85a8; }
.step-pill .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e9e6f5; color: #6b6787; }
.step-pill.active { color: var(--vcci-purple); }
.step-pill.active .n { background: var(--vcci-purple); color: #fff; }
.step-pill.done .n { background: var(--vcci-green); color: #fff; }

/* thank-you */
.ty-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ty-grid > * { min-width: 0; } /* lets the scaled badge preview shrink on phones instead of widening the card */
@media (min-width: 768px) { .ty-grid { grid-template-columns: minmax(0, 400px) 1fr; align-items: start; } }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: #E6F6EE; color: var(--vcci-green); display: inline-flex; align-items: center; justify-content: center; font-size: 34px; }
.ty-actions .btn { min-height: 50px; font-weight: 600; }
@media (max-width: 359.98px) { .ty-actions .btn, .ty-actions .btn-lg { font-size: 1rem; } }

/* ---------------- Kiosk ---------------- */
.kiosk .reg-card { max-width: 720px; }
.kiosk .reg-card .form-control, .kiosk .reg-card .form-select { min-height: 56px; font-size: 20px; }
.kiosk .reg-card .form-label { font-size: 1.05rem; }
.kiosk .reg-card .select2-container--bootstrap-5 .select2-selection { min-height: 56px; font-size: 20px; }
.kiosk .reg-card .btn-lg { min-height: 64px; font-size: 1.35rem; }
.kiosk-strip { background: var(--vcci-navy); color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kiosk-strip .form-control { min-height: 48px !important; font-size: 20px !important; max-width: 220px; }
.kiosk-strip label { font-weight: 600; }
.kiosk-idle { position: fixed; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .55); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: .8rem; }

/* ---------------- Login ---------------- */
.login-card { width: 100%; max-width: 430px; background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); margin-top: 6vh; }
.login-card .card-inner { padding: 22px 26px 26px; }
.login-card .form-control { min-height: 48px; font-size: 16px; }

/* ---------------- Admin / Exhibitor shell ---------------- */
.panel-body { background: var(--vcci-bg); min-height: 100vh; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; background: var(--vcci-navy); color: #cfcbe8; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.exh-panel .sidebar { background: linear-gradient(180deg, #423585 0%, #322D56 100%); }
.sidebar .brand { display: block; padding: 14px 16px 10px; background: #fff; }
.sidebar .brand img { width: 100%; height: auto; display: block; }
.sidebar .brand-sub { font-size: .72rem; color: #9d98c4; padding: 8px 18px 4px; text-transform: uppercase; letter-spacing: .08em; }
.sidebar .nav-link { color: #d9d6ef; padding: 9px 18px; display: flex; align-items: center; gap: 10px; font-size: .92rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar .nav-link.active { color: #fff; background: rgba(239, 127, 27, .16); border-left-color: var(--vcci-orange); }
.sidebar .nav-sub .nav-link { padding-left: 48px; font-size: .86rem; }
.sidebar .nav-group-toggle::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; font-size: .75rem; transition: transform .2s; }
.sidebar .nav-group-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s; }
.topbar { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e7e5f2; height: 58px; display: flex; align-items: center; padding: 0 18px; gap: 12px; }
.topbar .event-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--vcci-navy); }
.topbar .event-name small { color: var(--vcci-orange); font-weight: 500; }
.content { padding: 20px 22px 30px; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.breadcrumb { font-size: .8rem; margin: 2px 0 0; }
.panel-footer { padding: 10px 22px; font-size: .78rem; color: #8a87a3; border-top: 1px solid #e7e5f2; background: #fff; }
.card { border: 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(50, 45, 86, .06); }
.card-header { background: #fff; border-bottom: 1px solid #eeecf6; font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--vcci-navy); border-radius: 12px 12px 0 0 !important; }
body.sidebar-collapsed .sidebar { transform: translateX(-250px); }
body.sidebar-collapsed .main { margin-left: 0; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-250px); }
  .main { margin-left: 0; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 1035; }
}
.stat-card { border-radius: 14px; padding: 16px 18px; background: #fff; box-shadow: 0 2px 10px rgba(50, 45, 86, .06); height: 100%; position: relative; overflow: hidden; }
.stat-card .label { font-size: .8rem; color: #7c7899; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-card .value { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--vcci-navy); line-height: 1.2; }
.stat-card .meta { font-size: .8rem; color: #6b6787; }
.stat-card .ico { position: absolute; right: 14px; top: 14px; font-size: 1.6rem; opacity: .9; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.welcome-card { border-radius: 14px; overflow: hidden; background: #fff; }
.welcome-card img { width: 100%; height: auto; display: block; }
.copy-link { display: flex; gap: 6px; align-items: center; }
.copy-link input { font-size: .82rem; }

/* tables */
table.dataTable thead th { background: #EEF0F8; color: var(--vcci-navy); font-weight: 600; font-size: .82rem; white-space: nowrap; }
table.dataTable tbody td { font-size: .86rem; vertical-align: middle; }
table.dataTable td.actions, table.dataTable th.actions { white-space: nowrap; width: 1%; }
.dt-buttons .btn { font-size: .8rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.chip { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 12px; background: #EEF0F8; color: var(--vcci-purple); margin: 1px 2px; white-space: nowrap; }
.st-available { background: #E6F6EE !important; color: var(--vcci-green) !important; }
.st-booked { background: #E3EFFA !important; color: var(--vcci-blue) !important; }
.st-blocked { background: #FDEFE2 !important; color: #c45f06 !important; }
.badge-soft { font-weight: 600; font-size: .74rem; padding: .35em .65em; border-radius: 8px; }
.thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; border: 1px solid #eee; background: #fff; }
.thumb-photo { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.filters .form-control, .filters .form-select { font-size: .85rem; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* exhibitor checklist */
.task-list .task { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed #ebe8f5; }
.task-list .task:last-child { border-bottom: 0; }
.task-list .task i.done { color: var(--vcci-green); }
.task-list .task i.todo { color: #c5c1db; }

/* fascia preview */
.fascia-board { background: #1c1a2b; color: #fff; font-family: 'Poppins', Arial, sans-serif; font-weight: 700; letter-spacing: .12em; text-align: center; padding: 18px 10px; border-radius: 6px; min-height: 70px; font-size: clamp(1rem, 3.2vw, 2rem); border-bottom: 10px solid #444; overflow-wrap: anywhere; }

/* cropper */
/* fixed height so Cropper measures the same work area before and after the image loads */
.crop-area { height: min(55vh, 440px); min-height: 240px; background: #f1f1f1; overflow: hidden; }
.crop-area img { max-width: 100%; display: block; }
.crop-toolbar .btn { min-width: 40px; }
#cropVideo { width: 100%; max-height: 50vh; background: #000; border-radius: 8px; }

/* furniture order form: product table + order summary (D#50) */
.fo-table { font-size: .82rem; }
.fo-table > :not(caption) > * > * { padding: .55rem .4rem; }
.fo-table thead th { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; color: #6b6890; --bs-table-bg: #f7f6fc; vertical-align: bottom; }
.fo-table tr.fo-on > td { --bs-table-bg: #f5f3fd; }
.fo-thumb { width: 44px; height: 44px; border: 1px solid #ebe9f5; border-radius: 8px; background: #f7f6fc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fo-thumb i { font-size: 1.4rem; color: #c8c3e3; }
.fo-prod { min-width: 110px; }
.fo-prod .fo-desc { line-height: 1.3; overflow-wrap: anywhere; max-width: 260px; }
.fo-avail { font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.fo-qty { width: 68px; margin: 0 auto; text-align: center; font-weight: 600; }
.fo-soldout .fo-thumb, .fo-soldout .fo-prod { opacity: .5; }
.fo-summary .fo-grand { color: var(--vcci-purple); }
@media (min-width: 1200px) { .fo-summary { position: sticky; top: 74px; } }
@media (max-width: 575.98px) { .fo-table > :not(caption) > * > * { padding: .5rem .3rem; } .fo-qty { width: 56px; } .fo-prod { min-width: 96px; } }

@media print {
  .no-print, .sidebar, .topbar, .panel-footer { display: none !important; }
  /* Ctrl+P on badge.php / thankyou.php: print just the badge at its real size */
  .has-badge::before { display: none !important; }
  .has-badge { background: #fff !important; }
  .has-badge .public-wrap { padding: 0; min-height: 0; }
  .has-badge .card-banner, .has-badge .ty-actions, .has-badge .public-footer, .has-badge div.rainbow-strip { display: none !important; }
  .has-badge .reg-card { box-shadow: none; max-width: none; }
  .has-badge .card-inner { padding: 0; }
  .has-badge .ty-grid { display: block; }
  .has-badge .vb-viewport { height: auto !important; overflow: visible; }
  .has-badge .vb-scale { transform: none !important; margin: 0 auto !important; }
  .has-badge .vb-badge { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .main { margin: 0 !important; }
}
/* row Actions menus in tables: never taller than the screen (panel.js keeps them inside the viewport) */
.dd-fit > .dropdown-menu { max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.chk-col { width: 32px; text-align: center; }
