:root {
    --dm-navy: #102a4f;
    --dm-navy-2: #173b6c;
    --dm-navy-3: #214c84;
    --dm-orange: #f39a27;
    --dm-orange-dark: #dd7f0c;
    --dm-bg: #f3f6fa;
    --dm-surface: #ffffff;
    --dm-border: #dce4ee;
    --dm-text: #18253a;
    --dm-muted: #6b778c;
    --dm-success: #238b57;
    --dm-danger: #d8485a;
    --dm-shadow: 0 14px 38px rgba(20, 45, 80, .08);
    --dm-radius: 18px;
}

html,
body {
    background: var(--dm-bg) !important;
    color: var(--dm-text);
    font-family: "Montserrat", "Segoe UI", sans-serif;
}

body {
    overflow-x: hidden;
}

.page-wrapper.compact-wrapper .page-main-header {
    width: calc(100% - 280px);
    margin-left: 280px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(220, 228, 238, .95);
    box-shadow: 0 8px 25px rgba(20, 45, 80, .05);
    backdrop-filter: blur(12px);
}

.page-wrapper .page-main-header .main-header-right {
    min-height: 78px;
    padding: 0 28px;
}

.page-wrapper .page-main-header .main-header-right .main-header-left {
    width: 280px;
    height: 78px;
    padding: 0 24px;
    background: var(--dm-surface);
    border-right: 1px solid var(--dm-border);
}

.page-wrapper .page-main-header .main-header-left .logo-wrapper img,
.page-wrapper .page-main-header .main-header-left .dark-logo-wrapper img {
    width: 176px;
    max-height: 52px;
    object-fit: contain;
}

.toggle-sidebar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--dm-navy);
    background: #eef3f8;
    transition: .2s ease;
}

.toggle-sidebar:hover {
    color: #fff;
    background: var(--dm-navy);
}

.dm-header-context {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    padding-left: 18px;
    line-height: 1.15;
}

.dm-header-context strong {
    color: var(--dm-navy);
    font-size: 18px;
    letter-spacing: -.3px;
}

.dm-header-eyebrow {
    color: var(--dm-orange-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin-bottom: 4px;
}

.nav-right .nav-menus {
    align-items: center;
    gap: 7px;
}

.nav-right .nav-menus > li > a,
.nav-right .mode {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--dm-navy) !important;
    background: #f0f4f8;
}

.dm-logout {
    width: auto !important;
    min-height: 42px;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: 1px solid #f7c989 !important;
    border-radius: 12px !important;
    color: var(--dm-navy) !important;
    background: #fff8ee !important;
    font-weight: 700;
}

