/* NationCare Web Loyalty overrides. Loaded after DashLite core. */
:root {
    --nc-web-primary: #6576ff;
    --nc-web-secondary: #364a63;
    --nc-web-success: #1ee0ac;
    --nc-web-warning: #f4bd0e;
    --nc-web-danger: #e85347;
    --nc-web-info: #09c2de;
    --nc-web-text: #526484;
    --nc-web-soft: #8091a7;
    --nc-web-border: #e5e9f2;
    --nc-web-background: #f5f6fa;
}

html,
body,
.nk-app-root {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--nc-web-text);
    background: var(--nc-web-background);
}

.nc-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--nc-web-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.demo-environment-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .625rem .875rem;
    border: 1px solid rgba(101, 118, 255, .22);
    border-radius: 6px;
    color: #4b5bdc;
    background: rgba(101, 118, 255, .08);
    font-size: .8125rem;
}

.nc-link-button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .625rem;
    padding: .625rem 1.25rem;
    border: 0;
    color: #526484;
    background: transparent;
    text-align: left;
}

.nc-link-button:hover { color: var(--nc-web-primary); }
.nc-link-button .icon { font-size: 1.125rem; }

.nc-page-state { min-height: 280px; }
.nc-page-state-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--nc-web-primary);
    background: rgba(101, 118, 255, .1);
    font-size: 1.75rem;
}
.nc-page-state-error .nc-page-state-icon,
.nc-page-state-permission .nc-page-state-icon {
    color: var(--nc-web-danger);
    background: rgba(232, 83, 71, .1);
}

.card.card-bordered { border-color: var(--nc-web-border); }
.nk-tb-item:last-child { border-bottom: 0; }
.list-status li { display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; }

.nc-stat-card {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 1rem;
}

.nc-stat-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--nc-web-primary);
    background: rgba(101, 118, 255, .1);
    font-size: 1.25rem;
}

.nc-stat-icon-success {
    color: #0fac81;
    background: rgba(30, 224, 172, .12);
}

.nc-permission-group td {
    color: var(--nc-web-secondary);
    background: #f5f6fa;
}

.nc-permission-table code,
.nc-audit-detail code {
    color: #526484;
    font-size: .75rem;
}

.nc-role-preview { min-height: 98px; }
.nc-audit-detail dt { color: var(--nc-web-soft); font-weight: 500; }
.nc-audit-detail dd { color: var(--nc-web-secondary); }

[data-demo-row].d-none { display: none !important; }

.progress-md { height: 6px; }
.font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.nc-timeline { position: relative; }
.nc-timeline::before {
    position: absolute;
    top: 10px;
    bottom: 22px;
    left: 7px;
    width: 2px;
    background: var(--nc-web-border);
    content: '';
}
.nc-timeline-item {
    position: relative;
    display: flex;
    gap: .875rem;
    padding-bottom: 1.5rem;
}
.nc-timeline-item > span {
    z-index: 1;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--nc-web-border);
    box-shadow: 0 0 0 1px var(--nc-web-border);
}
.nc-timeline-item.is-done > span { background: var(--nc-web-success); box-shadow: 0 0 0 1px var(--nc-web-success); }
.nc-timeline-item strong, .nc-timeline-item small { display: block; }
.nc-timeline-item small { margin-top: .25rem; color: var(--nc-web-soft); }
.nc-order-summary dt,
.nc-order-summary dd { padding-top: .5rem; padding-bottom: .5rem; margin-bottom: 0; }

