* {
    box-sizing: border-box;
}

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

.topbar {
    height: 66px;
    padding: 0 24px;
    background: white;
    border-bottom: 1px solid #d9dde3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 18px;
    font-weight: 700;
}

.system-name {
    font-size: 12px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 13px;
    color: #68717d;
}

main {
    padding: 22px;
    max-width: 1500px;
    margin: auto;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.muted {
    font-size: 12px;
    color: #7a828c;
    margin-top: 4px;
}

.card {
    background: white;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(180px, 1fr));
    gap: 12px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #565f69;
}

input,
select {
    height: 34px;
    border: 1px solid #cfd5dc;
    border-radius: 5px;
    padding: 0 9px;
    background: white;
    font-size: 13px;
}

button {
    height: 34px;
    border-radius: 5px;
    border: 1px solid #c9cfd6;
    padding: 0 15px;
    cursor: pointer;
}

.primary {
    background: #1e2935;
    color: white;
    border-color: #1e2935;
}

.secondary {
    background: white;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

#mensaje {
    font-size: 12px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th {
    text-align: left;
    font-size: 10px;
    color: #66707b;
    padding: 8px 9px;
    border-bottom: 1px solid #d9dde3;
}

td {
    padding: 8px 9px;
    border-bottom: 1px solid #edf0f2;
}

.folio {
    font-weight: 700;
}

.estado {
    font-weight: 700;
}

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