html {
    scroll-behavior: smooth;
}

body {
    background: #f3f8fc;
}

main > section {
    animation: cmFadeUp 280ms ease both;
}

a,
button,
input,
select,
textarea,
.panel,
.metric-card,
.filter-panel,
.data-table tbody tr,
.modal-panel,
.icon-btn {
    transition-property: background-color, border-color, color, box-shadow, opacity, transform;
    transition-duration: 180ms;
    transition-timing-function: ease;
}

@keyframes cmFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cmModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cmBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.btn-primary {
    background: #127f76;
    color: #fff;
    box-shadow: 0 6px 14px rgba(18, 127, 118, 0.15);
}

.btn-primary:hover {
    background: #0f6d65;
    box-shadow: 0 10px 22px rgba(18, 127, 118, 0.22);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.btn-danger {
    background: #e11d48;
    color: #fff;
}

.btn-danger:hover {
    background: #be123c;
    transform: translateY(-1px);
}

.btn-disabled {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.icon-btn {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.icon-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.icon-btn svg,
.btn-primary svg,
.btn-secondary svg,
.btn-danger svg,
.cm-nav-icon svg {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    stroke: currentColor;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #0f8fd4;
    box-shadow: 0 0 0 3px rgba(15, 143, 212, 0.14);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #9fb9d4;
}

.panel {
    border-radius: 0.5rem;
    border: 1px solid #cfe0f2;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.panel:hover,
.filter-panel:hover,
.metric-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #dbe7f3;
    padding: 1rem 1.25rem;
}

.panel-body {
    padding: 1.25rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: #f3f8fc;
    padding: 0.82rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #0f3158;
    white-space: nowrap;
    text-transform: uppercase;
}

.data-table td {
    border-top: 1px solid #e2e8f0;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:hover td {
    background: #f8fbfe;
}

.metric-card {
    border-radius: 0.5rem;
    border: 1px solid #cfe0f2;
    background: #fff;
    padding: 1rem;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card.is-teal {
    border-color: #87e4dc;
    background: #effdfa;
}

.metric-card.is-green {
    border-color: #b6eac9;
    background: #f0fdf4;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #49658b;
}

.metric-value {
    margin-top: 0.35rem;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: #001b3d;
}

.filter-panel {
    border-radius: 0.5rem;
    border: 1px solid #cfe0f2;
    background: #fff;
    padding: 1rem;
}

.table-title {
    font-size: 1rem;
    font-weight: 800;
    color: #001b3d;
}

.table-subtitle {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #49658b;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
}

.modal-shell.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
}

.modal-shell.is-open .modal-backdrop {
    animation: cmBackdropIn 160ms ease both;
}

.modal-panel {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-shell.is-open .modal-panel {
    animation: cmModalIn 200ms ease both;
}

.modal-panel.is-wide {
    width: min(100%, 960px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #dbe7f3;
    padding: 1rem 1.25rem;
}

.modal-body {
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
    padding: 1.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #dbe7f3;
    padding: 1rem 1.25rem;
}

.dataTables_wrapper {
    padding: 0;
    color: #334155;
}

.dataTables_wrapper .dataTables_processing {
    border: 1px solid #cfe0f2;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    color: #0f3158;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_processing {
    display: none !important;
}

.table-wrap {
    position: relative;
}

.table-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.55), rgba(255,255,255,0));
    opacity: 0;
    transform: translateX(-35%);
}

.table-wrap.is-loading::after {
    opacity: 1;
    animation: cmTableSweep 700ms ease infinite;
}

@keyframes cmTableSweep {
    to {
        transform: translateX(35%);
    }
}

.dataTables_wrapper table.dataTable {
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
    border-bottom: 1px solid #cfe0f2 !important;
}

.dataTables_wrapper table.dataTable.no-footer {
    border-bottom: 1px solid #dbe7f3 !important;
}

.cm-dt-footer {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-top: 1px solid #dbe7f3;
    padding: 1rem 0 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.cm-dt-footer .dataTables_info {
    float: none !important;
    clear: none !important;
    flex: 1 1 260px;
    margin: 0 !important;
    padding: 0 !important;
    color: #49658b !important;
    font-size: 0.85rem;
    font-weight: 760;
    line-height: 1.4;
    white-space: normal;
}

.cm-dt-footer .dataTables_paginate {
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    white-space: normal !important;
}

.cm-dt-footer .dataTables_paginate span {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.cm-dt-footer .dataTables_paginate .paginate_button,
.cm-dt-footer .dataTables_paginate .ellipsis {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.05rem;
    height: 2.05rem;
    margin: 0 !important;
    border: 1px solid #d6e6f5 !important;
    border-radius: 0.48rem !important;
    background: #eef4fa !important;
    color: #49658b !important;
    padding: 0 0.58rem !important;
    line-height: 1 !important;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none !important;
}

.cm-dt-footer .dataTables_paginate .paginate_button:hover {
    border-color: #99f6e4 !important;
    background: #f0fdfa !important;
    color: #0f766e !important;
}

.cm-dt-footer .dataTables_paginate .paginate_button.current {
    border-color: #127f76 !important;
    background: #127f76 !important;
    color: #fff !important;
}

.cm-dt-footer .dataTables_paginate .paginate_button.disabled {
    cursor: not-allowed !important;
    opacity: 0.45;
}

@media (max-width: 640px) {
    .cm-dt-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cm-dt-footer .dataTables_info,
    .cm-dt-footer .dataTables_paginate {
        width: 100%;
    }

    .cm-dt-footer .dataTables_paginate,
    .cm-dt-footer .dataTables_paginate span {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

.map-flag {
    position: relative;
    width: 38px;
    height: 36px;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.28));
    transform-origin: 7px 34px;
    animation: cmFlagPop 220ms ease both;
}

.map-flag-marker {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    width: 190px;
    pointer-events: auto;
}

.map-flag-label {
    max-width: 145px;
    margin-top: 2px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    color: #001b3d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    padding: 4px 6px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.map-flag__pole {
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 31px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.map-flag__cloth {
    position: absolute;
    left: 8px;
    top: 3px;
    width: 28px;
    height: 19px;
    border-radius: 4px 5px 5px 1px;
    border: 2px solid #fff;
    box-shadow: inset 0 -7px 12px rgba(15, 23, 42, 0.1);
}

.map-flag__cloth::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 4px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.92);
}

@keyframes cmFlagPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 260px;
}

/* Modern admin polish inspired by the clinic Tailwind layer. */
:root {
    --cm-bg: #f4f8fc;
    --cm-panel: #ffffff;
    --cm-line: #cfe0f2;
    --cm-line-soft: #dceaf7;
    --cm-text: #071b34;
    --cm-muted: #526986;
    --cm-primary: #0f766e;
    --cm-primary-dark: #0c5f59;
    --cm-blue: #115a96;
    --cm-green: #16a34a;
    --cm-amber: #d97706;
    --cm-rose: #e11d48;
}

body.cm-app {
    background:
        radial-gradient(circle at 18% 0%, rgba(17, 90, 150, .09), transparent 26rem),
        linear-gradient(180deg, #eef6fd 0%, #f7fbff 44%, #f4f8fc 100%);
    color: var(--cm-text);
}

.cm-main {
    max-width: 1540px;
    margin: 0 auto;
}

.cm-page-heading {
    display: grid;
    gap: .25rem;
}

.cm-page-heading h1 {
    color: var(--cm-primary);
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1.15;
}

.cm-page-heading p {
    color: var(--cm-muted);
    font-size: .88rem;
    font-weight: 750;
}

.cm-sidebar {
    border-right-color: rgba(255, 255, 255, .18) !important;
    background: linear-gradient(180deg, #115a96 0%, #145f97 45%, #0f548c 100%) !important;
    color: #eaf4ff;
    box-shadow: 12px 0 38px rgba(7, 27, 52, .12);
}

.cm-sidebar-brand,
.cm-sidebar-footer {
    border-color: rgba(255, 255, 255, .14) !important;
}

.cm-sidebar-utility {
    display: grid;
}

.cm-sidebar-action {
    border: 0;
    background: transparent;
}

.cm-user-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    padding: .8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.cm-user-avatar {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
}

.cm-user-card p {
    color: #ffffff !important;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.15;
}

.cm-user-card span {
    display: block;
    margin-top: .12rem;
    color: rgba(234, 244, 255, .72) !important;
    font-size: .75rem;
    font-weight: 820;
}

.cm-sidebar p,
.cm-sidebar span,
.cm-sidebar .text-slate-500,
.cm-sidebar .text-slate-900 {
    color: inherit !important;
}

.cm-brand-mark {
    border: 1px solid rgba(255, 255, 255, .34);
    background: #ffffff !important;
    color: #115a96 !important;
    box-shadow: 0 16px 34px rgba(7, 27, 52, .16);
}

.cm-nav-label {
    margin: 0.35rem 0.75rem 0.7rem;
    color: rgba(234, 244, 255, .7) !important;
    font-size: .7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-nav-link {
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 850;
}

.cm-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
}

.cm-nav-link:hover,
.cm-nav-link.is-active {
    background: rgba(255, 255, 255, .18) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transform: translateX(2px);
}

.cm-nav-link.is-active .cm-nav-icon {
    background: rgba(255, 255, 255, .24);
}

.cm-topbar {
    border-bottom-color: #cfe0f2 !important;
    background: rgba(247, 251, 255, .9) !important;
    box-shadow: 0 12px 36px rgba(15, 79, 134, .07);
}

.cm-workspace-pill {
    align-items: center;
    gap: .45rem;
    border: 1px solid #c7ddf3;
    border-radius: 999px;
    background: #ffffff;
    color: #115a96;
    padding: .45rem .7rem;
    font-size: .72rem;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(17, 90, 150, .07);
}

.cm-top-user {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    max-width: 260px;
    border: 1px solid #c7ddf3;
    border-radius: 14px;
    background: #ffffff;
    color: var(--cm-text);
    padding: .5rem .7rem;
    box-shadow: 0 8px 18px rgba(17, 90, 150, .07);
}

.cm-top-user > span {
    display: inline-grid;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .65rem;
    background: #eef8ff;
    color: #115a96;
}

.cm-top-user p {
    color: var(--cm-text);
    font-size: .86rem;
    font-weight: 950;
    line-height: 1.1;
}

.cm-top-user small {
    display: block;
    margin-top: .1rem;
    color: var(--cm-muted);
    font-size: .7rem;
    font-weight: 820;
}

.cm-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: .9rem 1rem;
    box-shadow: 0 14px 34px rgba(15, 79, 134, .08);
    animation: cmFadeUp 220ms ease both;
}

.cm-alert strong,
.cm-alert span {
    display: block;
}

.cm-alert strong {
    font-weight: 950;
}

.cm-alert span {
    margin-top: .1rem;
    font-size: .88rem;
    font-weight: 750;
}

.cm-alert.is-success {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.cm-alert.is-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.filter-panel,
.panel,
.metric-card {
    border-color: var(--cm-line) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 18px 45px rgba(15, 79, 134, .08);
}

.filter-panel {
    padding: 1rem 1.1rem;
}

.panel {
    overflow: hidden;
}

.panel-header {
    border-bottom-color: var(--cm-line-soft) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 1.05rem 1.25rem;
}

.table-title {
    color: var(--cm-text);
    font-size: 1.08rem;
    font-weight: 950;
}

.table-subtitle {
    color: var(--cm-muted);
    font-weight: 750;
}

.metric-card {
    position: relative;
    min-height: 7.15rem;
    padding: 1.05rem;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -2.4rem;
    bottom: -2.6rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: rgba(17, 90, 150, .08);
}

.metric-card.is-teal {
    border-color: #8ee8df !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fffd 100%) !important;
}

.metric-card.is-green {
    border-color: #b9e9c8 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
}

.metric-label {
    color: #416082;
    font-size: .73rem;
    font-weight: 950;
}

.metric-value {
    color: #001b3d;
    font-size: 2.15rem;
    font-weight: 950;
}

.form-label {
    color: #416082;
    font-size: .75rem;
    font-weight: 950;
}

.form-input,
.form-select,
.form-textarea {
    min-height: 2.7rem;
    border-color: #b9d5ee;
    border-radius: 12px;
    color: var(--cm-text);
    font-weight: 780;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--cm-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.icon-btn {
    border-radius: 12px;
    font-weight: 950;
}

.btn-primary {
    background: var(--cm-primary);
    box-shadow: 0 12px 22px rgba(15, 118, 110, .18);
}

.btn-primary:hover {
    background: var(--cm-primary-dark);
}

.btn-secondary {
    border-color: #b9d5ee;
    color: #315475;
}

.data-table th {
    border-top: 1px solid var(--cm-line-soft);
    border-bottom: 1px solid var(--cm-line-soft);
    background: #f7fbff;
    color: #315475;
    font-size: .7rem;
    font-weight: 950;
}

.data-table td {
    border-top: 0;
    border-bottom: 1px solid #e6eef7;
    color: var(--cm-text);
    font-weight: 740;
}

.data-table tbody tr:hover td {
    background: #f3f9ff;
}

.modal-backdrop {
    background: rgba(7, 27, 52, .55);
    backdrop-filter: blur(5px);
}

.modal-panel {
    border: 1px solid rgba(207, 224, 242, .95);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(7, 27, 52, .28);
}

#customerMap {
    min-height: 680px;
    border-top: 1px solid var(--cm-line-soft);
    background: #dceaf7;
}

.leaflet-control-zoom a {
    color: var(--cm-text) !important;
    font-weight: 950;
}

.leaflet-popup-content-wrapper {
    border: 1px solid var(--cm-line);
    box-shadow: 0 22px 50px rgba(7, 27, 52, .18);
}

.map-flag-label {
    border-color: #bdd7ef;
    background: rgba(255, 255, 255, .96);
    color: #071b34;
    box-shadow: 0 10px 24px rgba(7, 27, 52, .16);
}

.cm-analytics-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.cm-analytics-card {
    grid-column: span 4;
    min-width: 0;
    border: 1px solid var(--cm-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 79, 134, .08);
    padding: 18px;
    overflow: hidden;
}

.cm-analytics-card.is-wide {
    grid-column: span 8;
}

.cm-analytics-card.is-full {
    grid-column: span 12;
}

.cm-card-kicker {
    color: var(--cm-primary);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-card-title {
    margin-top: .25rem;
    color: var(--cm-text);
    font-size: 1.05rem;
    font-weight: 950;
}

.cm-bar-list {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.cm-bar-row {
    display: grid;
    gap: .35rem;
}

.cm-bar-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--cm-muted);
    font-size: .82rem;
    font-weight: 850;
}

.cm-bar-track {
    height: .72rem;
    border-radius: 999px;
    background: #e9f2fb;
    overflow: hidden;
}

.cm-bar-fill {
    height: 100%;
    min-width: .35rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    animation: cmGrowX 680ms ease both;
    transform-origin: left;
}

@keyframes cmGrowX {
    from { transform: scaleX(.12); }
    to { transform: scaleX(1); }
}

.cm-trend-chart {
    display: flex;
    align-items: end;
    gap: .75rem;
    height: 240px;
    margin-top: 1.2rem;
    border-bottom: 1px solid #dceaf7;
    padding: .4rem .2rem 0;
}

.cm-trend-bar {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: .45rem;
    height: 100%;
}

.cm-trend-bar span {
    width: 100%;
    max-width: 44px;
    min-height: 8px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #115a96, #0f766e);
    box-shadow: 0 12px 22px rgba(17, 90, 150, .18);
    animation: cmGrowY 700ms ease both;
    transform-origin: bottom;
}

.cm-trend-bar small {
    color: var(--cm-muted);
    font-size: .72rem;
    font-weight: 850;
}

@keyframes cmGrowY {
    from { transform: scaleY(.1); opacity: .6; }
    to { transform: scaleY(1); opacity: 1; }
}

.cm-decision-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.cm-decision-note {
    display: grid;
    gap: .25rem;
    border: 1px solid #cfe0f2;
    border-radius: 14px;
    background: #f8fbff;
    padding: .85rem;
}

.cm-decision-note strong {
    color: var(--cm-text);
    font-weight: 950;
}

.cm-decision-note span {
    color: var(--cm-muted);
    font-size: .84rem;
    font-weight: 760;
}

.cm-decision-note.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.cm-decision-note.is-good {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.cm-donut {
    width: 172px;
    height: 172px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 1rem auto .5rem;
    background: conic-gradient(var(--cm-primary) var(--coverage), #e8f1fb 0);
    box-shadow: inset 0 0 0 18px #ffffff, 0 18px 40px rgba(15, 79, 134, .1);
}

.cm-donut strong {
    color: var(--cm-text);
    font-size: 2rem;
    font-weight: 950;
}

@media (max-width: 1280px) {
    .cm-analytics-card,
    .cm-analytics-card.is-wide {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .cm-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cm-analytics-card,
    .cm-analytics-card.is-wide,
    .cm-analytics-card.is-full {
        grid-column: span 12;
    }

    .cm-trend-chart {
        gap: .35rem;
    }
}

/* Login and map refinements. */
.cm-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(17, 90, 150, .12) 0 20%, transparent 20% 100%),
        linear-gradient(180deg, #edf6fd 0%, #f8fbff 52%, #f3f8fc 100%);
}

.cm-login-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.cm-login-hero {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 3rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 78, 59, .18), rgba(17, 90, 150, .08)),
        linear-gradient(155deg, #0b477a 0%, #115a96 48%, #0f766e 100%);
}

.cm-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent 90%);
    pointer-events: none;
}

.cm-login-brand,
.cm-login-copy,
.cm-login-insights {
    position: relative;
    z-index: 1;
}

.cm-login-brand,
.cm-login-mobile-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.cm-login-brand p,
.cm-login-mobile-brand p {
    font-weight: 950;
}

.cm-login-brand span,
.cm-login-mobile-brand span {
    display: block;
    margin-top: .1rem;
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    font-weight: 760;
}

.cm-login-mobile-brand span {
    color: var(--cm-muted);
}

.cm-login-logo {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    color: #115a96;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(7, 27, 52, .2);
}

.cm-login-copy {
    max-width: 680px;
}

.cm-login-copy .cm-card-kicker {
    color: #ccfbf1;
}

.cm-login-copy h1 {
    margin-top: .8rem;
    max-width: 760px;
    color: #ffffff;
    font-size: 4.2rem;
    font-weight: 950;
    line-height: .98;
}

.cm-login-copy p {
    margin-top: 1.2rem;
    max-width: 590px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.75;
}

.cm-login-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.cm-login-insights div {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.cm-login-insights strong,
.cm-login-insights span {
    display: block;
}

.cm-login-insights strong {
    font-weight: 950;
}

.cm-login-insights span {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 720;
}

.cm-login-form-wrap {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cm-login-mobile-brand {
    display: none;
    margin-bottom: 1.5rem;
}

.cm-login-card {
    width: min(100%, 460px);
    border: 1px solid var(--cm-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 28px 70px rgba(17, 90, 150, .14);
    overflow: hidden;
    animation: cmModalIn 260ms ease both;
}

.cm-login-card-head {
    border-bottom: 1px solid var(--cm-line-soft);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1.45rem 1.55rem;
}

.cm-login-card-head h2 {
    margin-top: .35rem;
    color: var(--cm-text);
    font-size: 2rem;
    font-weight: 950;
}

.cm-login-card-head p {
    margin-top: .35rem;
    color: var(--cm-muted);
    font-size: .92rem;
    font-weight: 740;
}

.cm-login-form {
    display: grid;
    gap: 1rem;
    padding: 1.55rem;
}

.cm-login-alert {
    display: grid;
    gap: .15rem;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: .85rem .95rem;
    font-size: .88rem;
    animation: cmFadeUp 220ms ease both;
}

.cm-login-alert strong {
    font-weight: 950;
}

.cm-login-alert span {
    font-weight: 740;
}

.cm-login-alert.is-success {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.cm-login-alert.is-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.cm-map-panel .panel-header {
    align-items: flex-start;
}

.cm-map-filter {
    position: relative;
    overflow: hidden;
}

.cm-map-filter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, .08), transparent 42%);
    pointer-events: none;
}

.cm-map-filter > * {
    position: relative;
    z-index: 1;
}

.cm-filter-grid {
    display: grid;
    grid-template-columns: 280px 220px 220px auto;
    gap: .8rem;
    align-items: end;
}

.cm-input-shell {
    position: relative;
}

.cm-input-shell > i,
.cm-input-shell > svg {
    position: absolute;
    left: .85rem;
    top: 50%;
    z-index: 2;
    width: 1rem;
    height: 1rem;
    color: #5a7595;
    transform: translateY(-50%);
    pointer-events: none;
}

.cm-input-shell .form-input,
.cm-input-shell .form-select {
    padding-left: 2.45rem;
}

.cm-input-shell:focus-within > i,
.cm-input-shell:focus-within > svg {
    color: var(--cm-primary);
}

.cm-filter-actions {
    display: flex;
    gap: .55rem;
}

.cm-filter-actions .btn-primary,
.cm-filter-actions .btn-secondary {
    min-height: 2.7rem;
    white-space: nowrap;
}

.cm-map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.cm-map-legend {
    display: flex;
    max-width: 680px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.cm-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    max-width: 150px;
    border: 1px solid #d6e6f5;
    border-radius: 999px;
    background: #ffffff;
    color: #315475;
    padding: .38rem .55rem;
    font-size: .72rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 79, 134, .07);
}

.cm-map-legend i {
    width: .62rem;
    height: .62rem;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(15, 23, 42, .08);
}

.cm-map-stage {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--cm-line-soft);
    background: #dceaf7;
}

.cm-map-floating-search {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 460;
    display: flex;
    width: min(420px, calc(100% - 2rem));
    gap: .5rem;
    align-items: center;
}

.cm-map-floating-search .cm-input-shell {
    flex: 1;
}

.cm-map-floating-search .form-input,
.cm-map-floating-search .icon-btn {
    border-color: rgba(185, 213, 238, .95);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 30px rgba(7, 27, 52, .14);
    backdrop-filter: blur(10px);
}

.cm-map-info-panel {
    position: absolute;
    right: 1rem;
    top: 1rem;
    bottom: 1rem;
    z-index: 455;
    width: min(360px, calc(100% - 2rem));
    overflow: auto;
    border: 1px solid rgba(207, 224, 242, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 55px rgba(7, 27, 52, .16);
    backdrop-filter: blur(12px);
}

.cm-map-info-panel::-webkit-scrollbar {
    width: .55rem;
}

.cm-map-info-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b9d5ee;
}

.cm-map-helper {
    border-bottom: 1px solid #e3eef8;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), transparent 46%),
        #ffffff;
    padding: 1rem;
}

.cm-map-helper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.cm-map-helper-head span {
    color: var(--cm-primary);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-map-helper-head .btn-secondary {
    min-height: 2.1rem;
    padding: .38rem .55rem;
    font-size: .72rem;
}

.cm-map-helper-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .55rem;
    margin-top: .75rem;
}

.cm-map-helper-form .btn-primary {
    min-height: 2.7rem;
}

.cm-map-helper-examples {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .65rem;
}

.cm-map-helper-examples button {
    border: 1px solid #d6e6f5;
    border-radius: 999px;
    background: rgba(248, 251, 255, .92);
    color: #315475;
    padding: .32rem .55rem;
    font-size: .68rem;
    font-weight: 850;
}

.cm-map-helper-examples button:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    transform: translateY(-1px);
}

.cm-map-helper-result {
    display: grid;
    gap: .65rem;
    margin-top: .8rem;
}

.cm-map-helper-empty,
.cm-map-helper-loading {
    border: 1px dashed #cfe0f2;
    border-radius: 14px;
    background: rgba(248, 251, 255, .78);
    color: var(--cm-muted);
    padding: .8rem;
    font-size: .8rem;
    font-weight: 780;
}

.cm-map-helper-loading {
    border-style: solid;
    color: var(--cm-primary);
}

.cm-helper-summary {
    display: grid;
    gap: .2rem;
    border: 1px solid #99f6e4;
    border-radius: 14px;
    background: #f0fdfa;
    padding: .78rem;
}

.cm-helper-summary span {
    color: #0f766e;
    font-size: .66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-helper-summary strong {
    color: var(--cm-text);
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.25;
}

.cm-helper-summary small {
    color: var(--cm-muted);
    font-size: .72rem;
    font-weight: 800;
}

.cm-helper-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .55rem;
}

.cm-helper-mini-stats div {
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    padding: .48rem .45rem;
}

.cm-helper-mini-stats span {
    display: block;
    color: #486884;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: 0;
}

.cm-helper-mini-stats strong {
    display: block;
    margin-top: .12rem;
    color: #001d3d;
    font-size: .98rem;
    font-weight: 950;
}

.cm-helper-customer-list {
    display: grid;
    gap: .5rem;
    max-height: 280px;
    overflow: auto;
    padding-right: .15rem;
}

.cm-helper-customer-card {
    display: grid;
    gap: .25rem;
    width: 100%;
    border: 1px solid #d6e6f5;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    padding: .72rem;
    text-align: left;
}

.cm-helper-customer-card:hover {
    border-color: #99f6e4;
    background: #f8fffd;
    box-shadow: 0 12px 26px rgba(15, 118, 110, .1);
    transform: translateY(-1px);
}

.cm-helper-customer-card strong {
    color: var(--cm-text);
    font-size: .88rem;
    font-weight: 950;
}

.cm-helper-customer-card small {
    color: var(--cm-muted);
    font-size: .72rem;
    font-weight: 800;
}

.cm-helper-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .2rem;
}