.dm-logout:hover {
    color: #fff !important;
    background: var(--dm-orange) !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
    width: 280px;
    top: 0;
    height: 100vh;
    z-index: 110;
    background: linear-gradient(180deg, #122f58 0%, #0d2444 100%);
    border: 0;
    box-shadow: 12px 0 36px rgba(16, 42, 79, .13);
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    min-height: calc(100vh - 78px);
    margin-left: 280px;
    margin-top: 78px;
    padding: 30px 32px 52px;
    background: var(--dm-bg);
}

header.main-nav .sidebar-user {
    margin: 0;
    padding: 26px 22px 22px;
    color: #fff;
    background: rgba(255, 255, 255, .045);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

header.main-nav .sidebar-user h5,
header.main-nav .sidebar-user h6 {
    color: #fff !important;
}

header.main-nav .sidebar-user h5 {
    font-size: 18px;
    font-weight: 750;
}

.dm-user-avatar {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    color: var(--dm-navy);
    background: linear-gradient(145deg, #fff, #e8f0fa);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    font-size: 22px;
    font-weight: 800;
}

.user-role {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #ffe1b4;
    background: rgba(243, 154, 39, .15);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.dm-license {
    margin-top: 15px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    color: #d9e5f4;
    background: rgba(255, 255, 255, .07);
    font-size: 11px;
}

.dm-license strong {
    color: #fff;
}

header.main-nav .main-navbar {
    padding: 18px 14px 28px;
}

header.main-nav .main-navbar .nav-menu > li {
    margin-bottom: 5px;
}

header.main-nav .main-navbar .nav-menu > li > a,
header.main-nav .main-navbar .nav-menu .nav-link {
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    color: #d8e4f2 !important;
    font-size: 14px;
    font-weight: 650;
    transition: .18s ease;
}

header.main-nav .main-navbar .nav-menu a svg {
    width: 18px;
    height: 18px;
    color: #fff !important;
    stroke: #fff !important;
}

header.main-nav .main-navbar .nav-menu a .according-menu,
header.main-nav .main-navbar .nav-menu a .according-menu i {
    color: #fff !important;
}

header.main-nav .main-navbar .nav-menu a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

header.main-nav .main-navbar .nav-menu a.active,
header.main-nav .main-navbar .nav-menu .dm-open > .menu-title {
    color: #fff !important;
    background: linear-gradient(135deg, var(--dm-orange), #f7ad4e);
    box-shadow: 0 10px 22px rgba(243, 154, 39, .25);
}

header.main-nav .main-navbar .nav-menu a.active svg,
header.main-nav .main-navbar .nav-menu .dm-open > .menu-title svg {
    color: #fff;
}

header.main-nav .main-navbar .nav-submenu {
    margin: 6px 0 10px 16px;
    padding: 6px;
    border-left: 1px solid rgba(255, 255, 255, .15);
}

header.main-nav .main-navbar .nav-submenu li a {
    padding: 9px 12px 9px 18px;
    display: block;
    border-radius: 10px;
    color: #c8d5e5 !important;
    font-size: 12px;
}

header.main-nav .main-navbar .nav-submenu li a:hover,
header.main-nav .main-navbar .nav-submenu li a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.dm-price-list-link {
    min-height: 38px !important;
    margin-left: 18px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.page-body .container-fluid,
.page-body .container {
    max-width: 1500px;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5 {
    color: var(--dm-navy);
    letter-spacing: -.4px;
}

.page-body h2 {
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 750;
}

.card,
.page-body .card {
    border: 1px solid rgba(220, 228, 238, .9);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--dm-border);
    background: #fff;
}

.card-body {
    padding: 24px;
}

.table-responsive {
    border-radius: 14px;
}

/* Zaglavlje stavki je već unutar kartice narudžbine, pa mu ne treba dodatni zaobljeni okvir. */
.order-items-table {
    border-radius: 0;
    width: 100%;
}

.order-items-table .order-items-table-content {
    width: 100% !important;
}

.action-list-section {
    margin-top: 64px;
}

.akcija-dani-select {
    min-height: 184px;
}

.table {
    margin-bottom: 0;
    color: var(--dm-text);
}

.table thead th {
    padding: 14px 12px;
    border: 0;
    color: #fff;
    background: var(--dm-navy);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.table tbody td {
    padding: 13px 12px;
    border-color: #e7edf4;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f8fafc;
}

.table tbody tr {
    transition: background .15s ease, box-shadow .15s ease;
}

.table tbody tr:hover > * {
    background: #fff7eb !important;
}

.dm-datatable-error {
    margin: 0 0 16px;
    border: 1px solid #f4cf8b;
    border-radius: 12px;
    color: #654310;
    background: #fff8e9;
    box-shadow: none;
    font-size: 13px;
}

.form-control,
.form-select,
.selectize-input,
.select2-container .select2-selection--single {
    min-height: 44px;
    border: 1px solid #ccd8e6 !important;
    border-radius: 11px !important;
    color: var(--dm-text);
    background: #fff;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.selectize-input.focus {
    border-color: var(--dm-orange) !important;
    box-shadow: 0 0 0 4px rgba(243, 154, 39, .12) !important;
}

label,
.form-label,
.control-label {
    color: var(--dm-navy);
    font-size: 1.2em;
    font-weight: 700;
}

.btn {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 11px;
    font-weight: 700;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    border-color: var(--dm-navy) !important;
    background: var(--dm-navy) !important;
    box-shadow: 0 8px 18px rgba(16, 42, 79, .16);
}

.btn-primary:hover,
.btn-success:hover {
    border-color: var(--dm-navy-2) !important;
    background: var(--dm-navy-2) !important;
}

.btn-warning {
    border-color: var(--dm-orange) !important;
    color: #fff !important;
    background: var(--dm-orange) !important;
}

.btn-danger,
.btn-outline-danger:hover {
    border-color: var(--dm-danger) !important;
    background: var(--dm-danger) !important;
}

.btn-outline-primary {
    border-color: var(--dm-navy) !important;
    color: var(--dm-navy) !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background: var(--dm-navy) !important;
}

.badge.bg-primary,
#total-orders-badge {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--dm-navy) !important;
}

.modal-content,
.offcanvas {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(16, 42, 79, .2);
}

.modal-header,
.offcanvas-header {
    border-bottom: 1px solid var(--dm-border);
    background: #f8fafc;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ccd8e6;
    border-radius: 10px;
    background: #fff;
}

.pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--dm-border);
    color: var(--dm-navy);
}

.pagination .active .page-link {
    border-color: var(--dm-orange);
    background: var(--dm-orange);
}

#sound-permission {
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 16px !important;
    background: var(--dm-navy-dark, #0d2444) !important;
    box-shadow: 0 20px 42px rgba(8, 26, 50, .28) !important;
}

#enable-sound-btn {
    background: var(--dm-orange) !important;
}

footer {
    border-top: 1px solid var(--dm-border);
    color: var(--dm-muted);
    background: #fff;
}

@media (max-width: 1199.98px) {
    .page-wrapper.compact-wrapper .page-main-header {
        width: 100%;
        margin-left: 0;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
        margin-left: 0;
        padding: 24px 18px 44px;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
        width: 280px;
    }

    .dm-header-context {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .page-wrapper .page-main-header .main-header-right {
        min-height: 68px;
        padding: 0 12px;
        flex-wrap: nowrap !important;
    }

    .page-wrapper .page-main-header .main-header-right .main-header-left {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        max-width: 280px;
        height: 68px;
        padding: 0 12px;
    }

    .page-wrapper .page-main-header .left-menu-header {
        display: none !important;
    }

    .page-wrapper .page-main-header .main-header-left .logo-wrapper img,
    .page-wrapper .page-main-header .main-header-left .dark-logo-wrapper img {
        width: 142px;
    }

    .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
        margin-top: 68px;
        padding: 18px 12px 36px;
    }

    .nav-right .nav-menus > li:not(.onhover-dropdown) {
        display: none;
    }

    .page-wrapper .page-main-header .main-header-right .nav-right {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
    }

    .page-wrapper .page-main-header .main-header-right .nav-right > ul.nav-menus {
        position: static !important;
        display: flex !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .page-wrapper .page-main-header .mobile-toggle {
        display: none !important;
    }

    .dm-logout span {
        display: none;
    }

    .dm-logout {
        width: 42px !important;
        padding: 0 !important;
        justify-content: center;
    }

    .card-body,
    .card-header {
        padding: 17px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-list-section {
        margin-top: 44px;
    }

    .modal-dialog {
        margin: 10px;
    }
}

.dm-delivery-settings {
    margin: 22px 0 6px;
    padding: 18px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f7f9fc;
}

.dm-delivery-settings[hidden],
.dm-delivery-panel[hidden] {
    display: none !important;
}

.dm-delivery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: #17315f;
    color: #fff !important;
    background: #17315f;
}

.dm-delivery-toggle svg {
    color: #fff !important;
    stroke: #fff !important;
}

.dm-delivery-toggle:hover {
    border-color: #24477d;
    color: #fff !important;
    background: #24477d;
}

.dm-delivery-toggle:hover svg {
    color: #fff !important;
    stroke: #fff !important;
}

.dm-delivery-toggle svg {
    width: 17px;
    height: 17px;
}

.dm-delivery-panel {
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 13px;
    background: #fff;
}

.dm-delivery-table thead th {
    border: 0;
    color: #fff;
    background: #17315f;
    font-size: 11px;
    text-transform: uppercase;
}

.dm-delivery-table {
    width: 100% !important;
    table-layout: fixed;
}

.dm-delivery-table td {
    min-width: 130px;
    border-color: #edf1f6;
}

.dm-delivery-table td:first-child {
    min-width: 150px;
}

.dm-delivery-table .form-control {
    min-width: 125px;
}

/* Premium business dashboard */
.dm-dashboard {
    max-width: 1560px;
    padding: 28px 24px 54px;
    color: #10264d;
}

.dm-dashboard-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 34px 38px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(245, 154, 35, .3), transparent 27%),
        linear-gradient(135deg, #10264d 0%, #1c3d75 100%);
    box-shadow: 0 22px 50px rgba(16, 38, 77, .18);
}

.dm-dashboard-hero::after {
    position: absolute;
    right: -55px;
    bottom: -95px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: '';
}

.dm-dashboard-kicker,
.dm-dashboard-card-head > div > span {
    display: block;
    margin-bottom: 7px;
    color: #f6a22f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.dm-dashboard-hero h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.dm-dashboard-hero p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
}

.dm-dashboard-orders-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 15px;
    color: #fff;
    font-weight: 700;
    transition: .2s ease;
}

.dm-dashboard-orders-link:hover {
    color: #10264d;
    background: #fff;
    transform: translateY(-2px);
}

.dm-dashboard-orders-link svg {
    width: 19px;
}

.dm-dashboard-notice {
    border: 0;
    border-radius: 14px;
}

.dm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.dm-kpi-card,
.dm-dashboard-card,
.dm-seven-summary {
    border: 1px solid #e7ecf4;
    background: #fff;
    box-shadow: 0 14px 35px rgba(23, 49, 95, .07);
}

.dm-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    padding: 22px;
    border-radius: 20px;
}

.dm-kpi-card > span {
    display: block;
    padding-right: 44px;
    color: #6e7c94;
    font-size: 12px;
    font-weight: 700;
}

.dm-kpi-card > strong {
    display: block;
    margin-top: 19px;
    color: #10264d;
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.dm-kpi-card > small {
    display: block;
    margin-top: 13px;
    color: #8b96aa;
    font-size: 11px;
}

.dm-kpi-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #17315f;
    background: #eef3fa;
}

.dm-kpi-icon svg {
    width: 18px;
}

.dm-kpi-card-primary {
    border-color: transparent;
    background: linear-gradient(145deg, #f6a22f, #ef8c17);
}

.dm-kpi-card-primary > span,
.dm-kpi-card-primary > strong,
.dm-kpi-card-primary > small {
    color: #fff;
}

.dm-kpi-card-primary .dm-kpi-icon {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

.dm-kpi-card-danger .dm-kpi-icon {
    color: #d94b62;
    background: #fff0f2;
}

.dm-dashboard-row {
    margin-top: 4px;
}

.dm-dashboard-card {
    overflow: hidden;
    padding: 26px;
    border-radius: 22px;
}

.dm-dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.dm-dashboard-card h3,
.dm-dashboard-card-head h3 {
    margin: 0;
    color: #10264d;
    font-size: 20px;
    font-weight: 800;
}

.dm-trend {
    padding: 9px 12px;
    border-radius: 11px;
    color: #16865a;
    background: #e8f7f1;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.dm-trend.is-down {
    color: #c43e54;
    background: #fff0f2;
}

.dm-trend small {
    display: block;
    margin-top: 2px;
    color: #7b879d;
    font-size: 9px;
    font-weight: 600;
}

.dm-dashboard-chart {
    min-height: 330px;
}

.dm-best-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 154, 35, .38), transparent 30%),
        linear-gradient(155deg, #10264d, #173763);
}

.dm-best-card h3 {
    max-width: 320px;
    margin-top: 22px;
    color: #fff;
    font-size: 27px;
}

.dm-best-card > strong {
    display: block;
    margin-top: 28px;
    color: #f6a22f;
    font-size: 51px;
    font-weight: 800;
    line-height: 1;
}

.dm-best-card > p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .68);
}

