.dispatcher-widget {
    box-sizing: content-box !important;
    text-align: left;
    position: fixed;
    top: 90px;
    right: -340px;
    width: 260px;
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #070e2e;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 10000;
    transition: right 0.4s ease-in-out;
}

/* Появляется при клике на иконку поста диспетчера */
.dispatcher-widget.dispatcher-active {
    right: 20px;
}

.dispatcher-widget::before {
    content: "PC|MP";
    position: absolute;
    top: 53%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60px;
    font-weight: 900;
    color: #070e2e;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.dispatcher-widget .widget-section {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.dispatcher-widget .label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    font-weight: 700;
}

.dispatcher-widget .white-text {
    color: #000;
    font-weight: 700;
    font-size: 15px;
}

.dispatcher-widget .orange-text {
    color: #3458e1;
    font-weight: 700;
    font-size: 15px;
}

.dispatcher-widget::after {
    content: "POST";
    position: absolute;
    left: -31px;
    top: 30px;
    width: 30px;
    height: 80px;
    background-color: #ffffff;
    border: 1px solid #070e2e;
    border-right: none;
    border-radius: 8px 0 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    writing-mode: vertical-rl;
    text-orientation: upright;

    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 900;
    color: #070e2e;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.dp-gerb {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.dispatcher-widget #dp-name,
.dp-system-label {
    padding-right: 56px;
}

.dp-system-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #3458e1;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

#dp-occupied {
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

.dp-occupied-name {
    color: #1a7e32;
    font-weight: 800;
    font-size: 14px;
    margin-top: 2px;
}

.dp-footer {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    text-align: center;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.dispatcher-widget .widget-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 12px 0;
    position: relative;
    z-index: 2;
}

/* ===== HOVER-ПОДПИСЬ НАД ИКОНКОЙ ПОСТА ===== */
.dispatcher-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    animation: dispatcherTooltipBlink 1.1s ease-in-out infinite;
    opacity: 1 !important;
}

.dispatcher-tooltip-gerb {
    width: 20px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
    flex: 0 0 auto;
}

.dispatcher-tooltip::before {
    display: none !important;
}

@keyframes dispatcherTooltipBlink {
    0%, 100% { color: #ffffff; text-shadow: 0 0 4px rgba(255,255,255,0.8); }
    50% { color: #ffffff; text-shadow: none; }
}
