/* ========================================
   PESSOAS E EMPRESAS PAGE
   ======================================== */

/* === PAGE HEADER === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    background: #f3f4f6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-header .menu-toggle:hover {
    background: #e5e7eb;
}

.page-header .menu-toggle i {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    width: 18px;
    height: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #0068ab;
}

.breadcrumb-item.active {
    color: #111827;
}

.breadcrumb-item i {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.breadcrumb-item i svg {
    width: 18px !important;
    height: 18px !important;
}

.breadcrumb-separator {
    width: 16px !important;
    height: 16px !important;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
}

.breadcrumb-separator svg {
    width: 16px !important;
    height: 16px !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: #e5e7eb;
    border-color: transparent;
}

.icon-button i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* === PAGE CONTENT === */
.page-content {
    padding: 24px;
    background: #f9fafb;
    height: calc(100vh - 126px);
    overflow-y: auto;
    overflow-x: hidden;
}

.content-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* === CONTENT TABS === */
.content-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.content-tab {
    display: flex;
    height: 62px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid transparent;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.content-tab:hover {
    color: #0068ab;
}

.content-tab.active {
    color: #0068ab;
    background: rgba(6, 73, 116, 0.1);
    border-bottom-color: #0068ab;
}

/* === PAGE TITLE BAR === */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 24px;
    color: #141f1f;
    margin: 0;
}

/* === SEARCH AND ACTIONS BAR === */
.search-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.content-wrapper .search-box {
    flex: 1;
    position: relative;
}

.content-wrapper .search-box .search-icon {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.content-wrapper .search-box .search-input {
    width: 100%;
    height: 40px;
    padding: 10px 44px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.content-wrapper .search-box .search-input:focus {
    outline: none;
    border-color: #0068ab;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

.content-wrapper .search-box .search-input::placeholder {
    color: #9ca3af;
}

.content-wrapper .search-box .clear-icon {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    cursor: pointer;
}

.btn-filter {
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    padding: 10px 20px;
    background: #0068ab;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #005a94;
}

/* === TABLE AND PAGINATION WRAPPER === */
.table-pagination-wrapper {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

/* === TABLE CONTAINER === */
.table-container {
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 0;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    background: #F7F7F8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.data-table thead th {
    height: 44px;
    padding: 0 16px;
    text-align: left;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: -0.12px;
    vertical-align: middle;
}

.th-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xs, 8px);
    flex: 1 0 0;
    align-self: stretch;
    background: transparent;
    border: none;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: -0.12px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.th-button:hover {
    color: #111827;
}

.sort-arrows {
    display: flex;
    width: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.arrow-up,
.arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.arrow-up {
    border-bottom: 5px solid rgba(0, 0, 0, 0.30);
}

.arrow-down {
    border-top: 5px solid rgba(0, 0, 0, 0.30);
}

.th-button:hover .arrow-up {
    border-bottom-color: rgba(0, 0, 0, 0.50);
}

.th-button:hover .arrow-down {
    border-top-color: rgba(0, 0, 0, 0.50);
}

/* Active sorting states */
.th-button.sort-asc .arrow-up {
    border-bottom-color: #0068ab;
}

.th-button.sort-desc .arrow-down {
    border-top-color: #0068ab;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
    height: 56px;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody td {
    padding: 0 16px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    line-height: 20px;
    letter-spacing: -0.13px;
    height: 56px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #0068ab;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.13px;
}

.action-link:hover {
    color: #005a94;
}

.action-link i {
    width: 18px;
    height: 18px;
    color: #0068ab;
}

/* === PAGINATION === */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    margin-top: 0;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.entries-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
}

.entries-dropdown:hover {
    background: #f3f4f6;
    border-color: transparent;
}

.entries-dropdown i {
    width: 18px;
    height: 18px;
    color: #111827;
}

.pagination-text {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: -0.13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #f3f4f6;
    border-color: transparent;
}

.pagination-btn.active {
    background: #0068ab;
    border-color: #0068ab;
    color: #ffffff;
    font-weight: 500;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.pagination-btn i {
    width: 18px;
    height: 18px;
}

.pagination-dots {
    padding: 0 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    color: #6b7280;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .search-actions-bar {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }

    .pagination-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