.dm-best-medal {
    display: grid;
    width: 54px;
    height: 54px;
    margin-top: 14px;
    place-items: center;
    border-radius: 17px;
    color: #10264d;
    background: #f6a22f;
}

.dm-best-revenue {
    align-self: flex-start;
    margin-top: 26px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 700;
}

.dm-top-products {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.dm-top-product {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 55px;
}

.dm-product-rank {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #17315f;
    background: #eef3fa;
    font-weight: 800;
}

.dm-top-product:first-child .dm-product-rank {
    color: #fff;
    background: #f59a23;
}

.dm-product-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #10264d;
    font-size: 12px;
}

.dm-product-line strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-product-line span {
    flex: 0 0 auto;
    color: #728098;
    font-weight: 700;
}

.dm-product-bar {
    overflow: hidden;
    height: 6px;
    margin-top: 8px;
    border-radius: 6px;
    background: #edf1f7;
}

.dm-product-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #17315f, #f59a23);
}

.dm-top-product > small {
    min-width: 100px;
    color: #10264d;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.dm-empty-state {
    padding: 28px 8px;
    color: rgba(255, 255, 255, .7);
}

.dm-empty-state svg {
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
}

.dm-empty-state p {
    max-width: 330px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.7;
}

.dm-empty-state-light {
    color: #7b879d;
}

