/* Stexo layout: dark sidebar + light header + main content */
:root {
    --stexo-sidebar-width: 260px;
    --stexo-sidebar-bg: #0c4252;
    --stexo-sidebar-hover: rgba(255, 255, 255, 0.08);
    --stexo-sidebar-active: rgba(16, 135, 137, 0.42);
    --stexo-topbar-height: 64px;
    --stexo-mobile-nav-height: 64px;
    --stexo-topbar-bg: #ffffff;
    --stexo-primary: #108789;
    --stexo-primary-dark: #0c4252;
    --stexo-body-bg: #f4f7fa;
    --stexo-card-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: #0c425236;
    
}
.form-control {
    font-size: 13px;
}
.stexo-page-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.btn-primary.stexo-btn-primary, .stexo-btn-primary {
    font-size: 14px !important;
}
button.btn.btn-primary.stexo-btn-primary {
    font-size: 12px !important;
}
a.btn.btn-light {
    font-size: 14px;
}
.stexo-table {
     font-size: 12px !important;
}
.stexo-table thead th
{
    font-size: 11px !important;
    padding: 10px 10px !important;
}

/* Bootstrap tooltip font size */
.tooltip {
    font-size: 11px !important;
}
 
  

/* Bootstrap tooltip theme: light yellow bg + black text */
.tooltip .tooltip-inner {
    background-color: #fff3cd !important; /* Bootstrap warning light */
    color: #000 !important;
    border: 1px solid #ffe69c;
}
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #fff3cd !important;
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #fff3cd !important;
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #fff3cd !important;
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #fff3cd !important;
}
.px-3.py-2.bg-primary.text-white.fw-semibold.small {
    background: var(--stexo-sidebar-bg) !important;
}
button.btn.btn-secondary {
    font-size: 12px;
}
.stexo-sidebar-nav .nav-link.active {
    background: var(--stexo-sidebar-active) !important;
    color: #fff;
    border-left-color: transparent;
    border-radius: 10px;
    margin: 2px 10px;
    padding-left: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.marquee_text {
    background: #ece3e3;
    padding: 10px;
}
.allow_days {
    background: #ca515140;
    padding: 10px;
}
.row_data {
    background: #42424254;
    padding: 10px;
}
.stexo-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: var(--stexo-sidebar-bg) !important;
}
.stexo-card .card-body {
    padding: 10px !important;
}
.stexo-table tbody td {
    padding: 10px 10px !important;
    vertical-align: middle ;
}
.form-select {
    font-size: 12px;
}

body.stexo-body {
    background: var(--stexo-body-bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 12px;
}

/* Layout wrapper: sidebar + right side */
.stexo-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR (dark) ========== */
.stexo-sidebar {
    width: var(--stexo-sidebar-width);
    min-width: var(--stexo-sidebar-width);
    background: var(--stexo-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, margin 0.2s;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}
.stexo-sidebar-footer {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    flex-shrink: 0;
}
.stexo-sidebar-user-wrap {
    margin-bottom: 10px;
}

.stexo-sidebar-company {
    margin-bottom: 10px;
}

.stexo-sidebar-company-toggle,
.stexo-sidebar-company-static {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.stexo-sidebar-company-toggle:hover {
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
}

.stexo-sidebar-company-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.stexo-sidebar-company-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stexo-sidebar-company-icon i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stexo-sidebar-company-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stexo-sidebar-company-toggle .bi-chevron-down {
    font-size: 0.72rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.stexo-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.stexo-sidebar-user:hover {
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
}
.stexo-sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffbd2f, #108789);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    overflow: hidden;
}
.stexo-sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stexo-sidebar-user-info {
    flex: 1;
    min-width: 0;
}
.stexo-sidebar-user-info strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stexo-sidebar-user-info small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stexo-sidebar-user .bi-chevron-down {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.7;
}
.stexo-sidebar-copy {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    padding: 8px 0 0;
    letter-spacing: 0.02em;
}
.stexo-sidebar-collapse-btn {
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 8px;
    font-size: 1rem;
    transition: background 0.2s;
}
.stexo-sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.stexo-topbar-icon .badge.bg-danger {
    font-size: 0.6rem;
    padding: 2px 5px;
}

.stexo-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: var(--stexo-sidebar-bg);
}

.stexo-sidebar-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.stexo-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stexo-brand-mark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 34px;
    height: 34px;
    transform: rotate(-12deg);
}

.stexo-brand-mark-grid .q {
    display: block;
    border-radius: 2px;
}

.stexo-brand-mark-grid .tl {
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
}

.stexo-brand-mark-grid .tr {
    background: #ffbd2f;
}

.stexo-brand-mark-grid .bl {
    border: 2px solid #ffbd2f;
    background: transparent;
}

.stexo-brand-mark-grid .br {
    background: #108789;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.stexo-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.stexo-brand-text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stexo-brand-text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    margin-top: 3px;
}

.stexo-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.stexo-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.stexo-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.stexo-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.stexo-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
    background-clip: padding-box;
}

