@font-face {
    font-family: Workspace;
    src: local('Inter'), local('Arial');
}
:root {
    --accent: #395ce9;
    --ink: #243044;
    --muted: #7b8596;
    --line: #e5e9f0;
    --bg: #f6f8fb;
}
* {
    box-sizing: border-box;
}
body {
    font-family:
        Workspace,
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color: var(--ink);
    font-size: 13px;
    background: var(--bg);
    margin: 0;
}
a {
    color: var(--accent);
}
h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 650;
    letter-spacing: -0.035em;
}
h1 {
    font-size: 30px;
}
h2 {
    font-size: 22px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.7;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 30;
    overflow: auto;
}
.brand {
    display: block;
    color: var(--ink);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.5px;
    line-height: 20px;
    margin: 0 0 30px;
}
.brand img {
    width: 35px;
    height: 35px;
    float: left;
    margin-right: 9px;
}
.brand span {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--muted);
}
.nav-caption,
.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.7px;
    color: var(--muted);
}
.nav-caption {
    margin: 4px 12px 13px;
}
.nav-link {
    color: #677285;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    margin-bottom: 3px;
    font-weight: 550;
}
.nav-link span {
    font-size: 17px;
    width: 18px;
    text-align: center;
    line-height: 1;
}
.nav-link:hover {
    background: #f5f7fb;
    color: var(--ink);
}
.nav-link.active {
    background: #edf1ff;
    color: var(--accent);
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
}
.workspace-person {
    border-top: 1px solid var(--line);
    padding: 18px 8px;
}
.workspace-person b,
.workspace-person small {
    display: block;
}
.workspace-person small {
    color: var(--muted);
    margin-top: 3px;
}
.workspace {
    margin-left: 230px;
    min-height: 100vh;
}
.workspace-header {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0 34px;
}
.header-title {
    font-size: 17px;
    font-weight: 650;
    margin-top: 4px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.header-link {
    color: #667186;
}
.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e9eefb;
    color: var(--accent);
    font-weight: 700;
}
.page-content {
    padding: 46px 34px 45px;
    max-width: 1600px;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.page-heading p {
    color: var(--muted);
    margin: 5px 0 0;
}
.page-heading h1 {
    margin: 0;
}
.card {
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 2px 3px #24304403;
    background: #fff;
    margin-bottom: 20px;
}
.card-body {
    padding: 24px;
}
.card-header {
    padding: 17px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: 9px 9px 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-header h3 {
    margin: 0;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat {
    padding: 23px;
}
.stat-label {
    color: #778296;
    font-size: 12px;
}
.stat-number {
    display: block;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -1px;
    margin: 10px 0;
}
.stat small {
    color: var(--muted);
}
.stat .stat-mark {
    float: right;
    width: 30px;
    height: 30px;
    background: #edf1ff;
    color: var(--accent);
    border-radius: 7px;
    display: grid;
    place-items: center;
}
.btn {
    font-size: 12px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 6px;
    box-shadow: none !important;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #2e4ed0;
    border-color: #2e4ed0;
}
.btn-light,
.btn-outline-primary {
    background: #fff;
    border: 1px solid #dce2ec;
    color: #536078;
}
.btn-light:hover {
    background: #f5f7fb;
}
.btn-danger {
    background: #fff3f2;
    border: 1px solid #f1d5d2;
    color: #bf433c;
}
.btn-sm {
    padding: 5px 9px;
    font-size: 11px;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.toolbar input {
    max-width: 260px;
}
.toolbar .push {
    margin-left: auto;
}
.form-control {
    border: 1px solid #dce2ec;
    border-radius: 6px;
    color: var(--ink);
    height: 38px;
    font-size: 12px;
    padding: 8px 11px;
    background: #fff;
}
.form-control:focus {
    border-color: #8299f3;
    box-shadow: 0 0 0 3px #395ce912;
}
.form-group {
    margin-bottom: 0;
}
label {
    font-size: 11px;
    font-weight: 600;
    color: #606c7e;
    display: block;
    margin-bottom: 7px;
}
textarea.form-control {
    height: auto;
}
input[type='checkbox'] {
    accent-color: var(--accent);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.table {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}
.table th {
    background: #fafbfd;
    border-top: 0 !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7c8798;
    font-weight: 600;
    white-space: nowrap;
}
.table td,
.table th {
    padding: 15px 20px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle !important;
}
.table tbody tr:hover {
    background: #fafbff;
}
.table-responsive {
    overflow-x: auto;
}
.table td strong {
    font-weight: 600;
}
.table .sub {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    color: var(--muted);
    font-size: 11px;
}
.badge {
    padding: 5px 7px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 550;
    background: #edf1ff;
    color: #4561c3;
}
.badge-paid,
.badge-active,
.badge-shipped,
.badge-completed,
.badge-received {
    background: #e9f6ef;
    color: #337b55;
}
.badge-canceled,
.badge-refunded,
.badge-inactive {
    background: #f9eae9;
    color: #a35751;
}
.badge-pending,
.badge-partial,
.badge-unpaid {
    background: #fff4dd;
    color: #977129;
}
.tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    margin: 0 0 22px;
}
.tabs a {
    padding: 0 4px 13px;
    color: var(--muted);
    font-weight: 600;
}
.tabs a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.muted {
    color: var(--muted);
}
.empty {
    padding: 55px 20px;
    text-align: center;
}
.empty h3 {
    margin: 12px 0 8px;
}
.empty p {
    color: var(--muted);
}
.modal-content {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 70px #18223c26;
}
.modal-header,
.modal-footer {
    border-color: var(--line);
    padding: 18px 24px;
}
.modal-body {
    padding: 24px;
}
.modal-title {
    font-size: 18px;
}
.modal-lg {
    max-width: 900px;
}
.alert {
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #dfebef;
}
.alert-success {
    color: #337b55;
    background: #edf7f1;
}
.alert-danger {
    color: #a34a41;
    background: #fff0ee;
}
.alert-info {
    background: #edf2ff;
    color: #4561c3;
}
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}
.summary dt {
    font-weight: 500;
    color: var(--muted);
}
.summary dd {
    text-align: right;
    margin: 0;
    font-weight: 600;
}
.summary .total {
    font-size: 19px;
    color: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.invoice {
    max-width: 1000px;
    margin: auto;
}
.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}
.invoice-logo {
    width: 40px;
    float: left;
    margin-right: 12px;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.settings-tile {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 25px;
    color: var(--ink);
}
.settings-tile:hover {
    border-color: #adbdf4;
}
.settings-tile p {
    color: var(--muted);
    margin: 8px 0 16px;
}
.workspace-footer {
    padding: 0 34px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #98a1af;
}
.auth-page {
    display: flex;
    min-height: 100vh;
    background: #fff;
}
.auth-story {
    width: 50%;
    background: #eff3fa;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-story h1 {
    font-size: 48px;
    line-height: 1.16;
    margin: 20px 0;
}
.auth-story p {
    color: #7b8596;
    font-size: 15px;
}
.auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-form > div {
    width: 360px;
}
.auth-form h2 {
    margin: 15px 0;
}
.auth-form label {
    margin-top: 20px;
}
.auth-form button {
    margin: 24px 0 20px;
}
.auth-form a {
    font-size: 12px;
}
.auth-story small {
    color: #8a95a7;
}
.menu-toggle {
    display: none;
}
.impersonation {
    padding: 10px 34px;
    background: #fff4dd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.text-right {
    text-align: right;
}
.line-input {
    width: 90px;
}
.chart-bars {
    height: 160px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding-top: 10px;
}
.chart-bar {
    flex: 1;
    background: #a9b8ef;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    position: relative;
}
.chart-bar span {
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    font-size: 9px;
    text-align: center;
    color: var(--muted);
}
.product-icon {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: #eff3fa;
    object-fit: cover;
    margin-right: 10px;
}
.inline-form {
    display: inline;
}
.notification-unread {
    border-left: 3px solid var(--accent);
}
.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.document-note {
    white-space: pre-wrap;
}
.filter-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-form .form-group {
    min-width: 130px;
}
.compact-card {
    padding: 18px;
}
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 15px 22px;
    background: #243044;
    color: #fff;
    border-radius: 7px;
    z-index: 1100;
    display: none;
}
.skeleton {
    background: #eef1f5;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-content {
        padding: 38px 24px 24px;
    }
    .two-column {
        grid-template-columns: 1fr;
    }
    .workspace-header {
        padding: 0 24px;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 60px #24304422;
    }
    .workspace {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .header-title {
        font-size: 15px;
    }
    .header-actions {
        gap: 10px;
    }
    .header-link {
        font-size: 11px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-content {
        padding: 32px 16px 20px;
    }
    .form-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .auth-story {
        display: none;
    }
    .stats {
        gap: 10px;
    }
    .stat {
        padding: 16px;
    }
    .stat-number {
        font-size: 22px;
    }
    .card-body {
        padding: 18px;
    }
    .toolbar {
        padding: 15px;
    }
    .table td,
    .table th {
        padding: 12px;
    }
    .invoice-head {
        flex-direction: column;
    }
    .workspace-footer span {
        display: none;
    }
}
@media print {
    .sidebar,
    .workspace-header,
    .workspace-footer,
    .no-print,
    .toolbar,
    .tabs,
    .btn,
    .impersonation,
    .toast {
        display: none !important;
    }
    .workspace {
        margin: 0;
    }
    .page-content {
        padding: 0;
        max-width: none;
    }
    .card {
        border: 0;
        box-shadow: none;
    }
    .table th,
    .table td {
        padding: 8px;
    }
    body {
        background: #fff;
    }
    .invoice {
        max-width: none;
    }
    .two-column {
        display: block;
    }
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.stats .card {
    margin-bottom: 0;
}
.auth-form form label {
    margin-top: 18px;
}
.summary > .form-group {
    margin-top: 15px;
}
.modal-body > .form-group {
    margin-top: 15px;
}
.two-column > * {
    min-width: 0;
}
.card {
    min-width: 0;
    max-width: 100%;
}
.tabs {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}
.tabs a {
    flex-shrink: 0;
}
.modal.show .modal-dialog {
    margin: 30px auto;
}
.modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}
.stat-mark {
    margin-bottom: 9px;
}
@media (max-width: 800px) {
    .workspace-header > div:nth-child(2) {
        min-width: 0;
    }
    .workspace-header .eyebrow {
        font-size: 8px;
        letter-spacing: 1px;
    }
    .header-actions {
        flex-shrink: 0;
    }
    .modal.show .modal-dialog {
        margin: 15px;
    }
    .modal-body {
        max-height: calc(100vh - 155px);
    }
}
.close:before {
    display: none !important;
}
.close {
    font-family: inherit;
    opacity: 0.65;
    font-size: 23px;
}
.close:hover {
    opacity: 1;
}
form.card-body > .form-group + .form-group {
    margin-top: 16px;
}
.invoice {
    max-width: 1000px;
}
#kt_wrapper.workspace{padding-left:0;padding-top:0;width:calc(100% - 230px);margin-left:230px}#kt_body,#kt_content{padding:0;background:transparent}.page-content.kt-container{width:100%;max-width:1600px}.skip-link{position:fixed;top:-50px;left:245px;z-index:1200;background:#fff;padding:8px 12px;border:1px solid #dce2ec;border-radius:5px}.skip-link:focus{top:10px}.sidebar.kt-aside{background:#fff;width:230px;display:flex;height:100vh;overflow-y:auto}.nav-link .nav-label{font-size:12px;width:auto;text-align:left;line-height:1.4;flex:1}.nav-group-toggle{width:100%;border:0;background:transparent;cursor:pointer;text-align:left;font-family:inherit}.nav-group.is-active>.nav-group-toggle{color:var(--accent);background:#f4f6ff}.nav-chevron{width:13px;height:13px;flex-shrink:0;transition:transform .15s}.nav-group-toggle[aria-expanded=true] .nav-chevron{transform:rotate(180deg)}.nav-submenu{margin:2px 0 8px 27px;border-left:1px solid #e4e9f3;padding:3px 0 3px 9px}.nav-sublink{display:block;padding:8px 10px;font-size:11px;color:#768196;border-radius:4px;line-height:1.35}.nav-sublink:hover{background:#f6f8fc;color:#395ce9}.nav-sublink.active{background:#edf1ff;color:#395ce9;font-weight:600}@media(max-width:800px){#kt_wrapper.workspace{width:100%;margin-left:0}.sidebar.kt-aside{position:fixed;left:0;top:0;bottom:0;z-index:1100}.sidebar.kt-aside.open{transform:translateX(0)}.skip-link{left:16px}}@media print{#kt_wrapper.workspace{width:100%;margin-left:0}}
#kt_aside.sidebar{width:230px!important;min-width:230px!important;max-width:230px!important;box-sizing:border-box!important;margin:0!important;box-shadow:none!important;position:fixed;left:0;top:0;padding:24px 16px!important}.sidebar .nav-submenu.show{display:block}


/* Shared login and customer registration layout. */
body.auth-page.auth-split > .auth-story { width: 100%; }
.auth-split .auth-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-split .auth-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.auth-split .auth-form .auth-field label { margin: 0; }
.auth-split .auth-form .auth-help { font-size: 12px; line-height: 1.7; margin: 0; }
.auth-split .auth-optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.auth-split .auth-account-link { margin-top: 24px; }
@media (max-width: 420px) { .auth-split .auth-field-grid { grid-template-columns: minmax(0, 1fr); } }
body.auth-page.auth-split {
        margin: 0;
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        background: #ffffff;
    }

    .auth-split,
    .auth-split * {
        box-sizing: border-box;
    }

    /* Left branding section */
    body.auth-page.auth-split > .auth-story {
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;
        padding: clamp(32px, 5vw, 80px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #f0f3ff;
        color: #1e2b60;
    }

    .auth-split .auth-story .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--accent, #395ce9);
        text-decoration: none;
        font-size: 22px;
        font-weight: 700;
        flex-wrap: wrap;
    }

    .auth-split .auth-story .brand img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .auth-split .auth-story .brand span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .auth-split .auth-story .eyebrow,
    .auth-split .auth-form .eyebrow {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--accent, #395ce9);
    }

    .auth-split .auth-story h1 {
        font-size: clamp(36px, 4vw, 60px);
        line-height: 1.12;
        letter-spacing: -1.5px;
        margin: 20px 0;
        color: #1e2b60;
    }

    .auth-split .auth-story p {
        font-size: 16px;
        line-height: 1.8;
        color: #59678c;
    }

    .auth-split .auth-story small {
        font-size: 12px;
        color: #7785aa;
    }

    /* Right login section */
    body.auth-page.auth-split > .auth-form {
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
    }

    .auth-split .auth-form > div {
        width: 100%;
        max-width: 420px;
    }

    .auth-split .auth-form h2 {
        font-size: clamp(26px, 3vw, 34px);
        line-height: 1.2;
        margin: 12px 0;
        color: #1e2b60;
    }

    .auth-split .auth-form .muted {
        color: #7b849e;
        font-size: 14px;
    }

    .auth-split .auth-form form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .auth-split .auth-form label {
        font-size: 14px;
        font-weight: 600;
        color: #303c60;
    }

    .auth-split .auth-form .form-control {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        border: 1px solid #dce2f5;
        border-radius: 8px;
        font-size: 15px;
        background: #ffffff;
        color: #1e2b60;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .auth-split .auth-form .form-control:focus {
        outline: none;
        border-color: var(--accent, #395ce9);
        box-shadow: 0 0 0 3px rgba(57, 92, 233, 0.12);
    }

    .auth-split .auth-form .btn-primary {
        width: 100%;
        min-height: 48px;
        margin-top: 10px;
        border: none;
        border-radius: 8px;
        background: var(--accent, #395ce9);
        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .auth-split .auth-form .btn-primary:hover {
        background: #294bd0;
        transform: translateY(-1px);
    }

    .auth-split .auth-form .btn-primary:active {
        transform: translateY(0);
    }

    .auth-split .auth-form form > a {
        align-self: flex-end;
        margin-top: 8px;
        color: var(--accent, #395ce9);
        text-decoration: none;
    }

    .auth-split .auth-form form > a:hover {
        text-decoration: underline;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        body.auth-page.auth-split {
            grid-template-columns: minmax(0, 1fr);
        }

        body.auth-page.auth-split > .auth-story {
            min-height: auto;
            padding: 28px 24px;
            gap: 24px;
        }

        .auth-split .auth-story h1 {
            font-size: 32px;
        }

        .auth-split .auth-story p {
            font-size: 14px;
        }

        .auth-split .auth-story p br {
            display: none;
        }

        .auth-split .auth-story small {
            display: none;
        }

        body.auth-page.auth-split > .auth-form {
            min-height: auto;
            padding: 48px 24px 64px;
            align-items: flex-start;
        }
    }
