/* ==================================================
APPGESTAO UI GLOBAL
================================================== */

html,
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    overflow-x: hidden;
    font-family: "Inter", Arial, sans-serif;
}

/* ==================================================
PÁGINA
================================================== */

.app-page {
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 14px;
    box-sizing: border-box;
}

/* ==================================================
CONTAINER
================================================== */

.app-container {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid #ececec;
}

/* ==================================================
TÍTULOS
================================================== */

.app-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.app-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* ==================================================
GRID
================================================== */

.app-grid {
    display: grid;
    gap: 14px;
}

/* ==================================================
CARDS
================================================== */

.app-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 16px;
    box-sizing: border-box;
}

/* ==================================================
INPUTS
================================================== */

.app-input {
    width: 100%;
    height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 13px;
    outline: none;
    background: #fff;
}

/* ==================================================
BOTÕES
================================================== */

.app-btn {
    height: 42px;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.app-btn-dark {
    background: #111;
    color: #fff;
}

.app-btn-light {
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
}

/* ==================================================
TABELAS
================================================== */

.app-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table th {
    font-size: 11px;
    text-align: left;
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.app-table td {
    font-size: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid #f3f3f3;
}
/* ==================================================
MOBILE
================================================== */

@media (max-width: 768px) {

    .app-page {
        padding: 10px;
    }

    .app-container {
        padding: 14px;
        border-radius: 18px;
    }

    .app-title {
        font-size: 22px;
    }

    .app-subtitle {
        font-size: 13px;
    }

    .app-grid-mobile {
        display: flex !important;
        flex-direction: column !important;
    }

}

/* ==================================================
HEADER GLOBAL
================================================== */

.app-header {
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.app-logo {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.5px;
}

.app-user {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 10px 14px;
}

.app-content {
    width: 100%;
}

/* ==================================================
MOBILE HEADER
================================================== */

@media (max-width: 768px) {

    .app-header {
        height: auto;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .app-logo {
        font-size: 18px;
    }

    .app-user {
        width: 100%;
        box-sizing: border-box;
    }

}
