/* =====================================
   MANAGER FINANCIERO
   DISEÑO GENERAL
===================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #101828;
    --dark-secondary: #1e293b;
    --background: #f8fafc;
    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #e2e8f0;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 16px;
    --shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.hidden {
    display: none !important;
}


/* =====================================
   MARCA
===================================== */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    border-radius: 11px;
    font-size: 21px;
    font-weight: 800;
}

.brand-highlight {
    color: var(--primary);
}


/* =====================================
   BOTONES
===================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 19px;
    border-radius: 10px;
    font-weight: 650;
    font-size: 14px;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #f1f5f9;
}

.btn-large {
    padding: 15px 24px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
    min-height: 48px;
}


/* =====================================
   PANTALLA DE BIENVENIDA
===================================== */

.welcome-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 7%;
    background:
        radial-gradient(circle at 85% 45%, #dbeafe 0, transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.welcome-nav {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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


/* =====================================
   HERO
===================================== */

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
    padding: 75px 0;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.12;
    letter-spacing: -2.8px;
    color: var(--dark);
    margin-bottom: 23px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}


/* =====================================
   TARJETA ILUSTRATIVA
===================================== */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card {
    width: 100%;
    max-width: 420px;
    padding: 29px;
    background: var(--white);
    border: 1px solid #e8edf5;
    border-radius: 22px;
    box-shadow: 0 25px 65px rgba(37, 99, 235, 0.12);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.preview-caption {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
}

.preview-header h3 {
    color: var(--dark);
    font-size: 18px;
}

.preview-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 12px;
    font-size: 21px;
}

.preview-balance {
    padding: 24px;
    background: var(--dark);
    color: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
}

.preview-balance span,
.preview-balance small {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
}

.preview-balance strong {
    display: block;
    font-size: 29px;
    margin: 12px 0;
    letter-spacing: -1px;
}

.preview-balance small {
    font-size: 10px;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preview-stat {
    padding: 17px 13px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.preview-stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 10px;
}

.preview-stat strong {
    font-size: 17px;
}

.income-color {
    color: var(--green);
}

.expense-color {
    color: var(--red);
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    color: var(--muted);
    font-size: 11px;
}


/* =====================================
   FOOTER
===================================== */

.welcome-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}


/* =====================================
   AUTENTICACIÓN
===================================== */

