@import "fonts.css";
@import "theme.css";

html, body {
    height: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a.text-muted:hover {
    color: var(--bs-dark)!important;
}

.home-map-page {
    min-height: calc(100vh - 30px);
    background: #f3f4f6;
    color: #1f2937;
}

.home-topbar {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.home-logo {
    margin-right: 8px;
}

.home-logo img {
    height: 28px;
}

.home-brand {
    font-size: 20px;
    font-weight: 600;
    padding-right: 16px;
}

.home-nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 20px;
}

.home-layout {
    height: calc(100vh - 60px);
    min-height: 520px;
    display: flex;
}

.home-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding-bottom: 20px;
}

.home-sidebar {
    background-color: #ffffff;
    padding: 20px 24px;
    min-width: 420px;
    height: 100%;
    width: 28%;
	z-index: 2000;
    position: relative;
}
.home-sidebar-body {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}
.home-layout.sidebar-collapsed .home-sidebar {
    width: 0;
    transform: translateX(-100%);
    display: none;
}
.home-layout.sidebar-collapsed .btn-toogle-sidebar svg {
    transform: rotate(180deg);
}
.home-layout.sidebar-collapsed .home-content {
    width: 100%;
}
.home-map {
    width: 100%;
    height: 100%;
}

.home-map-info {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.home-panel-kicker {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
}

.home-map-info h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.home-map-info p {
    margin: 0 0 18px;
    color: #4b5563;
}

.home-map-back {
    display: none;
    padding: 8px 12px;
    background: #111827;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.home-map-legend {
    display: none;
    position: absolute;
    right: 24px;
    bottom: 48px;
    z-index: 1000;
    width: 300px;
    max-height: 320px;
    padding: 14px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.home-map-legend-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
}

.home-map-legend-item {
    display: grid;
    grid-template-columns: 18px 56px 1fr;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.25;
    color: #1f2937;
    cursor: pointer;
}

.home-map-legend-item input {
    margin: 0;
}

.home-map-legend-item img {
    width: 50px;
    max-height: 26px;
    object-fit: contain;
}

.home-map-legend-item:not(.home-map-legend-item-line) img {
    width: 26px;
    height: 26px;
}

.completion-legend {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1000;
    color: #225082;
}

.completion-legend summary {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #2964A0;
    border-radius: 4px;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
}

.completion-legend summary::-webkit-details-marker {
    display: none;
}

.completion-legend-title {
    font-family: "Nunito", sans-serif;
    letter-spacing: -0.5px;
}

.completion-legend-arrow {
    margin-left: 2px;
}

.completion-legend .arrow-closed,
.completion-legend:not([open]) .arrow-open {
    display: none;
}

.completion-legend:not([open]) .arrow-closed {
    display: block;
}

.completion-legend-items {
    width: 218px;
    margin-top: 5px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    color: #343a40;
}

.completion-legend-items div {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 44px;
    color: var(--content-secondary, #3E3E3D);
    font-family: var(--text-M-regular-font-family, Arial);
    font-size: var(--text-M-regular-font-size, 14px);
    font-style: normal;
    font-weight: var(--text-M-regular-font-weight, 400);
    line-height: var(--text-M-regular-line-height, 20px);
    letter-spacing: var(--text-M-regular-letter-spacing, 0);
}

.completion-legend-items img {
    width: 20px;
    height: 20px;
}

.completion-legend-items .completion-legend-eye {
    opacity: .45;
}

.postes-legend .completion-legend-items {
    width: 465px;
}

.postes-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.postes-legend-toggle {
    position: relative;
    display: flex;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.postes-legend-toggle input {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.postes-legend-item .postes-legend-eye {
    opacity: .35;
}

.postes-legend-toggle input:checked + .postes-legend-eye {
    opacity: 1;
}

.postes-legend-item .postes-legend-symbol {
    width: 24px;
    height: 24px;
}

.postes-legend-item:first-child .postes-legend-symbol {
    width: 22px;
    height: 22px;
    margin: 1px;
}

.postes-legend-item small {
    padding: 3px 14px;
    background: #d7e7f8;
    border-radius: 5px;
    color: var(--content-decorative, #201F1F);
    font-family: var(--text-M-regular-font-family, Arial);
    font-size: var(--text-M-regular-font-size, 14px);
    font-style: normal;
    font-weight: var(--text-M-regular-font-weight, 400);
    line-height: var(--text-M-regular-line-height, 20px);
    letter-spacing: var(--text-M-regular-letter-spacing, 0);
}

.home-line-pattern-icon {
    border: 0;
    background: transparent;
    overflow: visible;
    pointer-events: none;
}

.home-line-pattern-strip {
    display: block;
    height: 13px;
    background-repeat: repeat-x;
    background-size: 50px 13px;
    background-position: left center;
    transform-origin: center;
}

.home-poste-icon {
    background: transparent;
    border: 0;
    overflow: visible;
    pointer-events: none;
}

.home-poste-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-poste-icon span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: #111827;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px #fff, 0 -1px 2px #fff, 1px 0 2px #fff, -1px 0 2px #fff;
}

.home-poste-tooltip-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-poste-tooltip {
    min-width: 180px;
    padding: 10px 12px;
    background: #ffffff;
    /*border: 1px solid #d1d5db;*/
    border-radius: 6px;
    /*box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);*/
    color: #1f2937;
    font-size: 12px;
    line-height: 1.35;
}

.home-poste-tooltip-title {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.home-poste-tooltip-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    padding: 2px 0;
}

.home-poste-tooltip-label {
    color: #6b7280;
    font-weight: 600;
}

.home-poste-tooltip-value {
    color: #111827;
    overflow-wrap: anywhere;
}

.home-footer {
    position: absolute;
	height: 20px;
	padding: 0 8px;
    bottom: 0;
    left: 0;
    right: 0;
	z-index: 1000;
    background: #ffffff;
	width: 100%;
}

.home-footer a {
    font-size: 10px;
    text-decoration: none;
    color: var(--bs-dark)
}

.home-footer a:hover {
    text-decoration: underline;
}

.map-region-label {
    line-height: 14px;
    font-size: 13px;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    font-family: Nunito, Arial, sans-serif;
}
.map-region-label.small-name {
    font-size: 0.9em;
    line-height: 0.9em;
}

.map-region-tooltip {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.1;
    border-radius: 4px;
    box-shadow: none;
}
.btn-collapse-department-posts:not(.collapsed) {
    background-color: transparent;
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.progress-legend-square {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid var(--bs-primary);
    content: '';
}
.region-card, .post-card {
    border: 1px solid var(--bs-primary);
    background-color: var(--bs-light);
}
.btn-toogle-sidebar {
    position: absolute;
    top: calc(50% - 24px);
    bottom: 0;
    left: 0;
    z-index: 3000;
    height: 40px;
    width: 40px;
    padding: 0;
}
.btn-nav-link {
    text-decoration: none!important;
    color: var(--bs-dark)!important;
}
.btn-nav-link:hover {
    background-color: var(--bs-primary);
}
.btn-nav-link.active {
    background-color: var(--bs-primary-light)!important;
    color: var(--bs-primary)!important;
}
@media (max-width: 768px) {
    .home-layout {
        height: auto;
        min-height: 0;
    }

    .home-map-wrap {
        height: 60vh;
        min-height: 360px;
    }

    .home-map-info {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: 320px;
        padding: 16px;
    }

    .home-map-legend {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: 180px;
    }
}