.nc-dashboard-welcome { display: flex; padding: 1.25rem 1.5rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(101,118,255,.16); border-radius: 8px; background: linear-gradient(110deg, rgba(101,118,255,.08), rgba(9,194,222,.05)); }
.nc-dashboard-welcome h4 { margin: .25rem 0; color: var(--nc-web-secondary); }
.nc-dashboard-welcome p { margin: 0; color: var(--nc-web-soft); }
.nc-dashboard-health { display: flex; min-width: 250px; padding: .75rem 1rem; align-items: center; gap: .75rem; border-radius: 6px; background: #fff; box-shadow: 0 5px 20px rgba(54,74,99,.06); }
.nc-dashboard-health strong, .nc-dashboard-health small { display: block; }
.nc-dashboard-health small { margin-top: .125rem; color: var(--nc-web-soft); }
.nc-health-dot { width: 10px; height: 10px; flex: 0 0 10px; border: 2px solid #fff; border-radius: 50%; background: var(--nc-web-success); box-shadow: 0 0 0 4px rgba(30,224,172,.16); }

.nc-kpi-card { color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nc-kpi-card:hover { border-color: rgba(101,118,255,.32); color: inherit; box-shadow: 0 10px 30px rgba(54,74,99,.08); transform: translateY(-2px); }
.nc-kpi-top, .nc-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nc-kpi-top { margin-bottom: 1rem; }
.nc-kpi-value { margin: .25rem 0 .875rem; color: var(--nc-web-secondary); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.nc-kpi-value small { margin-left: .125rem; font-size: .875rem; font-weight: 500; }
.nc-kpi-code { overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
.nc-kpi-trend { display: inline-flex; padding: .25rem .5rem; align-items: center; gap: .25rem; border-radius: 20px; font-size: .6875rem; font-weight: 600; }
.nc-kpi-trend.is-up { color: #0fac81; background: rgba(30,224,172,.12); }
.nc-kpi-trend.is-down { color: #d9473b; background: rgba(232,83,71,.1); }
.nc-kpi-foot { margin-bottom: .5rem; color: var(--nc-web-soft); font-size: .75rem; }
.nc-kpi-foot strong { color: var(--nc-web-text); }
.nc-kpi-spark { display: flex; height: 22px; margin-top: .25rem; align-items: flex-end; gap: 4px; }
.nc-kpi-spark i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--nc-web-success), rgba(30,224,172,.25)); }

.nc-chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--nc-web-soft); font-size: .75rem; }
.nc-chart-legend span { display: flex; align-items: center; gap: .375rem; }
.nc-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.nc-line-chart { display: grid; min-height: 280px; grid-template-columns: 30px 1fr; }
.nc-chart-y { display: flex; padding: 0 0 25px; align-items: flex-end; justify-content: space-between; flex-direction: column; color: var(--nc-web-soft); font-size: .6875rem; }
.nc-chart-stage { position: relative; min-width: 0; padding-bottom: 25px; }
.nc-chart-stage svg { position: absolute; z-index: 2; top: 0; right: 0; bottom: 25px; left: 0; width: 100%; height: calc(100% - 25px); overflow: visible; }
.nc-grid-line { position: absolute; z-index: 0; right: 0; left: 0; height: 1px; background: #edf0f5; }
.nc-chart-x { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: var(--nc-web-soft); font-size: .6875rem; }

.nc-donut-wrap { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 1.5rem; }
.nc-donut { position: relative; display: flex; width: 150px; height: 150px; align-items: center; justify-content: center; border-radius: 50%; }
.nc-donut::before { position: absolute; inset: 20px; border-radius: 50%; background: #fff; content: ''; }
.nc-donut.is-order { background: conic-gradient(var(--nc-web-primary) 0 50%, var(--nc-web-success) 50% 75%, var(--nc-web-danger) 75% 100%); }
.nc-donut.is-qr { background: conic-gradient(var(--nc-web-info) 0 33.33%, var(--nc-web-primary) 33.33% 66.66%, var(--nc-web-warning) 66.66% 83.33%, var(--nc-web-danger) 83.33% 100%); }
.nc-donut > div { position: relative; z-index: 1; text-align: center; }
.nc-donut strong, .nc-donut span { display: block; }
.nc-donut strong { color: var(--nc-web-secondary); font-size: 1.75rem; }
.nc-donut span { color: var(--nc-web-soft); font-size: .6875rem; }
.nc-donut-legend { display: grid; gap: .75rem; }
.nc-donut-legend > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: .5rem; font-size: .75rem; }
.nc-donut-legend i { width: 8px; height: 8px; border-radius: 50%; }
.nc-donut-legend span { color: var(--nc-web-soft); }

.nc-bar-chart { display: flex; height: 230px; align-items: flex-end; justify-content: space-around; gap: .75rem; border-bottom: 1px solid var(--nc-web-border); }
.nc-bar-chart > div { position: relative; display: flex; height: 100%; flex: 1; align-items: center; justify-content: flex-end; flex-direction: column; }
.nc-bar-chart i { width: min(36px, 70%); min-height: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--nc-web-primary), rgba(101,118,255,.55)); }
.nc-bar-chart small { position: absolute; bottom: -24px; color: var(--nc-web-soft); font-size: .625rem; }
.nc-production-chart { display: flex; height: 240px; align-items: stretch; gap: .75rem; padding-top: 1.75rem; border-bottom: 1px solid var(--nc-web-border); background-image: linear-gradient(to bottom, rgba(219,223,234,.55) 1px, transparent 1px); background-size: 100% 25%; }
.nc-production-chart-day { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; }
.nc-production-chart-bars { display: flex; height: 100%; align-items: flex-end; justify-content: center; gap: .25rem; }
.nc-production-chart-bars i { position: relative; display: block; width: min(28px, 42%); min-height: 4px; border-radius: 4px 4px 0 0; transition: height .2s ease; }
.nc-production-chart-bars i span { position: absolute; right: 50%; bottom: calc(100% + .2rem); transform: translateX(50%); color: var(--nc-web-soft); font-size: .625rem; font-style: normal; white-space: nowrap; }
.nc-production-chart-day small { position: absolute; right: 50%; bottom: -1.5rem; transform: translateX(50%); color: var(--nc-web-soft); font-size: .6875rem; white-space: nowrap; }
.nc-production-chart.is-revenue .nc-production-chart-bars i { width: min(38px, 70%); }
.nc-product-thumb { width: 52px; height: 52px; border: 1px solid var(--nc-web-border); border-radius: 8px; background: #fff; object-fit: cover; }
.nc-product-preview { display: flex; min-height: 150px; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed var(--nc-web-border); border-radius: 8px; background: #f8f9fc; }
.nc-product-preview img { width: 100%; max-height: 220px; object-fit: contain; }
.nc-product-preview-placeholder { color: var(--nc-web-soft); }
.nc-permission-table .form-check-input { width: 1.5rem; height: 1.5rem; margin-top: 0; cursor: pointer; }
.nc-permission-table .form-check-input:disabled { cursor: not-allowed; }
.btn.btn-sm.btn-icon { min-width: 2.25rem; min-height: 2.25rem; }
.parameter-row .custom-control-label { min-height: 1.75rem; display: inline-flex; align-items: center; }
.nc-bar-value { margin-bottom: .375rem; color: var(--nc-web-text); font-size: .625rem; }
.nc-action-list > a { display: grid; grid-template-columns: auto 1fr auto; padding: 1rem 1.25rem; align-items: center; gap: .75rem; border-bottom: 1px solid var(--nc-web-border); color: var(--nc-web-text); }
.nc-action-list > a:last-child { border-bottom: 0; }
.nc-action-list > a:hover { color: var(--nc-web-primary); background: rgba(101,118,255,.025); }
.nc-action-list__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.125rem; }
.nc-action-list strong, .nc-action-list small { display: block; }
.nc-action-list small { margin-top: .2rem; color: var(--nc-web-soft); }

.nc-activity-list { padding: 0 1.5rem; }
.nc-activity-item { position: relative; display: grid; grid-template-columns: 14px 1fr auto; padding: 1rem 0; align-items: center; gap: .75rem; border-bottom: 1px solid var(--nc-web-border); }
.nc-activity-item:last-child { border-bottom: 0; }
.nc-activity-item::before { position: absolute; top: 0; bottom: 0; left: 6px; width: 1px; background: var(--nc-web-border); content: ''; }
.nc-activity-item:first-child::before { top: 50%; }
.nc-activity-item:last-child::before { bottom: 50%; }
.nc-activity-dot { z-index: 1; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--nc-web-border); }
.nc-activity-dot.is-success { background: var(--nc-web-success); }
.nc-activity-dot.is-danger { background: var(--nc-web-danger); }
.nc-activity-item p { margin: .2rem 0 0; color: var(--nc-web-soft); font-size: .75rem; }
.nc-activity-item .text-end small { display: block; margin-top: .25rem; color: var(--nc-web-soft); font-size: .625rem; }

.nc-login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); background: #fff; }
.nc-login-brand { position: relative; display: flex; overflow: hidden; padding: 4rem; align-items: center; color: #fff; background: linear-gradient(145deg, #253553 0%, #364a63 58%, #6576ff 150%); }
.nc-login-brand::before, .nc-login-brand::after { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); content: ''; }
.nc-login-brand::before { top: -120px; right: -100px; width: 320px; height: 320px; }
.nc-login-brand::after { bottom: -170px; left: -120px; width: 390px; height: 390px; }
.nc-login-brand__content { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.nc-login-logo { display: inline-flex; width: 58px; height: 58px; margin-bottom: 2rem; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: var(--nc-web-primary); box-shadow: 0 14px 34px rgba(0,0,0,.2); font-size: 18px; font-weight: 800; }
.nc-login-brand .overline-title { color: #aeb8ff !important; }
.nc-login-brand h1 { max-width: 560px; margin: .75rem 0 1rem; color: #fff; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.15; }
.nc-login-brand p { max-width: 520px; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.65; }
.nc-login-feature-list { display: grid; margin: 2rem 0 0; padding: 0; gap: .875rem; list-style: none; }
.nc-login-feature-list li { display: flex; align-items: center; gap: .625rem; color: rgba(255,255,255,.88); }
.nc-login-feature-list .icon { color: var(--nc-web-success); font-size: 1.25rem; }
.nc-login-main { display: flex; padding: 3rem; align-items: center; justify-content: center; background: #f8f9fc; }
.nc-login-panel { width: 100%; max-width: 460px; padding: 2.25rem; border: 1px solid var(--nc-web-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(54,74,99,.08); }
.nc-password-toggle { padding: 0; border: 0; color: var(--nc-web-soft); background: transparent; cursor: pointer; }
.nc-login-divider { display: flex; margin: 1.75rem 0 1rem; align-items: center; gap: .75rem; color: var(--nc-web-soft); font-size: .75rem; }
.nc-login-divider::before, .nc-login-divider::after { height: 1px; flex: 1; background: var(--nc-web-border); content: ''; }
.nc-demo-account-list { display: grid; gap: .625rem; }
.nc-demo-account-list > button { display: grid; width: 100%; grid-template-columns: auto 1fr auto; padding: .75rem; align-items: center; gap: .75rem; border: 1px solid var(--nc-web-border); border-radius: 8px; color: var(--nc-web-text); background: #fff; text-align: left; transition: border-color .2s ease, background .2s ease; }
.nc-demo-account-list > button:hover { border-color: rgba(101,118,255,.45); background: rgba(101,118,255,.04); }
.nc-demo-account-list strong, .nc-demo-account-list small { display: block; }
.nc-demo-account-list small { margin-top: .125rem; color: var(--nc-web-soft); }
.nc-demo-account-list > button > .icon { color: var(--nc-web-primary); }
.nc-login-note { display: flex; margin: 1.25rem 0 0; padding: .75rem; align-items: flex-start; gap: .5rem; border-radius: 6px; color: var(--nc-web-soft); background: var(--nc-web-background); font-size: .75rem; line-height: 1.5; }
.nc-login-note .icon { flex: 0 0 auto; color: var(--nc-web-primary); font-size: 1rem; }

.nc-demo-toast { position: fixed; z-index: 1090; right: 24px; bottom: 24px; display: flex; width: min(380px, calc(100vw - 32px)); padding: .875rem 1rem; align-items: flex-start; gap: .625rem; border: 1px solid rgba(30,224,172,.3); border-radius: 8px; color: var(--nc-web-text); background: #fff; box-shadow: 0 12px 36px rgba(54,74,99,.18); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; }
.nc-demo-toast.is-visible { opacity: 1; transform: translateY(0); }
.nc-demo-toast .icon { flex: 0 0 auto; color: var(--nc-web-success); font-size: 1.25rem; }
.nc-demo-toast span { line-height: 1.5; }

@media (max-width: 991.98px) {
    .nc-dashboard-welcome { align-items: flex-start; flex-direction: column; }
    .nc-dashboard-health { width: 100%; min-width: 0; }
    .nc-line-chart { min-height: 240px; }
    .nc-login-page { display: block; background: #f8f9fc; }
    .nc-login-brand { min-height: auto; padding: 2rem 1.5rem; }
    .nc-login-brand__content { max-width: 620px; }
    .nc-login-logo, .nc-login-feature-list { display: none; }
    .nc-login-brand h1 { max-width: 620px; margin-bottom: .5rem; font-size: 1.75rem; }
    .nc-login-brand p { margin-bottom: 0; }
    .nc-login-main { padding: 2rem 1rem; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .nc-demo-toast { right: 16px; bottom: 16px; }
    .nc-dashboard-welcome { padding: 1rem; }
    .nc-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
    .nc-donut-legend { width: 100%; }
    .nc-line-chart { min-height: 210px; }
    .nc-chart-y { display: none; }
    .nc-line-chart { grid-template-columns: 1fr; }
    .nc-bar-chart { gap: .25rem; }
    .nc-bar-value { display: none; }
    .nc-activity-list { padding: 0 1rem; }
    .nc-activity-item { grid-template-columns: 14px 1fr; }
    .nc-activity-item .text-end { grid-column: 2; text-align: left !important; }
    .nc-login-brand { padding: 1.5rem 1rem; }
    .nc-login-brand h1 { font-size: 1.4rem; }
    .nc-login-brand p { font-size: .875rem; }
    .nc-login-panel { padding: 1.25rem; }
    .nc-login-main { padding-top: 1rem; }
}

@media (max-width: 767.98px) {
    .demo-environment-banner { align-items: flex-start; }
    .nk-block-head-content + .nk-block-head-content { margin-top: .75rem; }
    .nc-stat-card { min-height: 92px; padding: 1rem; }
    .nc-stat-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .nk-content-body > .nk-block > .row,
    .nk-block-head .nk-block-between { margin-right: 0; margin-left: 0; }
}

@media print {
    .nk-apps-sidebar, .nk-sidebar, .nk-header, .demo-environment-banner { display: none !important; }
    .nk-content { margin: 0 !important; padding: 0 !important; }
}
