/* =========================================
   CLIENTES
========================================= */


/* =========================================
   PAGE HEADER
========================================= */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 28px;
}


.page-eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.4px;

    color: #3b82f6;
}


.page-header h1 {
    margin: 0;

    font-size: 30px;
    font-weight: 700;

    color: #1e293b;
}


.page-subtitle {
    margin: 8px 0 0;

    font-size: 14px;

    color: #64748b;
}


/* =========================================
   BOTÃO NOVO CLIENTE
========================================= */

.btn-new {
    display: inline-flex;

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

    gap: 9px;

    padding: 11px 18px;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.btn-new:hover {
    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.22);
}


.btn-new i {
    font-size: 13px;
}


/* =========================================
   TOOLBAR
========================================= */

.toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


/* =========================================
   PESQUISA
========================================= */

.search-box {
    position: relative;

    width: 100%;
    max-width: 340px;
}


.search-box i {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 14px;

    color: #94a3b8;

    pointer-events: none;
}


.search-box input {
    width: 100%;

    height: 42px;

    padding:
        0
        14px
        0
        40px;

    border: 1px solid #dbe1ea;

    border-radius: 9px;

    background: #ffffff;

    color: #334155;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.search-box input::placeholder {
    color: #94a3b8;
}


.search-box input:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, 0.10);
}


/* =========================================
   DATA CARD
========================================= */

.data-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 4px 16px
        rgba(15, 23, 42, 0.04);
}


/* =========================================
   CARD HEADER
========================================= */

.data-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid #e2e8f0;
}


.data-card-header h2 {
    margin: 0;

    font-size: 17px;
    font-weight: 650;

    color: #1e293b;
}


.data-card-header p {
    margin: 5px 0 0;

    font-size: 13px;

    color: #94a3b8;
}


/* =========================================
   TABELA
========================================= */

.table-responsive {
    width: 100%;

    overflow-x: auto;
}


#tabelaClientes {
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}


/* HEADER */

#tabelaClientes thead {
    background: #f8fafc;
}


#tabelaClientes th {
    padding: 13px 18px;

    text-align: left;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    color: #64748b;

    border-bottom: 1px solid #e2e8f0;
}


/* LINHAS */

#tabelaClientes td {
    padding: 15px 18px;

    font-size: 14px;

    color: #475569;

    border-bottom: 1px solid #f1f5f9;

    vertical-align: middle;
}


#tabelaClientes tbody tr {
    transition:
        background 0.15s ease;
}


#tabelaClientes tbody tr:hover {
    background: #f8fafc;
}


#tabelaClientes tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================
   CLIENT NAME
========================================= */

.client-name {
    display: flex;

    align-items: center;

    gap: 12px;
}


.client-name strong {
    color: #1e293b;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   AVATAR
========================================= */

.client-avatar {
    display: flex;

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

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================
   AÇÕES
========================================= */

.table-actions {
    width: 60px;

    text-align: right;
}


.btn-icon {
    display: inline-flex;

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

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.btn-icon:hover {
    background: #f1f5f9;

    color: #2563eb;
}


/* =========================================
   EMPTY STATE
========================================= */

.empty-state {
    display: flex;

    flex-direction: column;

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

    text-align: center;

    padding: 65px 25px;
}


.empty-icon {
    display: flex;

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

    width: 58px;
    height: 58px;

    margin-bottom: 18px;

    border-radius: 16px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 23px;
}


.empty-state h3 {
    margin: 0;

    font-size: 18px;
    font-weight: 650;

    color: #1e293b;
}


.empty-state p {
    margin:
        8px
        0
        20px;

    font-size: 14px;

    color: #64748b;
}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 768px) {

    .page-header {
        flex-direction: column;

        align-items: flex-start;
    }


    .page-header h1 {
        font-size: 26px;
    }


    .btn-new {
        width: 100%;
    }


    .search-box {
        max-width: none;
    }


    .data-card-header {
        padding: 18px;
    }


    .empty-state {
        padding: 50px 20px;
    }

}


@media (max-width: 480px) {

    .page-header {
        margin-bottom: 22px;
    }


    .page-header h1 {
        font-size: 24px;
    }


    .page-subtitle {
        font-size: 13px;
    }


    .toolbar {
        margin-bottom: 14px;
    }


    .search-box input {
        height: 40px;
    }

}

.client-link {
    color: #0f172a;

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition: color 0.15s ease;
}

.client-link:hover {
    color: #2563eb;
}