.g41k-reports {
    width: 100%;
    color: #172b4d;
}

.g41k-reports-header {
    margin: 0 0 18px;
}

.g41k-reports-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.g41k-reports-header p {
    margin: 0;
    color: #44546f;
}

.g41k-reports-message {
    min-height: 22px;
    margin: 0 0 12px;
    color: #067647;
}

.g41k-reports-message.is-error {
    color: #b42318;
}

.g41k-reports-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.g41k-report-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(9 30 66 / 8%);
}

.g41k-report-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.g41k-report-card p {
    margin: 0 0 10px;
    color: #44546f;
}

.g41k-report-code {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0c2d6b;
    font-size: 12px;
    font-weight: 700;
}

.g41k-report-panel {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #e5e9f0;
}

.g41k-report-panel.is-open {
    display: block;
}

.g41k-report-loading {
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f7f9fc;
    color: #44546f;
}

.g41k-pbd-form {
    display: grid;
    gap: 12px;
}

.g41k-pbd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) repeat(2, minmax(150px, auto)) auto;
    align-items: end;
    gap: 10px;
}

.g41k-pbd-field label {
    display: block;
    margin: 0 0 5px;
    color: #0c2d6b;
    font-size: 13px;
    font-weight: 700;
}

.g41k-pbd-field input,
.g41k-pbd-field select {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #97a0af;
    border-radius: 4px;
    background: #fff;
    color: #172b4d;
    font: inherit;
}

.g41k-pbd-option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #97a0af;
    border-radius: 4px;
    background: #fff;
    color: #0c2d6b;
    font-weight: 700;
}

.g41k-pbd-option input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.g41k-pbd-units {
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f7f9fc;
}

.g41k-pbd-units-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.g41k-pbd-units-head strong {
    margin-right: 4px;
    color: #0c2d6b;
}

.g41k-pbd-units-head button,
.g41k-pbd-units-head select {
    height: 32px;
    border: 1px solid #97a0af;
    border-radius: 4px;
    background: #fff;
    color: #172b4d;
    font: inherit;
}

.g41k-pbd-units-head button {
    padding: 0 12px;
    cursor: pointer;
}

.g41k-pbd-units-head select {
    min-width: 260px;
    padding: 0 10px;
}

.g41k-pbd-unit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.g41k-pbd-unit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #97a0af;
    border-radius: 4px;
    background: #fff;
    white-space: nowrap;
}

.g41k-pbd-unit input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.g41k-pbd-result {
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
}

.g41k-pbd-result-title {
    color: #067647;
    font-weight: 700;
}

.g41k-pbd-warning-title,
.g41k-pbd-warning-more {
    margin-top: 8px;
    color: #b42318;
    font-weight: 700;
}

.g41k-pbd-warning-list {
    max-height: 220px;
    overflow: auto;
    margin: 8px 0 0;
    padding-left: 22px;
    color: #b42318;
}

.g41k-report-button {
    min-width: 90px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #2f5597;
    border-radius: 4px;
    background: #2f5597;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.g41k-report-button:hover {
    background: #24477f;
}

.g41k-report-button:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 1250px) {
    .g41k-pbd-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .g41k-report-card {
        display: block;
    }

    .g41k-report-button {
        width: 100%;
        margin-top: 12px;
    }

    .g41k-pbd-grid {
        grid-template-columns: 1fr;
    }

    .g41k-pbd-units-head {
        align-items: stretch;
    }

    .g41k-pbd-units-head button,
    .g41k-pbd-units-head select,
    .g41k-pbd-unit {
        width: 100%;
    }

    .g41k-pbd-unit {
        justify-content: space-between;
        white-space: normal;
    }


}
/* ==========================================================================
   Локальне вирівнювання кнопки "Звіти" у шапці сайту
   ========================================================================== */

/* Переконуємося, що контейнер модулів вибудовує елементи чітко по центру */
.center-top-modules_custom2 {
    display: flex !important;
    align-items: center !important; 
    justify-content: flex-end; /* Або flex-start / center, залежно від дизайну шапки */
    /*gap: 15px; /* Забезпечує однакову відстань між блоками модулів кнопок */
}

/* Примусове вирівнювання для модуля "Звіти" */
.center-top-modules_custom2 .mod-custom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important; /* Скидаємо можливі сторонні зсуви */
    padding: 0 !important;
    min-width: 86px;
}

/* Корекція внутрішньої структури кнопки */
.center-top-modules_custom2 .login {
    margin: 0 !important; /* Замість інлайнового margin: 8px, який міг давати зсув */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.center-top-modules_custom2 .lflex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* Вирівнювання іконки-щита */
.center-top-modules_custom2 .limg.img_icons_height_custom {
    display: block !important;
    margin: 0 auto 4px auto !important; /* Центрування зображення щита */
    max-height: 32px; /* За потреби підкоригуйте під точну висоту сусідніх іконок */
    width: auto !important;
}

/* Вирівнювання тексту під іконкою */
.center-top-modules_custom2 .lname {
    display: block !important;
    font-size: 13px !important; /* Синхронізація шрифту з g41k-settings */
    line-height: 1.2 !important;
    white-space: nowrap !important; /* Запобігає переносу тексту "Мій профіль" чи "Налаштування" */
}


}