/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/

/* 
    Created on : Apr 15, 2018, 1:49:23 PM
    Author     : komaaros
*/

.input_error {
    border: 1px solid red;
}

th, td {
    vertical-align: middle !important;
    text-align: center;
}

.select2-container--open {
    z-index: 9999999
}

.custom_select.select2-container .select2-results {
    max-height: 600px;
}

.custom_mbt {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Komercio application shell. */
:root {
    --sidebar-surface: #f5faff;
    --sidebar-surface-end: #edf5ff;
    --nav-blue: #3478c6;
    --nav-sidebar: #2d4d68;
    --nav-deep: #25435d;
    --nav-header-start: #345770;
    --nav-header-end: #416981;
    --nav-text: #e2ecf3;
    --nav-accent: #b7d7ea;
    --app-ink: #273e50;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #4b5d75; }
html, body, .content-body { background: #f5f7f8; }
.header.komercio-header {
    background: linear-gradient(110deg, var(--nav-header-start), var(--nav-header-end));
    border: 0;
    box-shadow: 0 2px 14px rgba(22, 58, 118, .12);
}
.komercio-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    height: 42px;
    padding: 0 9px;
    margin: 9px 0 0 22px;
    border-radius: 10px;
    background: #fff;
}
.komercio-header .logo img { width: 147px; height: auto; }
.header .komercio-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 60px;
    padding-right: 24px;
}
.komercio-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.komercio-quick-action:hover, .komercio-quick-action:focus {
    color: #fff; background: rgba(255,255,255,.2); text-decoration: none;
}
.komercio-account-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 0; border: 0; background: transparent; color: #fff; text-align: left;
}
.komercio-avatar {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.35); border-radius: 12px;
    background: #edf3f6; color: #365d7a; font-weight: 700; font-size: 15px;
}
.komercio-account-info { display: flex; flex-direction: column; line-height: 1.5; }
.komercio-account-info strong { font-size: 12px; font-weight: 600; }
.komercio-account-info small { font-size: 10px; color: #dce8ef; }
.komercio-account .dropdown-menu {
    min-width: 195px; margin-top: 15px; padding: 8px;
    border: 1px solid #e3e9ed; border-radius: 12px;
    box-shadow: 0 12px 35px rgba(24,49,83,.15);
}
.komercio-account-label { padding: 8px 10px; color: #72838f; font-size: 11px; }
.komercio-account .dropdown-menu button {
    width: 100%; padding: 10px; border: 0; border-radius: 7px;
    background: transparent; text-align: left; color: #273e50;
}
.komercio-account .dropdown-menu button:hover { background: #edf3f6; }
.komercio-account .dropdown-menu i { margin-right: 8px; }

html #sidebar-left {
    background: linear-gradient(160deg, var(--sidebar-surface), var(--sidebar-surface-end));
    border-right: 1px solid #dce8f5;
    box-shadow: 3px 0 18px rgba(24,43,62,.05);
}
html #sidebar-left .nano, html #sidebar-left .nano-content { background: transparent; box-shadow: none; }
#sidebar-left .sidebar-header { height: 64px; }
#sidebar-left .sidebar-header .sidebar-title { padding: 13px 24px; background: transparent; line-height: 1.5; }
#sidebar-left .sidebar-title > span { display: block; color: #647d94; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
#sidebar-left .sidebar-title > strong { display: block; color: #294863; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
#sidebar-left .sidebar-header .sidebar-toggle {
    top: 17px; right: 18px; width: 30px; height: 30px; padding: 0;
    border: 1px solid #d8e6f3; border-radius: 9px;
    background: #fff;
}
#sidebar-left .sidebar-header .sidebar-toggle i { color: #425d78; line-height: 28px; font-size: 13px; }
#sidebar-left .sidebar-toggle:hover { background: #e2effc; }
#sidebar-left ul.komercio-menu { margin: 0; padding: 4px 14px 12px; }
#sidebar-left .komercio-nav-label {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 10px 9px; color: #647d94;
    font-size: 9px; font-weight: 600; letter-spacing: 1.3px;
}
#sidebar-left .komercio-nav-label::after { content: ''; flex: 1; height: 1px; background: #d7e5f2; }
#sidebar-left .komercio-nav-label:first-child { margin-top: 5px; }
#sidebar-left ul.nav-main > li > a {
    display: flex; align-items: center; position: relative; gap: 10px;
    min-height: 44px; padding: 7px 10px; margin: 4px 0;
    border: 1px solid transparent; border-radius: 10px;
    color: #425d78; font-size: 12px; font-weight: 500; line-height: 1.4;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#sidebar-left ul.nav-main li i {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 28px; width: 28px; height: 28px; margin: 0;
    border-radius: 8px; background: #e1edfb; color: #3978b5; font-size: 14px;
}
#sidebar-left ul.nav-main .komercio-group-2 i { background: #def3eb; color: #217b65; }
#sidebar-left ul.nav-main .komercio-group-3 i { background: #ebe5fa; color: #7655a3; }
#sidebar-left ul.nav-main .komercio-group-4 i { background: #dcf1f5; color: #287b8b; }
#sidebar-left ul.nav-main .komercio-group-5 i { background: #fff0d6; color: #93671b; }
#sidebar-left ul.nav-main .komercio-group-6 i { background: #e6eaf3; color: #626c89; }
#sidebar-left .komercio-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#sidebar-left ul.nav-main > li > a:hover, #sidebar-left ul.nav-main > li > a:focus {
    color: #264f75; background: #e3effc; border-color: #d5e5f6;
}
#sidebar-left ul.nav-main > li.nav-active > a {
    color: #fff; background: var(--nav-blue); border-color: var(--nav-blue);
    box-shadow: 0 4px 12px rgba(52,120,198,.2); font-weight: 600;
}
#sidebar-left ul.nav-main > li.nav-active > a::before {
    content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px;
    border-radius: 0 3px 3px 0; background: #b8e2f5;
}
#sidebar-left ul.nav-main > li.nav-active > a i { color: #fff; background: rgba(255,255,255,.13); }
#sidebar-left .komercio-active-dot { flex: 0 0 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #b8e2f5; }
#sidebar-left .komercio-sidebar-footer {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 14px 24px; padding: 12px;
    border: 1px solid #dce8f5; border-radius: 12px;
    background: #fff; color: #294863;
}
.komercio-sidebar-avatar {
    display: grid; place-items: center; flex: 0 0 32px; height: 32px;
    border-radius: 10px; background: #e1efff; color: var(--nav-blue); font-size: 13px; font-weight: 700;
}
.komercio-sidebar-identity { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.5; }
.komercio-sidebar-identity strong { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.komercio-sidebar-identity span { font-size: 10px; color: #647d94; }
.komercio-sidebar-footer > i { color: #647d94; font-size: 12px; }
#sidebar-left .nano > .nano-pane { width: 4px; right: 3px; background: transparent; border-radius: 6px; }
#sidebar-left .nano > .nano-pane > .nano-slider { margin: 0; border-radius: 6px; background: #b0c7df; }
#sidebar-left .nano > .nano-pane:hover > .nano-slider { background: #b7cedd; }
#sidebar-left .nano-content { scrollbar-width: thin; scrollbar-color: #b0c7df transparent; }
#sidebar-left .nano-content::-webkit-scrollbar { width: 4px; }
#sidebar-left .nano-content::-webkit-scrollbar-track { background: transparent; }
#sidebar-left .nano-content::-webkit-scrollbar-thumb { background: #b0c7df; border-radius: 6px; }
#sidebar-left a:focus-visible, .komercio-header a:focus-visible, .komercio-header button:focus-visible, #sidebar-left button:focus-visible {
    outline: 2px solid var(--nav-blue); outline-offset: 2px;
}

/* A quieter workspace keeps the blue navigation prominent. */
.page-header { background: #fff; border: 0; border-bottom: 1px solid #e2e8ec; box-shadow: none; }
.page-header h2 { color: var(--app-ink); border: 0; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.page-header .breadcrumbs a, .page-header .breadcrumbs span, .page-header .breadcrumbs li:after { color: #6b7e8c; font-size: 11px; }
.page-header .sidebar-right-toggle { background: transparent; color: #8397a5; }
.page-header .sidebar-right-toggle:hover { color: #416e91; }
.content-body .panel { border-radius: 12px; box-shadow: 0 3px 18px rgba(35,62,100,.05); }
.content-body .panel-heading { background: #fff; border-color: #e5ebef; border-radius: 12px 12px 0 0; padding: 18px 20px; }
.content-body .panel-title { color: var(--app-ink); font-size: 15px; font-weight: 600; }
.content-body .panel-body { border-radius: 0 0 12px 12px; }
.content-body .panel-featured-primary { border-color: #416e91; }
.content-body .btn { border-radius: 7px; }
.content-body .btn-primary { background: #416e91; border-color: #416e91; color: #fff; }
.content-body .btn-primary:hover, .content-body .btn-primary:focus { background: #355c7b; border-color: #355c7b; }
.content-body .form-control { border-color: #dce5eb; border-radius: 7px; box-shadow: none; }
.content-body .form-control:focus { border-color: #87aabe; box-shadow: 0 0 0 3px rgba(65,110,145,.12); }

@media only screen and (min-width: 768px) {
    html.fixed .sidebar-left { width: 260px; padding-bottom: 64px; }
    html.fixed .content-body { margin-left: 260px; }
    html.fixed .page-header { left: 260px; }
    html.fixed.sidebar-left-collapsed .sidebar-left { width: 73px; }
    html.fixed.sidebar-left-collapsed .content-body { margin-left: 73px; }
    html.fixed.sidebar-left-collapsed .page-header { left: 73px; }
    html.sidebar-left-collapsed #sidebar-left .komercio-nav-label,
    html.sidebar-left-collapsed #sidebar-left .komercio-sidebar-footer { display: none; }
    html.sidebar-left-collapsed #sidebar-left ul.komercio-menu { padding: 0 9px 16px; }
    html.sidebar-left-collapsed #sidebar-left ul.nav-main > li > a { padding: 7px 12px; }
    html.sidebar-left-collapsed #sidebar-left .nano:hover .komercio-nav-label,
    html.sidebar-left-collapsed #sidebar-left .nano:hover .komercio-sidebar-footer { display: flex; }
    html.sidebar-left-collapsed.sidebar-left-opened #sidebar-left .nano,
    html.sidebar-left-collapsed #sidebar-left .nano:hover,
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within {
        width: 260px; background: linear-gradient(160deg, var(--sidebar-surface), var(--sidebar-surface-end));
        box-shadow: 8px 10px 25px rgba(16,48,99,.18);
    }
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within .komercio-nav-label,
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within .komercio-sidebar-footer { display: flex; }
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within .nav-main a span { visibility: visible; }
    html.sidebar-left-collapsed #sidebar-left .sidebar-toggle i { transform: rotate(180deg); }
}
@media only screen and (max-width: 767px) {
    .header.komercio-header { background: var(--nav-blue); box-shadow: none; }
    .komercio-header .logo-container { background: var(--nav-header-start); border: 0; }
    .komercio-header .logo-container .logo { display: flex; line-height: normal; margin: 9px 0 0 15px; }
    .komercio-header .toggle-sidebar-left { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; }
    .header .komercio-header-actions { background: var(--nav-header-start); padding: 0 15px; justify-content: space-between; gap: 12px; }
    .komercio-account-info { max-width: 95px; }
    .komercio-account-info strong { overflow: hidden; text-overflow: ellipsis; }
    .komercio-quick-action { font-size: 11px; padding: 8px 10px; }
    .page-header h2 { font-size: 16px; }
    .page-header .breadcrumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #sidebar-left ul.nav-main > li > a { transition: none; }
}

.settings-theme-options { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.settings-theme-option { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.settings-theme-option > span { width: 22px; height: 22px; border-radius: 6px; }

/* Shared workspace, forms and searchable choices. */
html, body, .content-body { background: #f3f6fa; }
.content-body { padding: 30px; }
.header.komercio-header { background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: none; }
.komercio-account-toggle { color: var(--app-ink); }
.komercio-account-info small { color: #66788a; }
.komercio-quick-action { background: var(--nav-blue); border-color: var(--nav-blue); color: #fff; }
.komercio-quick-action:hover, .komercio-quick-action:focus { background: var(--nav-sidebar); }
.content-body .panel { border: 1px solid #e1e7ef; border-radius: 14px; box-shadow: 0 4px 20px rgba(30,50,75,.035); }
.content-body .panel-heading { padding: 20px 24px; border-radius: 14px 14px 0 0; }
.content-body .panel-body { padding: 24px; border-radius: 0 0 14px 14px; }
.content-body .panel-footer { background: #fafbfd; border-color: #e1e7ef; border-radius: 0 0 14px 14px; }
.content-body .btn { padding: 9px 15px; font-weight: 600; border-radius: 8px; }
.content-body .btn-xs { padding: 3px 8px; }
.content-body .btn-sm { padding: 6px 10px; }
.content-body .btn-primary { background: var(--nav-blue); border-color: var(--nav-blue); }
.content-body .btn-primary:hover, .content-body .btn-primary:focus { background: var(--nav-sidebar); border-color: var(--nav-sidebar); }
.content-body .form-control, .modal-block .form-control { min-height: 40px; border-radius: 8px; }
.content-body label, .modal-block label { color: #43566a; font-weight: 600; }
.content-body .table > thead > tr > th { background: #f7f9fc; border-bottom: 1px solid #dfe6ef; color: #617286; font-size: 11px; font-weight: 600; padding: 13px 12px; }
.content-body .table > tbody > tr > td { padding: 13px 12px; border-color: #edf1f5; }
.content-body .table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcfe; }
.content-body .table-hover > tbody > tr:hover { background: #f0f5fa; }
.content-body .table .text-right { text-align: right; }
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--single { height: 40px; border: 1px solid #dce5eb; border-radius: 8px; background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; padding-left: 12px; padding-right: 30px; color: #43566a; text-align: left; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; right: 7px; }
.select2-container--default .select2-selection--multiple { min-height: 40px; border: 1px solid #dce5eb; border-radius: 8px; }
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection { border-color: var(--nav-blue); box-shadow: 0 0 0 3px rgba(65,110,145,.12); }
.select2-dropdown { border: 1px solid #dce5eb; border-radius: 8px; box-shadow: 0 10px 28px rgba(25,45,70,.14); overflow: hidden; }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #dce5eb; border-radius: 6px; padding: 8px; outline-color: var(--nav-blue); }
.select2-results__option { padding: 9px 12px; text-align: left; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--nav-blue); }
.select2-container--default.select2-container--disabled .select2-selection { background: #eef1f5; }
.workspace-eyebrow { color: var(--nav-blue); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dashboard-intro h1 { margin: 7px 0; font-size: 28px; font-weight: 650; letter-spacing: -.8px; color: var(--app-ink); }
.dashboard-intro p { margin: 0; color: #718094; }
.dashboard-period { flex-shrink: 0; padding: 9px 14px; border: 1px solid #dfe6ef; border-radius: 20px; background: #fff; color: #617286; }
.dashboard-period i { margin-right: 7px; }
.dashboard-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(100px, .8fr)) repeat(2, minmax(140px, 1.3fr)) minmax(130px, 1fr) auto; align-items: end; gap: 16px; }
.dashboard-filter-grid > div { min-width: 0; }
.dashboard-filter-grid label { font-size: 12px; margin-bottom: 7px; }
.dashboard-filter-grid .btn { height: 40px; }
.sales-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sales-heading p { margin: 8px 0 0; font-size: 12px; }
.sales-total { font-size: 30px; font-weight: 650; letter-spacing: -.8px; color: var(--app-ink); }
.sales-total small { font-size: 12px; font-weight: 500; color: #718094; letter-spacing: 0; }
.top-product-color { border-radius: 50%; }
@media (max-width: 1200px) { .dashboard-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .content-body { padding: 18px 12px; }
    .content-body .panel-heading, .content-body .panel-body { padding: 18px; }
    .komercio-header .logo-container, .header .komercio-header-actions { background: #fff; }
    .komercio-header .toggle-sidebar-left { background: var(--nav-blue); }
    .dashboard-intro { align-items: flex-start; }
    .dashboard-intro h1 { font-size: 22px; }
    .dashboard-period { font-size: 11px; padding: 6px 9px; }
    .dashboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sales-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .sales-total { font-size: 27px; }
}
@media (max-width: 380px) { .dashboard-intro { flex-direction: column; } .dashboard-filter-grid { grid-template-columns: minmax(0, 1fr); } }

/* Personal color preference, shared by the navigation and primary controls. */
html[data-color-theme] {
    --theme-canvas: #f3f6fa;
    --theme-border: #dce8f5;
    --theme-text: #425d78;
    --theme-muted: #647d94;
    --theme-hover: #e3effc;
    --theme-accent-soft: #b8e2f5;
    --theme-avatar: #e1efff;
}
html[data-color-theme="blue"] {
    --nav-blue: #3478c6;
    --nav-sidebar: #2d4d68;
}
html[data-color-theme="orange"] {
    --nav-blue: #b75a24;
    --nav-sidebar: #91431b;
    --sidebar-surface: #fff8ef;
    --sidebar-surface-end: #ffedda;
    --app-ink: #523c2c;
    --theme-canvas: #fcf7f1;
    --theme-border: #efd9c2;
    --theme-text: #765335;
    --theme-muted: #896b54;
    --theme-hover: #ffe4c8;
    --theme-accent-soft: #ffdab3;
    --theme-avatar: #ffead5;
}
html[data-color-theme="green"] {
    --nav-blue: #287a55;
    --nav-sidebar: #205f44;
    --sidebar-surface: #f2fbf5;
    --sidebar-surface-end: #e3f4e8;
    --app-ink: #2c4b3b;
    --theme-canvas: #f3f8f4;
    --theme-border: #cce5d5;
    --theme-text: #3e6650;
    --theme-muted: #597b66;
    --theme-hover: #d8efdf;
    --theme-accent-soft: #b8e8c9;
    --theme-avatar: #def2e5;
}
html[data-color-theme="lavender"] {
    --nav-blue: #7959ad;
    --nav-sidebar: #5f438b;
    --sidebar-surface: #faf7ff;
    --sidebar-surface-end: #eee6fb;
    --app-ink: #49365e;
    --theme-canvas: #f8f5fc;
    --theme-border: #e0d3ef;
    --theme-text: #65507b;
    --theme-muted: #7b6891;
    --theme-hover: #e6d9f7;
    --theme-accent-soft: #decbfb;
    --theme-avatar: #ece1fb;
}
#sidebar-left .komercio-theme-toggle {
    display: flex; align-items: center; gap: 10px;
    width: calc(100% - 28px); min-height: 38px; margin: 4px 14px 16px; padding: 9px 12px;
    border: 1px solid #d8e6f3; border-radius: 10px;
    background: #fff; color: #425d78; font: inherit; font-size: 12px; text-align: left;
}
#sidebar-left .komercio-theme-toggle:hover { border-color: var(--nav-blue); color: var(--nav-blue); }
.komercio-theme-toggle > i { flex: 0 0 16px; text-align: center; }
.komercio-theme-label { white-space: nowrap; }
.komercio-theme-swatches { display: flex; gap: 4px; margin-left: auto; }
.komercio-theme-swatches > span { width: 10px; height: 10px; border-radius: 50%; background: #3478c6; }
.komercio-theme-swatches > span:nth-child(2) { background: #e8a064; }
.komercio-theme-swatches > span:nth-child(3) { background: #64ac83; }
.komercio-theme-swatches > span:nth-child(4) { background: #ab8dcc; }
html[data-color-theme], html[data-color-theme] body,
html[data-color-theme] .content-body { background: var(--theme-canvas); }
html[data-color-theme] #sidebar-left { border-color: var(--theme-border); }
html[data-color-theme] #sidebar-left .sidebar-title > strong { color: var(--app-ink); }
html[data-color-theme] #sidebar-left .sidebar-title > span,
html[data-color-theme] #sidebar-left .komercio-nav-label,
html[data-color-theme] .komercio-sidebar-identity span,
html[data-color-theme] .komercio-sidebar-footer > i { color: var(--theme-muted); }
html[data-color-theme] #sidebar-left .komercio-nav-label::after { background: var(--theme-border); }
html[data-color-theme] #sidebar-left .sidebar-toggle,
html[data-color-theme] #sidebar-left .komercio-sidebar-footer,
html[data-color-theme] #sidebar-left .komercio-theme-toggle { border-color: var(--theme-border); color: var(--theme-text); }
html[data-color-theme] #sidebar-left .sidebar-toggle i { color: var(--theme-muted); }
html[data-color-theme] #sidebar-left ul.nav-main > li > a { color: var(--theme-text); }
html[data-color-theme] #sidebar-left ul.nav-main > li > a:hover,
html[data-color-theme] #sidebar-left ul.nav-main > li > a:focus,
html[data-color-theme] #sidebar-left .sidebar-toggle:hover { background: var(--theme-hover); border-color: var(--theme-border); }
html[data-color-theme] #sidebar-left ul.nav-main > li.nav-active > a {
    background: var(--nav-blue); border-color: var(--nav-blue); color: #fff;
    box-shadow: 0 4px 12px rgba(40,45,60,.12);
}
html[data-color-theme] #sidebar-left ul.nav-main > li.nav-active > a::before,
html[data-color-theme] #sidebar-left .komercio-active-dot { background: var(--theme-accent-soft); }
html[data-color-theme] .komercio-sidebar-avatar { background: var(--theme-avatar); }
@media (min-width: 768px) {
    html.sidebar-left-collapsed #sidebar-left .komercio-theme-toggle { width: calc(100% - 18px); margin-left: 9px; margin-right: 9px; justify-content: center; }
    html.sidebar-left-collapsed #sidebar-left .komercio-theme-label,
    html.sidebar-left-collapsed #sidebar-left .komercio-theme-swatches { display: none; }
    html.sidebar-left-collapsed #sidebar-left .nano:hover .komercio-theme-label,
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within .komercio-theme-label { display: inline; }
    html.sidebar-left-collapsed #sidebar-left .nano:hover .komercio-theme-swatches,
    html.sidebar-left-collapsed #sidebar-left .nano:focus-within .komercio-theme-swatches { display: flex; }
}

.access-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.access-page-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 15px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; }
.access-page-option:has(input:checked) { border-color: var(--nav-blue); background: #f8fafc; }
.access-page-option input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--nav-blue); }
.access-page-option > span { flex: 1; }
.access-page-option small { display: block; color: #66788a; font-size: 11px; font-weight: 400; margin-top: 4px; }
.access-page-required { cursor: default; }
.access-page-required > i { color: #66788a; }
.access-section-title { font-size: 16px; font-weight: 600; margin: 26px 0 10px; }
@media (max-width: 1100px) { .access-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .access-page-grid { grid-template-columns: minmax(0, 1fr); } }

/* Order editor */
.order-builder { max-width: 1440px; margin: 0 auto; }
.order-builder-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 8px 0 26px; }
.order-builder-heading h1 { font-size: 28px; font-weight: 700; color: var(--app-ink, #26384b); margin: 8px 0; }
.order-builder-heading p { color: #6b7c8d; margin: 0; overflow-wrap: anywhere; }
.order-builder .panel { border-radius: 16px; overflow: hidden; border: 1px solid var(--theme-border, #e0e8ef); }
.order-builder .panel-heading { display: flex; align-items: center; gap: 14px; padding: 22px; background: #fff; }
.order-builder .panel-heading p { margin: 6px 0 0; color: #6b7c8d; font-size: 13px; }
.order-step { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; color: var(--nav-blue, #3478c6); background: var(--theme-hover, #edf4fb); font-weight: 700; }
.order-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.order-builder label { color: #425469; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.order-builder .form-control { border-radius: 8px; }
.order-details-grid small { display: block; margin-top: 8px; }
.order-payment-options { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.order-payment-options legend { font-size: 13px; font-weight: 600; border: 0; margin-bottom: 10px; }
.order-payment-options label { padding: 12px 16px; border: 1px solid #dde5ed; border-radius: 10px; margin: 0; cursor: pointer; }
.order-payment-options label:has(input:checked) { border-color: var(--nav-blue); background: var(--theme-hover, #edf4fb); color: var(--nav-blue); }
.order-payment-options input { margin-right: 7px; accent-color: var(--nav-blue); }
.order-search { margin-left: auto; position: relative; width: 270px; flex-shrink: 0; }
.order-search > i { position: absolute; left: 13px; top: 12px; color: #8190a0; }
.order-search input { padding-left: 35px; }
.order-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.order-product-card { padding: 18px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fff; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.order-product-card.is-selected { border-color: var(--nav-blue); box-shadow: 0 0 0 1px var(--nav-blue); }
.order-product-title { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 18px; }
.order-product-title h3 { flex: 1; margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.order-product-icon { color: var(--nav-blue); background: var(--theme-hover, #edf4fb); border-radius: 9px; padding: 9px; }
.order-added-badge { display: none; font-size: 10px; color: var(--nav-blue); font-weight: 700; }
.is-selected .order-added-badge { display: inline; }
.order-product-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-product-inputs > div { min-width: 0; }
.order-product-inputs .spinbox { width: 100%; }
.order-product-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #edf0f5; padding-top: 16px; margin-top: 18px; }
.order-product-footer > div > small, .order-checkout small { display: block; color: #6b7c8d; font-size: 11px; margin-bottom: 4px; }
.order-product-footer strong { color: #26384b; font-size: 16px; }
.order-product-footer strong small { font-size: 10px; font-weight: 400; }
.order-product-actions { display: flex; gap: 5px; }
.order-product-actions .btn { padding: 7px 10px; border-radius: 8px; }
.order-empty { text-align: center; padding: 28px 12px; color: #6b7c8d; background: #f7f9fc; border-radius: 10px; }
.order-review .invoice-items th { color: #687b8c; font-size: 12px; background: #f7f9fc; border-bottom: 0; padding: 14px; }
.order-review .invoice-items td { padding: 14px; vertical-align: middle; }
.order-checkout { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; background: var(--theme-hover, #edf4fb); border-top: 1px solid var(--theme-border, #e0e8ef); }
.order-checkout strong { font-size: 27px; color: var(--app-ink, #26384b); }
.order-checkout .btn { padding: 12px 18px; border-radius: 10px; margin-left: 8px; }
.order-product-card[hidden], .order-builder [hidden] { display: none !important; }
@media (max-width: 1200px) { .order-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .order-builder-heading { align-items: flex-start; flex-direction: column; }
    .order-details-grid, .order-product-grid { grid-template-columns: minmax(0, 1fr); }
    .order-builder .panel-heading { flex-wrap: wrap; padding: 18px; }
    .order-search { width: 100%; margin-top: 8px; }
    .order-checkout { align-items: stretch; flex-direction: column; }
    .order-checkout > div:last-child { display: flex; gap: 8px; }
    .order-checkout .btn { margin: 0; }
    .order-checkout .save { flex: 1; }
}

.dashboard-period-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-period-form { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--theme-border, #e0e8ef); }

.payment-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.payment-inline-form { display: inline-block; }