.dm-empty-state-light h3 {
    color: #10264d;
}

.dm-seven-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 28px;
    padding: 21px 12px;
    border-radius: 18px;
}

.dm-seven-summary > div {
    padding: 4px 18px;
    border-right: 1px solid #e7ecf4;
}

.dm-seven-summary > div:last-child {
    border-right: 0;
}

.dm-seven-summary span,
.dm-seven-summary strong {
    display: block;
}

.dm-seven-summary span {
    color: #7b879d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.dm-seven-summary strong {
    margin-top: 8px;
    color: #10264d;
    font-size: 18px;
    font-weight: 800;
}

@media (max-width: 1399.98px) {
    .dm-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dm-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dm-seven-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .dm-seven-summary > div:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 767.98px) {
    .dm-dashboard {
        padding: 4px 0 34px;
    }

    .dm-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 22px;
        border-radius: 19px;
    }

    .dm-dashboard-orders-link {
        width: 100%;
        justify-content: center;
    }

    .dm-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dm-kpi-card {
        min-height: 145px;
    }

    .dm-dashboard-card {
        padding: 20px 16px;
    }

    .dm-dashboard-card-head {
        flex-direction: column;
    }

    .dm-best-card {
        min-height: 390px;
    }

    .dm-top-product {
        grid-template-columns: 35px minmax(0, 1fr);
    }

    .dm-top-product > small {
        display: none;
    }

    .dm-seven-summary {
        grid-template-columns: 1fr;
    }

    .dm-seven-summary > div,
    .dm-seven-summary > div:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid #e7ecf4;
        padding-bottom: 16px;
    }

    .dm-seven-summary > div:last-child {
        border-bottom: 0;
    }
}