.cm-helper-badges span {
    border-radius: 999px;
    background: #eef6fd;
    color: #315475;
    padding: .22rem .42rem;
    font-size: .66rem;
    font-weight: 850;
}

.cm-helper-details {
    display: grid;
    gap: .35rem;
    margin-top: .35rem;
    border-top: 1px dashed #d6e6f5;
    padding-top: .45rem;
}

.cm-helper-details div {
    display: grid;
    gap: .08rem;
}

.cm-helper-details span {
    color: #64748b;
    font-size: .62rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-helper-details strong {
    color: #183454;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.35;
}

.cm-map-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e3eef8;
    padding: 1rem;
}

.cm-map-info-head span {
    color: var(--cm-primary);
    font-size: .68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cm-map-info-head h3 {
    margin-top: .25rem;
    color: var(--cm-text);
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1.15;
}

.cm-map-supplier-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .85rem 1rem 0;
}

.cm-map-supplier-chips span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #d8e8f6;
    border-radius: 999px;
    background: #f8fbff;
    color: #315475;
    padding: .32rem .55rem;
    font-size: .72rem;
    font-weight: 900;
}

.cm-map-supplier-chips i {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
}

.cm-map-info-grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: .65rem .75rem;
    padding: 1rem;
    font-size: .82rem;
}

