/* ============================================================
   Portal Override — matches international-registration design
   Applied to: portal/company & portal/admin only
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bayon&family=Hanuman:wght@100;300;400;700;900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&family=Open+Sans:ital,wght@0,300..800;1,100..800&family=Outfit:wght@100..900&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --primary:       #1e4fa3;
    --primary-light: #eaf2ff;
    --secondary:     #30cff2;
    --bg:            #f4f7fb;
    --card:          #ffffff;
    --text:          #1f2937;
    --muted:         #6b7280;
    --border:        #d9e2ef;
    --danger:        #dc3545;
    --success:       #198754;
    --shadow:        0 10px 30px rgba(30, 79, 163, 0.08);
    --radius:        18px;

    /* Velzon / vz theme tokens */
    --vz-primary:              #1e4fa3;
    --vz-primary-rgb:          30, 79, 163;
    --vz-link-color:           #1e4fa3;
    --vz-link-hover-color:     #1a4490;
    --vz-primary-bg-subtle:    #eaf2ff;
    --vz-primary-text-emphasis:#1a4490;

    /* Bootstrap tokens */
    --bs-primary:              #1e4fa3;
    --bs-primary-rgb:          30, 79, 163;
    --bs-link-color:           #1e4fa3;
    --bs-link-hover-color:     #1a4490;
    --bs-primary-bg-subtle:    #eaf2ff;
    --bs-primary-border-subtle:#a8c3ed;
}

/* ── Base font (text elements only) ────────────────────────── */
html, body,
.page-content,
.card, .card-body, .card-header,
.modal-content,
.dropdown-menu,
table, th, td,
.form-label, .form-control, .form-select,
.btn, .badge, .alert,
h1, h2, h3, h4, h5, h6, p, li, a,
.nav-link span, .menu-title span,
input, textarea, select {
    font-family: "Hanuman", "Kantumruy Pro", "Outfit", Arial, sans-serif;
}

/* ── Restore icon fonts — NEVER override these ─────────────── */
i[class*="ri-"]  { font-family: "remixicon"               !important; }
i[class*="bx"]   { font-family: "boxicons"                !important; }
i[class*="mdi-"] { font-family: "Material Design Icons"   !important; }
i[class*="las"],
i[class*="la-"]  { font-family: "Line Awesome Free"       !important; font-weight: 900; }
i[class*="lab-"] { font-family: "Line Awesome Brands"     !important; font-weight: 400; }
i[class*="lni-"] { font-family: "LineIcons"               !important; }
i[class*="ti-"]  { font-family: "tabler-icons"            !important; }
.flag-icon,
[class*="fi fi-"] { font-family: inherit; }

/* ── Page background ───────────────────────────────────────── */
body {
    background:
        radial-gradient(circle at top left,  rgba(48, 207, 242, 0.07), transparent 22%),
        radial-gradient(circle at top right, rgba(30, 79, 163, 0.06), transparent 26%),
        var(--bg);
    color: var(--text);
    font-size: 15px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    border: 1px solid rgba(217, 226, 239, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: var(--card);
}

.card-header {
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 18px 18px 0 0;
}

/* ── Section title (mirrors .section-title) ────────────────── */
.section-title,
.card .fw-semibold.text-uppercase.text-muted.fs-11 {
    background: linear-gradient(135deg, #eef5ff, #e6f7ff);
    color: var(--primary);
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #d7e8ff;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(30, 79, 163, 0.04);
}

/* ── Form labels ───────────────────────────────────────────── */
.form-label,
label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

/* ── Inputs, selects, textareas ────────────────────────────── */
.form-control,
.form-select,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea,
select {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    min-height: 46px;
    padding: 11px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: "Hanuman", "Kantumruy Pro", Arial, sans-serif;
}

/* form-select needs right padding for its dropdown arrow — don't squash it */
.form-select {
    padding-right: 2.25rem;
}

textarea,
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(48, 207, 242, 0.15);
}

input[type="file"],
input[type="file"].form-control {
    padding: 10px 12px;
    background: #fbfdff;
    border: 1px dashed #b8d3ea;
}

/* ── Validation states ─────────────────────────────────────── */
.form-control.is-invalid,
.form-select.is-invalid,
.is-invalid {
    border: 1px solid var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}

.form-control.is-valid,
.form-select.is-valid,
.is-valid {
    border: 1px solid var(--success) !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.08) !important;
}

