* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at top left,
            #e9eefb 0,
            transparent 38%
        ),
        #f5f7fb;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(15, 23, 42, .08);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-weight: 700;
}

.login-header h1 {
    margin: 0;
    font-size: 25px;
}

.login-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #64748b;
    box-shadow:
        0 0 0 3px rgba(100, 116, 139, .12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 78px;
}

.password-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.btn-primary {
    width: 100%;
    height: 46px;
    margin-top: 2px;
    border: 0;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.btn-primary:hover {
    opacity: .94;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.45;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.topbar {
    min-height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-subtitle {
    margin-left: 10px;
    color: #9ca3af;
    font-size: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.topbar-user a {
    color: #374151;
    text-decoration: none;
    font-weight: 700;
}

.page {
    width: min(1100px, calc(100% - 36px));
    margin: 36px auto;
}

.welcome-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow:
        0 8px 25px rgba(15, 23, 42, .05);
}

.welcome-card h1 {
    margin: 0 0 8px;
    font-size: 25px;
}

.welcome-card > p {
    margin: 0 0 26px;
    color: #6b7280;
}

.user-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.user-grid > div {
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.label {
    display: block;
    margin-bottom: 5px;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

@media (max-width: 650px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .user-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------------------------------------------------------------
   Menu / Home
   ------------------------------------------------------------------------- */

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 28px;
}

.page-heading p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.page-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.menu-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.menu-card {
    min-height: 180px;
    display: flex;
    gap: 17px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow:
        0 7px 22px rgba(15, 23, 42, .045);
    transition:
        transform .15s,
        box-shadow .15s,
        border-color .15s;
}

.menu-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, .08);
}

.menu-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 11px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.menu-content {
    display: flex;
    flex-direction: column;
}

.menu-content h2 {
    margin: 1px 0 8px;
    font-size: 18px;
}

.menu-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.menu-link {
    margin-top: auto;
    padding-top: 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   Minha Equipe
   ------------------------------------------------------------------------- */

.page-wide {
    width: min(1450px, calc(100% - 36px));
}

.back-link {
    display: inline-block;
    margin-bottom: 13px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.summary-card {
    min-width: 120px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.summary-card span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.summary-card strong {
    display: block;
    margin-top: 3px;
    color: #111827;
    font-size: 27px;
}

.card {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 7px 22px rgba(15, 23, 42, .04);
}

.team-meta {
    display: grid;
    grid-template-columns:
        minmax(180px, .35fr)
        minmax(0, 1fr);
    gap: 24px;
}

.meta-label {
    display: block;
    margin-bottom: 7px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #dbe3ed;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.chip-muted {
    color: #94a3b8;
    font-weight: 500;
}

.table-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.table-toolbar h2 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 19px;
}

.table-toolbar p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
}

.table-search {
    width: min(360px, 100%);
}

.table-search input {
    height: 40px;
    font-size: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .35px;
}

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

.data-table .cell-name {
    min-width: 240px;
    color: #111827;
    font-weight: 700;
    white-space: normal;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.empty-state strong {
    display: block;
    margin-bottom: 7px;
    color: #334155;
}

.empty-state p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .team-meta {
        grid-template-columns: 1fr;
    }

    .page-heading-row,
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }
}
/* -------------------------------------------------------------------------
   Home - pesquisa de recursos
   ------------------------------------------------------------------------- */

.home-search-body {
    min-height: 100vh;
    background: #f7f9fc;
}

.home-search-body.search-open {
    overflow: hidden;
}

.home-topbar {
    min-height: 66px;
}

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

.home-user-name {
    color: #64748b;
    font-size: 13px;
}

.home-search-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.home-search-button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.home-search-button svg {
    width: 19px;
    height: 19px;
}

.home-logout {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.home-logout:hover {
    color: #111827;
}

.home-empty {
    min-height:
        calc(100vh - 67px);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 11vh 18px 30px;
    background:
        rgba(15, 23, 42, .28);
    backdrop-filter:
        blur(4px);
}

.search-overlay.is-open {
    display: flex;
}

.search-dialog {
    width: min(700px, 100%);
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 24px 70px
        rgba(15, 23, 42, .2);
}

.search-dialog-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px;
    border-bottom: 1px solid #edf0f4;
}

.search-field-wrap {
    position: relative;
    flex: 1;
}

.search-field-wrap > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transform:
        translateY(-50%);
    pointer-events: none;
}

.search-field-wrap input {
    width: 100%;
    height: 48px;
    padding:
        0 14px
        0 45px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #111827;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.search-field-wrap input:focus {
    border: 0;
    box-shadow:
        inset 0 0 0 1px #d7dee8;
}

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

.search-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
}

.search-close:hover {
    background: #f1f5f9;
    color: #111827;
}

.search-content {
    max-height: min(60vh, 520px);
    overflow-y: auto;
    padding: 10px;
}

.search-initial {
    padding: 50px 28px;
    text-align: center;
}

.search-initial h2 {
    margin: 0 0 7px;
    color: #334155;
    font-size: 18px;
}

.search-initial p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

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

.search-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.is-selected {
    background: #f1f5f9;
}

.search-result-item.is-disabled {
    cursor: default;
    opacity: .58;
}

.search-result-item.is-disabled:hover {
    background: transparent;
}

.search-result-main {
    min-width: 0;
}

.search-result-main strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 14px;
}

.search-result-main span {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-status {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.search-result-item.is-selected
.search-result-status {
    color: #475569;
}

.search-empty-result {
    padding: 50px 20px;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

.search-footer {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
    padding: 0 15px;
    border-top: 1px solid #edf0f4;
    background: #fafbfd;
    color: #94a3b8;
    font-size: 10px;
}

@media (max-width: 650px) {
    .home-topbar {
        min-height: 62px;
        align-items: center;
        flex-direction: row;
        padding:
            0 15px;
    }

    .home-topbar
    .topbar-subtitle {
        display: none;
    }

    .home-user-name {
        display: none;
    }

    .search-overlay {
        padding:
            12px;
        align-items: flex-start;
    }

    .search-dialog {
        border-radius: 13px;
    }

    .search-result-main span {
        white-space: normal;
    }

    .search-footer {
        display: none;
    }
}
