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

        :root {
            --primary: #0f172a;
            --secondary: #1e293b;
            --accent: rgb(214,221,97);
            --accent-hover: rgba(215, 221, 97, 0.341);
            --danger: #ef4444;
            --warning: #f59e0b;
            --text: #f1f5f9;
            --text-dim: rgb(255, 255, 255);
            --border: rgb(65,82,85);
            --card-bg: rgb(65,82,85);
            --input-bg: #ffffff60;
            --text2:rgb(0, 0, 0);
        }

        #userSearch::placeholder {
     color: white; /* color del texto del placeholder */
     opacity: 1;   /* asegura que no se vea desvanecido */
     
    }

       #newClientName::placeholder {
        color: white; /* color del texto del placeholder */
        opacity: 1;   /* asegura que no se vea desvanecido */
     
        }

         #newCompany::placeholder {
        color: white; /* color del texto del placeholder */
        opacity: 1;   /* asegura que no se vea desvanecido */
     
        }
         #newEmail::placeholder {
        color: white; /* color del texto del placeholder */
        opacity: 1;   /* asegura que no se vea desvanecido */
     
        }
         #newPhone::placeholder {
        color: white; /* color del texto del placeholder */
        opacity: 1;   /* asegura que no se vea desvanecido */
     
        }
         #importe::placeholder {
        color: white; /* color del texto del placeholder */
        opacity: 1;   /* asegura que no se vea desvanecido */
     
        }

        #quickModalType option {
         background-color: #444; /* Fondo de cada opción en la lista */

}

#quickModalAmount::placeholder{
    color: white;
}
#quickModalNotes::placeholder{
    color:white;
}










        body {
            font-family: 'DM Sans', sans-serif;
           /* background-image: url("../images/fondo.jpeg"); */
           background-color: #ffffff;
            color: var(--text);
            min-height: 100vh;
            



        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .login-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 2rem;
        }

        .login-box {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 3rem;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border);
            animation: fadeInUp 0.6s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo {
            text-align: center;
            margin-bottom: 2rem;
        }

        .logo-img {
            width: 180px;
            height: auto;
            margin-bottom: 1rem;
        }

        .logo h1 {
            font-family: 'Space Mono', monospace;
            font-size: 1.4rem;
            color: var(--accent);
            letter-spacing: -0.5px;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .logo p {
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
           

        }

       

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-dim);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        input[type="text"],
        input[type="password"],
        input[type="date"],
        input[type="number"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        select,
        textarea {
            width: 100%;
            padding: 0.875rem 1rem;
            background: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text2);
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(30, 127, 196, 0.1);
        }

        .btn {
            width: 100%;
            padding: 1rem;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(30, 127, 196, 0.3);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: var(--secondary);
            
        }

        .btn-secondary:hover {
            background: #334155;
            box-shadow: 0 10px 25px rgba(51, 65, 85, 0.3);
        }

        .btn-small {
            width: 100%;
            padding: 0.6rem 1.2rem;
            font-size: 0.875rem;
            color: rgb(255, 255, 255);
            margin-top: 10px;
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #dc2626;
            box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
        }

        .dashboard {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
           
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--border);
        }

        .header-logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header-logo img {
            width: 120px;
            height: auto;
        }

        .header h1 {
            font-family: 'Space Mono', monospace;
            font-size: 1.5rem;
            color: rgb(65,82,85);
        }

        .user-info {
            text-align: right;
        }

        .user-info .username {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
            color: rgb(131,139,141);
        }

        .user-info .role {
            color: rgb(131,139,141);
            font-size: 0.85rem;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
            margin-top: 5px;
        }

        .card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .card-title {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-dim);
            font-weight: 600;
        }

        .card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .icon-green {
            background: rgba(30, 127, 196, 0.1);
            color: var(--accent);
        }

        .icon-red {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .card-value {
            font-family: 'Space Mono', monospace;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .card-label {
            color: var(--text-dim);
            font-size: 0.875rem;
        }

        .table-container {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border);
            margin-bottom: 2rem;
            overflow-x: auto;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .table-header h2 {
            font-size: 1.3rem;
            font-weight: 600;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: var(--input-bg);
        }

        th {
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.5px;
            color: var(--text-dim);
            border-bottom: 2px solid var(--border);
        }

        td {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
        }

        tbody tr {
            transition: background 0.2s ease;
        }

        tbody tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .badge {
            display: inline-block;
            padding: 0.35rem 0.75rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-success {
            background: rgba(30, 127, 196, 0.15);
            color: var(--accent);
        }

        .badge-danger {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
        }

        .amount-positive {
            color: var(--accent);
            font-weight: 600;
            font-family: 'Space Mono', monospace;
        }

        .amount-negative {
            color: var(--danger);
            font-weight: 600;
            font-family: 'Space Mono', monospace;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 2rem;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border);
            animation: slideDown 0.3s ease;
        }

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

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .modal-header h2 {
            font-size: 1.5rem;
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-modal:hover {
            color: var(--text);
        }

        .error-message {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--danger);
            color: var(--danger);
            padding: 0.875rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        .success-message {
            background: rgba(30, 127, 196, 0.1);
            border: 1px solid var(--accent);
            color: var(--accent);
            padding: 0.875rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        .warning-message {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid var(--warning);
            color: var(--warning);
            padding: 0.875rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        .admin-section {
            display: none;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--border);
        }

        .tab {
            padding: 0.75rem 1.5rem;
            background: none;
            border: none;
            color:rgb(65,82,85);
            cursor: pointer;
            font-weight: 600;
            font-family: inherit;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
        }

        .tab:hover {
            color: var(--accent);
        }

        .tab.active {
            color: rgb(192,182,181);
            border-bottom-color: rgb(192,182,181);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .user-list {
            display: grid;
            gap: 1rem;
        }

        .user-item {
            background: var(--input-bg);
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .user-details h3 {
            font-size: 1rem;
            margin-bottom: 0.25rem;
        }

        .user-details p {
            color: var(--text-dim);
            font-size: 0.85rem;
        }

        .user-actions {
            display: flex;
            gap: 0.5rem;
        }

        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--text-dim);
        }

        .empty-state-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .info-box {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #60a5fa;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .info-box strong {
            display: block;
            margin-bottom: 0.5rem;
            color: #3b82f6;
        }

        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

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

            .header {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .header-logo {
                flex-direction: column;
            }

            .user-info {
                text-align: center;
            }

            .action-buttons {
                flex-direction: column;
            }

            table {
                font-size: 0.875rem;
            }

            th, td {
                padding: 0.75rem 0.5rem;
            }

            .user-item {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .user-actions {
                width: 100%;
                justify-content: flex-start;
            }
        }

        .hidden {
            display: none;
}
body.is-admin #clientDashboard{
  display:none !important;
}

.iframe-container {
  width: 119%;
  height: 575px;
  overflow: hidden;
  text-align: center;
  border-radius: 20px;
  margin-top: 5px;
  margin-left: -110px;
}