/*
 * Fix: form-select stacks its dropdown chevron + Bootstrap's validation ! icon
 * when is-invalid/is-valid. Since the red/green border already signals state,
 * strip the extra validation icon and keep only the chevron.
 */
.form-select.is-invalid,
.was-validated .form-select:invalid {
    /* Bootstrap's own chevron SVG */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

.form-select.is-valid,
.was-validated .form-select:valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

/* ── Checkbox / radio ──────────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--primary);
    border-color:     var(--primary);
}

.checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fafcff;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.checkbox-list label:hover {
    background: #f3f9ff;
    border-color: #cfe0f7;
}

.checkbox-list input[type="checkbox"],
.checkbox-list input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-top: 3px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   PORTAL BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════

   Hierarchy:
     .btn-primary    — main CTA (New Application, Save, Confirm)  → Blue
     .btn-cta        — form submit / apply / join                  → Cyan gradient
     .btn-light      — back / cancel / neutral                     → White
     .btn-soft-*     — table row actions, header links, "Manage"   → Soft tint
     .btn-danger     — destructive (Delete, Reject)                → Red
     .btn-sm         — secondary size (card headers, table rows)
   ═══════════════════════════════════════════════════════════ */

/* ── Base: all portal buttons ──────────────────────────────── */
.btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    line-height: 1.5;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* ── Primary / CTA — cyan gradient pill ────────────────────── */
.btn-primary,
.btn-primary:visited,
.btn-cta,
.btn-cta:visited {
    background: linear-gradient(135deg, var(--secondary), #1e9fd6);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(48, 207, 242, 0.22);
    border-radius: 999px;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
    background: linear-gradient(135deg, #1e9fd6, #1682b5) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(48, 207, 242, 0.38) !important;
    transform: translateY(-1px);
}

/* ── Light — back / cancel / print ────────────────────────── */
.btn-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569 !important;
}
.btn-light:hover,
.btn-light:focus {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: none;
}

/* ── Success ───────────────────────────────────────────────── */
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.22);
}
.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

/* ── Danger ────────────────────────────────────────────────── */
.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.20);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
}

/* ── Warning ───────────────────────────────────────────────── */
.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #fff !important;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
}

/* ── Soft variants ─────────────────────────────────────────── */
.btn-soft-primary {
    background: var(--primary-light);
    color: var(--primary) !important;
    border: none;
}
.btn-soft-primary:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-soft-success {
    background: #dcfce7;
    color: #16a34a !important;
    border: none;
}
.btn-soft-success:hover {
    background: #16a34a;
    color: #fff !important;
}

.btn-soft-danger {
    background: #fee2e2;
    color: #dc2626 !important;
    border: none;
}
.btn-soft-danger:hover {
    background: #dc2626;
    color: #fff !important;
}

.btn-soft-warning {
    background: #fef9c3;
    color: #d97706 !important;
    border: none;
}
.btn-soft-warning:hover {
    background: #f59e0b;
    color: #fff !important;
}

/* ── Outline primary ───────────────────────────────────────── */
.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ── Small size ────────────────────────────────────────────── */
.btn-sm {
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 999px;
}

/* ── Input-group buttons (eye toggle, append/prepend) ──────── */
/* The global 999px pill radius breaks Bootstrap's input-group
   border logic — reset it for any .btn inside an input-group.  */
.input-group > .btn {
    border-radius: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    min-height: 46px;
    transform: none !important;   /* prevent hover lift from detaching it */
}
.input-group > .btn:last-child {
    border-radius: 0 12px 12px 0 !important;
}
.input-group > .btn:first-child {
    border-radius: 12px 0 0 12px !important;
}
/* Keep the border colour consistent with inputs */
.input-group > .btn.btn-light {
    border-color: var(--border) !important;
    border-left: 0 !important;
}

/* ── Ghost / copy button ───────────────────────────────────── */
.btn-ghost-secondary {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
}
.btn-ghost-secondary:hover {
    background: #f1f5f9;
    color: #475569;
}

/* ── Velzon btn-label fix ──────────────────────────────────── */
/* Normalize Velzon's icon-label buttons to match portal sizing */
.btn.btn-label {
    padding: 9px 20px;
    border-radius: 999px;
}
.btn.btn-label .label-icon {
    position: relative;
    left: auto;
    margin-right: 6px;
}
.btn-sm.btn-label {
    padding: 5px 14px;
}

