|
27 | 27 | /* ========================================================= |
28 | 28 | MODO DISTRIBUCIÓN + CONECTOR |
29 | 29 | ========================================================= */ |
| 30 | + |
30 | 31 | .btn-distribucion{ |
31 | 32 | display: inline-flex; |
32 | 33 | align-items: center; |
|
50 | 51 | -webkit-tap-highlight-color: transparent; |
51 | 52 | } |
52 | 53 |
|
| 54 | +/* Estados hover/active compartidos */ |
| 55 | + |
53 | 56 | .btn-volver:hover, |
54 | 57 | .btn-cancelar:hover, |
55 | 58 | .btn-nuevo-proveedor:hover, |
|
68 | 71 | transform: translateY(1px); |
69 | 72 | } |
70 | 73 |
|
71 | | -/* Variantes por intención */ |
| 74 | +/* ========================================================= |
| 75 | + VARIANTES DE BOTÓN |
| 76 | + ========================================================= */ |
72 | 77 |
|
73 | 78 | .btn-volver{ |
74 | 79 | background: color-mix(in oklab, var(--field-bg) 94%, transparent); |
|
101 | 106 | background: color-mix(in oklab, var(--surface-elev) 92%, var(--muted) 8%); |
102 | 107 | } |
103 | 108 |
|
104 | | -/* Bloque de fechas para el conector */ |
| 109 | +/* ========================================================= |
| 110 | + FILA PROVEEDOR + BOTONES (NUEVO) |
| 111 | + ========================================================= */ |
105 | 112 |
|
106 | | -.selector-fechas-container{ |
107 | | - margin-top: 14px; |
108 | | - padding: 12px 14px; |
109 | | - border-radius: var(--radius, 18px); |
110 | | - border: 1px solid color-mix(in oklab, var(--border) 80%, transparent); |
111 | | - background: color-mix(in oklab, var(--surface-elev) 96%, transparent); |
112 | | - display: grid; |
113 | | - grid-template-columns: repeat(2, minmax(0,1fr)); |
114 | | - gap: 12px 16px; |
| 113 | +/* Contenedor que agrupa selector de proveedor y los dos botones */ |
| 114 | +.fila-compra-proveedor{ |
| 115 | + display: flex; |
| 116 | + flex-direction: row; |
| 117 | + flex-wrap: wrap; |
| 118 | + gap: 16px; |
| 119 | + align-items: flex-end; |
| 120 | + margin-top: 8px; |
115 | 121 | } |
116 | 122 |
|
117 | | -.selector-label{ |
| 123 | +/* Bloque principal: label+select + botones */ |
| 124 | +.fila-compra-proveedor__proveedor{ |
| 125 | + display: flex; |
| 126 | + align-items: flex-end; |
| 127 | + gap: 12px; |
| 128 | + width: 100%; |
| 129 | +} |
| 130 | + |
| 131 | +/* El campo de proveedor ocupa todo el ancho posible */ |
| 132 | +.fila-compra-proveedor__proveedor .form-group__field{ |
| 133 | + flex: 1 1 auto; |
118 | 134 | display: grid; |
119 | 135 | gap: 4px; |
120 | | - font-size: .9rem; |
121 | 136 | } |
122 | 137 |
|
123 | | -.selector-label input[type="date"]{ |
124 | | - background: var(--field-bg, #131a22); |
125 | | - color: var(--ink); |
126 | | - border-radius: 999px; |
| 138 | +/* Botones "Nuevo proveedor" y "Nuevo C.C/C.O/U.N" */ |
| 139 | +.form-group__btn{ |
| 140 | + display: flex; |
| 141 | + align-items: center; |
| 142 | + justify-content: center; |
| 143 | + white-space: nowrap; |
| 144 | + height: 40px; |
| 145 | + padding: 0 16px !important; |
| 146 | +} |
| 147 | + |
| 148 | +/* Por si aún usas .btn2 en algún punto, que se comporte como botón normal */ |
| 149 | +.btn2{ |
| 150 | + display: inline-grid; |
| 151 | + grid-auto-flow: column; |
| 152 | + align-items: center; |
| 153 | + justify-content: center; |
| 154 | + padding: 10px 14px; |
| 155 | + border-radius: var(--radius, 18px); |
127 | 156 | border: 1px solid var(--border, #1f2a36); |
128 | | - padding: 6px 12px; |
| 157 | + background: color-mix(in oklab, var(--surface-elev) 92%, transparent); |
129 | 158 | font: inherit; |
| 159 | + font-weight: 700; |
| 160 | + cursor: pointer; |
130 | 161 | } |
131 | 162 |
|
132 | | -.selector-botones{ |
133 | | - grid-column: 1 / -1; |
134 | | - display: flex; |
135 | | - gap: 10px; |
136 | | - flex-wrap: wrap; |
| 163 | +/* Responsive: en pantallas pequeñas los elementos se apilan ordenados */ |
| 164 | +@media (max-width: 720px){ |
| 165 | + .fila-compra-proveedor{ |
| 166 | + flex-direction: column; |
| 167 | + align-items: stretch; |
| 168 | + } |
| 169 | + .fila-compra-proveedor__proveedor{ |
| 170 | + flex-direction: column; |
| 171 | + align-items: stretch; |
| 172 | + } |
| 173 | + .form-group__btn{ |
| 174 | + width: 100%; |
| 175 | + } |
137 | 176 | } |
138 | 177 |
|
139 | 178 | /* ========================================================= |
|
169 | 208 | gap: 4px; |
170 | 209 | } |
171 | 210 |
|
172 | | -/* Inputs base (no pisa los de otros módulos porque solo afecta dentro del form) */ |
| 211 | +/* Inputs específicos del módulo RegistroFactura */ |
173 | 212 | .registro-form input[type="text"], |
174 | 213 | .registro-form input[type="date"], |
175 | 214 | .registro-form textarea, |
|
191 | 230 | box-shadow: 0 0 0 3px var(--ring, rgba(59,130,246,.25)); |
192 | 231 | } |
193 | 232 |
|
194 | | -/* Select de proveedor + botón nuevo proveedor en línea */ |
195 | | -.form-group.mb-3{ |
196 | | - grid-template-columns: minmax(0,1.5fr) max-content; |
197 | | - align-items: end; |
198 | | - gap: 10px; |
| 233 | +/* Observaciones */ |
| 234 | +.registro-form textarea{ |
| 235 | + resize: vertical; |
| 236 | + min-height: 70px; |
199 | 237 | } |
200 | 238 |
|
201 | | -/* Mensajes de error */ |
| 239 | +/* Mensaje de error */ |
202 | 240 | .error{ |
203 | 241 | color: color-mix(in oklab, var(--primary, #ef4444) 60%, var(--ink) 40%); |
204 | 242 | font-size: .78rem; |
205 | 243 | } |
206 | 244 |
|
207 | | -/* Observaciones */ |
208 | | -.registro-form textarea{ |
209 | | - resize: vertical; |
210 | | - min-height: 70px; |
211 | | -} |
212 | | - |
213 | 245 | /* ========================================================= |
214 | 246 | BOTONES INFERIORES |
215 | 247 | ========================================================= */ |
|
221 | 253 | gap: 10px; |
222 | 254 | } |
223 | 255 |
|
224 | | -/* En pantallas pequeñas, que los botones puedan ocupar toda la fila */ |
225 | 256 | @media (max-width: 720px){ |
226 | 257 | .botones-container{ |
227 | 258 | flex-direction: column; |
228 | 259 | align-items: stretch; |
229 | 260 | } |
230 | 261 | .botones-container > button{ |
231 | 262 | width: 100%; |
232 | | - justify-content: center; |
233 | 263 | } |
234 | 264 | } |
235 | 265 |
|
236 | | - |
237 | | - |
238 | 266 | /* ========================================================= |
239 | | - RESPONSIVE LAYOUT |
| 267 | + RESPONSIVE GRID CAMPOS |
240 | 268 | ========================================================= */ |
241 | 269 |
|
242 | 270 | @media (max-width: 1024px){ |
243 | 271 | .form-grid{ |
244 | 272 | grid-template-columns: repeat(2, minmax(0,1fr)); |
245 | 273 | } |
246 | | - .form-group.mb-3{ |
247 | | - grid-template-columns: 1fr; |
248 | | - } |
249 | 274 | } |
250 | 275 |
|
251 | 276 | @media (max-width: 720px){ |
|
255 | 280 | .form-grid{ |
256 | 281 | grid-template-columns: 1fr; |
257 | 282 | } |
258 | | - .selector-fechas-container{ |
259 | | - grid-template-columns: 1fr; |
260 | | - } |
261 | | -} |
262 | | - |
263 | | -.btn-medium{ |
264 | | - display: block !important; /* o flex */ |
265 | | - width: 50% !important; /* ocupa todo el ancho del contenedor */ |
266 | | - max-width: none !important; |
267 | | - margin-top: 5px; |
268 | 283 | } |
269 | | - |
270 | | -.btn-personalized{ |
271 | | - margin: 5px; |
272 | | - width: 300px !important; |
273 | | - max-width: none !important; |
274 | | -} |
275 | | - |
|
0 commit comments