.stexo-sidebar-nav::-webkit-scrollbar-corner {
    background: transparent;
}

.stexo-sidebar-nav .nav-section {
    margin-bottom: 4px;
}

.stexo-sidebar-nav .nav-section-title {
    display: none;
}

.stexo-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    padding: 11px 16px;
    margin: 2px 10px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    border-left: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.stexo-sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.stexo-sidebar-nav .nav-link i {
    font-size: 1.05rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    opacity: 0.95;
    flex-shrink: 0;
}

/* Expandable menu */
.stexo-sidebar-nav .nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.82);
    padding: 11px 16px;
    margin: 2px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    background: none;
    width: calc(100% - 20px);
    text-align: left;
    border-radius: 10px;
}

.stexo-sidebar-nav .nav-section-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.stexo-sidebar-nav .nav-section-toggle i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.stexo-sidebar-nav .nav-section-toggle .bi-chevron-down {
    margin-left: auto;
    font-size: 0.72rem;
    opacity: 0.7;
}

.stexo-sidebar-nav .nav-section-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.stexo-sidebar-nav .nav-section-menu {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
}

.stexo-sidebar-nav .nav-section-menu .nav-link {
    padding-left: 48px;
    font-size: 0.8125rem;
}

.stexo-sidebar-nav .nav-section-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* ========== RIGHT SIDE: Topbar + Content ========== */
.stexo-right {
    flex: 1;
    margin-left: var(--stexo-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top header bar (light grey) */
.stexo-topbar {
    height: var(--stexo-topbar-height);
    background: var(--stexo-topbar-bg);
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.stexo-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.stexo-topbar-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-topbar .btn-sidebar-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
}

.stexo-topbar .btn-sidebar-toggle:hover {
    background: #f9fafb;
    color: #111827;
}

.stexo-topbar-search {
    position: relative;
    flex: 1;
    max-width: 520px;
    min-width: 200px;
}

.stexo-topbar-search input {
    width: 100%;
    height: 42px;
    padding: 0 72px 0 40px;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.875rem;
    color: #334155;
}

.stexo-topbar-search input::placeholder {
    color: #9ca3af;
}

.stexo-topbar-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}
.stexo-topbar-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    pointer-events: none;
}
.stexo-topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    max-width: 640px;
    margin: 0 auto;
}

.stexo-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.stexo-topbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    position: relative;
}

.stexo-topbar-icon:hover {
    background: #f1f5f9;
    color: #111827;
}

.stexo-topbar-icon .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stexo-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.stexo-topbar-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--stexo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Main content area */
.stexo-main {
    flex: 1;
    padding: 0;
}

.stexo-content {
    padding: 24px 28px 32px;
    background: var(--stexo-body-bg);
    min-height: calc(100vh - var(--stexo-topbar-height));
}

/* Page header: breadcrumb left, actions (e.g. Add button) right */
.stexo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.stexo-page-breadcrumb-wrap {
    order: 1;
}

.stexo-page-header-actions {
    margin-left: auto;
    order: 2;
}

.stexo-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #374151;
    letter-spacing: -0.02em;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stexo-page-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filter bar (search + dropdown + Search button) - same style across Client, Media, Display, User, Role, Report */