/* ── Pulse animation (payment CTA) ─────────────────────────── */
@keyframes portal-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(48,207,242,.45); }
    70%  { box-shadow: 0 0 0 10px rgba(48,207,242,0); }
    100% { box-shadow: 0 0 0 0 rgba(48,207,242,0); }
}
.btn-cta.btn-pulse { animation: portal-pulse 1.8s ease-out infinite; }

/* ── Links ─────────────────────────────────────────────────── */
a { color: var(--primary); }
a:hover { color: #1a4490; }
.link-primary { color: var(--primary) !important; }
.link-primary:hover { color: #1a4490 !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }

/* ── Badges ────────────────────────────────────────────────── */
.badge.bg-primary { background-color: var(--primary) !important; }
.bg-primary-subtle,
.badge.bg-primary-subtle { background-color: var(--primary-light) !important; }
.text-primary-emphasis { color: #1a4490 !important; }

/* ── Sidebar — primary colour ──────────────────────────────── */
[data-sidebar="dark"] .navbar-menu,
[data-sidebar="dark"] #sidebar-logo,
[data-sidebar="dark"] .navbar-brand-box {
    background: var(--primary);
}

/* Scrollbar container inside sidebar */
[data-sidebar="dark"] #scrollbar {
    background: var(--primary);
}

/* Section labels (e.g. "MENU", "ACCOUNT") */
[data-sidebar="dark"] .menu-title span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Default nav links */
[data-sidebar="dark"] .nav-link.menu-link,
[data-sidebar="dark"] .nav-sm .nav-link {
    color: rgba(255, 255, 255, 0.80);
}

[data-sidebar="dark"] .nav-link.menu-link i,
[data-sidebar="dark"] .nav-link.menu-link .ri,
[data-sidebar="dark"] .nav-link.menu-link .bx,
[data-sidebar="dark"] .nav-link.menu-link .mdi {
    color: rgba(255, 255, 255, 0.65);
}

/* Hover */
[data-sidebar="dark"] .nav-link.menu-link:hover,
[data-sidebar="dark"] .nav-sm .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

[data-sidebar="dark"] .nav-link.menu-link:hover i {
    color: #fff;
}

/* Active top-level link */
[data-sidebar="dark"] .nav-link.menu-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

[data-sidebar="dark"] .nav-link.menu-link.active i {
    color: #fff;
}

/* Active sub-link */
[data-sidebar="dark"] .nav-sm .nav-link.active {
    color: #fff;
    font-weight: 700;
}

/* Sub-menu vertical line */
[data-sidebar="dark"] .nav-sm:before {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Hamburger icon */
[data-sidebar="dark"] .hamburger-icon span {
    background-color: var(--primary);
}

/* Sidebar bottom background */
[data-sidebar="dark"] .sidebar-background {
    background: var(--primary);
}

/* Logo area border */
[data-sidebar="dark"] .navbar-brand-box {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Topbar ────────────────────────────────────────────────── */
#page-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

/* ── Tabs ──────────────────────────────────────────────────── */
.nav-tabs-custom .nav-link.active,
.nav-tabs-custom.nav-success .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* ── Step wizard ───────────────────────────────────────────── */
.step-arrow-nav .nav-link.active,
.step-arrow-nav .nav-link.done {
    background-color: var(--primary) !important;
    border-color:     var(--primary) !important;
}

/* ── Progress bar ──────────────────────────────────────────── */
.progress-bar { background-color: var(--primary) !important; }

/* ── Table ─────────────────────────────────────────────────── */
.table td, .table th {
    border-color: var(--border);
    vertical-align: middle;
}

/* ── Pagination ────────────────────────────────────────────── */
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link { color: var(--primary); }
.page-link:hover { color: #1a4490; }

/* ── Alert border-left ─────────────────────────────────────── */
.alert-border-left.alert-primary { border-left: 4px solid var(--primary); }
.alert-border-left.alert-success { border-left: 4px solid var(--success); }
.alert-border-left.alert-danger  { border-left: 4px solid var(--danger); }

.alert-danger {
    border-radius: 14px;
    border: 1px solid #f1b8bf;
    background: #fff5f6;
}

/* ── Auth lang-switcher right panel ────────────────────────── */
.lang-switcher-right .btn-lang-r:hover,
.lang-switcher-right .btn-lang-r.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* ── Field card wrapper ────────────────────────────────────── */
.field-card {
    background: #fbfdff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 16px;
}

/* ── Required star ─────────────────────────────────────────── */
.required-star,
.text-danger { color: var(--danger) !important; }

/* ── Search box icon ───────────────────────────────────────── */
.search-box .search-icon { color: var(--muted); }
input.search{
    padding-left: 30px !important;
}

/* ── Avatar / icon tiles ───────────────────────────────────── */
.avatar-title.bg-primary-subtle { background-color: var(--primary-light) !important; }
.avatar-title.text-primary      { color: var(--primary) !important; }
.avatar-title.bg-success-subtle { background-color: rgba(25, 135, 84, 0.05) !important; }
.avatar-title.bg-danger-subtle { background-color: rgba(220, 53, 69, 0.05) !important; }


/* ── Soft info button ──────────────────────────────────────── */
.btn-soft-info {
    background: rgba(41, 156, 219, 0.12);
    color: #1a85c2 !important;
    border: none;
}
.btn-soft-info:hover,
.btn-soft-info:focus,
.btn-soft-info:active {
    background: #299cdb !important;
    color: #fff !important;
}

/* ── Outline primary active state (toggle groups) ──────────── */
.btn-outline-primary.active,
.btn-group .btn-outline-primary.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ── CRM widget — portal border token fix ──────────────────── */
:root {
    --vz-border-color: var(--border);
}

/* ── CRM widget — 2-col responsive (for col-xl-6 cards) ───── */
.col-xl-6 .crm-widget .row-cols-md-4 .col:nth-child(3) {
    border-left: 1px solid var(--border);
}

/* ── Notification list ─────────────────────────────────────── */
.notif-row {
    transition: background .15s;
    color: inherit;
    text-decoration: none;
}
.notif-row:hover {
    background: #f8faff;
    color: inherit;
}
.notif-unread {
    background: #f4f7ff;
}
.notif-unread:hover {
    background: #eef2ff;
}

/* ── Year view (join expo) ─────────────────────────────────── */
.portal-year-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(30, 79, 163, 0.06);
}

.year-month-wrapper.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.year-month-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(30, 79, 163, 0.05);
}

.year-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--primary);
    border-radius: 18px 18px 0 0;
}

.year-month-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.year-month-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border-radius: 30px;
    padding: 3px 12px;
}

