/*
  Quick POS Documentation - Custom Professional Theme
  All previous external CSS frameworks removed (Bootstrap, Prettify).
  Single-source design system written from scratch.
  Author: Custom Generated
*/

/* =====================
   Design Tokens
   ===================== */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7fa;
    --color-surface: #ffffff;
    --color-surface-alt: #f9fbfd;
    --color-primary: #0d6efd;
    --color-primary-accent: #0b5ed7;
    --color-primary-soft: #e3f1ff;
    --color-accent: #845ef7;
    --color-text: #1f2933;
    --color-text-soft: #526272;
    --color-border: #dde3ea;
    --color-border-strong: #c2ccd6;
    --color-code-bg: #1e2732;
    --color-code-border: #2f3a46;
    --color-inline-code-bg: #f1f5f9;
    --gradient-hero: linear-gradient(135deg, #eef5ff 0%, #f8fafc 55%, #ffffff 100%);
    --font-sans: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Fira Mono", Consolas, "Courier New", monospace;
    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 14px rgba(25, 35, 45, 0.08);
    --shadow-lg: 0 10px 32px -4px rgba(15, 23, 42, 0.25);
    --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: .4s cubic-bezier(.4, 0, .2, 1);
    --content-max-width: 1180px;
}

/* Dark mode removed per request: all colors fixed to light theme */

/* =====================
   Global Reset & Base
   ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--gradient-hero) fixed;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    font-size: 16px;
}

body::before {
    /* subtle background texture */
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.015) 0 10px, transparent 10px 20px);
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: .7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.noshadow {
    box-shadow: none !important;
}

img:not(.noshadow) {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .5px;
    position: relative;
}

h1 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin: 0 0 .6em;
    color: var(--color-text);
}

h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
    margin: 2.2em 0 .6em;
    color: var(--color-primary);
}

h3 {
    font-size: 1.25rem;
    margin: 1.8em 0 .6em;
    color: var(--color-accent);
}

h4 {
    font-size: 1.05rem;
    margin: 1.4em 0 .5em;
}

p {
    margin: 0 0 1.1em;
}

strong,
b {
    font-weight: 600;
}

code,
kbd,
pre {
    font-family: var(--font-mono);
}

code {
    background: var(--color-inline-code-bg);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: .88em;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-accent);
}

a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Lists */
ul,
ol {
    padding-left: 1.2rem;
    margin: 0 0 1.2em;
}

li {
    margin: .25em 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin-top: .4em;
}

/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--color-border), transparent);
    margin: 2.4em 0 1.8em;
}

/* Layout */
#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar-wrapper {
    width: 280px;
    background: rgba(20, 28, 38, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 26px 22px 50px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

#sidebar-wrapper::-webkit-scrollbar {
    width: 10px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-primary), var(--color-accent));
    border-radius: 6px;
}

#page-content-wrapper {
    margin-left: 280px;
    width: 100%;
    padding: 38px clamp(20px, 4vw, 60px) 120px;
}

@media (max-width: 1100px) {
    #page-content-wrapper {
        padding: 34px 24px 90px;
    }
}

@media (max-width: 900px) {
    #sidebar-wrapper {
        position: fixed;
        transform: translateX(-105%);
        transition: transform var(--transition-slow);
        width: 260px;
    }

    #sidebar-wrapper.open {
        transform: translateX(0);
    }

    #page-content-wrapper {
        margin-left: 0;
        padding: 86px 20px 100px;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-brand {
    margin: 0 0 1.2rem;
    text-align: center;
}

.sidebar-brand img {
    margin: 0 auto 8px;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.4);
}

.sidebar-nav>li>a {
    display: block;
    padding: 10px 14px 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .4px;
    color: #d9e2ec;
    position: relative;
    line-height: 1.25;
}

.sidebar-nav>li>a:hover {
    background: linear-gradient(90deg, var(--color-primary) -10%, var(--color-accent) 110%);
    color: #fff;
}

.sidebar-nav>li>a.active {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    box-shadow: 0 4px 14px -3px rgba(13, 110, 253, .55);
}

