/* Financial Light - Custom Styles */

/* General UI Typography: Helvetica */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
.form-label,
.card-title {
    font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif !important;
}

/* Data & Financial Figures: Monospace */
table,
.table,
.data-value,
.form-control,
.card-text,
code,
pre {
    font-family: "Courier New", Courier, monospace !important;
}

/* Dashboard Cards */
.card-stats {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card-stats:hover {
    /* elimina movimiento */
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.card-header-financial {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: bold;
    color: #495057;
}

.text-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.text-amount-negative {
    color: #dc3545;
}

/* Sidebar styles removed to allow theme-based glassmorphism from template */
/* 
.sidebar {
    height: 100vh;
    background-color: #343a40;
    color: white;
    padding-top: 20px;
}

.sidebar a {
    color: #adb5bd;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.sidebar a:hover {
    color: white;
    background-color: #495057;
}
*/

/* Autocomplete Styles */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ced4da;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    transition: background 0.2s ease;
}

.autocomplete-results:hover {
    background: #ffffff;
}

.autocomplete-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Global Search Styles */
.navbar-search {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.search-container {
    position: relative;
    width: 80%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

#global-search {
    padding-left: 3rem;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

#global-search:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.autocomplete-item:hover {
    background: rgba(233, 236, 239, 0.7);
    padding-left: 20px;
}

.navbar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Expired Cheque Styles */
.status-vencido {
    color: var(--coral);
    font-weight: bold;
    margin-right: 5px;
}

.badge-vencido {
    background: rgba(224, 122, 95, 0.15) !important;
    color: var(--coral) !important;
}

.status-badge.no-circle::before {
    display: none;
}

/* Sidebar Submenu Styling Consistency - Restored to white-glass style as requested */
.submenu {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #ced4da !important;
    backdrop-filter: blur(15px) !important;
    transition: background 0.2s ease !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.submenu:hover {
    background: #ffffff !important;
}

.submenu-link {
    color: #000000 !important;
    font-weight: 500;
}

.submenu-link:hover {
    background: rgba(233, 236, 239, 0.7) !important;
    color: #000000 !important;
    padding-left: 20px !important;
}

/* ============================= */
/* Client Table Search (Responsive) */
/* ============================= */


.search-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-input-container {
    position: relative;
    width: 200%;
    max-width: 640px;
}

/* Input */
.search-input {
    width: 100%;
    padding-left: 40px;
}

/* Ícono dentro del input */
.search-input-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Tablet */
@media (max-width: 992px) {
    .search-input-container {
        width: 140%;
        max-width: 520px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .search-input-container {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================= */
/* Universal Switch Styles */
/* ============================= */
.form-switch .form-check-input {
    width: 3em !important;
    height: 1.5em !important;
    cursor: pointer;
}

.form-switch .form-check-label {
    margin-left: 0.5rem !important; /* ms-2 */
    margin-top: 0.25rem !important;  /* mt-1 */
    cursor: pointer;
}