.year-day-block {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.year-day-block:last-child { border-bottom: none; }

.year-day-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year-event-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}
.year-event-item.type-exhibition {
    border-left: 4px solid var(--primary);
}
.year-event-item:hover {
    box-shadow: 0 6px 18px rgba(30, 79, 163, 0.12);
}

.year-expo-thumb {
    height: 140px;
    overflow: hidden;
    background: #eef2ff;
}
.year-expo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.year-event-item:hover .year-expo-thumb img {
    transform: scale(1.04);
}

.year-expo-body {
    padding: 12px 14px;
}

.year-event-link {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.4;
}
.year-event-link:hover { color: var(--primary); }

.year-event-date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 3px;
}

.year-expo-actions { margin-top: 10px; }

.year-month-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fc;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 767px) {
    .year-month-wrapper.grid-view { grid-template-columns: 1fr; }
}

/* ── Expo cards (join expo list) ───────────────────────────── */
.expo-thumb {
    transition: transform .4s ease;
}
.expo-card:hover {
    box-shadow: 0 8px 24px rgba(30, 79, 163, 0.15) !important;
}
.expo-card:hover .expo-thumb {
    transform: scale(1.05);
}

/* ── Portal calendar card wrapper ───────────────────────────── */
.portal-calendar-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(30, 79, 163, 0.06);
    overflow: hidden;
}

.portal-calendar-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
}

.portal-calendar-card-body {
    padding: 20px;
}

/* ── FullCalendar — portal overrides (matches custome.css) ─── */
#joinExpoCalendar {
    font-family: inherit;
}

/* FC variables */
#joinExpoCalendar .fc,
.fc {
    --fc-border-color:       #e8edf3;
    --fc-page-bg-color:      #fff;
    --fc-neutral-bg-color:   #f8f9fc;
    --fc-today-bg-color:     rgba(30, 79, 163, 0.06);
    --fc-button-bg-color:    var(--primary);
    --fc-button-border-color:var(--primary);
    --fc-button-hover-bg-color:    #1a4490;
    --fc-button-hover-border-color:#1a4490;
    --fc-button-active-bg-color:   #163a79;
    --fc-button-active-border-color:#163a79;
}

/* Toolbar pill container */
.fc .fc-header-toolbar {
    padding: 12px 18px;
    margin-bottom: 18px !important;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(30, 79, 163, 0.06);
    flex-wrap: wrap;
    gap: 10px;
}