/* Login page */
.dm-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 5fr) 7fr;
    background: var(--dm-bg);
}

.dm-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 44px 48px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 14%, rgba(245, 154, 35, .3), transparent 30%),
        linear-gradient(160deg, #10264d 0%, #1c3d75 100%);
}

.dm-login-brand::before,
.dm-login-brand::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.dm-login-brand::before {
    right: -90px;
    bottom: -120px;
    width: 340px;
    height: 340px;
}

.dm-login-brand::after {
    right: 40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
}

.dm-login-brand > * {
    position: relative;
    z-index: 1;
}

.dm-login-brand-logo {
    width: 176px;
    height: auto;
}

.dm-login-brand-copy h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.dm-login-brand-copy p {
    max-width: 460px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.dm-login-features {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d8e4f2;
    font-size: 14px;
    font-weight: 650;
}

.dm-login-features span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.dm-login-features svg {
    width: 18px;
    height: 18px;
    color: var(--dm-orange);
    stroke: var(--dm-orange);
}

.dm-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.dm-login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 38px 32px;
    border: 1px solid var(--dm-border);
    border-radius: 24px;
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.dm-login-card-logo {
    display: none;
    width: 160px;
    height: auto;
    margin-bottom: 26px;
}

.dm-login-card h2 {
    margin: 0;
    color: var(--dm-navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.dm-login-lead {
    margin: 8px 0 26px;
    color: var(--dm-muted);
    font-size: 14px;
}

.dm-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f3c2c9;
    border-radius: 12px;
    color: #9b2536;
    background: #fdf0f2;
    font-size: 13px;
    font-weight: 600;
}

.dm-login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.dm-login-field {
    margin-bottom: 18px;
}

.dm-login-field label {
    display: block;
    margin-bottom: 7px;
}

.dm-login-input {
    position: relative;
}

.dm-login-input > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 17px;
    height: 17px;
    color: var(--dm-muted);
    stroke: currentColor !important;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.dm-login .dm-login-input .form-control {
    min-height: 48px;
    padding-left: 44px;
    font-size: 14px;
    font-weight: 500;
}

.dm-login .dm-login-input .form-control::placeholder {
    color: #a3adbd;
}

.dm-login .dm-login-input .form-control.is-invalid {
    border-color: var(--dm-danger) !important;
    background-image: none;
}

.dm-login-input:focus-within > svg {
    color: var(--dm-orange-dark);
}

.dm-login .dm-login-input #password {
    padding-right: 48px;
}

.dm-login-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: var(--dm-muted);
    background: transparent;
    transform: translateY(-50%);
    z-index: 2;
}

