/* SampitMart pages skinned to follow the SampitmartPOS visual system. */
:root {
    --pos-primary: #4f46e5;
    --pos-primary-hover: #4338ca;
    --pos-primary-soft: #e0e7ff;
    --pos-success: #10b981;
    --pos-warning: #f59e0b;
    --pos-danger: #ef4444;
    --pos-bg: #f8fafc;
    --pos-panel: #ffffff;
    --pos-line: #e2e8f0;
    --pos-ink: #0f172a;
    --pos-muted: #64748b;
    --pos-sidebar: #1e293b;
    --pos-sidebar-strong: #f8fafc;
    --pos-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    --pos-shadow-lg: 0 28px 70px rgba(30, 41, 78, .15);
    --pos-radius: 8px;
}

.pos-landing-theme,
.pos-saas-theme,
.pos-dashboard-theme,
.pos-catalog-theme {
    background: var(--pos-bg);
    color: var(--pos-ink);
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pos-landing-theme .navbar,
.pos-saas-theme .topbar,
.pos-catalog-theme .topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--pos-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.pos-landing-theme .brand-text,
.pos-saas-theme .brand,
.pos-catalog-theme .brand {
    color: var(--pos-primary);
    letter-spacing: 0;
    text-transform: none;
}

.pos-landing-theme .nav-logo,
.pos-saas-theme .brand img,
.pos-catalog-theme .brand-icon,
.pos-dashboard-theme .logo img,
.pos-dashboard-theme .sidebar-logo img {
    border-radius: var(--pos-radius);
    filter: drop-shadow(0 8px 14px rgba(0, 99, 169, .13));
}

.pos-landing-theme .nav-links a,
.pos-catalog-theme .nav a,
.pos-saas-theme .nav a,
.pos-landing-theme .btn,
.pos-catalog-theme .btn,
.pos-saas-theme .button,
.pos-dashboard-theme .button,
.pos-dashboard-theme .nav a,
.pos-dashboard-theme .sidebar-logout {
    border-radius: var(--pos-radius);
    font-weight: 800;
    letter-spacing: 0;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pos-landing-theme .nav-links .btn-login,
.pos-landing-theme .btn-primary,
.pos-catalog-theme .btn-primary,
.pos-saas-theme .nav .primary,
.pos-saas-theme .button.dark,
.pos-dashboard-theme .button.dark,
.pos-dashboard-theme .sidebar-logout {
    border-color: var(--pos-primary);
    background: var(--pos-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .18);
}

.pos-landing-theme .nav-links .btn-login:hover,
.pos-landing-theme .btn-primary:hover,
.pos-catalog-theme .btn-primary:hover,
.pos-saas-theme .nav .primary:hover,
.pos-saas-theme .button.dark:hover,
.pos-dashboard-theme .button.dark:hover,
.pos-dashboard-theme .sidebar-logout:hover {
    background: var(--pos-primary-hover);
    color: #fff;
}

.pos-landing-theme .btn-outline,
.pos-catalog-theme .btn,
.pos-saas-theme .button,
.pos-dashboard-theme .button,
.pos-dashboard-theme .nav a {
    border: 1px solid var(--pos-line);
    background: var(--pos-panel);
    color: var(--pos-ink);
}

.pos-landing-theme .nav-links {
    position: relative;
}

.pos-catalog-theme .nav {
    position: relative;
}

.pos-catalog-theme .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-radius: var(--pos-radius);
    font-size: .85rem;
}

.landing-nav-dropdown {
    position: relative;
}

.landing-nav-dropdown summary {
    min-width: 128px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem .9rem;
    border: 1px solid #dfe2eb;
    border-radius: 999px;
    color: var(--pos-ink);
    background: #fff;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 10px 24px rgba(30, 41, 78, .05);
}

.landing-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.landing-nav-dropdown summary:hover,
.landing-nav-dropdown[open] summary {
    border-color: rgba(85, 84, 217, .36);
    color: var(--pos-primary);
    background: #f7f7ff;
}

.menu-chevron {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    font-size: 0;
    line-height: 1;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.landing-nav-dropdown[open] .menu-chevron {
    transform: rotate(225deg) translateY(-2px);
}

.landing-nav-menu {
    position: absolute;
    top: calc(100% + .75rem);
    right: 0;
    z-index: 150;
    width: min(900px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 96px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    overflow: auto;
    border: 1px solid #e7e8ef;
    border-radius: var(--pos-radius);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 60px rgba(30, 41, 78, .16);
    backdrop-filter: blur(14px);
}

.landing-menu-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem .75rem;
    padding: 1rem;
}

.landing-menu-section {
    display: grid;
    align-content: start;
    gap: .2rem;
}

.landing-menu-section-title,
.landing-menu-side-label {
    margin-bottom: .2rem;
    color: #047857;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.landing-menu-link {
    min-height: 60px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .55rem;
    border-radius: var(--pos-radius);
    color: var(--pos-ink);
}

.landing-menu-link:hover {
    color: var(--pos-primary);
    background: #f3f4ff;
}

.landing-menu-icon,
.landing-menu-highlight-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--pos-radius);
    color: var(--pos-primary);
    background: #eeefff;
    font-size: .68rem;
    font-weight: 900;
}