/* Toolbar title */
.fc .fc-toolbar-title {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* All FC buttons — pill style (inline-block like custome.css) */
.fc .fc-button,
.fc .fc-button-primary {
    display: inline-block !important;
    padding: 0 16px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 34px !important;
    background-color: var(--primary) !important;
    background-image: none !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background-color .2s ease, border-color .2s ease !important;
}

.fc .fc-button:hover,
.fc .fc-button-primary:hover {
    background-color: #1a4490 !important;
    border-color: #1a4490 !important;
    color: #fff !important;
}

.fc .fc-button:focus,
.fc .fc-button:active,
.fc .fc-button-primary:focus,
.fc .fc-button-primary:active {
    background-color: #163a79 !important;
    border-color: #163a79 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Active view tab */
.fc .fc-button-primary.fc-button-active {
    background-color: #163a79 !important;
    border-color: #163a79 !important;
    color: #fff !important;
}

/* Button group — flat inner edges */
.fc-direction-ltr .fc-button-group > .fc-button:not(:last-child) {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.fc-direction-ltr .fc-button-group > .fc-button:not(:first-child) {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
    margin-left: -1px !important;
}

/* Grid wrapper */
.fc .fc-scrollgrid {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 20px rgba(30, 79, 163, 0.04);
}

/* Column headers — primary blue background */
.fc .fc-col-header-cell {
    background: var(--primary);
    padding: 12px 8px;
}
.fc .fc-col-header-cell-cushion {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none !important;
}

/* Day cells */
.fc .fc-daygrid-day {
    transition: background 0.2s ease;
}
.fc .fc-daygrid-day:hover {
    background: #f6f9ff;
}
.fc .fc-daygrid-day-frame {
    min-height: 100px;
}

/* Day numbers — plain, no background */
.fc .fc-daygrid-day-number {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--text) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

/* Today — circle badge only */
.fc .fc-day-today {
    background: rgba(30, 79, 163, 0.05) !important;
}
.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
}

/* Events */
.fc .fc-daygrid-event {
    border: none !important;
    border-radius: 8px !important;
    padding: 3px 0 !important;
    margin-top: 4px !important;
    background: #eef4ff !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 6px rgba(30, 79, 163, 0.08);
    cursor: pointer;
}
.fc .fc-event-title,
.fc .fc-event-time {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    white-space: normal !important;
}
.fc .fc-event-main-frame {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.fc .fc-more-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none !important;
}

/* List view */
.fc .fc-list-event:hover td {
    background: #f0f5ff !important;
    cursor: pointer;
}
.fc .fc-list-event-dot {
    border-color: var(--primary) !important;
}
.fc .fc-list-day-cushion {
    background: linear-gradient(135deg, #f0f5ff, #e6f0ff);
}
.fc .fc-list-day-text,
.fc .fc-list-day-side-text {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none !important;
}

/* Mobile */
@media (max-width: 767px) {
    .fc .fc-toolbar-title { font-size: 0.9rem !important; }
    .fc .fc-button,
    .fc .fc-button-primary {
        padding: 0 12px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 11px !important;
    }
    .fc .fc-daygrid-day-frame { min-height: 70px; }
    .portal-calendar-card-body { padding: 12px; }
    .fc .fc-header-toolbar { border-radius: 14px; padding: 10px 12px; }
}

/* ── Welcome banner ─────────────────────────────────────────── */
.portal-welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.portal-welcome-date {
    color: rgba(255, 255, 255, .75);
}
.portal-welcome-icon {
    font-size: 110px;
    opacity: .12;
    line-height: 1;
    display: block;
}

/* ── Applicant type badge ────────────────────────────────────── */
.badge-type {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Small expo thumbnail (dashboard list row) ───────────────── */
.expo-thumb-sm {
    width: 56px;
    height: 42px;
    object-fit: cover;
}

/* ── Avatar date display (day + month stacked) ───────────────── */
.portal-date-num { font-size: 17px; }
.portal-date-mon { font-size: 10px; }

/* ── Table cell max-width truncate helpers ───────────────────── */
.cell-truncate-sm { max-width: 120px; }
.cell-truncate-md { max-width: 130px; }

/* ── Table label column (detail view) ───────────────────────── */
.col-label { width: 40%; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .card { border-radius: 14px; }
}

@media (max-width: 767px) {
    .btn[type="submit"] { width: 100%; }
    .card { border-radius: 12px; }
}

[data-layout=vertical][data-sidebar=dark] .navbar-menu{
    background: var(--primary);
}