.sidebar-nav li ul {
    list-style: none;
    padding: 4px 0 4px 10px;
    margin: 4px 0 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.sidebar-nav li ul li a {
    font-size: .78rem;
    padding: 7px 10px;
    color: #aab7c4;
    border-radius: 6px;
}

.sidebar-nav li ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-nav li ul li a.active {
    background: var(--color-primary);
    color: #fff;
}

/* Mobile toggle */
.nav-toggle {
    position: fixed;
    top: 14px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
    transition: var(--transition-fast);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Content Container */
.container-fluid {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 46px clamp(18px, 3vw, 48px);
    position: relative;
}

.container-fluid::before {
    display: none;
}

/* Individual section cards */
section.doc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 42px clamp(20px, 2.8vw, 56px);
    margin: 0 0 46px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

section.doc-card:last-of-type {
    margin-bottom: 0;
}

section.doc-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, var(--color-primary) 0%, transparent 70%);
    opacity: .07;
}

section.doc-card h1:first-child,
section.doc-card h2:first-child {
    margin-top: 0;
}

/* Sections */
section {
    scroll-margin-top: 90px;
    position: relative;
}

section:first-of-type h1 {
    margin-top: .2em;
}

section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Callouts */
.callout {
    background: var(--color-primary-soft);
    border: 1px solid var(--color-border);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin: 1.4em 0;
    position: relative;
}

.callout::before {
    content: "Note";
    position: absolute;
    top: -12px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    font-size: .65rem;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* Code Blocks */
pre {
    background: var(--color-code-bg);
    color: #e2ecf3;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-code-border);
    overflow-x: auto;
    font-size: .88rem;
    line-height: 1.5;
    margin: 0 0 1.4em;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 26px -8px rgba(0, 0, 0, 0.55);
}

pre code {
    padding: 0;
    background: transparent;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 9px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.copy-btn:active {
    transform: translateY(1px);
}

.copy-btn.copied {
    background: #16a34a;
    border-color: #16a34a;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: .92rem;
}

th,
td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: left;
}

th {
    background: var(--color-surface-alt);
    font-weight: 600;
}

tr:nth-child(even) td {
    background: var(--color-bg-alt);
}

/* Utilities */
.text-center {
    text-align: center !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.ml-9 {
    margin-left: 9px !important;
}

.shadow-none {
    box-shadow: none !important;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary-accent);
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
}

/* Inline status tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-surface-alt);
    padding: 4px 10px;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: .5px;
    color: var(--color-text-soft);
}

/* Back to top button */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: var(--transition-fast);
    z-index: 1300;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:active {
    transform: scale(.94);
}

/* Footer note (if needed) */
.footer-note {
    margin-top: 4rem;
    font-size: .75rem;
    color: var(--color-text-soft);
    text-align: center;
}

/* Gradients for highlight */
.mark-gradient {
    background: linear-gradient(90deg, var(--color-primary-soft), transparent);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Animations */
.fade-in {
    animation: fadeIn .8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Accessibility skip link */
.skip-link {
    position: fixed;
    top: -60px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 14px;
    z-index: 3000;
    border-radius: 10px;
    font-weight: 600;
    transform: translateY(0);
    transition: top var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    top: 10px;
}

/* Simple grid (replacing Bootstrap col classes used) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

[class^="col-"],
[class*=" col-"] {
    padding: 0 12px;
    flex: 1 0 0%;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Responsive code line wrapping improvement */
pre {
    white-space: pre;
}

@media (max-width: 720px) {
    pre {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* Focus styles override */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* End */
/* =====================
   Screenshot Styling (Added)
   ===================== */
.screenshot {
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f4f7fa);
    padding: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform .35s var(--transition-fast), box-shadow .35s var(--transition-fast);
    max-width: 100%;
}

.screenshot:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px -8px rgba(15, 23, 42, 0.25);
}

.screenshot-figure {
    margin: 28px auto;
    text-align: center;
    max-width: 1040px;
}

.screenshot-figure.tight {
    max-width: 780px;
}

.screenshot-figure figcaption {
    font-size: .70rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    margin-top: 10px;
    color: var(--color-text-soft);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 34px;
    margin: 40px 0;
    align-items: start;
}

.screenshot-grid figure {
    margin: 0;
}

.screenshot-grid .screenshot {
    height: auto;
}

/* Inline small screenshot */
.screenshot-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 4px 6px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Lightbox placeholder (future enhancement) */
.screenshot[data-enlarge] {
    cursor: zoom-in;
}

/* Simple Video Styling */
.screenshot-figure iframe {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.text-danger {
    color: #dc3545 !important;
}