html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


:root {
    --ingreso: #4CAF50;
    --fijo: #f44336;
    --variable: #ff9800;
    --sobrante: #2196F3;
    --bg: #f8f9fa;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--sobrante);
    padding-left: 10px;
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

button {
    background: var(--ingreso);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.tipo-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
}

.tag-fijo {
    background: var(--fijo);
}

.tag-var {
    background: var(--variable);
}

.cat-tag {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}