.cm-map-info-grid dt {
    color: var(--cm-muted);
    font-weight: 900;
}

.cm-map-info-grid dd {
    min-width: 0;
    color: var(--cm-text);
    font-weight: 780;
    overflow-wrap: anywhere;
}

.cm-map-history {
    border-top: 1px solid #e3eef8;
    padding: 1rem;
}

.cm-map-history p {
    color: var(--cm-text);
    font-size: .83rem;
    font-weight: 950;
}

.cm-map-history ul {
    display: grid;
    gap: .45rem;
    margin-top: .6rem;
}

.cm-map-history li {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    border-radius: 10px;
    background: #f3f9ff;
    padding: .55rem .65rem;
    color: var(--cm-muted);
    font-size: .78rem;
    font-weight: 780;
}

.cm-map-history strong {
    color: var(--cm-text);
}

.cm-map-empty {
    display: grid;
    gap: .25rem;
    padding: 1rem;
}

.cm-map-empty strong {
    color: var(--cm-text);
    font-weight: 950;
}

.cm-map-empty span {
    color: var(--cm-muted);
    font-size: .84rem;
    font-weight: 760;
}

.cm-map-notice {
    margin: 1rem 1rem 0;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: #f0fdfa;
    color: #0f766e;
    padding: .7rem .8rem;
    font-size: .82rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .12);
    animation: cmFadeUp 180ms ease both;
}