.stexo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.stexo-filter-bar .form-control,
.stexo-filter-bar .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    min-height: 38px;
    width: auto;
    min-width: 200px;
}
.stexo-filter-bar .form-control:focus,
.stexo-filter-bar .form-select:focus {
    border-color: var(--stexo-primary, #0d9488);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
.stexo-filter-bar .btn.stexo-btn-primary {
    min-height: 38px;
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Report request: multiple-choice dropdowns */
.stexo-multiselect {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 6px 10px !important;
    min-height: 100px !important;
    font-size: 13px !important;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.stexo-multiselect:hover {
    border-color: #cbd5e1 !important;
    background-color: #fff !important;
}
.stexo-multiselect:focus {
    border-color: var(--stexo-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(12, 66, 82, 0.2) !important;
    outline: none !important;
}
.stexo-multiselect option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}
.stexo-multiselect option:hover {
    background-color: rgba(12, 66, 82, 0.08);
}
.stexo-multiselect option:checked {
    background: linear-gradient(0deg, rgba(12, 66, 82, 0.15), rgba(12, 66, 82, 0.12));
    color: var(--stexo-primary-dark);
    font-weight: 500;
}
/* Scrollbar for multiselect (WebKit) */
.stexo-multiselect::-webkit-scrollbar {
    width: 8px;
}
.stexo-multiselect::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.stexo-multiselect::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cards */
.stexo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--stexo-card-shadow);
    border: 1px solid #eff2f7;
}

/* Dashboard: hero strip */
.stexo-dashboard-hero {
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 45%, #fffbeb 100%) !important;
    box-shadow: 0 12px 40px rgba(16, 135, 137, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    position: relative;
    overflow: hidden;
}
.stexo-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stexo-primary) 0%, #2dd4bf 40%, var(--stexo-topbar-bg) 100%);
    border-radius: 16px 16px 0 0;
}
.stexo-dashboard-hero .card-body {
    position: relative;
    z-index: 1;
}
.stexo-dashboard-hero .bg-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 135, 137, 0.12) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Dashboard: activity panels (tables) */
.stexo-dashboard-panel {
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}
.stexo-dashboard-panel:hover {
    box-shadow: 0 16px 40px rgba(16, 135, 137, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.stexo-dashboard-panel .card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%) !important;
    border-bottom: 1px solid rgba(16, 135, 137, 0.1) !important;
    font-size: 0.9rem;
}

/* Dashboard stat cards */
.stexo-dashboard-cards .stexo-stat-card {
    min-height: 124px;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%) !important;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