.landing-menu-icon img,
.landing-menu-highlight-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-menu-highlight-icon img {
    padding: 2px;
}

.landing-menu-link strong,
.landing-menu-link small {
    display: block;
    min-width: 0;
}

.landing-menu-link strong {
    font-size: .82rem;
}

.landing-menu-link small {
    margin-top: .18rem;
    color: var(--pos-muted);
    font-size: .68rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-menu-side {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: 1rem;
    border-left: 1px solid #e7e8ef;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.landing-menu-highlight {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .7rem;
    border: 1px solid #e7e8ef;
    border-radius: var(--pos-radius);
    background: #fff;
}

.landing-menu-highlight strong,
.landing-menu-highlight span {
    display: block;
}

.landing-menu-highlight strong {
    font-size: .85rem;
}

.landing-menu-highlight span {
    margin-top: .2rem;
    color: var(--pos-muted);
    font-size: .68rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-menu-side .btn {
    width: 100%;
}

.landing-menu-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    padding: .75rem 1rem;
    border-top: 1px solid #e7e8ef;
    background: #fff;
}

.landing-menu-footer a {
    color: var(--pos-muted);
    font-size: .72rem;
    font-weight: 900;
}

.landing-menu-footer a:hover {
    color: var(--pos-primary);
}

.pos-landing-theme .hero {
    width: min(1180px, calc(100% - 40px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    align-items: center;
    gap: 4rem;
    padding: 116px 0 72px;
    text-align: left;
}

.pos-landing-theme .hero::before {
    display: none;
}

.pos-landing-theme .hero-badge,
.pos-landing-theme .hero h1,
.pos-landing-theme .hero > p,
.pos-landing-theme .hero-actions,
.pos-landing-theme .hero-proof {
    grid-column: 1;
    max-width: 650px;
    margin-left: 0;
    margin-right: 0;
}

.pos-landing-theme .hero h1 {
    font-size: clamp(2.7rem, 5vw, 4.55rem);
    line-height: 1.02;
}

.pos-landing-theme .hero > p {
    color: var(--pos-muted);
    line-height: 1.8;
}

.pos-landing-theme .hero-actions {
    justify-content: flex-start;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    color: var(--pos-muted);
    font-size: .75rem;
    font-weight: 700;
}

.hero-proof span::before {
    content: "OK";
    margin-right: .45rem;
    color: var(--pos-success);
    font-size: .63rem;
    font-weight: 900;
}

.hero-product {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 5;
}

.product-window {
    overflow: hidden;
    border: 1px solid #e6e7ef;
    border-radius: var(--pos-radius);
    background: #fff;
    box-shadow: var(--pos-shadow-lg);
}

.product-window-bar {
    height: 54px;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid #eceef4;
    font-size: .72rem;
}

.window-dots {
    display: flex;
    gap: .35rem;
}

.window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d7d9e3;
}

.live-pill {
    justify-self: end;
    padding: .25rem .55rem;
    border-radius: 999px;
    color: #16845b;
    background: #e4f7ef;
    font-size: .62rem;
    font-weight: 900;
}

.product-window-body {
    min-height: 430px;
    display: flex;
    background: #f5f6fa;
}

.mini-sidebar {
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    background: #171d31;
}

.mini-sidebar > span:not(.mini-logo) {
    width: 20px;
    height: 20px;
    border: 2px solid #7b8196;
    border-radius: 6px;
}

.mini-sidebar > span.active {
    border-color: #8e8cf2;
    background: #6765df;
}

.mini-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mini-dashboard {
    min-width: 0;
    flex: 1;
    padding: 1.5rem;
}

.mini-heading,
.mini-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-heading small,
.mini-heading strong,
.mini-stats small,
.mini-stats strong,
.mini-stats em {
    display: block;
}

.mini-heading small,
.mini-heading > span,
.mini-chart-head small,
.mini-stats small {
    color: #8a90a3;
    font-size: .62rem;
}

.mini-heading strong {
    margin-top: .2rem;
    font-size: .9rem;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 1.25rem 0;
}

.mini-stats > div,
.mini-chart-card {
    border: 1px solid #eaebf2;
    border-radius: var(--pos-radius);
    background: #fff;
}

.mini-stats > div {
    padding: .9rem;
}

.mini-stats strong {
    margin: .35rem 0;
    font-size: .92rem;
}

.mini-stats em {
    color: #1f9d6b;
    font-size: .52rem;
    font-style: normal;
}

.mini-stats em.warn {
    color: #d98711;
}

.mini-chart-card {
    min-height: 220px;
    padding: 1rem;
}

.mini-chart-card svg {
    width: 100%;
    margin-top: 1rem;
}

.chart-grid {
    fill: none;
    stroke: #edf0f5;
    stroke-width: 1;
}

.chart-area {
    fill: url(#sampitHeroChartFill);
}

.chart-line {
    fill: none;
    stroke: var(--pos-primary);
    stroke-width: 4;
    stroke-linecap: round;
}

.floating-receipt {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 185px;
    padding: 1rem;
    border: 1px solid #e7e8f0;
    border-radius: var(--pos-radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(30, 41, 78, .18);
}

.floating-receipt span,
.floating-receipt small {
    display: block;
    color: var(--pos-muted);
    font-size: .68rem;
    font-weight: 800;
}

.floating-receipt strong {
    display: block;
    margin: .25rem 0;
    font-size: 1.35rem;
}

.pos-landing-theme .stats,
.pos-landing-theme .feature-card,
.pos-landing-theme .cta-box,
.pos-saas-theme .metric {
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
}

.pos-landing-theme .section-label span {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    font-size: 0;
}

.pos-landing-theme .section-label span::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: url("/images/icons/umkm/dashboard.png") center / contain no-repeat;
}

.pos-landing-theme .feature-icon {
    overflow: hidden;
    padding: 6px;
    font-size: 0;
    background-color: #eeefff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 84%;
}

.pos-landing-theme .feature-card:nth-child(1) .feature-icon {
    background-image: url("/images/icons/umkm/products.png");
}

.pos-landing-theme .feature-card:nth-child(2) .feature-icon {
    background-image: url("/images/icons/admin/payments.png");
}

.pos-landing-theme .feature-card:nth-child(3) .feature-icon {
    background-image: url("/images/icons/umkm/finance.png");
}

.pos-landing-theme .feature-card:nth-child(4) .feature-icon {
    background-image: url("/images/icons/umkm/billing.png");
}

.pos-landing-theme .feature-card:nth-child(5) .feature-icon {
    background-image: url("/images/icons/umkm/pos.png");
}

.pos-landing-theme .feature-card:nth-child(6) .feature-icon {
    background-image: url("/images/icons/umkm/reports.png");
}

.pos-saas-theme .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #0f766e);
}

.pos-saas-theme .hero > .badge,
.pos-saas-theme .hero > h1,
.pos-saas-theme .hero > p,
.pos-saas-theme .hero > .actions {
    max-width: 660px;
}

.portal-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--pos-radius);
    background: rgba(255, 255, 255, .94);
    color: var(--pos-ink);
    box-shadow: 0 24px 55px rgba(15, 23, 42, .18);
}

