﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.form-group {
    margin-bottom: 1rem;
}

.fetch-buttons {
    margin-bottom: 1rem;
}

.form-buttons {
    margin-top: 1rem;
}

.ml-item {
    margin-left: .2rem;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#logo {
    width: 40px;
    margin-top: -5px;
}

.logo-big {
    width: 220px;
    margin-bottom: 50px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.gradient-custom {
    background-image: linear-gradient(180deg, rgba(25,20,61,1) 0%, rgba(34,15,175,1) 100%);
}

.rz-panel-menu {
    background-color: transparent;
}

.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper {
    background-color: transparent;
}

.rz-panel-menu .rz-navigation-menu .rz-navigation-item-active,
.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper-active {
    background-color: rgba(0,0,0,0.5) !important;
}

.rz-button {
    border-radius: 20px !important;
}

    .rz-button.rz-base.rz-variant-flat {
        border-radius: 0px !important;
    }

.sidebar {
    background-color: transparent;
    color: white;
    border-color: transparent;
    vertical-align: middle;
}

    .sidebar:hover {
        background-color: transparent !important;
    }

.header-profile {
    background-color: transparent !important;
    border-bottom: 0px !important;
    display: flex;
    justify-content: end;
}

.header-profile-text {
    color: var(--rz-sidebar-toggle-hover-color);
}

.header-profile-icon {
    color: var(--rz-sidebar-toggle-hover-color);
    margin-left: 1rem;
    cursor: pointer
}

    .header-profile-icon:hover {
        color: #0a58ca;
    }

.iframe-container {
    position: absolute;
    width: 95%;
    height: 95%;
    padding-bottom: 52%;
}

    .iframe-container iframe {
        position: inherit;
        width: 100%;
        height: 100%;
        border: 0;
    }
    
.loader {
    border: 16px solid #f3f3f3; 
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-actualizaciones-pendientes {
    font-weight: 500 !important;
    border: 1px solid #0d6efd !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-actualizaciones-pendientes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%) !important;
}

.receipt-container {
    margin: 0 auto;
    font-family: 'Verdana', sans-serif;
}

    .receipt-container p, .receipt-container li, .receipt-container ul, .receipt-container label {
        font-size: 1.2rem;
    }

.header {
    display: flex;
    justify-content: space-between;
}

    .header .logo {
        width: 10rem;
        margin-bottom: 1rem;
        margin-left: 2rem;
    }

    .header .left {
        text-align: left;
        width: 50%;
        font-size: 1rem;
    }

    .header .right {
        text-align: right;
        width: 50%;
        font-weight: bold;
    }

        .header .right .receipt-summary {
            display: inline-block;
            text-align: center;
        }

            .header .right .receipt-summary p {
                margin-bottom: .2rem;
            }

            .header .right .receipt-summary .price {
                margin-left: .5rem;
                width: 12rem;
                border: 2px solid;
                padding: .5rem;
                display: inline-block;
                text-align: right;
            }

            .header .right .receipt-summary .receipt-title {
                font-size: 2rem;
            }

.content {
    margin-top: 1rem;
    padding-top: 0px;
}

    .content .date {
        text-align: right;
        margin-bottom: 2rem;
    } 

    .content .observations {
        margin-top: 2rem;
    }

        .content .observations p {
            margin: 2px;
        }

        .content .observations .bills {
            margin: .5rem 1rem;
        }

.footer {
    position: absolute;
    bottom: 2rem;
    right: 5rem;
    display: flex;
    flex-direction: row-reverse;
    margin-top: 40px;
    text-align: right;
    width: 100%;
}

    .footer p {
        margin: 0;
    }

    .footer .footer-summary {
        text-align: justify;
        width: 25rem;
    }

        .footer .footer-summary p {
            font-size: 1rem;
            margin-left: 2rem;
        }

        .footer .footer-summary .sign {
            padding-bottom: 1rem;
            border-bottom: 1px solid;
        }

        .footer .footer-summary .company {
            text-align: center;
            margin: 0px 2px;
            font-size: 1.5rem;
        }

.items-name {
    list-style: inside;
    padding: 0;
    margin-left: 5rem;
}

.floating-update-button {
    position: relative;
    top: 0;
    padding: 1rem 1.5rem;
    width: 100%;
}

/* Split Dropdown Button Component */
.split-dropdown-container {
    position: relative;
    display: inline-block;
}

.split-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.split-dropdown-btn:hover:not(:disabled) {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.split-dropdown-btn:active:not(:disabled) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.split-dropdown-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.split-dropdown-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.split-dropdown-text {
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.split-dropdown-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: -2px;
}

/* La flecha solo gira cuando el menú está abierto */
.split-dropdown-btn.menu-open .split-dropdown-arrow {
    transform: rotate(180deg);
}

/* Button Styles */
.split-dropdown-btn.btn-primary {
    background-color: #1b6ec2;
    color: white;
}

.split-dropdown-btn.btn-primary:hover:not(:disabled) {
    background-color: #1861ac;
}

.split-dropdown-btn.btn-info {
    background-color: #17a2b8;
    color: white;
}

.split-dropdown-btn.btn-info:hover:not(:disabled) {
    background-color: #138496;
}

.split-dropdown-btn.btn-success {
    background-color: #28a745;
    color: white;
}

.split-dropdown-btn.btn-success:hover:not(:disabled) {
    background-color: #218838;
}

.split-dropdown-btn.btn-danger {
    background-color: #dc3545;
    color: white;
}

.split-dropdown-btn.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
}

.split-dropdown-btn.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.split-dropdown-btn.btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
}

.split-dropdown-btn.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.split-dropdown-btn.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

.split-dropdown-btn.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

.split-dropdown-btn.btn-light:hover:not(:disabled) {
    background-color: #e2e6ea;
}

.split-dropdown-btn.btn-dark {
    background-color: #343a40;
    color: white;
}

.split-dropdown-btn.btn-dark:hover:not(:disabled) {
    background-color: #23272b;
}

/* Dropdown Menu */
.split-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 8px 0;
    animation: slideDown 0.15s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: #212529;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.split-dropdown-item:hover {
    background-color: #f8f9fa;
}

.split-dropdown-item:active {
    background-color: #e9ecef;
}

.split-dropdown-item-icon {
    font-size: 20px;
    color: #6c757d;
}




