* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", sans-serif; } body { display: flex; flex-direction: column; min-height: 100vh; color: #f0f0f0; background: linear-gradient(135deg, #7a897a, #000); } .modal-title { margin-bottom: 0.5rem; font-size: 1.1rem; font-weight: 600; color: #d9f2d9; } .topbar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 2rem; background: rgba(6, 37, 6, 0.95); border-bottom: 1px solid rgba(255,255,255,0.08); position: sticky; top: 0; z-index: 100; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); } .topbar__brand-title { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; } .topbar__actions { display: inline-flex; align-items: center; gap: 0.75rem; } .topbar__user { position: relative; } .topbar-button, .user-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 0.55rem 0.9rem; border-radius: 999px; cursor: pointer; transition: all 0.2s ease; } .topbar-button:hover, .user-button:hover { background: rgba(255,255,255,0.12); } .user-menu { position: absolute; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; min-width: 180px; background: #111; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.3); } .user-menu.visible { display: flex; } .user-menu button { background: transparent; border: none; color: #fff; text-align: left; width: 100%; padding: 0.9rem 1rem; cursor: pointer; font-size: 0.95rem; } .user-menu button:hover { background: rgba(255,255,255,0.08); } .app-body { display: flex; flex: 1; gap: 1rem; } .contenido { flex: 1; padding: 2rem; } .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; z-index: 200; } .modal-overlay.active { display: flex; } .modal { width: min(720px, calc(100% - 32px)); background: #141414; border-radius: 16px; padding: 1.5rem; box-shadow: 0 18px 40px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .modal-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; } .modal .formulario__fila { gap: 12px; display: flex; /*flex-direction: column;*/ } .modal .formulario__fila label { font-size: 1rem; color: #333; margin-bottom: 8px; display: flex; align-items: center; } .modal .formulario__fila label strong { color: #ffffff; font-weight: 600; margin: 5px; } .modal .formulario__fila span { color: #ffffff; font-size: 1rem; } .modal .formulario__fila input[type="text"], .modal .formulario__fila input[type="email"], .modal .formulario__fila input[type="tel"] { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; margin-top: 5px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; } .modal .formulario__fila input[type="text"]:focus, .modal .formulario__fila input[type="email"]:focus, .modal .formulario__fila input[type="tel"]:focus { outline: none; border-color: #145214; box-shadow: 0 0 5px rgba(20, 82, 20, 0.3); } .modal .btn-agregar { width: 100%; } .modal .btn-cerrar { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.14); padding: 0.5rem 0.9rem; border-radius: 6px; } /* Sidebar */ .sidebar { width: 240px; background: linear-gradient(180deg, #145214, #0b3d0b); padding: 1.5rem; color: white; box-shadow: 2px 0 12px rgba(0,0,0,0.3); } .sidebar__titulo { margin-bottom: 1rem; font-size: 1.6rem; text-align: center; font-weight: 700; border-bottom: 2px solid #1e7d1e; padding-bottom: 0.5rem; } .sidebar__lista { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; } .sidebar__lista.visible { opacity: 1; pointer-events: auto; } .sidebar__link { color: white; text-decoration: none; padding: 0.7rem 1rem; border-radius: 8px; display: block; font-weight: 500; transition: all 0.3s ease; } .sidebar__link:hover { background-color: #d9f2d9; color: #145214; transform: translateX(6px); } /* Contenido */ .contenido { flex: 1; padding: 2rem; } .seccion { display: none; background: #181818; padding: 1.5rem; border-radius: 12px; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); margin-bottom: 2rem; animation: fadeIn 0.4s ease; } .seccion h2 { color: #d9f2d9; margin-bottom: 1rem; border-left: 5px solid #1e7d1e; padding-left: 10px; font-weight: 700; } /* Formularios */ form.formulario { display: flex; flex-direction: column; /*gap: 1rem; max-width: 900px;*/ } /* Fila de inputs */ .formulario__fila { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 8px; } .formulario__fila input { flex: 1; min-width: 150px; padding: 0.6rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 0.95rem; background: rgba(255,255,255,0.05); color: #fff; transition: 0.3s; } .formulario__fila input:focus { outline: none; border-color: #1e7d1e; box-shadow: 0 0 6px rgba(30,125,30,0.6); } .formulario_producto { margin-top: 8px; margin-bottom: 8px; } .formulario_producto input { flex: 1; min-width: 150px; padding: 0.6rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 0.95rem; background: rgba(255,255,255,0.05); color: #fff; transition: 0.3s; } /* Formularios en columna */ .formulario__columna { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1rem; } .formulario__columna label { font-weight: 600; color: #d9f2d9; margin-bottom: 3px; } .formulario__columna input { width: 100%; padding: 0.6rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.05); color: #fff; } /* Botón Agregar */ .btn-agregar { background-color: #145214; color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 8px rgba(0,0,0,0.25); margin-top: 10px; margin-bottom: 15px; } .btn-agregar:hover { background-color: #1e7d1e; transform: scale(1.05); } .btn-agregar:disabled, .btn-editar:disabled, .btn-cerrar:disabled { background-color: #555; cursor: not-allowed; opacity: 0.6; transform: none; box-shadow: none; } .btn-agregar:disabled:hover, .btn-editar:disabled:hover, .btn-cerrar:disabled:hover { background-color: #555; transform: none; } .btn-cerrar { background-color: #962a2a; color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 8px rgba(0,0,0,0.25); margin-bottom: 10px; } .btn-ver-productos { background-color: #3c4350; color: white; padding: 0.4rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); margin-right: 4px; } .btn-ver-productos:hover { background-color: #4d5461; transform: scale(1.05); } .btn-guardar, .btn-actualizar-gasto, .guardar-btn, .editar-btn, .btn-editar-gasto, .btn-editar, .btn-editar-proveedor { background-color: #145214; color:rgb(255, 255, 255); padding: 0.4rem 0.9rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.25); } .btn-guardar, .btn-actualizar-gasto, .guardar-btn, .editar-btn:hover, .btn-editar:hover, .btn-editar-proveedor:hover { background-color: #1e7d1e; } .btn-eliminar-gasto, .btn-eliminar-producto, .cancelar-btn, .btn-eliminar-usuario, .btn-cancelar, .eliminar-btn, .btn-eliminar, .btn-eliminar-proveedor { background-color: #962a2a; margin-left: 6px; color:rgb(255, 255, 255); padding: 0.4rem 0.9rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.25); } .btn-eliminar-gasto, .btn-eliminar-producto, .cancelar-btn, .btn-cancelar, .eliminar-btn:hover, .btn-eliminar:hover, .btn-eliminar-proveedor:hover { background-color: #962a2a; } .btn-cargar { background-color: #255825; color: white; padding: 0.4rem 1rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.25); } .btn-mas { background-color: #255825; color: rgb(255, 255, 255); padding: 0.4rem 0.8rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 8px rgba(0,0,0,0.25); } /* Botones dinámicos de órdenes */ .btn-ver-orden { background-color: #3c4350; color: white; padding: 0.4rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); margin-right: 4px; } .btn-ver-orden:hover { background-color: #4d5461; transform: scale(1.05); } .btn-aprobar { background-color: #1e7d1e; color: white; padding: 0.4rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); margin-right: 4px; } .btn-aprobar:hover { background-color: #2a9d2a; transform: scale(1.05); } .btn-aprobar:disabled { background-color: #555; cursor: not-allowed; opacity: 0.6; } .btn-denegar { background-color: #962a2a; color: white; padding: 0.4rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); } .btn-denegar:hover { background-color: #b93a3a; transform: scale(1.05); } .btn-denegar:disabled { background-color: #555; cursor: not-allowed; opacity: 0.6; } /* Tablas */ table { width: 100%; border-collapse: collapse; margin-top: 1rem; border-radius: 8px; overflow: visible; box-shadow: 0 4px 12px rgba(0,0,0,0.25); } th, td { padding: 0.8rem; text-align: left; overflow: visible; } th { background-color: #145214; color: white; font-weight: 600; } td { background-color: transparent; overflow: visible; position: relative; } tbody tr { overflow: visible; z-index: 1; background-color: #161616; } tbody tr:nth-child(even) { background-color: #202020; } /* Ventas */ .venta-formulario .formulario__fila { display: flex; gap: 1rem; align-items: center; } tfoot input#total { width: 120px; text-align: right; padding: 6px; border: 1px solid #ccc; border-radius: 6px; background-color: #e0e0e0; font-weight: bold; color: #000; } /* Contenedor del total y botón */ .venta-footer { margin-top: 1rem; display: flex; justify-content: space-between; /* total a la izq, botón a la der */ align-items: center; gap: 1rem; } /* Caja del total */ .total-box { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 10px; margin-top: 10px; } .venta { margin-left: 20px; } .gasto-monto, .gasto-nombre, .input-descripcion, .input-precio-venta, .input-precio-compra, .input-stock, .input-telefono, .input-nombre, .input-descripcion-gasto, .input-monto-gasto, .total-box input { width: 120px; text-align: right; padding: 6px; border: 1px solid #ccc; border-radius: 6px; background-color: #e0e0e0; font-weight: bold; color: #000; } /* Estilos para Reportes */ .btn-generar { background-color: #145214; color: rgb(255, 255, 255); padding: 0.4rem 0.9rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.25); } .btn-generar:hover { background-color: #1e7d1e; } .resultados { margin-top: 2rem; } .tabla-contenedor { overflow-x: auto; overflow-y: visible; } .tabla-reportes { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.05); border-radius: 8px; overflow: visible; } .tabla-reportes th, .tabla-reportes td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); } .tabla-reportes th { background: rgba(255,255,255,0.1); font-weight: 600; } .acciones { margin-top: 1rem; display: flex; gap: 1rem; } .btn-exportar { background-color: #1e7d1e; color: white; padding: 0.4rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); margin-right: 4px; } .btn-exportar:hover { background-color: #4d5461; transform: scale(1.05); font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.25); margin-right: 4px; } .btn-exportar:hover { background-color: #4d5461; transform: scale(1.05); } /* Estilos extra para Reservas, Canchas y Cupones */ /* Select estilizado */ form select { padding: 0.6rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: #2a2a2a; color: #fff; font-size: 0.95rem; } form select option { background-color: #2a2a2a; color: #fff; padding: 0.5rem; } form select:focus { outline: none; border-color: #1e7d1e; box-shadow: 0 0 6px rgba(30,125,30,0.6); } /* Tablas nuevas */ #tabla-reservas, #tabla-cupones { margin-top: 1rem; } #tabla-reservas th, #tabla-cupones th { background-color: #145214; color: white; text-align: center; } #tabla-reservas td, #tabla-cupones td { text-align: center; } /* Botón bloquear */ .btn-bloquear { background-color: #a51616; padding: 0.4rem 0.9rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: #fff; transition: 0.3s; } .btn-bloquear:hover { background-color: #d11a1a; } #registrar-usuario:target, #ventas:target, #ver_ventas:target, #productos:target, #inventario:target, #orden:target, #proveedores:target, #reportes:target, #gastos:target, #reserva:target, #cancha:target { display: block; background-color: #181818; /*fondo*/ } /* Animación */ @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } /* Estilos para la vista de Ventas del Día */ #tabla-principal-contenedor { animation: fadeIn 0.3s ease-in; } .tabla-ventas-dia { width: 100%; margin-top: 1.5rem; border-collapse: collapse; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; } .tabla-ventas-dia thead { background-color: #145214; color: white; font-weight: 600; } .tabla-ventas-dia th { padding: 1rem; text-align: left; border-bottom: 2px solid rgba(255,255,255,0.1); font-size: 0.95rem; } .tabla-ventas-dia tbody tr { border-bottom: 1px solid rgba(255,255,255,0.08); transition: background-color 0.2s ease; } .tabla-ventas-dia tbody tr:hover { background-color: rgba(255,255,255,0.05); } .tabla-ventas-dia td { padding: 1rem; color: #e0e0e0; font-size: 0.95rem; } /* Botón "Ver Detalle" */ .btn-ver-detalle { background-color: #3c4350; color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease; } .btn-ver-detalle:hover { background-color: #4a5260; } /* Dropdown de Estado */ .estado-dropdown { position: relative; display: inline-block; width: 100%; } .estado-btn { width: 100%; padding: 0.6rem 0.9rem; background: rgba(255, 255, 255, 0.1); color: #f0f0f0; border: 1px solid rgba(30, 125, 30, 0.4); border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease; } .estado-btn:hover { background: rgba(30, 125, 30, 0.15); border-color: #1e7d1e; box-shadow: 0 2px 8px rgba(30, 125, 30, 0.3); } .estado-btn:active { background: rgba(30, 125, 30, 0.25); border-color: #1e7d1e; } .estado-btn.disabled { background: rgba(100, 100, 100, 0.2); color: #888; border-color: rgba(100, 100, 100, 0.4); cursor: not-allowed; opacity: 0.6; } .estado-btn.disabled:hover { background: rgba(100, 100, 100, 0.2); border-color: rgba(100, 100, 100, 0.4); box-shadow: none; } .estado-btn.disabled .estado-texto { color: #888 !important; } .estado-texto { flex: 1; text-align: left; } .estado-flecha { margin-left: 0.5rem; transition: transform 0.3s ease; font-size: 0.7rem; } .estado-btn[data-estado="0"] .estado-texto { color: #f0a060; } .estado-btn[data-estado="1"] .estado-texto { color: #60d960; } .estado-btn[data-estado="2"] .estado-texto { color: #ff6b6b; } /* Opciones del Dropdown */ .estado-opciones { position: absolute; top: 100%; left: 0; right: 0; background: #2a2a2a; border: 1px solid rgba(30, 125, 30, 0.4); border-top: none; border-radius: 0 0 6px 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); z-index: 1000; min-width: 200px; overflow: hidden; } .estado-opcion { padding: 0.8rem 0.9rem; color: #f0f0f0; cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease; border-bottom: 1px solid rgba(30, 125, 30, 0.2); } .estado-opcion:last-child { border-bottom: none; } .estado-opcion:hover { background: rgba(30, 125, 30, 0.2); padding-left: 1.2rem; } .estado-opcion[data-valor="0"] { color: #f0a060; } .estado-opcion[data-valor="0"]:hover { background: rgba(240, 160, 96, 0.15); } .estado-opcion[data-valor="1"] { color: #60d960; } .estado-opcion[data-valor="1"]:hover { background: rgba(96, 217, 96, 0.15); } .estado-opcion[data-valor="2"] { color: #ff6b6b; } .estado-opcion[data-valor="2"]:hover { background: rgba(255, 107, 107, 0.15); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.25); display: inline-flex; align-items: center; gap: 0.5rem; } .btn-ver-detalle:hover { background-color: #3b3f3b; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.35); } .btn-ver-detalle:active { transform: translateY(0); } /* Contenedor de Detalle de Venta */ #detalle-venta-contenedor { animation: fadeIn 0.3s ease-in; } .detalle-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(255,255,255,0.1); } .detalle-header h3 { font-size: 1.3rem; color: #fff; margin: 0; } /* Botón Volver */ .btn-volver { background-color: #3c4350; color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.25); display: inline-flex; align-items: center; gap: 0.5rem; } .btn-volver:hover { background-color: #4d5461; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.35); } .btn-volver:active { transform: translateY(0); } /* Tabla de Detalle */ .tabla-detalle { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; margin-top: 1rem; } .tabla-detalle thead { background-color: #1e7d1e; color: white; font-weight: 600; } .tabla-detalle th { padding: 1.2rem; text-align: left; border-bottom: 2px solid rgba(255,255,255,0.1); font-size: 0.95rem; } .tabla-detalle tbody tr { border-bottom: 1px solid rgba(255,255,255,0.08); transition: background-color 0.2s ease; } .tabla-detalle tbody tr:hover { background-color: rgba(255,255,255,0.05); } .tabla-detalle tbody tr:last-child { background-color: rgba(30,125,30,0.15); font-weight: 600; color: #fff; } .tabla-detalle td { padding: 1.2rem; color: #e0e0e0; font-size: 0.95rem; } .tabla-detalle tbody tr:last-child td { color: #fff; border-top: 2px solid rgba(255,255,255,0.2); } .stock-limit-input { min-width: 150px; padding: 0.6rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 0.95rem; background: rgba(255, 255, 255, 0.05); color: #fff; transition: 0.3s; }