.stexo-dashboard-cards .stexo-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stexo-primary), #5eead4, var(--stexo-topbar-bg));
    opacity: 0.95;
    border-radius: 14px 14px 0 0;
}
.stexo-dashboard-cards .stexo-stat-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 135, 137, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.stexo-dashboard-cards .stexo-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(16, 135, 137, 0.14), 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(16, 135, 137, 0.18) !important;
}
.stexo-dashboard-cards .stexo-stat-card .card-body {
    padding: 1.35rem 1.25rem 1.15rem !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1;
}
.stexo-dashboard-cards .stexo-stat-card a.small {
    color: var(--stexo-primary) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.15s ease, transform 0.15s ease;
}
.stexo-dashboard-cards .stexo-stat-card a.small:hover {
    color: var(--stexo-primary-dark) !important;
}
.stexo-stat-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stexo-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stexo-stat-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94a3b8;
}
.stexo-stat-pct {
    font-weight: 500;
    color: #6b7280;
}
/* Circular icon — gradient + glow */
.stexo-stat-icon {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
.stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}
.stexo-stat-icon-primary {
    background: linear-gradient(145deg, #1ba8ac 0%, var(--stexo-primary) 45%, #0a5c62 100%);
    box-shadow: 0 10px 24px rgba(16, 135, 137, 0.4);
}
.stexo-stat-icon-success {
    background: linear-gradient(145deg, #34d399 0%, #10b981 50%, #047857 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
}
.stexo-stat-icon-warning {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.38);
}
.stexo-stat-icon-danger {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}
.stexo-stat-icon-info {
    background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}
.stexo-stat-icon-indigo {
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 50%, #4338ca 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}
.stexo-stat-icon-teal {
    background: linear-gradient(145deg, #2dd4bf 0%, #14b8a6 50%, #0f766e 100%);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}
/* Highlighted academy card on dashboard */
.stexo-dashboard-cards .stexo-stat-card.border-primary {
    border-color: rgba(16, 135, 137, 0.25) !important;
    background: linear-gradient(160deg, #ffffff 0%, #ecfeff 40%, #ffffff 100%) !important;
}
.stexo-dashboard-cards .stexo-stat-card.border-primary::before {
    height: 4px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .stexo-dashboard-cards .stexo-stat-card,
    .stexo-dashboard-cards .stexo-stat-icon,
    .stexo-dashboard-panel {
        transition: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover {
        transform: none !important;
    }
    .stexo-dashboard-cards .stexo-stat-card:hover .stexo-stat-icon {
        transform: none !important;
    }
}

/* Progress bar in stat cards */
.stexo-stat-progress {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
}
.stexo-stat-progress .progress-bar {
    border-radius: 3px;
    background: var(--stexo-primary);
}

.stexo-card .card-body { padding: 24px; }
.stexo-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eff2f7;
    padding: 16px 24px;
    font-weight: 600;
    color: #495057;
    
}

/* Buttons - blue like image */
a.btn.btn-primary.stexo-btn-primary {
    font-size:13px;
}
.btn-primary.stexo-btn-primary,
.stexo-btn-primary {
    background: var(--stexo-primary);
    border-color: var(--stexo-primary);
    border-radius: 6px;
}
.btn-primary.stexo-btn-primary:hover,
.stexo-btn-primary:hover {
    background: var(--stexo-primary-dark);
    border-color: var(--stexo-primary-dark);
}

/* Pagination - theme-aligned Previous/Next and page links (Bootstrap 5 markup) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    gap: 4px;
}
.pagination .page-item {
    display: inline-block;
}
.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    min-width: 2.25rem;
    text-align: center;
}
.pagination .page-link:hover {
    background: #f8fafc;
    border-color: var(--stexo-primary, #0d9488);
    color: var(--stexo-primary, #0d9488);
}
.pagination .page-item.active .page-link {
    background: var(--stexo-primary, #0d9488);
    border-color: var(--stexo-primary, #0d9488);
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* User dropdown */
.stexo-user-dropdown .dropdown-toggle::after { margin-left: 8px; color:white;}
.stexo-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}
.stexo-user-dropdown .dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Tables */
.stexo-table { margin-bottom: 0; }
.stexo-table thead th {
    border-bottom: 1px solid #eff2f7;
    color: #495057;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
}
.stexo-table tbody td {
    padding: 16px 24px;
    vertical-align: middle;
}
.stexo-table tbody tr:hover { background: #f8f9fa; }

/* Alerts */
.stexo-alert { border: none; border-radius: 8px; }

/* Badges */
.badge.bg-soft-success { background: rgba(40, 199, 111, 0.15); color: #28a745; }
.badge.bg-soft-secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.badge.bg-soft-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.badge.bg-soft-primary { background: rgba(74, 123, 255, 0.15); color: var(--stexo-primary); }

/* Sidebar collapse on mobile */
@media (max-width: 991.98px) {
    .stexo-sidebar {
        transform: translateX(-100%);
        width: min(300px, 88vw);
        min-width: min(300px, 88vw);
        z-index: 1050;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }
    .stexo-sidebar.show {
        transform: translateX(0);
    }
    :root {
        --stexo-topbar-height: 56px;
    }

    html {
        scroll-padding-bottom: calc(var(--stexo-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .stexo-right {
        margin-left: 0;
        min-height: auto;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .stexo-main {
        padding-bottom: calc(var(--stexo-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .stexo-content {
        padding: 16px 14px 24px;
        min-height: calc(100dvh - var(--stexo-topbar-height) - var(--stexo-mobile-nav-height));
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .stexo-topbar {
        height: var(--stexo-topbar-height);
        padding: 0 12px;
        gap: 8px;
    }
    .stexo-topbar-left {
        min-width: 0;
        flex: 1;
    }
    .stexo-topbar-page-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .stexo-topbar .btn-sidebar-toggle.d-lg-none {
        display: none !important;
    }
    .stexo-topbar-right {
        gap: 4px;
    }
    .stexo-topbar-icon {
        width: 36px;
        height: 36px;
    }
    .stexo-topbar-avatar-wrap {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
    .stexo-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .stexo-page-header-actions {
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .stexo-page-header-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
    .stexo-page-title {
        font-size: 1.25rem;
    }
    .stexo-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .stexo-filter-bar .form-control,
    .stexo-filter-bar .form-select,
    .stexo-filter-bar .btn {
        width: 100%;
        max-width: none;
    }
    .card-body {
        padding: 1rem;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
    }

    .stexo-card {
        max-width: 100%;
        min-width: 0;
    }

    .stexo-card .table-responsive,
    .stexo-card .stexo-table-scroll,
    .stexo-card .crm-list-table-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .stexo-card .table-responsive .stexo-table,
    .stexo-card .stexo-table-scroll .stexo-table,
    .stexo-card .crm-list-table-wrap .stexo-table {
        width: max-content;
        min-width: 560px;
        max-width: none;
    }

    .stexo-table {
        font-size: 0.8125rem;
    }
    .row.g-3 > [class*="col-"],
    .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }
    .modal-dialog {
        margin: 0.75rem;
    }
    body.stexo-mobile-menu-open {
        overflow: hidden;
    }
}

/* Vertical menu toggle (desktop): collapsed sidebar */
.stexo-sidebar-collapsed .stexo-sidebar {
    width: 72px;
    min-width: 72px;
    overflow: hidden;
}
.stexo-sidebar-collapsed .stexo-right {
    margin-left: 72px;
}
.stexo-sidebar-collapsed .stexo-sidebar-brand {
    padding: 14px 8px;
}

.stexo-sidebar-collapsed .stexo-sidebar-brand-link {
    gap: 0;
}

.stexo-sidebar-collapsed .stexo-brand-text,
.stexo-sidebar-collapsed .stexo-sidebar-company-name,
.stexo-sidebar-collapsed .stexo-sidebar-user-info,
.stexo-sidebar-collapsed .stexo-sidebar-copy,
.stexo-sidebar-collapsed .stexo-sidebar-user .bi-chevron-down,
.stexo-sidebar-collapsed .stexo-sidebar-company-toggle .bi-chevron-down {
    display: none;
}

.stexo-sidebar-collapsed .stexo-brand-mark-grid {
    width: 28px;
    height: 28px;
}

/* Hide section headers — show icon-only menu items */
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-title,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-toggle {
    display: none;
}

.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu.collapse:not(.show),
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu.collapsing {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
}

.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link {
    padding: 12px;
    margin: 2px 8px;
    justify-content: center;
    font-size: 0;
    overflow: hidden;
    white-space: nowrap;
}

.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link i {
    margin-right: 0;
    font-size: 1.1rem;
}

.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link span,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link .nav-section-badge,
.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-link .badge {
    display: none !important;
}

.stexo-sidebar-collapsed .stexo-sidebar-nav .nav-section-menu .nav-link {
    padding: 12px;
    margin: 2px 8px;
}

.stexo-sidebar-collapsed .stexo-sidebar-footer {
    padding: 10px 6px 12px;
}

.stexo-sidebar-collapsed .stexo-sidebar-company {
    margin-bottom: 8px;
}

.stexo-sidebar-collapsed .stexo-sidebar-company-static,
.stexo-sidebar-collapsed .stexo-sidebar-user {
    justify-content: center;
    padding: 8px;
    gap: 0;
}

.stexo-sidebar-collapsed .stexo-sidebar-company-static {
    background: transparent;
    border: none;
    padding: 4px;
}

.stexo-sidebar-collapsed .stexo-sidebar-user-wrap {
    margin-bottom: 6px;
}

.stexo-sidebar-collapsed .stexo-sidebar-user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .stexo-sidebar-collapsed .stexo-sidebar {
        width: var(--stexo-sidebar-width);
        min-width: var(--stexo-sidebar-width);
        overflow: visible;
    }

    .stexo-sidebar-collapsed .stexo-right {
        margin-left: 0;
    }
}

/* Mobile app-style bottom navigation */
.stexo-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .stexo-mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1045;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e8ecf1;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 28px rgba(12, 66, 82, 0.1);
        justify-content: space-around;
        align-items: stretch;
        min-height: var(--stexo-mobile-nav-height);
        pointer-events: auto;
        touch-action: manipulation;
    }

    .stexo-mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        padding: 4px 2px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.625rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        border: none;
        background: transparent;
        border-radius: 12px;
        max-width: 76px;
        transition: color 0.2s, background 0.2s;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }

    .stexo-mobile-nav-item i {
        font-size: 1.3rem;
        line-height: 1;
        transition: transform 0.2s;
    }

    .stexo-mobile-nav-item span {
        line-height: 1.1;
        text-align: center;
    }

    .stexo-mobile-nav-item.active {
        color: var(--stexo-primary);
    }

    .stexo-mobile-nav-item.active i {
        transform: translateY(-1px);
    }

    .stexo-mobile-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        width: 28px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--stexo-primary);
    }

    .stexo-mobile-nav-item {
        position: relative;
    }

    body.stexo-mobile-menu-open .stexo-mobile-nav-item:last-child {
        color: var(--stexo-primary);
    }

    body.stexo-mobile-menu-open .stexo-mobile-nav-item:last-child i {
        transform: scale(1.05);
    }
}

@media (max-width: 575.98px) {
    .stexo-content {
        padding-left: 12px;
        padding-right: 12px;
    }
    .stexo-topbar-page-title {
        font-size: 0.875rem;
    }
    .btn-group {
        flex-wrap: wrap;
    }
    .d-flex.gap-2.flex-wrap .btn {
        flex: 1 1 calc(50% - 4px);
    }
}

/* Login & auth pages — Swaraj teal + gold palette */
.stexo-auth-body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #eef2f5;
    --auth-teal: #108789;
    --auth-teal-dark: #0c4252;
    --auth-teal-deep: #0a3642;
    --auth-gold: #ffbd2f;
    --auth-gold-light: #ffd966;
}
.stexo-auth-page {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}
.stexo-auth-left {
    flex: 1 1 440px;
    min-height: 100vh;
    background-color: var(--auth-teal-dark);
    background-image:
        linear-gradient(135deg, rgba(12, 66, 82, 0.94) 0%, rgba(16, 135, 137, 0.88) 55%, rgba(10, 54, 66, 0.92) 100%),
        radial-gradient(ellipse 80% 60% at 70% 100%, rgba(255, 189, 47, 0.12) 0%, transparent 55%);
    color: #fff;
    padding: 48px 52px 80px;
    position: relative;
    overflow: hidden;
}
.stexo-auth-dots {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 72px;
    height: 72px;
    background-image: radial-gradient(circle, var(--auth-gold) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.85;
    z-index: 1;
}
.stexo-auth-left-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 56px;
}
.stexo-auth-welcome-tag {
    color: var(--auth-gold);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}
.stexo-auth-headline {
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    color: #fff;
}
.stexo-auth-headline-accent {
    color: var(--auth-gold);
}
.stexo-auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.stexo-auth-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.stexo-auth-feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--auth-teal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.stexo-auth-features strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}
.stexo-auth-features span {
    font-size: 0.8125rem;
    opacity: 0.82;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}
.stexo-auth-secure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}
.stexo-auth-secure i {
    font-size: 1.35rem;
    color: var(--auth-gold);
}
.stexo-auth-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(90deg, transparent 0%, var(--auth-gold) 25%, var(--auth-gold-light) 50%, var(--auth-gold) 75%, transparent 100%);
    opacity: 0.35;
    clip-path: ellipse(85% 100% at 50% 100%);
    z-index: 1;
    pointer-events: none;
}
.stexo-auth-right {
    flex: 1 1 400px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px 24px;
    background: #eef2f5;
}
.stexo-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(12, 66, 82, 0.1);
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(16, 135, 137, 0.08);
}
.stexo-auth-card-logo {
    text-align: center;
    margin-bottom: 28px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}
.stexo-auth-card-logo img {
    max-width: 260px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.stexo-auth-card-title {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--auth-teal-deep);
    margin: 0 0 8px;
}
.stexo-auth-card-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 24px;
}
.stexo-auth-alert {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 10px 14px;
}
.stexo-auth-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 6px;
}
.stexo-auth-input-wrap {
    position: relative;
}
.stexo-auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}
.stexo-auth-input {
    padding: 11px 44px 11px 42px !important;
    border-radius: 8px !important;
    border: 1px solid #dde3ea !important;
    font-size: 0.9375rem;
    background: #fff;
    color: #334155;
}
.stexo-auth-input::placeholder {
    color: #a0aec0;
}
.stexo-auth-input:focus {
    border-color: var(--auth-teal) !important;
    box-shadow: 0 0 0 3px rgba(16, 135, 137, 0.18) !important;
    background: #fff;
}
.stexo-auth-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 8px 10px;
    line-height: 1;
    z-index: 2;
}
.stexo-auth-toggle-pw:hover { color: var(--auth-teal); }
.stexo-auth-remember .form-check-input:checked {
    background-color: var(--auth-teal);
    border-color: var(--auth-teal);
}
.stexo-auth-remember .form-check-label {
    font-size: 0.875rem;
    color: #475569;
}
.stexo-auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-teal);
    text-decoration: none;
}
.stexo-auth-link:hover {
    color: var(--auth-teal-deep);
    text-decoration: underline;
}
.stexo-auth-link-bold {
    font-weight: 600;
}
.stexo-auth-btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--auth-teal);
    box-shadow: 0 4px 12px rgba(16, 135, 137, 0.35);
    transition: background 0.15s, box-shadow 0.15s;
}
.stexo-auth-btn-primary:hover,
.stexo-auth-btn-primary:focus {
    color: #fff;
    background: #0d7375;
    box-shadow: 0 6px 16px rgba(16, 135, 137, 0.4);
}
.stexo-auth-btn-secondary {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    border: 1px solid #dde3ea;
    color: #475569;
}
.stexo-auth-footer-note {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #64748b;
}
.stexo-auth-copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}
@media (max-width: 991px) {
    .stexo-auth-left {
        min-height: auto;
        padding: 36px 24px 64px;
    }
    .stexo-auth-left-inner { padding-top: 40px; }
    .stexo-auth-headline { margin-bottom: 28px; }
    .stexo-auth-dots { top: 16px; left: 16px; }
    .stexo-auth-right {
        min-height: auto;
        flex: 1 1 100%;
    }
}

