/**
 * Categorias CFOP 5.000, 6.000 e 7.000.
 */

.cfop-category-page {
    background: #f5f8fc;
    color: #10233f;
}

.cfop-category-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 60px;
}

/* Breadcrumb */

.cfop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 24px;
    color: #68768a;
    font-size: 14px;
}

.cfop-breadcrumb a {
    color: #0868d8;
    text-decoration: none;
}

.cfop-breadcrumb a:hover,
.cfop-breadcrumb a:focus {
    text-decoration: underline;
}

/* Cabeçalho */

.cfop-category-header {
    margin-bottom: 22px;
}

.cfop-category-header h1 {
    margin: 0 0 14px;
    color: #08213f;
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cfop-category-header p {
    max-width: 850px;
    margin: 0;
    color: #26364b;
    font-size: 17px;
    line-height: 1.65;
}

/* Aviso fiscal */

.cfop-category-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    border: 1px solid #b8d8fb;
    border-radius: 8px;
    background: #eef7ff;
    padding: 14px 18px;
}

.cfop-category-alert-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1598e7;
    color: #fff;
    font-weight: 700;
}

.cfop-category-alert p {
    margin: 0;
    line-height: 1.55;
}

/* Buscador */

.cfop-search-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(360px, 1.45fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: 0 3px 12px rgb(20 48 80 / 5%);
}

.cfop-search-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cfop-search-heading label {
    margin: 0;
    color: #10233f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.cfop-search-heading span {
    color: #66768a;
    font-size: 13px;
    line-height: 1.45;
}

.cfop-search-box {
    display: flex;
    width: 100%;
}

.cfop-search-box input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 7px 0 0 7px;
    background: #fff;
    padding: 10px 14px;
    color: #1e2d40;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.cfop-search-box input:hover {
    border-color: #b6c4d3;
}

.cfop-search-box input:focus {
    position: relative;
    z-index: 1;
    border-color: #128be1;
    outline: none;
    box-shadow: 0 0 0 2px rgb(18 139 225 / 12%);
}

.cfop-search-box input::placeholder {
    color: #8a96a6;
    opacity: 1;
}

.cfop-search-box input::-webkit-search-decoration,
.cfop-search-box input::-webkit-search-cancel-button,
.cfop-search-box input::-webkit-search-results-button,
.cfop-search-box input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.cfop-search-button {
    display: inline-flex;
    width: 52px;
    min-height: 46px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid #0868d8;
    border-radius: 0 7px 7px 0;
    background: #0868d8;
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.cfop-search-button:hover {
    border-color: #064f9f;
    background: #064f9f;
}

.cfop-search-button:focus {
    border-color: #064f9f;
    background: #064f9f;
    outline: none;
    box-shadow: 0 0 0 2px rgb(18 139 225 / 20%);
}

/* Tabela */

.cfop-table-panel {
    overflow: hidden;
    border: 1px solid #d8e0e9;
    border-radius: 8px;
    background: #fff;
}

.cfop-table-scroll {
    overflow-x: auto;
}

.cfop-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
}

.cfop-table thead {
    background: #073b75;
    color: #fff;
}

.cfop-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
}

.cfop-column-code {
    width: 120px;
}

.cfop-column-access {
    width: 55px;
    padding-right: 12px !important;
    padding-left: 12px !important;
    border-left: 1px solid rgb(255 255 255 / 14%);
    text-align: center !important;
}

.cfop-table td {
    border-bottom: 1px solid #e5eaf0;
    padding: 12px 18px;
    vertical-align: middle;
}

.cfop-search-row {
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.cfop-search-row:hover {
    background: #eef6ff;
}

.cfop-search-row:focus {
    outline: 3px solid rgb(18 139 225 / 25%);
    outline-offset: -3px;
    background: #eef6ff;
}

.cfop-search-row[hidden] {
    display: none;
}

.cfop-table a {
    text-decoration: none;
}

.cfop-code-cell {
    font-weight: 700;
}

.cfop-code-cell a {
    color: #075fbd;
    font-weight: 700;
    text-decoration: none;
}

.cfop-code-cell a:hover,
.cfop-code-cell a:focus,
.cfop-search-row:hover .cfop-code-cell a {
    color: #043f82;
    text-decoration: none;
}

.cfop-description-cell a {
    display: block;
    color: #1e2d40;
}

.cfop-description-cell a:hover,
.cfop-description-cell a:focus {
    color: #0868da;
}

.cfop-access-cell {
    width: 55px;
    padding-right: 12px !important;
    padding-left: 12px !important;
    border-left: 1px solid #edf1f5;
    text-align: center;
}

.cfop-access-cell a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0868da;
    font-size: 24px;
    line-height: 1;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.cfop-access-cell a:hover,
.cfop-access-cell a:focus {
    background: #e8f3ff;
    color: #064f9f;
}

/* Estados vazios e rodapé */

.cfop-no-posts,
.cfop-search-empty {
    padding: 32px 18px;
    text-align: center;
    color: #65758a;
}

.cfop-search-empty[hidden] {
    display: none;
}

.cfop-table-footer {
    border-top: 1px solid #e8edf3;
    background: #fafbfd;
    padding: 15px 18px;
    color: #5b697c;
    font-size: 14px;
}

/* Tablet */

@media (max-width: 768px) {
    .cfop-category-container {
        width: min(100% - 28px, 1180px);
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .cfop-category-header h1 {
        font-size: 30px;
    }

    .cfop-category-header p {
        font-size: 16px;
    }

    .cfop-category-alert {
        padding: 14px 16px;
    }

    .cfop-search-panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .cfop-table {
        min-width: 560px;
    }

    .cfop-table th,
    .cfop-table td {
        padding: 12px 14px;
    }
}

/* Celular */

@media (max-width: 520px) {
    .cfop-category-container {
        width: min(100% - 20px, 1180px);
    }

    .cfop-breadcrumb {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .cfop-category-header {
        margin-bottom: 20px;
    }

    .cfop-category-header h1 {
        font-size: 27px;
    }

    .cfop-category-alert {
        gap: 10px;
        margin-bottom: 20px;
        padding: 13px 14px;
    }

    .cfop-category-alert p {
        font-size: 14px;
    }

    .cfop-search-panel {
        padding: 15px;
    }

    .cfop-search-heading span {
        font-size: 12px;
    }

    .cfop-search-box input {
        min-height: 44px;
        font-size: 14px;
    }

    .cfop-search-button {
        width: 48px;
        min-height: 44px;
        flex-basis: 48px;
    }

    .cfop-table {
        min-width: 500px;
    }

    .cfop-column-code {
        width: 95px;
    }

    .cfop-table th,
    .cfop-table td {
        padding: 11px 12px;
        font-size: 14px;
    }

    .cfop-table-footer {
        padding: 13px 14px;
    }
}