.btn-primary.is-loading,
.btn-secondary.is-loading {
    opacity: .72;
    pointer-events: none;
}

.is-submitting {
    cursor: progress;
}

.cm-toast-stack {
    position: fixed;
    right: 1.25rem;
    top: 5rem;
    z-index: 120;
    display: grid;
    width: min(420px, calc(100vw - 2rem));
    gap: .75rem;
    pointer-events: none;
}

.cm-toast {
    border: 1px solid transparent;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(7, 27, 52, .16);
    padding: .9rem 1rem;
    animation: cmToastIn 180ms ease both;
}

.cm-toast strong,
.cm-toast span {
    display: block;
}

.cm-toast strong {
    font-size: .86rem;
    font-weight: 950;
}

.cm-toast span {
    margin-top: .15rem;
    font-size: .84rem;
    font-weight: 760;
}

.cm-toast.is-success {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.cm-toast.is-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.cm-toast.is-hiding {
    animation: cmToastOut 180ms ease both;
}

@keyframes cmToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cmToastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-control-zoom {
    border: 0 !important;
    box-shadow: 0 12px 30px rgba(7, 27, 52, .15);
}

.leaflet-control-zoom a {
    border-color: #d6e6f5 !important;
    background: rgba(255, 255, 255, .96) !important;
}

.map-flag-marker:hover .map-flag {
    transform: translateY(-2px) scale(1.04);
}

.map-flag-marker:hover .map-flag-label {
    border-color: #0f766e;
    box-shadow: 0 14px 30px rgba(15, 118, 110, .2);
}

.cm-analytics-card,
.panel,
.filter-panel,
.metric-card {
    will-change: transform;
}

.cm-analytics-card:hover,
.panel:hover {
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .cm-login-shell {
        grid-template-columns: 1fr;
    }

    .cm-login-hero {
        display: none;
    }

    .cm-login-mobile-brand {
        display: flex;
        width: min(100%, 460px);
    }

    .cm-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cm-filter-actions {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .cm-login-page {
        background:
            radial-gradient(circle at 18% 4%, rgba(15, 118, 110, .14), transparent 34%),
            linear-gradient(180deg, #f4f9fd 0%, #eef6fd 100%);
    }

    .cm-login-shell {
        display: block;
        width: 100%;
    }

    .cm-login-form-wrap {
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-start;
        align-items: center;
        padding: clamp(1rem, 4vw, 1.35rem);
        padding-top: clamp(1.1rem, 7vh, 2.6rem);
    }

    .cm-login-mobile-brand {
        width: min(100%, 430px);
        margin: 0 auto 1rem;
        align-items: center;
        gap: .75rem;
    }

    .cm-login-mobile-brand .cm-login-logo {
        width: 3rem;
        height: 3rem;
        flex: 0 0 auto;
        border-radius: 15px;
    }

    .cm-login-mobile-brand p {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .cm-login-mobile-brand span {
        font-size: .82rem;
    }

    .cm-login-card {
        width: min(100%, 430px);
        border-radius: 20px;
        box-shadow: 0 18px 46px rgba(17, 90, 150, .14);
    }

    .cm-login-card-head,
    .cm-login-form {
        padding: 1.15rem;
    }

    .cm-login-card-head h2 {
        font-size: clamp(2.65rem, 14vw, 3.65rem);
        line-height: .95;
    }

    .cm-login-card-head p {
        max-width: 16rem;
        font-size: .98rem;
        line-height: 1.45;
    }

    .cm-login-form {
        gap: .9rem;
    }

    .cm-login-form .form-input {
        min-height: 3.25rem;
        border-radius: 18px;
        font-size: 1rem;
    }

    .cm-login-form .btn-primary {
        min-height: 3.35rem;
        border-radius: 18px;
        font-size: 1rem;
    }

    .cm-map-actions,
    .cm-map-legend {
        justify-content: flex-start;
    }

    .cm-filter-grid {
        grid-template-columns: 1fr;
    }

    .cm-filter-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .cm-map-floating-search {
        position: relative;
        left: auto;
        top: auto;
        z-index: 1;
        width: auto;
        padding: .75rem;
        background: #eef6fd;
    }

    .cm-map-info-panel {
        position: relative;
        inset: auto;
        width: auto;
        max-height: none;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cm-map-info-grid {
        grid-template-columns: 86px 1fr;
    }

    .cm-map-helper-form {
        grid-template-columns: 1fr;
    }

    .cm-map-helper-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