/* CRM confirm modal — Swaraj green theme */
.crm-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.crm-confirm-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.crm-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
}
.crm-confirm-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #f8faf6;
    border: 1px solid rgba(16, 135, 137, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(12, 66, 82, 0.18);
    padding: 28px 28px 24px;
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}
.crm-confirm-modal.is-open .crm-confirm-modal-dialog {
    transform: translateY(0) scale(1);
}
.crm-confirm-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(16, 135, 137, 0.12);
    color: var(--stexo-primary);
}
.crm-confirm-modal.is-danger .crm-confirm-modal-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}
.crm-confirm-modal.is-success .crm-confirm-modal-icon {
    background: rgba(40, 167, 69, 0.14);
    color: #198754;
}
.crm-confirm-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0c4252;
    margin: 0 0 8px;
    line-height: 1.35;
}
.crm-confirm-modal-message {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 24px;
    line-height: 1.55;
}
.crm-confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.crm-confirm-btn {
    min-width: 108px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.crm-confirm-btn-cancel {
    background: rgba(16, 135, 137, 0.12);
    color: #0c4252;
}
.crm-confirm-btn-cancel:hover {
    background: rgba(16, 135, 137, 0.2);
}
.crm-confirm-btn-ok {
    background: var(--stexo-primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(12, 66, 82, 0.22);
}
.crm-confirm-btn-ok:hover {
    background: #083240;
}
.crm-confirm-modal.is-danger .crm-confirm-btn-ok {
    background: #dc3545;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.25);
}
.crm-confirm-modal.is-danger .crm-confirm-btn-ok:hover {
    background: #bb2d3b;
}
.crm-confirm-modal.is-success .crm-confirm-btn-ok {
    background: #198754;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.25);
}
.crm-confirm-modal.is-success .crm-confirm-btn-ok:hover {
    background: #157347;
}
body.crm-confirm-open {
    overflow: hidden;
}

/* Customer addresses — billing/shipping tabs */
.nav-tabs-crm {
    border-bottom: 1px solid rgba(12, 66, 82, 0.12);
    gap: 0.25rem;
}
.nav-tabs-crm .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 0.375rem 0.375rem 0 0;
}
.nav-tabs-crm .nav-link:hover {
    color: var(--stexo-primary-dark, #0c4252);
    background: rgba(16, 135, 137, 0.06);
}
.nav-tabs-crm .nav-link.active {
    color: var(--stexo-primary-dark, #0c4252);
    background: rgba(16, 135, 137, 0.08);
    border-bottom-color: var(--stexo-primary-dark, #0c4252);
}
.customer-address-row .card-body {
    background: #fff;
}
.customer-address-row.border-primary,
.customer-address-row .border-primary {
    border-color: rgba(13, 110, 253, 0.35) !important;
}

