/* ================================================================
   ENERGY REGULATION BOARD — Online Portal Stylesheet
   Matches the tppl_hospitality system design exactly
   ================================================================ */

:root {
    --sidebar-w:     240px;
    --topbar-h:      52px;
    --sidebar-bg:    #0f172a;
    --sidebar-hover: rgba(255,255,255,.05);
    --sidebar-text:  #94a3b8;
    --sidebar-white: #f1f5f9;
    --green:         #000000;
    --green-dk:      #1e7e34;
    --teal:          #20b2aa;
    --teal-dk:       #178f88;
    --red:           #dc3545;
    --brightred:     #ff1307;
    --gray:          #6c757d;
    --blue-link:     #1a73e8;
    --tab-active:    #28a745;
    --tab-inactive:  #1a365d;
    --border:        #dee2e6;
    --bg:            #f5f5f5;
    --white:         #ffffff;
    --text:          #333333;
    --shadow:        0 1px 6px rgba(0,0,0,.08);
    --radius:        4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    transition: transform .3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
    border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.06);
    border: none;
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 14px;
    align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background .15s, color .15s;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1045;
    opacity: 0;
    transition: opacity .3s ease;
}
.sidebar-overlay.show { display: block; opacity: 1; }

body.sidebar-locked { overflow: hidden; }