.portal-preview-head,
.portal-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-preview-head strong {
    font-size: .82rem;
}

.portal-preview-head span,
.portal-preview-row span {
    color: var(--pos-muted);
    font-size: .68rem;
    font-weight: 800;
}

.portal-preview-row {
    padding: .75rem;
    border: 1px solid var(--pos-line);
    border-radius: var(--pos-radius);
    background: #f8fafc;
}

.portal-preview-row strong {
    font-size: .86rem;
}

.pos-dashboard-theme {
    background: var(--pos-bg);
}

.pos-dashboard-theme .shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.pos-dashboard-theme .sidebar {
    border: 0;
    background: var(--pos-sidebar);
    color: var(--pos-sidebar-strong);
    box-shadow: none;
}

.pos-dashboard-theme .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
}

.pos-dashboard-theme .sidebar-group-filter {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pos-dashboard-theme .sidebar-group-filter label,
.pos-dashboard-theme .sidebar-group-note {
    color: #94a3b8;
}

.pos-dashboard-theme .sidebar-group-select {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
}

.pos-dashboard-theme .sidebar-group-select option {
    background: #1e293b;
    color: #f8fafc;
}

.pos-dashboard-theme .sidebar-logo {
    background: #fff;
}

.pos-dashboard-theme .sidebar-title strong {
    color: #fff;
}

.pos-dashboard-theme .sidebar-title span,
.pos-dashboard-theme .sidebar-label {
    color: #94a3b8;
}

.pos-dashboard-theme .sidebar-scroll {
    gap: .65rem;
}

.pos-dashboard-theme .sidebar-link {
    color: #cbd5e1;
    border-color: transparent;
}

.pos-dashboard-theme .sidebar-link:hover,
.pos-dashboard-theme .sidebar-link.active {
    border-color: transparent;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.pos-dashboard-theme .sidebar-menu-icon {
    width: 28px;
    height: 28px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: var(--pos-radius);
    background: rgba(99, 102, 241, .18);
}

.pos-dashboard-theme .sidebar-menu-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pos-dashboard-theme .sidebar-link:hover .sidebar-menu-icon,
.pos-dashboard-theme .sidebar-link.active .sidebar-menu-icon {
    background: var(--pos-primary);
}

.pos-dashboard-theme .sidebar-dot {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: var(--pos-radius);
    background: rgba(99, 102, 241, .18);
    box-shadow: none;
}

.pos-dashboard-theme .sidebar-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.pos-dashboard-theme .sidebar-link.active .sidebar-dot,
.pos-dashboard-theme .sidebar-link:hover .sidebar-dot {
    background: var(--pos-primary);
}

.pos-dashboard-theme .sidebar-count {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.pos-dashboard-theme .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
}

.pos-dashboard-theme .user-chip {
    background: rgba(255, 255, 255, .08);
}

.pos-dashboard-theme .user-chip span {
    color: #a5b4fc;
}

.pos-dashboard-theme .user-chip strong {
    color: #fff;
}

.pos-dashboard-theme .topbar {
    border: 1px solid var(--pos-line);
    background: #fff;
    color: var(--pos-ink);
    box-shadow: var(--pos-shadow);
}

.pos-dashboard-theme .brand h1 {
    color: var(--pos-ink);
}

.pos-dashboard-theme .topbar .subtitle {
    color: var(--pos-muted);
}

.pos-dashboard-theme .metric,
.pos-dashboard-theme .panel,
.pos-dashboard-theme .card,
.pos-dashboard-theme .section-card,
.pos-dashboard-theme .chart-card {
    border-radius: var(--pos-radius);
}

.pos-dashboard-theme .panel,
.pos-dashboard-theme .card,
.pos-dashboard-theme .chart-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.pos-dashboard-theme .panel-head {
    background: #fff;
}

@media (max-width: 980px) {
    .pos-landing-theme .hero,
    .pos-saas-theme .hero {
        grid-template-columns: 1fr;
    }

    .hero-product,
    .pos-saas-theme .portal-preview {
        grid-column: 1;
        grid-row: auto;
    }

    .pos-dashboard-theme .shell {
        grid-template-columns: 1fr;
    }

    .pos-dashboard-theme .sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .pos-landing-theme .hero {
        width: min(calc(100% - 24px), 1180px);
        min-height: auto;
        gap: 2.25rem;
        padding: 102px 0 48px;
    }

    .landing-nav-dropdown summary {
        min-width: auto;
        min-height: 38px;
        padding: .52rem .75rem;
        font-size: .78rem;
    }

    .pos-catalog-theme .topbar .wrap {
        align-items: stretch;
    }

    .pos-catalog-theme .nav {
        display: flex;
        justify-content: space-between;
    }

    .landing-nav-menu {
        position: fixed;
        top: 72px;
        left: .75rem;
        right: .75rem;
        width: auto;
        max-height: calc(100vh - 88px);
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .landing-menu-main {
        grid-template-columns: 1fr;
        padding: .85rem;
    }

    .landing-menu-side {
        border-left: 0;
        border-top: 1px solid #e7e8ef;
    }

    .landing-menu-footer {
        padding: .85rem;
    }

    .pos-landing-theme .hero h1 {
        font-size: 2.35rem;
    }

    .pos-landing-theme .hero-actions,
    .pos-landing-theme .footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-landing-theme .hero-actions .btn {
        width: 100%;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .product-window-body {
        min-height: 520px;
    }

    .floating-receipt {
        right: 10px;
    }

    .pos-saas-theme .portal-preview {
        display: none;
    }
}