.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
    background:
        radial-gradient(circle at 15% 15%, #dbeafe, transparent 35%),
        #f8fafc;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.auth-brand {
    margin-bottom: 38px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading .hero-label {
    margin-bottom: 12px;
}

.auth-heading h1 {
    color: var(--dark);
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 9px;
}

.auth-heading p {
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 650;
}

.form-group input {
    width: 100%;
    height: 47px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: var(--white);
    transition: 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.auth-switch {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.auth-switch button {
    background: transparent;
    color: var(--primary);
    font-weight: 750;
    margin-left: 4px;
}

.auth-switch button:hover {
    text-decoration: underline;
}

.form-message {
    min-height: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--red);
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {

    .welcome-screen {
        padding: 0 5%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 65px 0;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-visual {
        width: 100%;
    }

}

@media (max-width: 600px) {

    .welcome-screen {
        padding: 0 20px;
    }

    .welcome-nav {
        min-height: 75px;
        gap: 10px;
    }

    .brand {
        font-size: 16px;
        gap: 7px;
    }

    .brand-icon {
        width: 33px;
        height: 33px;
        font-size: 18px;
    }

    .nav-actions {
        gap: 7px;
    }

    .nav-actions .btn {
        padding: 10px 11px;
        font-size: 11px;
    }

    .hero {
        padding: 55px 0;
        gap: 40px;
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -1.8px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .preview-card {
        padding: 21px;
    }

    .preview-balance strong {
        font-size: 25px;
    }

    .preview-stat strong {
        font-size: 14px;
    }

    .welcome-footer {
        flex-direction: column;
        text-align: center;
        font-size: 11px;
    }

    .auth-card {
        padding: 27px 22px;
    }

    .auth-heading h1 {
        font-size: 27px;
    }

}


/* =====================================
   DASHBOARD - DISEÑO PRINCIPAL
===================================== */

.dashboard {
    min-height: 100vh;
    display: flex;
    background: #f5f7fb;
    color: #172033;
}

/* BARRA LATERAL */

.sidebar {
    width: 260px;
    min-width: 260px;
    min-height: 100vh;
    background: #101828;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 20px;
}

.dashboard-brand {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 55px;
    padding-left: 5px;
}

.dashboard-brand .brand-highlight {
    color: #60a5fa;
}

.sidebar-label {
    color: #8290a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 16px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 13px;
    border-radius: 9px;
    color: #cbd5e1;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-item span {
    width: 22px;
    font-size: 19px;
    text-align: center;
}

.nav-item:hover {
    background: #26364e;
    color: white;
}

.nav-item.active {
    background: #2563eb;
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 5px 20px;
}

.user-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    font-weight: 800;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.user-info strong {
    font-size: 12px;
    color: white;
    overflow-wrap: anywhere;
}

.user-info small {
    font-size: 10px;
    color: #94a3b8;
}

.logout-button {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #fca5a5;
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.logout-button:hover {
    background: #38252e;
}


/* CONTENIDO PRINCIPAL */

.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 35px 42px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.header-caption {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dashboard-header h1 {
    color: #101828;
    font-size: 29px;
    letter-spacing: -1px;
    margin: 8px 0;
}

.dashboard-header p {
    color: #64748b;
    font-size: 13px;
}

.header-date {
    color: #64748b;
    font-size: 12px;
    text-transform: capitalize;
    text-align: right;
}


/* SECCIONES */

.dashboard-section {
    width: 100%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.section-heading h2 {
    color: #101828;
    font-size: 19px;
    margin-bottom: 6px;
}

.section-heading p {
    color: #64748b;
    font-size: 12px;
}


/* BANNER DE BIENVENIDA */

.welcome-banner {
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    padding: 30px 35px;
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    color: white;
    border-radius: 16px;
    margin-bottom: 30px;
}

.welcome-banner span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #dbeafe;
}

.welcome-banner h2 {
    font-size: 25px;
    margin: 12px 0 8px;
}

.welcome-banner p {
    font-size: 12px;
    color: #dbeafe;
}

.banner-symbol {
    font-size: 130px;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    transform: rotate(-10deg);
    line-height: 1;
    padding-right: 30px;
}


/* TARJETAS FINANCIERAS */

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

.summary-card {
    background: white;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 23px;
    box-shadow: 0 4px 15px rgba(15,23,42,0.025);
}

.summary-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 22px;
}

.summary-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.income-icon {
    background: #dcfce7;
    color: #16a34a;
}

.expense-icon {
    background: #fee2e2;
    color: #dc2626;
}

.balance-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.summary-card > strong {
    display: block;
    color: #101828;
    font-size: clamp(20px, 2vw, 27px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
    margin-bottom: 9px;
}

.summary-card > small {
    color: #94a3b8;
    font-size: 11px;
}

.summary-card .income-text {
    color: #16a34a;
}

.summary-card .expense-text {
    color: #dc2626;
}

.balance-card {
    background: #101828;
}

.balance-card .summary-card-top,
.balance-card > strong {
    color: white;
}

.balance-card > small {
    color: #cbd5e1;
}


/* TARJETAS DE CONTENIDO */

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
    margin-top: 25px;
}

.content-card {
    min-width: 0;
    background: white;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(15,23,42,0.025);
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.card-heading h3 {
    font-size: 15px;
    color: #101828;
    margin-bottom: 6px;
}

.card-heading p {
    font-size: 11px;
    color: #94a3b8;
}

.text-button {
    background: transparent;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.text-button:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 30px 15px;
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
}


/* ACCIONES RÁPIDAS */

.quick-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 5px;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.quick-action:last-child {
    border-bottom: none;
}

.quick-action:hover {
    background: #f8fafc;
}

.quick-action-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 18px;
}

.quick-action > span:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-action strong {
    font-size: 12px;
    color: #334155;
}

.quick-action small {
    font-size: 10px;
    color: #94a3b8;
}

.quick-action > span:last-child {
    color: #94a3b8;
}


/* FORMULARIOS */

.movement-form-card {
    max-width: 750px;
}

.movement-form-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.movement-form-card .form-group {
    margin-bottom: 20px;
}

.movement-form-card .form-message,
.movement-form-card button[type="submit"] {
    grid-column: 1 / -1;
}

.movement-form-card input,
.movement-form-card select,
.history-filters input,
.history-filters select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    outline: none;
    color: #172033;
    font-size: 13px;
}

.movement-form-card input:focus,
.movement-form-card select:focus,
.history-filters input:focus,
.history-filters select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.movement-form-card button[type="submit"] {
    justify-self: start;
}


/* HISTORIAL */

.history-filters {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    margin-bottom: 22px;
}

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

.movements-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.movements-table th {
    padding: 14px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.movements-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 12px;
}


/* BALANCES */

.balance-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.balance-tab {
    padding: 11px 22px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.balance-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.balance-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.balance-result {
    min-height: 200px;
}


/* PIE DE PÁGINA */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
}


/* BOTONES Y TRANSICIONES */

.dashboard button {
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dashboard button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =====================================
   DISEÑO RESPONSIVE
===================================== */

@media (max-width: 1100px) {

    .sidebar {
        width: 220px;
        min-width: 220px;
    }

    .dashboard-content {
        padding: 30px 25px;
    }

    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 750px) {

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 15px;
    }

    .dashboard-brand {
        margin-bottom: 20px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 7px;
        padding-bottom: 5px;
    }

    .nav-item {
        width: auto;
        min-width: max-content;
        padding: 11px;
        font-size: 11px;
    }

    .nav-item span {
        width: auto;
    }

    .sidebar-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .sidebar-user {
        padding: 0;
    }

    .logout-button {
        width: auto;
        font-size: 11px;
    }

    .dashboard-content {
        padding: 25px 17px;
    }

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

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-date {
        text-align: left;
    }

}

@media (max-width: 500px) {

    .welcome-banner {
        padding: 23px;
    }

    .welcome-banner h2 {
        font-size: 20px;
    }

    .banner-symbol {
        display: none;
    }

    .movement-form-card form {
        grid-template-columns: 1fr;
    }

    .movement-form-card .form-message,
    .movement-form-card button[type="submit"] {
        grid-column: 1;
    }

    .history-filters {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 17px;
    }

    .dashboard-footer {
        flex-direction: column;
        text-align: center;
    }

}


/* =====================================
   MOVIMIENTOS RECIENTES
===================================== */

.recent-movements {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.recent-movement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 2px;
    border-bottom: 1px solid #f1f5f9;
}

.recent-movement:last-child {
    border-bottom: none;
}

.recent-movement-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.recent-movement-concept {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.recent-movement-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #94a3b8;
    font-size: 11px;
}

.recent-movement-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.recent-movement-type.income-text {
    background: #dcfce7;
    color: #15803d;
}

.recent-movement-type.expense-text {
    background: #fee2e2;
    color: #b91c1c;
}

.recent-movement-category {
    color: #64748b;
    font-size: 11px;
}

.recent-movement-amount {
    display: block;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
}

.recent-movement-amount.income-text {
    color: #16a34a;
}

.recent-movement-amount.expense-text {
    color: #dc2626;
}

.recent-movement-date {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    text-align: right;
    font-size: 10px;
    white-space: nowrap;
}

/* Ajustes para pantallas pequeñas */

@media (max-width: 500px) {

    .recent-movement {
        gap: 8px;
        padding: 13px 0;
    }

    .recent-movement-concept {
        font-size: 12px;
    }

    .recent-movement-amount {
        font-size: 12px;
    }

    .recent-movement-details {
        gap: 5px;
    }

}


/* =====================================
   ACCIONES DEL HISTORIAL
===================================== */

.movement-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.movement-action-btn {
    border: none;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.movement-action-btn.edit {
    background: #e8efff;
    color: #3158b8;
}

.movement-action-btn.edit:hover {
    background: #d7e3ff;
}

.movement-action-btn.delete {
    background: #feecec;
    color: #c62828;
}

.movement-action-btn.delete:hover {
    background: #fbdada;
}

/* =====================================
   BOTÓN CANCELAR EDICIÓN
===================================== */

.btn-cancel-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    margin-top: 8px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #f3f4f6;
    color: #374151;

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

    cursor: pointer;
    transition: 0.2s ease;
}

.btn-cancel-edit:hover {
    background: #e5e7eb;
}

.btn-cancel-edit:disabled,
.movement-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Respeta el atributo hidden del botón */
.btn-cancel-edit[hidden] {
    display: none !important;
}

/* =====================================
   MENSAJES Y TABLA
===================================== */

.empty-table-message {
    text-align: center;
    padding: 22px;
    color: #6b7280;
}

.empty-recent-message {
    padding: 15px 0;
    color: #6b7280;
    font-size: 14px;
}