html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.eci-fb-standalone-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #ecf0f1;
    color: #2c3e50;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.eci-fb-shell {
    min-height: 100vh;
    padding: 14px 16px 20px;
}

.eci-fb-shell__inner {
    width: 100%;
    max-width: 1840px;
    margin: 0 auto;
}

.eci-fb-shell__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #2c3e50;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.eci-fb-shell__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.eci-fb-shell__subtitle {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.eci-fb {
    width: 100%;
}

.eci-fb__panel {
    width: 100%;
    min-height: 280px;
    padding: 14px;
    border: 3px solid #3498db;
    border-radius: 8px;
    background: #ecf0f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.eci-fb__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.eci-fb__header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.eci-fb__kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c3e50;
}

.eci-fb__title {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
    color: #2c3e50;
}

.eci-fb__intro {
    max-width: 680px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5d6d7e;
}

.eci-fb__summary-card {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #d5dde4;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
}

.eci-fb__summary-label,
.eci-fb__summary-foot {
    font-size: 12px;
    color: #5d6d7e;
}

.eci-fb__form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.eci-fb__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eci-fb__field--full,
.eci-fb__actions {
    grid-column: 1 / -1;
}

.eci-fb__field span {
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
}

.eci-fb__field input,
.eci-fb__field select {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 13px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.eci-fb__field input:focus,
.eci-fb__field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.eci-fb__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}

.eci-fb__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #3498db;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.eci-fb__button:hover {
    background: #2f89c4;
}

.eci-fb__button--ghost {
    border: 1px solid #d5dde4;
    background: #ffffff;
    color: #2c3e50;
}

.eci-fb__button--ghost:hover {
    background: #f8fafb;
}

.eci-fb__button--link {
    border: 1px solid transparent;
    background: transparent;
    color: #2c3e50;
    text-decoration: underline;
}

.eci-fb__button--link:hover {
    background: transparent;
    color: #1f5f8d;
}

.eci-fb__results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eci-fb__results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.eci-fb__results-title {
    margin: 0 0 4px;
    font-size: 17px;
    color: #2c3e50;
}

.eci-fb__results-text,
.eci-fb__meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #5d6d7e;
}

.eci-fb__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    text-align: right;
}

.eci-fb__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eci-fb__chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #d5dde4;
    border-radius: 999px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 700;
}

.eci-fb__message {
    padding: 10px 12px;
    border: 1px solid #cfe2f3;
    border-radius: 6px;
    background: #eaf4fb;
    color: #2c3e50;
}

.eci-fb__message--error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.eci-fb__table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #d5dde4;
    border-radius: 6px;
    background: #ffffff;
}

.eci-fb__table {
    width: 100%;
    min-width: 1220px;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #2c3e50;
}

.eci-fb__table th,
.eci-fb__table td {
    padding: 7px 8px;
    border-bottom: 1px solid #e4edf5;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.eci-fb__table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #2c3e50;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eci-fb__table tbody tr:nth-child(even) {
    background: #f4f4f9;
}

.eci-fb__table tbody tr:hover {
    background: #eef5fb;
}

.eci-fb__table a {
    color: #1f5f8d;
    font-weight: 700;
    text-decoration: none;
}

.eci-fb__table a:hover {
    text-decoration: underline;
}

.eci-fb__cell--ticket {
    min-width: 120px;
    white-space: nowrap;
}

.eci-fb__cell--date {
    min-width: 92px;
    white-space: nowrap;
}

.eci-fb__description {
    min-width: 340px;
    max-width: 520px;
    line-height: 1.45;
}

.eci-fb__empty {
    padding: 14px 12px;
    text-align: center;
    color: #5d6d7e;
}

.eci-fb__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eci-fb__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #d5dde4;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.eci-fb__page-link:hover {
    background: #f8fafb;
}

.eci-fb__page-link--active,
.eci-fb__page-link--active:hover {
    border-color: #3498db;
    background: #3498db;
    color: #ffffff;
}

@media (min-width: 1600px) {
    .eci-fb__form {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1240px) {
    .eci-fb-shell {
        padding: 10px 12px 18px;
    }

    .eci-fb__form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .eci-fb__header,
    .eci-fb__results-head {
        flex-direction: column;
    }

    .eci-fb__summary-card,
    .eci-fb__meta {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .eci-fb__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .eci-fb-shell {
        padding: 8px;
    }

    .eci-fb-shell__bar,
    .eci-fb__panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .eci-fb__form {
        grid-template-columns: 1fr;
    }

    .eci-fb__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .eci-fb__button,
    .eci-fb__page-link {
        width: 100%;
    }
}