.sidebar-user {
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.sidebar-avatar-lg {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #20b2aa, #178f88);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 22px;
    border: 2px solid rgba(32,178,170,.5);
    box-shadow: 0 0 0 4px rgba(32,178,170,.15);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-avatar-lg img {
    width: 64px; height: 64px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.sidebar-uname {
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
}

.sidebar-nav { flex: 1; padding: 8px 10px; }

.sidebar-nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #374151;
    padding: 14px 10px 5px;
}

.snav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s, color .15s;
    letter-spacing: .2px;
    margin-bottom: 2px;
    position: relative;
}
.snav-link:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.snav-link.active {
    background: rgba(32,178,170,.15);
    color: #2dd4c8;
    font-weight: 600;
}
.snav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: #20b2aa;
    border-radius: 0 3px 3px 0;
}
.si { width: 18px; font-size: 14px; flex-shrink: 0; text-align: center; }
.snav-link.active .si { color: #20b2aa; }
.st { flex: 1; }
.sa { font-size: 9px; transition: transform .2s; opacity: .55; }

.sub-nav {
    display: none;
    margin-left: 28px;
    padding: 2px 0 4px 6px;
    border-left: 1px solid rgba(255,255,255,.1);
}
.sub-nav .snav-link.sub {
    padding: 8px 10px;
    font-size: 12px;
    color: #6b7280;
    border-radius: 6px;
    margin-bottom: 1px;
}
.sub-nav .snav-link.sub:hover { color: #d1d5db; background: rgba(255,255,255,.04); }
.sub-nav .snav-link.sub.active { color: #20b2aa; background: rgba(32,178,170,.1); }
.sub-nav .snav-link.sub.active::before { display: none; }
.has-sub.open .sub-nav { display: block; }
.has-sub.open .sa { transform: rotate(90deg); }

.sidebar-footer {
    padding: 10px 10px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #f87171;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.sidebar-logout:hover { background: rgba(248,113,113,.1); color: #fca5a5; }
.sidebar-logout .si { color: #f87171; width: 18px; font-size: 14px; text-align: center; }

/* ================================================================
   TOPBAR 
   ================================================================ */
.topbar {
    position: fixed;
    left: var(--sidebar-w); right: 0; top: 0;
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 1040;
    transition: left .3s;
}
.topbar.full-width { left: 0; }

.topbar-hamburger {
    background: none; border: none; cursor: pointer;
    color: #000000; font-size: 16px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    transition: background .2s;
    flex-shrink: 0;
}
.topbar-hamburger:hover { background: #f0f0f0; }

.topbar-nav {
    display: flex; align-items: center; gap: 20px; flex: 1;
}
.topbar-nav a { font-size: 13px; color: #444; font-weight: 400; }
.topbar-nav a:hover { color: var(--green); }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Bell / notification */
.tb-notif-wrap { position: relative; }
.tb-icon-btn {
    background: none; border: none; cursor: pointer;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 14px; position: relative;
}
.tb-icon-btn:hover { background: #f0f0f0; }
.tb-notif-dot {
    position: absolute; top: 2px; right: 2px;
    background: var(--yellow);
    color: #333; font-size: 9px; font-weight: 700;
    border-radius: 50%;
    width: 14px; height: 14px;
    display: flex; align-items: center; justify-content: center;
}

/* Dropdowns */
.tb-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: none; z-index: 2000; overflow: hidden;
}
.tb-dropdown.show { display: block; }
.tb-dd-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
}
.tb-dd-action { font-size: 11px; color: var(--green); font-weight: 400; }
.tb-notif-item {
    padding: 9px 14px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}
.tb-notif-item:hover { background: #f8f9fa; }
.tb-notif-item.unread { background: #f0fff4; }
.tb-notif-title { font-size: 12.5px; }
.tb-notif-time  { font-size: 11px; color: #999; margin-top: 2px; }
.tb-notif-empty { padding: 16px; text-align: center; color: #aaa; font-size: 12.5px; }
.tb-dd-item {
    display: flex; align-items: center;
    padding: 9px 14px;
    font-size: 13px; color: var(--text);
    transition: background .15s;
}
.tb-dd-item:hover { background: #f8f9fa; }
.tb-dd-divider { border-top: 1px solid var(--border); }

/* User button */
.tb-user-wrap { position: relative; }
.tb-user-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    padding: 4px 8px; border-radius: 20px;
    transition: background .2s;
}
.tb-user-btn:hover { background: #f0f0f0; }
.tb-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.tb-avatar img {
    width: 30px; height: 30px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.tb-uname { font-size: 13px; font-weight: 600; color: var(--text); }

/* ================================================================
   LAYOUT
   ================================================================ */
.main-wrap {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h) - 36px);
    transition: margin-left .3s;
}
.main-wrap.sidebar-collapsed { margin-left: 0; }

.page-content { padding: 20px 22px; }

.page-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 9px 22px;
    font-size: 12px; color: #777;
    display: flex; justify-content: center;
}

/* ================================================================
   DASHBOARD STAT CARDS (image 6)
   ================================================================ */
.dash-card-big {
    border-radius: var(--radius);
    padding: 22px 24px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.dash-card-big:hover { opacity: .93; }
.dc-bg-icon {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 56px; opacity: .18; color: #fff;
}
.dc-value     { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.dc-label     { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.85); margin-top: 5px; }
.dc-more      { font-size: 12px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 4px; }
.dc-more:hover { color: #fff; }

/* Big card value for money (smaller font) */
.dc-value-money { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }

.dc-teal  { background: #2ab7ca; }
.dc-white {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.dc-white .dc-value-money, .dc-white .dc-label, .dc-white .dc-more { color: var(--text) !important; }
.dc-white .dc-label { color: #666 !important; }
.dc-white .dc-more  { color: #888 !important; }
.dc-green { background: var(--green); }

/* Mini stat cards */
.mini-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow);
}
.mc-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.mc-icon-teal   { background: #d1ecf1; color: #ffcc00; }
.mc-icon-green  { background: #d4edda; color: #000000; }
.mc-icon-red    { background: #f8d7da; color: #b70012; }
.mc-icon-yellow { background: #fff3cd; color: #856404; }
.mc-label       { font-size: 11px; color: #888; line-height: 1.3; }
.mc-value       { font-size: 22px; font-weight: 800; color: var(--text); }

/* Stat tiles (licenses page) */
.stat-tile {
    border-radius: var(--radius);
    padding: 18px 16px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    text-decoration: none;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.st-icon { font-size: 22px; margin-bottom: 2px; }
.st-count { font-size: 32px; font-weight: 800; line-height: 1; }
.st-label { font-size: 12px; font-weight: 600; opacity: .85; }
.stat-tile-blue   { background: #1a73e8; color: #fff; }
.stat-tile-yellow { background: #f9a825; color: #fff; }
.stat-tile-green  { background: #2e7d32; color: #fff; }
.stat-tile-red    { background: #c62828; color: #fff; }

/* Folders widget */
.folders-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.fw-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: space-between;
}
.fw-header button {
    background: #eee; border: none; cursor: pointer;
    width: 20px; height: 20px; border-radius: 2px;
    font-size: 12px; font-weight: 700; color: #555;
}
.fw-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px; cursor: pointer;
}
.fw-item:hover { background: #f8f9fa; }
.fw-item-name { display: flex; align-items: center; gap: 8px; color: #444; }
.fw-badge {
    background: var(--green);
    color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 2px; padding: 1px 6px; min-width: 18px; text-align: center;
}

/* Data grid toolbar */
.grid-toolbar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    box-shadow: var(--shadow);
}
.grid-toolbar-left  { display: flex; align-items: center; gap: 6px; }
.grid-toolbar-right { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.grid-btn {
    background: #f5f5f5; border: 1px solid #ddd; cursor: pointer;
    width: 28px; height: 28px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #555; transition: background .2s;
}
.grid-btn:hover { background: #e9e9e9; }
.grid-empty { padding: 30px; text-align: center; color: #aaa; font-size: 13px; }

/* ================================================================
   LICENCE APPLICATION FORM
   ================================================================ */
.tppl_hospitality-form-header {
    text-align: center;
    padding: 28px 20px 18px;
    border-bottom: 1px solid var(--border);
}
.tppl_hospitality-form-header h2 { font-size: 20px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.tppl_hospitality-form-header h5 { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 6px; }
.tppl_hospitality-form-header p  { font-size: 13px; color: #555; }

/* Step tabs — matches images exactly */
.tppl_hospitality-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    border-bottom: 2px solid var(--border);
    background: var(--white);
    padding: 0;
    gap: 0;
    margin: 0;
    scrollbar-width: none;
}
.tppl_hospitality-tabs::-webkit-scrollbar { display: none; }

.tppl_hospitality-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
    user-select: none;
    line-height: 1.4;
    transition: color .2s, border-color .2s;
    max-width: 200px;
    flex-shrink: 0;
}

/* Step number circle */
.etab-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.2s;
}

/* Completed step */
.tppl_hospitality-tab.done {
    color: #555;
}
.tppl_hospitality-tab.done .etab-num {
    background: #555;
}

/* Active step */
.tppl_hospitality-tab.active {
    color: #111;
    border-bottom-color: #111;
}
.tppl_hospitality-tab.active .etab-num {
    background: #111;
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.tppl_hospitality-tab:not(.active):hover { color: #333; }
.tppl_hospitality-tab:not(.active):hover .etab-num { background: #444; }

/* Step sections */
.tppl_hospitality-section { display: none; padding: 22px; }
.tppl_hospitality-section.active {
    display: block;
    animation: stepSlideIn 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes stepSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Welcome & submission popup modals */
.tppl-welcome-modal .modal-header {
    background: linear-gradient(135deg, #1a365d 0%, #28a745 100%);
    color: #fff;
    border-radius: 6px 6px 0 0;
}
.tppl-welcome-modal .modal-header .btn-close { filter: invert(1); }
.tppl-welcome-modal .modal-body { text-align: center; padding: 28px 24px 20px; }
.tppl-welcome-modal .modal-body .welcome-icon {
    font-size: 52px; color: var(--green); margin-bottom: 16px;
}
.tppl-welcome-modal .modal-body h5 { font-size: 17px; font-weight: 700; color: #1a365d; margin-bottom: 8px; }
.tppl-welcome-modal .modal-body p  { font-size: 13.5px; color: #555; margin-bottom: 0; }
.tppl-submitted-modal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20b2aa 100%);
    color: #fff;
    border-radius: 6px 6px 0 0;
}
.tppl-submitted-modal .modal-header .btn-close { filter: invert(1); }
.tppl-submitted-modal .modal-body { text-align: center; padding: 28px 24px 20px; }
.tppl-submitted-modal .modal-body .submit-icon {
    font-size: 56px; color: var(--green); margin-bottom: 16px;
}
.tppl-submitted-modal .modal-body h5 { font-size: 17px; font-weight: 700; color: #1a365d; margin-bottom: 10px; }
.tppl-submitted-modal .modal-body p  { font-size: 13.5px; color: #555; }

/* Important Notice modal (account opening requirements) */
.tppl-notice-modal .modal-content { border: none; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.tppl-notice-modal .modal-header {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 18px 22px;
    gap: 15px;
}
.tppl-notice-modal .notice-header-brand { display: flex; align-items: center; gap: 14px; }
.tppl-notice-modal .notice-logo {
    width: 46px; height: 46px; object-fit: contain;
    background: #fff; border-radius: 8px; padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    flex-shrink: 0;
}
.tppl-notice-modal .modal-title { font-size: 18px; font-weight: 800; letter-spacing: .5px; margin-bottom: 2px; }
.tppl-notice-modal .notice-subtitle { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.9); }
.tppl-notice-modal .modal-header .btn-close { filter: invert(1); align-self: flex-start; }
.tppl-notice-modal .modal-body { padding: 24px 26px; font-size: 14px; line-height: 1.7; max-height: 55vh; overflow-y: auto; color: #333; }
.tppl-notice-modal .modal-body ol { padding-left: 20px; }
.tppl-notice-modal .modal-body li { margin-bottom: 6px; }
.tppl-notice-modal .modal-body p:first-child { font-weight: 500; }

.sidebar-pending-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Mandatory note */
.mandatory-note { font-size: 13px; color: #555; margin-bottom: 18px; }
.req { color: var(--red); }

/* Boxed fieldsets */
.tppl_hospitality-fieldbox {
    border: 1px solid #ccc;
    border-radius: var(--radius);
    padding: 20px 18px 16px;
    position: relative;
    margin-bottom: 0;
}
.tppl_hospitality-fieldbox legend {
    font-size: 14px; font-weight: 600; color: var(--text);
    padding: 0 6px;
    float: none;
    width: auto;
    margin-bottom: 14px;
}

/* Verification document upload cards (Step 3) */
.verify-doc-box.is-invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
}
.verify-doc-box .verify-doc-badge { font-size: 11.5px; font-weight: 600; }
.verify-doc-box .verify-doc-message { color: #555; line-height: 1.4; }


/* Form controls */
label.form-label { font-size: 12.5px; font-weight: 600; color: #444; margin-bottom: 4px; }
.form-control, .form-select {
    font-size: 13px;
    border-color: #ccc;
    border-radius: var(--radius);
    padding: 7px 10px;
    height: auto;
    color: var(--text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .15rem rgba(40,167,69,.15);
    outline: none;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .in-icon {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    color: #888; font-size: 12px;
}
.input-icon-wrap .form-control { padding-left: 30px; }

/* Form nav bar (bottom) */
.tppl_hospitality-form-nav {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--white);
}
.btn-prev { background: #e9ecef; border: 1px solid #ccc; color: #555; border-radius: var(--radius); padding: 7px 18px; font-size: 13px; cursor: pointer; font-weight: 500; }
.btn-prev:hover { background: #ddd; }
.btn-save-continue {
    background: var(--green); border: none; color: #fff;
    border-radius: var(--radius); padding: 7px 20px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.btn-save-continue:hover { background: var(--green-dk); }

/* Contact persons dynamic table */
.contacts-tbl-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.contacts-tbl-wrap .table { margin: 0; font-size: 13px; }
.contacts-tbl-wrap .table thead th {
    background: #f8f9fa;
    font-size: 12px; font-weight: 700; color: #555;
    padding: 9px 10px; border-bottom: 1px solid var(--border);
}
.contacts-tbl-wrap .table tbody td { padding: 6px 8px; vertical-align: middle; }
.btn-add-row-green {
    background: none;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: var(--radius);
    width: auto; height: auto;
    padding: 6px 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; cursor: pointer;
    margin-bottom: 10px;
    white-space: nowrap;
}
.btn-add-row-green:hover { background: var(--green); color: #fff; }
.btn-del-red {
    background: var(--red); border: none; color: #fff;
    border-radius: var(--radius);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer;
}
.btn-del-red:hover { background: #b02030; }

/* License activity checkboxes */
.activity-check .form-check-label { font-size: 13px; font-weight: 500; }
.activity-check .form-check { margin-bottom: 8px; }

/* ================================================================
   MODAL OVERRIDES (shared across all Bootstrap modals)
   ================================================================ */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { border-bottom: 1px solid var(--border); padding: 12px 18px; }
.modal-title { font-size: 15px; font-weight: 700; }
.modal-footer { border-top: 1px solid var(--border); padding: 10px 18px; }
.modal-body { padding: 0; }

/* ================================================================
   GENERAL TABLES & CARDS
   ================================================================ */
.tppl_hospitality-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.tppl_hospitality-card-header {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white);
}
.tppl_hospitality-card-header h5 { font-size: 14px; font-weight: 700; margin: 0; }
.tppl_hospitality-card-body { padding: 16px; }

/* Tables */
.tppl_hospitality-table { font-size: 13px; }
.tppl_hospitality-table thead th {
    background: #f8f9fa;
    font-size: 12px; font-weight: 700; color: #555;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase; letter-spacing: .3px;
    white-space: nowrap;
}
.tppl_hospitality-table tbody td { padding: 9px 12px; vertical-align: middle; }
.tppl_hospitality-table tbody tr:hover { background: #f8f9fa; }

/* Status badges */
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.badge-draft       { background: #e2e3e5; color: #383d41; }
.badge-submitted   { background: #d1ecf1; color: #0c5460; }
.badge-under_review{ background: #fff3cd; color: #856404; }
.badge-approved    { background: #d4edda; color: #155724; }
.badge-rejected    { background: #f8d7da; color: #721c24; }
.badge-revoked     { background: #f8d7da; color: #721c24; }
.badge-pending     { background: #fff3cd; color: #856404; }
.badge-paid        { background: #d4edda; color: #155724; }
.badge-overdue     { background: #f8d7da; color: #721c24; }
.badge-compliant   { background: #d4edda; color: #155724; }
.badge-non_compliant { background: #f8d7da; color: #721c24; }
.badge-late        { background: #f8d7da; color: #721c24; }
.badge-accepted    { background: #d4edda; color: #155724; }

/* Buttons */
.btn { font-size: 13px; font-weight: 500; border-radius: var(--radius); padding: 6px 14px; }
.btn-success  { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn-icon { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Alerts */
.alert { font-size: 13px; border-radius: var(--radius); padding: 10px 14px; }

/* ── View-only banner ── */
.view-only-banner {
    display: flex;
    align-items: center;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    color: #5d4037;
    margin-bottom: 14px;
    font-weight: 500;
}
.view-only-banner-link {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.view-only-banner-link:hover { color: #b71c1c; }

.account-opening-banner {
    align-items: flex-start;
    gap: 12px;
    background: #e7f1ff;
    border-color: #bcd6f7;
    color: #1a365d;
    line-height: 1.45;
}
.account-opening-banner-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #1a5fb4;
}
.account-opening-banner-content {
    min-width: 0;
    flex: 1 1 auto;
}
.account-opening-banner-title { font-weight: 600; }
.account-opening-banner-copy { margin-top: 4px; font-weight: 400; }
.account-opening-reference {
    flex: 0 0 245px;
    border-left: 1px solid #bcd6f7;
    padding-left: 14px;
    font-size: 12.5px;
}
.account-opening-reference-title { font-weight: 600; margin-bottom: 3px; }
.account-opening-reference div:not(.account-opening-reference-title) {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px;
}
.account-opening-reference span { color: #4d6480; }
.account-opening-reference strong { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .account-opening-banner { flex-wrap: wrap; }
    .account-opening-banner-content { flex-basis: calc(100% - 30px); }
    .account-opening-reference {
        flex-basis: 100%;
        border-left: 0;
        border-top: 1px solid #bcd6f7;
        padding: 10px 0 0 30px;
    }
}

/* Page header */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.page-title { font-size: 18px; font-weight: 700; color: var(--text); }
.breadcrumb-wrap { font-size: 12px; color: #aaa; margin-bottom: 3px; }
.breadcrumb-wrap a { color: var(--green); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filter-bar .form-control, .filter-bar .form-select { font-size: 12.5px; max-width: 180px; }

/* LOGIN PAGE */
.login-page {
    min-height: 100vh;
    background: #1a1a1a3a url('../images/BG.png') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 0;
}
.login-card {
    background: var(--white);
    border-radius: 6px;
    padding: 36px 32px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    position: relative;
    z-index: 1;
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.login-card.show-register {
    max-width: 680px;
}
.login-logo {
    /* logo.img {'../images/BG.png'}; */
    width: 80px; height: 80px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand-circle {
    width: 68px; height: 68px;
    background: var(--green);
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
}
.login-brand h4 { font-size: 18px; font-weight: 800; color: var(--text); }
.login-brand p  { font-size: 12.5px; color: #777; }

/* Login/Sign-Up tabs */
.login-tabs {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 4px;
    gap: 4px;
}
.login-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.login-tab-btn.active {
    background: #fff;
    color: #dc3545;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.login-tab-btn:not(.active):hover { color: #555; }

/* ---- Register form 2-column grid ---- */
.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.register-grid .full-width {
    grid-column: 1 / -1;
}

/* ---- Tab panel transitions ---- */
.login-panels-wrap {
    position: relative;
    overflow: hidden;
}
.tab-panel {
    position: relative;
}

/* Entering — slide-up + fade-in */
.tab-enter {
    animation: tabEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tabEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Entering from right (login ← register) */
.tab-enter-left {
    animation: tabEnterLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tabEnterLeft {
    from { opacity: 0; transform: translateX(-28px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0)     scale(1); }
}

/* Exiting upward */
.tab-exit {
    animation: tabExit 0.25s cubic-bezier(0.55, 0, 0.45, 1) forwards;
    pointer-events: none;
}
@keyframes tabExit {
    from { opacity: 1; transform: translateY(0)    scale(1); }
    to   { opacity: 0; transform: translateY(-14px) scale(0.97); }
}

/* Exiting to right */
.tab-exit-right {
    animation: tabExitRight 0.25s cubic-bezier(0.55, 0, 0.45, 1) forwards;
    pointer-events: none;
}
@keyframes tabExitRight {
    from { opacity: 1; transform: translateX(0);    }
    to   { opacity: 0; transform: translateX(28px); }
}

/* Glowing active-tab underline slide */
.login-tabs {
    position: relative;
}
.login-tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: var(--tab-active);
    border-radius: 2px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s;
    box-shadow: 0 0 8px rgba(220,53,69,0.55);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .sidebar { width: min(var(--sidebar-w), 82vw); transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar-close-btn { display: flex; }
    .main-wrap { margin-left: 0; }
    .main-wrap.sidebar-collapsed { margin-left: 0; }
    .topbar { left: 0; padding: 0 10px; gap: 8px; }
    .topbar-nav { display: none; }
    .topbar-right { gap: 2px; }
    .tb-uname { display: none; }
    .tb-user-btn { padding: 4px; }
    .tb-dropdown { min-width: 220px; }

    .page-content { padding: 14px 12px; }
    .page-header { gap: 10px; }
    .page-title { font-size: 16px; }

    .grid-toolbar { flex-wrap: wrap; }
    .filter-bar .form-control, .filter-bar .form-select { max-width: none; flex: 1 1 140px; }

    .dash-card-big { padding: 16px 18px; min-height: 96px; }
    .dc-value { font-size: 28px; }
    .stat-tile { padding: 14px 12px; }
    .st-count { font-size: 26px; }

    .tppl_hospitality-tabs { padding: 0 4px; justify-content: flex-start; }
    .tppl_hospitality-tab {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        font-size: 10px;
        padding: 8px 6px;
        min-width: 92px;
        max-width: none;
        white-space: normal;
    }
    .tppl_hospitality-tab div { white-space: normal; line-height: 1.25; }
    .tppl_hospitality-form-header { padding: 20px 14px 14px; }
    .tppl_hospitality-form-header h2 { font-size: 16px; }
    .tppl_hospitality-section { padding: 16px 14px; }
    .tppl_hospitality-form-nav { flex-wrap: wrap; padding: 12px 14px; }

    .login-card { padding: 26px 20px; max-width: 100% !important; }
    .register-grid { grid-template-columns: 1fr; }
    .login-brand h4 { font-size: 15px; }

    .notice-header-brand { flex-wrap: wrap; gap: 10px; }
    .tppl-notice-modal .modal-body { max-height: 45vh; }
}

@media (max-width: 480px) {
    .sidebar { width: 86vw; }
    .sidebar-user { padding: 18px 12px 16px; }
    .sidebar-avatar-lg, .sidebar-avatar-lg img { width: 52px; height: 52px; }

    .page-content { padding: 12px 10px; }
    .dc-value { font-size: 24px; }
    .dc-value-money { font-size: 20px; }
    .mc-value { font-size: 18px; }

    .stat-tile { padding: 12px 10px; gap: 4px; }
    .st-count { font-size: 22px; }
    .st-label { font-size: 11px; }

    .tppl_hospitality-tab { min-width: 78px; padding: 7px 4px; }
    .tppl_hospitality-tab div { font-size: 9px; }
    .etab-num { width: 22px; height: 22px; font-size: 11px; }

    .login-card { padding: 22px 16px; }
}
