/* qdceasy — stili propri (sopra app.min.css del template). Niente modifiche in assets/. */
.qdc-kpi .card-body { padding: 1rem 1.25rem; }
.qdc-kpi .kpi-value { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.qdc-kpi .kpi-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: .6rem; font-size: 1.35rem; }
.table-nowrap td, .table-nowrap th { white-space: nowrap; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }
.qdc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.qdc-log { background: #1e1e1e; color: #d4d4d4; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; padding: 12px; border-radius: 6px; max-height: 420px; overflow: auto; white-space: pre-wrap; }
.qdc-template-preview { border: 1px solid #dee2e6; border-radius: 6px; min-height: 200px; background: #fff; }
.auth-page { min-height: 100vh; display: flex; align-items: center; background: var(--qdc-cream, #F6F3EC); }
.qdc-wordmark { letter-spacing: -.01em; }
.pe-app-sidebar-logo .qdc-wordmark { font-weight: 700; }
.text-earth { color: var(--qdc-earth, #5B4631) !important; }
.bg-cream { background: var(--qdc-cream, #F6F3EC) !important; }
.badge.bg-lime { background: var(--qdc-lime, #A8D64A) !important; color: #1F3B22; }
.card-header .card-title { color: var(--qdc-green, #1F6B3A); }
.footer { background: var(--qdc-cream, #F6F3EC); }
.auth-card { max-width: 440px; width: 100%; margin: 0 auto; }
.qdc-brand-preview img { max-height: 60px; max-width: 160px; }
.badge-perm { font-weight: 500; }
.modal.slide-in-right .modal-dialog { margin-right: 0; }
.cursor-pointer { cursor: pointer; }

/* ===== Tema qdceasy (palette Germoglio q) — override del template PosManager ===== */
:root { --qdc-green-dark: #175730; --qdc-green-deep: #124425; --qdc-line: #e6e1d6; }
body { background: var(--qdc-cream, #F6F3EC); }
body, .btn, .form-control, .form-select { font-family: "Outfit", "Segoe UI", Roboto, system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6, .card-title, .breadcrumb-title, .qdc-wordmark, .pe-menu-title { font-family: "Outfit", "Segoe UI", Roboto, system-ui, sans-serif; }
/* sidebar — mockup approvato: crema, bordo destro terra, nodi terra/crema con bordo verde */
.pe-app-sidebar { background: var(--qdc-cream) !important; border-right: 3px solid var(--qdc-earth) !important; }
.pe-app-sidebar .pe-app-sidebar-logo { background: var(--qdc-earth) !important; }
.pe-app-sidebar .pe-app-sidebar-logo h3, .pe-app-sidebar .pe-app-sidebar-logo .qdc-wordmark { color: var(--qdc-cream) !important; }
.pe-app-sidebar .pe-menu-title { color: var(--qdc-earth) !important; opacity: .85; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
/* voci semplici */
.pe-app-sidebar .pe-main-menu > .pe-slide > .pe-nav-link { margin: 4px 12px; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.pe-app-sidebar .pe-main-menu > .pe-slide > .pe-nav-link, .pe-app-sidebar .pe-main-menu > .pe-slide > .pe-nav-link i { color: var(--qdc-earth) !important; }
.pe-app-sidebar .pe-main-menu > .pe-slide:not(.pe-has-sub) > .pe-nav-link:hover { background: rgba(91,70,49,.08); }
.pe-app-sidebar .pe-main-menu > .pe-slide:not(.pe-has-sub) > .pe-nav-link.active { background: #fff !important; box-shadow: inset 3px 0 0 var(--qdc-lime); font-weight: 600; }
.pe-app-sidebar .pe-main-menu > .pe-slide:not(.pe-has-sub) > .pe-nav-link.active, .pe-app-sidebar .pe-main-menu > .pe-slide:not(.pe-has-sub) > .pe-nav-link.active i { color: var(--qdc-green) !important; }
/* nodi con sottomenu */
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link { background: var(--qdc-earth) !important; border: 1.5px solid var(--qdc-green); font-weight: 600; }
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link, .pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link .pe-nav-content { color: var(--qdc-cream) !important; }
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link i { color: var(--qdc-lime) !important; }
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link:hover { background: #4a3827 !important; }
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-nav-link[aria-expanded="true"], .pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub.active > .pe-nav-link { border-radius: 10px 10px 0 0; }
/* sottomenu agganciato al nodo */
.pe-app-sidebar .pe-main-menu > .pe-slide.pe-has-sub > .pe-slide-menu { background: #fff !important; margin: -4px 12px 6px; border: 1.5px solid var(--qdc-green); border-top: 0; border-radius: 0 0 10px 10px; padding: 6px 0; }
.pe-app-sidebar .pe-slide-item .pe-nav-link { color: var(--qdc-earth) !important; padding: 8px 18px 8px 42px !important; font-size: 15px; position: relative; background: transparent !important; }
.pe-app-sidebar .pe-slide-item .pe-nav-link::before { content: ""; position: absolute; left: 24px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--qdc-line) !important; transform: translateY(-50%); border: 0 !important; }
.pe-app-sidebar .pe-slide-item .pe-nav-link:hover { background: rgba(91,70,49,.06) !important; }
.pe-app-sidebar .pe-slide-item .pe-nav-link.active { color: var(--qdc-green) !important; font-weight: 600; background: #f0f4ee !important; }
.pe-app-sidebar .pe-slide-item .pe-nav-link.active::before { background: var(--qdc-lime) !important; width: 8px; height: 8px; left: 23px; }
/* sottomenu di secondo livello */
.pe-app-sidebar .pe-slide-item.pe-has-sub > .pe-slide-menu { background: #faf9f5 !important; border: 0; margin: 0; border-radius: 0; }
.pe-app-sidebar .pe-slide-item.pe-has-sub > .pe-slide-menu .pe-nav-link { padding-left: 58px !important; }
.pe-app-sidebar .pe-nav-arrow { color: inherit !important; }
.sidebar-backdrop { background: rgba(91,70,49,.45); }
/* header e pagina */
.app-header { background: #fff !important; border-bottom: 1px solid var(--qdc-line); }
.app-header .logo-main h3 { color: var(--qdc-green) !important; }
.breadcrumb-title { color: var(--qdc-green); font-weight: 600; }
.breadcrumb-item.active, .breadcrumb-item a { color: var(--qdc-earth) !important; }
.card { border: 1px solid var(--qdc-line); box-shadow: 0 1px 2px rgba(91,70,49,.05); }
.card-header { background: #fff; border-bottom: 1px solid var(--qdc-line); }
.table thead th { background: #f0f4ee; color: var(--qdc-green); border-color: var(--qdc-line); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #faf9f5; }
.form-label { color: var(--qdc-earth); font-weight: 500; }
.text-muted { color: #7a6a58 !important; }
.badge.bg-success { background: var(--qdc-lime-text) !important; }
.btn-success { --bs-btn-bg: var(--qdc-lime-text); --bs-btn-border-color: var(--qdc-lime-text); --bs-btn-hover-bg: #4f8a26; --bs-btn-hover-border-color: #4f8a26; }
.btn-secondary { --bs-btn-bg: var(--qdc-earth); --bs-btn-border-color: var(--qdc-earth); --bs-btn-hover-bg: #4a3827; --bs-btn-hover-border-color: #4a3827; }
.alert-info { background: #eef5e9; border-color: #cfe3bf; color: #2d5a1a; }
.footer { background: transparent; color: var(--qdc-earth); border-top: 1px solid var(--qdc-line); }
.progress-wrap .progress { stroke: var(--qdc-lime); }
.kpi-icon.bg-primary-subtle { background: rgba(31,107,58,.12) !important; }
.dropdown-item.active, .dropdown-item:active { background-color: var(--qdc-green); }