.dm-login-toggle:hover,
.dm-login-toggle.is-active {
    color: var(--dm-navy);
    background: #eef3f8;
}

.dm-login-toggle svg {
    width: 17px;
    height: 17px;
    stroke: currentColor !important;
}

.dm-login-error {
    display: block;
    margin-top: 6px;
    color: var(--dm-danger);
    font-size: 12px;
    font-weight: 600;
}

.dm-login .dm-login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    font-size: 15px;
}

.dm-login-submit svg {
    width: 18px;
    height: 18px;
    color: #fff;
    stroke: #fff !important;
    transition: transform .18s ease;
}

.dm-login-submit:hover svg {
    transform: translateX(3px);
}

.dm-login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--dm-border);
    color: var(--dm-muted);
    font-size: 13px;
}

.dm-login-footer a {
    color: var(--dm-orange-dark);
    font-weight: 700;
}

.dm-login-footer a:hover {
    color: var(--dm-navy);
}

@media (max-width: 991.98px) {
    .dm-login {
        grid-template-columns: 1fr;
    }

    .dm-login-brand {
        display: none;
    }

    .dm-login-card-logo {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .dm-login-panel {
        align-items: flex-start;
        padding: 20px 16px;
    }

    .dm-login-card {
        padding: 30px 22px 24px;
        border-radius: 20px;
    }
}

/* Signup page (kreiraj_nalog) */
.dm-login-hint {
    display: block;
    margin-top: 6px;
    color: var(--dm-muted);
    font-size: 12px;
}

.dm-login-error:empty {
    display: none;
}

.dm-login-error:not(:empty) + .dm-login-hint {
    display: none;
}

.dm-login-alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.dm-login-submit:disabled {
    opacity: .75;
    transform: none;
}

.dm-login-success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: var(--dm-success);
    box-shadow: 0 10px 24px rgba(35, 139, 87, .25);
}

.dm-login-success-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff !important;
}

.dm-login-checklist {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.dm-login-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--dm-border);
    border-radius: 12px;
    color: var(--dm-navy);
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.dm-login-checklist svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: var(--dm-orange-dark) !important;
}

.dm-login-small {
    margin: 0;
    color: var(--dm-muted);
    font-size: 13px;
}

.dm-login-small a {
    color: var(--dm-orange-dark);
    font-weight: 700;
}

.dm-login-submit span {
    font-weight: 700;
}
