:root {
  --bg: #f4f4f2; --card: #ffffff; --ink: #1c1c1e; --muted: #6b6b70; --line: #e4e2dd; --dark: #17171a;
  --wood: #b5793f; --wood-soft: #f5ebe0; --ok: #1f8a4c; --ok-soft: #e3f4ea; --bad: #c0392b; --bad-soft: #fbe7e4;
  --warn: #b7791f; --warn-soft: #fdf1dc; --blue-soft: #e6eefb; --blue: #2e5aac; --radius: 12px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 14px; margin: 0; }
button { font-family: inherit; }
.topbar { background: var(--dark); color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 58px; position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; white-space: nowrap; }
.brand span { color: var(--wood); font-weight: 500; }
.brand.big { font-size: 28px; color: var(--ink); text-align: center; }
#nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
#nav button { background: none; border: 0; color: #b9b9be; padding: 8px 14px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
#nav button:hover { color: #fff; background: #26262b; }
#nav button.active { color: #fff; background: #2d2d33; box-shadow: inset 0 -2px 0 var(--wood); }
.user { position: relative; }
.menu { display: none; position: absolute; right: 0; top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); min-width: 190px; overflow: hidden; }
.menu.open { display: block; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; color: var(--ink); text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.btn-ghost { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--ink); font-weight: 500; }
.btn-ghost:hover { background: #fff; }
.btn-ghost.light { color: #fff; border-color: #3a3a40; }
.btn-ghost.light:hover { background: #26262b; }
.btn-ghost.sm { padding: 4px 10px; font-size: 13px; }
.btn-ghost.danger { color: var(--bad); }
.btn-icon { background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; font-size: 20px; line-height: 1; }
.btn-primary-vw { background: var(--dark); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; white-space: nowrap; }
.btn-primary-vw:hover { background: #000; }
#main { padding: 20px; max-width: 1600px; margin: 0 auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar h2, .page-h h2 { font-size: 22px; font-weight: 700; margin: 0 0 0 8px; }
.page-h h2 { margin: 0; }
.seg { display: inline-flex; background: #e9e8e4; border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-weight: 500; color: var(--muted); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 120px; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.cal-loading, .empty { color: var(--muted); padding: 40px; text-align: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: #ecebe7; border-radius: var(--radius); display: flex; flex-direction: column; min-height: 320px; }
.day.today { background: var(--wood-soft); outline: 2px solid var(--wood); }
.day-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px 6px; }
.dow { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.dnum { font-size: 22px; font-weight: 700; }
.day-tot { text-align: right; font-size: 12px; color: var(--muted); }
.day-tot b { font-size: 20px; color: var(--ink); }
.day-tot small { display: block; }
.day-b { padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.empty-day { color: #b2b0aa; text-align: center; padding: 10px; }
.add-day { margin-top: auto; background: none; border: 1px dashed #c9c6be; border-radius: 8px; padding: 6px; color: var(--muted); }
.add-day:hover { background: #fff; color: var(--ink); }
.card-job { background: var(--card); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--line); overflow: hidden; }
.cj-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
[data-job], [data-bk] { cursor: pointer; }
[data-job]:hover, [data-bk]:hover .cj-h { background: #faf8f5; }
.client { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.pay.paid { background: var(--ok-soft); color: var(--ok); }
.pay.unpaid { background: var(--bad-soft); color: var(--bad); }
.amt { padding: 4px 10px 0; font-weight: 600; color: var(--muted); font-size: 13px; }
.line { padding: 7px 10px; border-bottom: 1px solid #f0eeea; }
.line:last-of-type { border-bottom: 0; }
.line.completo .mat, .line.completo .qty { color: var(--muted); text-decoration: line-through; }
.l-main { display: flex; justify-content: space-between; gap: 8px; }
.mat { font-weight: 500; }
.qty { font-weight: 700; white-space: nowrap; }
.qty::after { content: " pl."; font-weight: 400; color: var(--muted); font-size: 12px; }
.l-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.booking .l-meta { padding: 6px 10px 0; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 20px; background: #efeeea; color: var(--muted); font-weight: 500; }
.tag.cliente { background: var(--blue-soft); color: var(--blue); }
.tag.carry { background: var(--warn-soft); color: var(--warn); }
.tag.mode { background: var(--wood-soft); color: #8a5a2b; }
.st { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.part { background: var(--warn-soft); color: var(--warn); }
.cut-btn { margin-left: auto; background: var(--ok); color: #fff; border: 0; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.undo-btn { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.who, .desc { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; }
.desc { color: var(--ink); }
.month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mh, .mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mh div { padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mc { min-height: 110px; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.mc:nth-child(7n) { border-right: 0; }
.mc:hover { background: #faf8f5; }
.mc.out { background: #fafaf8; color: #b8b6b0; }
.mc.today .mc-n { background: var(--wood); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.mc-n { font-weight: 600; margin-bottom: 4px; }
.mc-tot { display: inline-block; font-weight: 700; font-size: 12px; background: var(--dark); color: #fff; border-radius: 6px; padding: 1px 7px; margin-bottom: 4px; }
.mc-tot.done { background: var(--ok); }
.mc-e { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-more { font-size: 11px; color: var(--muted); }
.year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ym { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ym-h { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.ym-h b { font-size: 12px; color: var(--wood); }
.ym-dow, .ym-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ym-dow div { font-size: 10px; color: var(--muted); text-align: center; }
.yd { font-size: 11px; text-align: center; padding: 4px 0; border-radius: 5px; cursor: pointer; }
.yd:hover { outline: 1px solid var(--wood); }
.yd.l1 { background: #f3e4d3; } .yd.l2 { background: #e5c39d; } .yd.l3 { background: #cf9a62; color: #fff; } .yd.l4 { background: #9c6430; color: #fff; }
.yd.today { outline: 2px solid var(--dark); }
.modal-content { border-radius: 14px; border: 0; }
.modal-body label, .form-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.mat-h { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }
.mat-h h6 { margin: 0; font-weight: 700; }
.it-row { display: grid; grid-template-columns: minmax(0, 2fr) 80px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: end; background: #f8f7f4; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.it-x { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding-bottom: 6px; }
.btn-x { border: 0; background: #e8e6e1; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); }
.btn-x:hover { background: var(--bad-soft); color: var(--bad); }
.cut-what { font-size: 16px; text-align: center; }
.perm-grid { width: 100%; border-collapse: collapse; }
.perm-grid td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.perm-grid td:first-child { font-weight: 500; }
.perm-grid label { text-transform: none; font-weight: 500; color: var(--ink); font-size: 13px; margin-right: 12px; white-space: nowrap; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.page-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.add-inline { display: flex; gap: 8px; margin-bottom: 16px; max-width: 560px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 900px; }
.li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li.inactive .li-name { color: var(--muted); }
.li-name { font-weight: 500; }
.li-sub { color: var(--muted); font-size: 12px; }
.li-act { margin-left: auto; display: flex; gap: 6px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast-msg { background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 90vw; }
.toast-msg.err { background: var(--bad); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { background: var(--card); padding: 36px 30px; border-radius: 16px; width: 100%; max-width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.login-sub { text-align: center; color: var(--muted); margin: 4px 0 24px; }
.login-card label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.login-card input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 15px; }
.login-card button { background: var(--dark); color: #fff; border: 0; border-radius: 8px; padding: 12px; font-weight: 600; font-size: 15px; }
.login-err { background: var(--bad-soft); color: var(--bad); padding: 10px; border-radius: 8px; margin-bottom: 16px; text-align: center; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  #main { padding: 12px 16px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .brand { font-size: 15px; }
  #userName { display: none; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .mc { min-height: 64px; padding: 4px; }
  .mc-e, .mc-more { display: none; }
  .mc-tot { font-size: 11px; padding: 1px 4px; }
  .it-row { grid-template-columns: 1fr 1fr; }
  .it-row .it-mat { grid-column: 1 / -1; }
  .toolbar h2 { font-size: 18px; }
}
/* ---------- Listas ---------- */
.lists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.list-title { font-weight: 700; margin-bottom: 10px; }
.chk { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
/* ---------- Resumen / reportes ---------- */
.rep-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; }
.rep-day.empty { padding: 10px 18px; opacity: .7; }
.rep-h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.rep-h h3 { font-size: 17px; font-weight: 700; margin: 0; }
.rep-h h3[data-goto] { cursor: pointer; }
.rep-h h3[data-goto]:hover { color: var(--wood); }
.rep-kpi { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.rep-kpi b { color: var(--ink); font-size: 16px; }
.rep-day h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 16px 0 6px; }
.rep-empty { color: var(--muted); margin: 6px 0 0; }
.rep-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-t th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rep-t td { padding: 7px 8px; border-bottom: 1px solid #f0eeea; }
.rep-t tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.rep-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.rep-t.click tbody tr { cursor: pointer; }
.rep-t.click tbody tr:hover { background: #faf8f5; }
.rep-t tr.muted td { color: #b8b6b0; }
.rep-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.rep-2 h4 { margin-top: 0; }
@media print {
  .topbar, .toolbar .tb-right, .toolbar .btn-icon, .toolbar .btn-ghost, #toasts { display: none !important; }
  body { background: #fff; }
  #main { padding: 0; }
  .rep-day { break-inside: avoid; border-color: #ccc; }
  .stat { border-color: #ccc; }
}
@media (max-width: 991px) {
  .it-row { grid-template-columns: 1fr 1fr; }
  .it-row .it-mat, .it-row .it-x { grid-column: 1 / -1; }
  .it-x { padding-bottom: 0; }
}
/* ---------- Precios y pedidos web ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.set-f span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cat-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-h h3 { font-size: 16px; font-weight: 700; margin: 0; }
.cat-scroll { overflow-x: auto; }
.cat-t td { vertical-align: middle; padding: 4px 6px; }
.cat-t input.form-control { min-width: 90px; }
.cat-t .name-in { min-width: 300px; }
.cat-t .note-in { min-width: 220px; }
.cat-t .num-in { width: 7.5ch; min-width: 7.5ch !important; max-width: 7.5ch; text-align: right; padding-left: 4px; padding-right: 4px; }
.ost { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #efeeea; color: var(--muted); white-space: nowrap; }
.ost-nuevo { background: var(--blue-soft); color: var(--blue); } .ost-cotizado { background: var(--warn-soft); color: var(--warn); }
.ost-aprobado, .ost-en_produccion { background: var(--wood-soft); color: #8a5a2b; } .ost-listo, .ost-entregado { background: var(--ok-soft); color: var(--ok); }
.ost-cancelado { background: var(--bad-soft); color: var(--bad); }
.prod-box { background: var(--wood-soft); color: #8a5a2b; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.prod-box .btn { display: block; }
.task.prio-urgente { border-left: 4px solid var(--bad); }
.task.prio-alta { border-left: 4px solid var(--warn); }
.task.is-done { opacity: .65; }
.task.is-done .client { text-decoration: line-through; }
.pay.prio { background: var(--warn-soft); color: var(--warn); }
.done-card { border-left: 4px solid var(--ok); }
.task-done { border-left-color: var(--wood); }
.lang-btn { border: 1px solid #3a3a40; background: none; color: #fff; border-radius: 20px; padding: 5px 12px; font-weight: 700; font-size: 12px; letter-spacing: 1px; margin-right: 8px; cursor: pointer; }
.lang-btn:hover { background: #26262b; }
.login-card .lang-btn { color: var(--ink); border-color: var(--line); margin: 14px auto 0; display: block; }
/* ---------- Página web ---------- */
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.web-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; }
.web-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.web-card.off { opacity: .6; }
.web-img { height: 150px; background: #e9e7e2 center / cover no-repeat; }
.web-b { padding: 10px 12px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ph { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.ph.is-cover { border: 2px solid var(--wood); }
.ph-img { height: 110px; border-radius: 6px; background: #eee center / cover no-repeat; }
.ph-a { display: flex; gap: 4px; justify-content: space-between; }
.ph-add { align-items: center; justify-content: center; min-height: 200px; border-style: dashed; cursor: pointer; font-weight: 700; color: var(--muted); }
.ph-add:hover { color: var(--ink); border-color: #c9c6be; }
.chk-row .chk { text-transform: none; font-weight: 500; color: var(--ink); font-size: 14px; letter-spacing: 0; }
/* ---------- Encabezado igual al de la página web (blanco, logo JG, Montserrat) */
.topbar { background: #fff; color: #141416; border-bottom: 1px solid #ecebe7; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #141416; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand .wordmark { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #dcdad5; padding-left: 12px; font: 21px/1 'Montserrat', sans-serif; letter-spacing: .12em; }
.brand .wordmark span { color: #141416; }
.brand .wm-vip { font-weight: 700; }
.brand .wm-ww { font-weight: 300; }
.brand:hover .wm-ww { color: #1b3fa0; }
.brand .wm-sub { display: block; font: 500 8.5px/1 'Montserrat', sans-serif; letter-spacing: .32em; color: #8a8a90 !important; margin-top: 6px; }
#nav button { color: #333; font: 500 12px/1 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 12px 12px; border-radius: 0; }
#nav button:hover { color: #1b3fa0; background: none; }
#nav button.active { color: #141416; background: none; box-shadow: inset 0 -2px 0 #1b3fa0; }
.topbar .btn-ghost.light { color: #141416; border-color: #dcdad5; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.topbar .btn-ghost.light:hover { background: #f4f3ef; }
.topbar .lang-btn { color: #141416; border-color: #dcdad5; font-family: 'Montserrat', sans-serif; }
.topbar .lang-btn:hover { background: #f4f3ef; }
.brand.big { flex-direction: column; gap: 14px; margin: 0 auto; }
.brand.big img { width: 56px; height: 56px; }
.brand.big .wordmark { border-left: 0; padding-left: 0; align-items: center; font-size: 24px; }
.login-card button[type=submit] { background: #1b3fa0; border-radius: 999px; font-family: 'Montserrat', sans-serif; }
@media (max-width: 760px) { .topbar { height: 60px; } .brand img { width: 34px; height: 34px; } .brand .wordmark { font-size: 16px; letter-spacing: .08em; padding-left: 9px; } .brand .wm-sub { display: none; } }#nav { scrollbar-width: none; gap: 0; } #nav::-webkit-scrollbar { display: none; }
#nav button { padding: 12px 9px; letter-spacing: .08em; font-size: 11.5px; }
/* ---------- Entregas */
.dl-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-bar .form-control { max-width: 320px; }
.seg-f { display: inline-flex; background: #ecebe7; border-radius: 999px; padding: 3px; }
.seg-f button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; color: #6d6d73; font-size: 13px; }
.seg-f button.on { background: #fff; color: #141416; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dl-t tbody tr { cursor: pointer; }
.dl-t tbody tr:hover { background: #f6f5f2; }
.tag.dl-abierta { background: #fdf1dc; color: #a8670f; }
.tag.dl-enviada { background: #e8edfa; color: #1b3fa0; }
.tag.dl-facturada { background: #e3f4ea; color: #1f8a4c; }
.tag.dl-anulada { background: #fbe7e4; color: #c0392b; }
.dl-head, .dl-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 32%) 34px; gap: 8px; align-items: center; }
.dl-head { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6d6d73; margin-bottom: 4px; }
.dl-item { margin-bottom: 6px; }
.dl-sug { position: absolute; left: 4px; right: 4px; top: 100%; z-index: 5; background: #fff; border: 1px solid #e3e1dc; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); overflow: hidden; }
.dl-sug:empty { display: none; }
.dl-sug button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font-weight: 600; }
.dl-sug button:hover { background: #f6f5f2; }
.dl-sug small { display: block; color: #6d6d73; font-weight: 400; }
.dl-sig { display: flex; gap: 8px; align-items: flex-end; }
.dl-sig canvas { width: 100%; max-width: 600px; height: 160px; border: 1px dashed #c9c6be; border-radius: 10px; background: #fff; touch-action: none; }
.dl-sig-img { display: block; max-width: 300px; max-height: 100px; border: 1px solid #e3e1dc; border-radius: 8px; margin-bottom: 8px; background: #fff; }
/* ---------- Diseños web */
.tag.dz-nuevo { background: #fdf1dc; color: #a8670f; }
.tag.dz-revisado, .tag.dz-cotizado { background: #e8edfa; color: #1b3fa0; }
.tag.dz-aprobado { background: #e3f4ea; color: #1f8a4c; }
.tag.dz-descartado { background: #ecebe7; color: #6d6d73; }
.dz-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.dz-imgs a { display: block; border: 1px solid #e3e1dc; border-radius: 10px; overflow: hidden; text-decoration: none; color: #141416; background: #fff; }
.dz-imgs img { display: block; width: 100%; height: 130px; object-fit: contain; background: #fff; }
.dz-imgs span { display: block; padding: 6px 8px; font-size: 12px; border-top: 1px solid #e3e1dc; }
tr[data-dz] { cursor: pointer; }
/* Entregas 2026-10-13: cliente de la lista, PO, recoger/enviar, nota por línea */
.dl-cli { display: flex; gap: 6px; }
.dl-cli .btn-ghost { white-space: nowrap; }
.dl-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0 12px 0 0; cursor: pointer; }
.dl-mode { margin-bottom: 8px; }
.dl-ship { background: #f6f5f2; border: 1px solid #ecebe7; border-radius: 12px; padding: 12px 14px; }
.dl-addr { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.dl-q2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-weight: 600; }
@media (max-width: 640px) { .dl-head, .dl-item { grid-template-columns: 64px 1fr 34px; } .dl-head span:nth-child(3) { display: none; } .dl-item .dl-note { grid-column: 2 / 3; grid-row: 2; } }
.dl-item > *, .dl-cli > input { min-width: 0; }
.dl-sig { flex-wrap: wrap; }
.dl-sig canvas { flex: 1 1 260px; min-width: 0; }
.dl-mode-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.dl-mode-row h6 { margin: 0; }
.dl-mode-row .dl-mode { margin: 0; }
/* Íconos pequeños en las pestañas (2026-10-10) */
#nav button { display: inline-flex; align-items: center; gap: 6px; }
.nav-ic { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
#nav button.active .nav-ic { opacity: 1; color: #1b3fa0; }
/* Cada pestaña: ícono arriba y nombre en 2 líneas; todas caben en una fila */
.topbar { gap: 14px; }
#nav { flex-wrap: nowrap; overflow-x: auto; align-items: stretch; justify-content: center; gap: 0; }
#nav button { flex-direction: column; justify-content: center; gap: 4px; white-space: normal; text-align: center; line-height: 1.15; padding: 7px 7px; font-size: 10.5px; letter-spacing: .05em; }
#nav button span { display: block; max-width: 6.6em; }
#nav .nav-ic { width: 17px; height: 17px; flex-basis: auto; }
@media (max-width: 1280px) { .topbar .brand .wordmark { display: none; } }
/* Idioma dentro de Ajustes */
.lang-set { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; font: 600 12px 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.lang-seg { display: inline-flex; background: #ecebe7; border-radius: 999px; padding: 3px; }
.lang-seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font: 600 12px 'Inter', sans-serif; color: #555; cursor: pointer; }
.lang-seg button.on { background: #1b3fa0; color: #fff; }
/* WEB debajo del logo, encabezado de Ajustes y materiales más anchos (2026-10-10) */
.brand-box { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.brand-web { width: 40px; border: 0; background: none; padding: 1px 0 0; font: 700 9.5px/1 'Montserrat', sans-serif; letter-spacing: .14em; color: #1b3fa0; text-align: center; cursor: pointer; }
.brand-web:hover, .brand-web.active { text-decoration: underline; text-underline-offset: 3px; }
.set-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.set-head h3 { margin: 0; }
.set-head .lang-set { margin: 0 0 2px; }
.cat-t[data-cat=materials] .name-in { min-width: 300px; }
.cat-t[data-cat=materials] .note-in { min-width: 200px; }
/* archivos que sube el cliente con su diseño */
.dz-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.dz-file { border: 1px solid #e3e1dc; border-radius: 10px; overflow: hidden; background: #fff; }
.dz-file img, .dz-file video, .dz-file i { display: block; width: 100%; height: 130px; object-fit: contain; background: #f6f5f2; }
.dz-file i { display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 20px; color: #6b6b70; }
.dz-file span { display: block; padding: 6px 8px 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-file small { display: block; padding: 2px 8px 8px; font-size: 11.5px; color: #6b6b70; }