@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* El Gallinero · creación de productos en UltimatePOS */
body:has(#product_add_form){
  --gallinero-ink:var(--ws-primary,#33423a);
  --gallinero-warm:var(--ws-accent,#a78865);
  --gallinero-paper:var(--ws-surface,#fffdfa);
  --gallinero-sand:#f4ede4;
  --gallinero-line:var(--ws-line,#e7dccf);
  background:var(--ws-bg,#faf8f4)!important;
  font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;
}
body:has(#product_add_form) #scrollable-container{background:linear-gradient(180deg,var(--ws-surface,#fffdfa) 0,var(--ws-bg,#faf8f4) 74%)!important}
body:has(#product_add_form) .content-header{display:flex;align-items:center;min-height:108px;margin:0;padding:30px 42px 18px!important;background:transparent!important}
body:has(#product_add_form) .content-header h1{margin:0!important;color:var(--gallinero-ink)!important;font-size:28px!important;font-weight:700!important;letter-spacing:-.045em}
body:has(#product_add_form) .content{max-width:1400px;margin:0 auto;padding:12px 42px 56px!important}
body:has(#product_add_form) #product_add_form .box,
body:has(#product_add_form) #product_add_form .box-primary{margin:0 0 24px!important;border:1px solid var(--gallinero-line)!important;border-top:0!important;border-radius:14px!important;background:var(--gallinero-paper)!important;box-shadow:0 10px 30px rgba(59,46,31,.055)!important}
body:has(#product_add_form) #product_add_form .box-header{padding:22px 28px 14px!important;border-bottom:1px solid #f0e8de!important}
body:has(#product_add_form) #product_add_form .box-header:before{content:'INFORMACIÓN DEL PRODUCTO';color:var(--gallinero-warm);font-size:10px;font-weight:700;letter-spacing:.11em}
body:has(#product_add_form) #product_add_form .box-body{padding:27px 28px 30px!important}
body:has(#product_add_form) #product_add_form .form-group{margin-bottom:22px!important}
body:has(#product_add_form) #product_add_form label{margin-bottom:8px!important;color:#48534d!important;font-size:11px!important;font-weight:700!important;letter-spacing:.025em}
body:has(#product_add_form) #product_add_form .form-control,
body:has(#product_add_form) #product_add_form .select2-container--default .select2-selection--single,
body:has(#product_add_form) #product_add_form .select2-container--default .select2-selection--multiple{min-height:43px!important;border:1px solid #ded3c5!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;color:var(--ws-primary,#34423a)!important;font-size:13px!important;transition:border-color .18s ease,box-shadow .18s ease!important}
body:has(#product_add_form) #product_add_form .select2-container--default .select2-selection--single .select2-selection__rendered{padding-left:13px!important;line-height:41px!important;color:var(--ws-primary,#34423a)!important}
body:has(#product_add_form) #product_add_form .select2-container--default .select2-selection--single .select2-selection__arrow{height:41px!important}
body:has(#product_add_form) #product_add_form .form-control:focus,
body:has(#product_add_form) #product_add_form .select2-container--open .select2-selection{border-color:#b59672!important;box-shadow:0 0 0 3px rgba(167,136,101,.13)!important}
body:has(#product_add_form) #product_add_form .input-group-btn .btn{height:43px!important;border:1px solid #ded3c5!important;border-left:0!important;border-radius:0 9px 9px 0!important;background:#f7f0e7!important;color:#8b6f50!important}
body:has(#product_add_form) #product_add_form .input-group .form-control{border-radius:9px 0 0 9px!important}
body:has(#product_add_form) #product_add_form .btn-primary,
body:has(#product_add_form) #product_add_form button[type='submit']{min-height:43px;padding:10px 18px!important;border:0!important;border-radius:9px!important;background:var(--gallinero-ink)!important;color:#fff!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;font-size:11px!important;font-weight:700!important;letter-spacing:.025em;box-shadow:0 6px 14px rgba(44,58,51,.16)!important;transition:background .18s ease,transform .18s ease!important}
body:has(#product_add_form) #product_add_form .btn-primary:hover,
body:has(#product_add_form) #product_add_form button[type='submit']:hover{background:var(--gallinero-warm)!important;transform:translateY(-1px)}
body:has(#product_add_form) .main-header .navbar{background:var(--ws-primary,#34423a)!important;border-bottom:1px solid rgba(255,255,255,.12)!important}
body:has(#product_add_form) .main-sidebar{background:var(--ws-surface,#fffdfa)!important;border-right:1px solid #ebe0d4!important;box-shadow:none!important}
body:has(#product_add_form) #side-bar a.theme-sidebar-active{background:#f0e6d9!important;color:#765c42!important}
body:has(#product_add_form) .main-footer{border-top:1px solid var(--gallinero-line)!important;background:var(--ws-surface,#fffdfa)!important;color:#807465!important}
@media(max-width:767px){body:has(#product_add_form) .content-header{min-height:82px;padding:22px 20px 12px!important}body:has(#product_add_form) .content{padding:8px 18px 36px!important}body:has(#product_add_form) #product_add_form .box-body{padding:20px!important}}

/* Sistema compartido para módulos de UltimatePOS. */
:root{--gallinero-ink:var(--ws-primary,#34423a);--gallinero-warm:var(--ws-accent,#a78865);--gallinero-paper:var(--ws-surface,#fffdfa);--gallinero-sand:var(--ws-bg,#f7f1e9);--gallinero-line:var(--ws-line,#e8ddd0)}
body{font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;background:var(--ws-bg,#faf8f4)!important;color:#48534d!important}
#scrollable-container{background:linear-gradient(180deg,var(--ws-surface,#fffdfa) 0,var(--ws-bg,#faf8f4) 76%)!important}
.content-header{min-height:92px;padding:27px 38px 14px!important;background:transparent!important}.content-header h1{margin:0!important;color:var(--gallinero-ink)!important;font-size:26px!important;font-weight:700!important;letter-spacing:-.045em}
.content{padding:14px 38px 48px!important}.box,.box.box-primary,.modal-content{border:1px solid var(--gallinero-line)!important;border-top:0!important;border-radius:12px!important;background:var(--gallinero-paper)!important;box-shadow:0 8px 24px rgba(59,46,31,.05)!important}.box-header{padding:18px 22px!important;border-bottom:1px solid #f0e8de!important}.box-header>.box-title{color:var(--gallinero-ink)!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;font-size:14px!important;font-weight:700!important}.box-body{padding:22px!important}.box-footer{padding:16px 22px!important;border-top:1px solid #f0e8de!important;background:#fcf9f5!important}
.form-group{margin-bottom:18px!important}label,.control-label{margin-bottom:7px!important;color:#4b5650!important;font-size:11px!important;font-weight:700!important;letter-spacing:.02em}.form-control,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple{min-height:42px!important;border:1px solid #dfd4c6!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;color:var(--ws-primary,#34423a)!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;font-size:13px!important}.select2-container--default .select2-selection--single .select2-selection__rendered{padding-left:12px!important;line-height:40px!important;color:var(--ws-primary,#34423a)!important}.select2-container--default .select2-selection--single .select2-selection__arrow{height:40px!important}.form-control:focus,.select2-container--open .select2-selection{border-color:#b59672!important;box-shadow:0 0 0 3px rgba(167,136,101,.13)!important}
.btn{border-radius:8px!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif)!important;font-size:11px!important;font-weight:700!important;letter-spacing:.015em;transition:transform .18s ease,background .18s ease,border-color .18s ease!important}.btn-primary,.btn-success{border:0!important;background:var(--gallinero-ink)!important;color:#fff!important;box-shadow:0 5px 12px rgba(44,58,51,.14)!important}.btn-primary:hover,.btn-success:hover{background:var(--gallinero-warm)!important;transform:translateY(-1px)}.btn-default,.btn-secondary{border-color:#dfd2c2!important;background:var(--ws-surface,#fffdfa)!important;color:#66533e!important}.btn-default:hover,.btn-secondary:hover{border-color:#ba9c78!important;background:#f7ede2!important}.btn-danger{background:#9d554b!important;border-color:#9d554b!important}
.table{margin-bottom:0!important;background:var(--ws-surface,#fffdfa)}.table>thead>tr>th{padding:13px 12px!important;border-bottom:1px solid #ded3c5!important;color:#907558!important;font-size:10px!important;font-weight:700!important;letter-spacing:.07em;text-transform:uppercase}.table>tbody>tr>td{padding:13px 12px!important;border-top:1px solid #f0e9df!important;color:#4d5851!important;font-size:12px!important;vertical-align:middle!important}.table-hover>tbody>tr:hover{background:#faf4ec!important}.dataTables_wrapper .dataTables_filter input,.dataTables_wrapper .dataTables_length select{border:1px solid #dfd4c6!important;border-radius:8px!important;background:#fff!important;min-height:36px;padding:6px 10px!important}.pagination>li>a,.pagination>li>span{border-color:#e5d9ca!important;color:#66533e!important}.pagination>.active>a,.pagination>.active>span{border-color:var(--ws-primary,#34423a)!important;background:var(--ws-primary,#34423a)!important;color:#fff!important}
.main-header .navbar{background:var(--ws-primary,#34423a)!important;border-bottom:1px solid rgba(255,255,255,.12)!important}.main-sidebar{background:var(--ws-surface,#fffdfa)!important;border-right:1px solid #ebe0d4!important;box-shadow:none!important}#side-bar a.theme-sidebar-active{background:#f0e6d9!important;color:#765c42!important}.main-footer{border-top:1px solid var(--gallinero-line)!important;background:var(--ws-surface,#fffdfa)!important;color:#807465!important}.modal-header,.modal-footer{border-color:#eee4d9!important}.modal-title{color:var(--gallinero-ink)!important;font-weight:700!important}

/* Crear producto: grilla fluida. Los campos ocupan el siguiente espacio disponible. */
#product_add_form>.box>.box-body>.row{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;margin-right:-10px!important;margin-left:-10px!important}
#product_add_form>.box>.box-body>.row>.clearfix{display:none!important}
#product_add_form>.box>.box-body>.row>[class*='col-sm-']{float:none!important;min-height:0!important;padding-right:10px!important;padding-left:10px!important}
#product_add_form>.box>.box-body>.row>.col-sm-4{flex:0 0 33.333333%!important;max-width:33.333333%!important}
#product_add_form>.box>.box-body>.row>.col-sm-6{flex:0 0 50%!important;max-width:50%!important}
#product_add_form>.box>.box-body>.row>.col-sm-12{flex:0 0 100%!important;max-width:100%!important}
#product_add_form .box{overflow:visible!important}#product_add_form .well,#product_add_form .panel{margin-bottom:18px!important;border:1px solid #e9dfd3!important;border-radius:10px!important;background:#fcf8f3!important;box-shadow:none!important}
@media(max-width:767px){.content-header{min-height:76px;padding:21px 18px 10px!important}.content{padding:10px 16px 34px!important}.box-body{padding:18px!important}#product_add_form>.box>.box-body>.row>.col-sm-4,#product_add_form>.box>.box-body>.row>.col-sm-6{flex-basis:100%!important;max-width:100%!important}}
/* Editor de catálogo: jerarquía compacta y campos guiados. */
.gallinero-name-field{order:-20}.gallinero-image-first{order:-30}.gallinero-inline-check{display:flex;align-items:center;gap:8px;margin-top:9px!important;color:#746a5e!important;font-size:10px!important;font-weight:600!important}.gallinero-inline-check input{margin:0!important}
.gallinero-image-uploader{display:flex;align-items:center;gap:22px;max-width:720px;padding:16px;border:1px solid #e4d8ca;border-radius:11px;background:#fcfaf7}.gallinero-file-input{display:none!important}.gallinero-image-dropzone{position:relative;flex:0 0 180px;margin:0!important;cursor:pointer}.gallinero-image-preview{width:180px;height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px dashed #cdbca8;border-radius:9px;background:#fff;color:#8d7d6a;font-size:11px;line-height:1.45;text-align:center;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.gallinero-image-preview span{max-width:125px}.gallinero-image-preview i{display:block;margin-bottom:9px;color:var(--ws-accent,#a78865);font-size:25px}.gallinero-image-preview img{width:100%;height:100%;object-fit:cover}.gallinero-image-action{position:absolute;right:8px;bottom:8px;left:8px;padding:8px;border-radius:7px;background:rgba(52,66,58,.9);color:#fff;font-size:9px;font-weight:700;text-align:center;opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease}.gallinero-image-dropzone:hover .gallinero-image-preview{border-color:var(--ws-accent,#a78865);box-shadow:0 8px 20px rgba(69,53,36,.1);transform:translateY(-1px)}.gallinero-image-dropzone:hover .gallinero-image-action{opacity:1;transform:none}.gallinero-image-copy{display:flex;align-items:flex-start;flex:1;flex-direction:column;gap:7px}.gallinero-image-copy strong{color:var(--ws-primary,#34423a);font-size:13px}.gallinero-image-copy small{max-width:370px;color:#81776b;font-size:10px;line-height:1.55}.gallinero-ai-fill{min-height:38px!important;margin-top:5px;padding:9px 14px!important;border:1px solid #bca589!important;border-radius:8px!important;background:#fff!important;color:#765d43!important}.gallinero-ai-fill:not(:disabled):hover{background:#f1e6d9!important;transform:translateY(-1px)}
.gallinero-advanced-identification{order:-18;margin:2px 10px 20px;padding:0!important;border:1px solid #eee4d8;border-radius:9px;background:#fcfaf7}.gallinero-advanced-identification>summary{padding:13px 16px;cursor:pointer;color:#5e5143;font-size:11px;font-weight:700;list-style-position:inside}.gallinero-advanced-identification>summary span{margin-left:8px;color:#9b8d7c;font-weight:500}.gallinero-advanced-identification>.row{margin:0!important;padding:6px 10px 0}.gallinero-compact-field .form-group{margin-bottom:14px!important}
.gallinero-stock-toggle,.gallinero-stock-alert{min-height:90px;padding-top:3px}.gallinero-stock-toggle .form-group{height:100%;padding:14px;border:1px solid var(--ws-line,#e8ddd0);border-radius:9px;background:#fcf8f3}.gallinero-description-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 0}.gallinero-description-actions .help-block{margin:0!important;line-height:1.45}.gallinero-preview-description{white-space:nowrap}.gallinero-dimensions-heading{padding:7px 10px 12px!important;color:#8b745a;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.gallinero-public-catalog .select2-selection--multiple{padding:4px 7px!important}.gallinero-public-catalog .select2-selection__choice{border:0!important;border-radius:5px!important;background:#eee5da!important;color:#5b4e40!important;font-size:10px!important}.gallinero-field-note{display:block;margin-top:6px;color:#958876;font-size:9px;line-height:1.4}.gallinero-section-heading{width:100%;padding:0 10px 18px}.gallinero-section-heading h3{margin:0 0 6px;color:var(--ws-primary,#34423a);font-size:18px;font-weight:700}.gallinero-section-heading p{margin:0;color:#80766a;font-size:11px}.gallinero-preview-modal .modal-body{padding:28px!important}.gallinero-product-preview{max-width:680px;margin:auto;color:var(--ws-primary,#34423a)}.gallinero-product-preview h2{font:700 28px/1.15 Montserrat,sans-serif}.gallinero-product-preview .preview-description{font-size:14px;line-height:1.75}.gallinero-ai-status{display:none;padding:9px 11px;border-radius:7px;background:#f4ede4;color:#725d46;font-size:10px;line-height:1.45}
@media(max-width:767px){.gallinero-image-uploader{align-items:flex-start;flex-direction:column}.gallinero-image-dropzone,.gallinero-image-preview{width:150px;height:150px;flex-basis:150px}.gallinero-advanced-identification{margin-right:10px!important;margin-left:10px!important}.gallinero-description-actions{align-items:flex-start;flex-direction:column}}

/* Precios e imágenes: cabeceras legibles y carga visual coherente. */
#product_add_form .gallinero-pricing-table{border:1px solid #e5dacd!important;border-radius:10px!important;border-collapse:separate!important;border-spacing:0!important;overflow:hidden;background:#fff!important}
#product_add_form .gallinero-pricing-table>tbody>tr:first-child>th{padding:14px 16px!important;background:#f7f2eb!important;border:0!important;border-bottom:1px solid #e5dacd!important;color:var(--ws-primary,#34423a)!important;text-transform:none!important;vertical-align:top!important}
#product_add_form .gallinero-pricing-table th span{display:block;font-size:11px;font-weight:700;letter-spacing:.01em}
#product_add_form .gallinero-pricing-table th small{display:block;margin-top:3px;color:#958776;font-size:9px;font-weight:500;letter-spacing:0;text-transform:none}
#product_add_form .gallinero-pricing-table>tbody>tr:nth-child(2)>td{padding:17px 14px!important;border:0!important;border-right:1px solid #eee5da!important;background:#fff!important;vertical-align:top!important}
#product_add_form .gallinero-pricing-table>tbody>tr:nth-child(2)>td:last-child{border-right:0!important}
#product_add_form .gallinero-pricing-table .col-sm-6{padding-right:5px!important;padding-left:5px!important}
.gallinero-variation-image-field{margin:0!important}.gallinero-variation-upload{display:flex!important;align-items:center;justify-content:center;min-height:104px!important;margin:0!important;padding:13px!important;border:1px dashed #cdbca8;border-radius:8px;background:#fcfaf7;color:#75624d!important;cursor:pointer;flex-direction:column;gap:4px;text-align:center;transition:border-color .18s ease,background .18s ease,transform .18s ease}.gallinero-variation-upload i{margin-bottom:3px;color:var(--ws-accent,#a78865);font-size:22px}.gallinero-variation-upload span{font-size:10px;font-weight:700}.gallinero-variation-upload small{color:#958776;font-size:8px;font-weight:500;line-height:1.4}.gallinero-variation-upload:hover{border-color:var(--ws-accent,#a78865);background:#f7efe5;transform:translateY(-1px)}
#product_add_form>.box{margin-bottom:24px!important}

/* Bloque editorial: separado de precio e inventario, sin repetir datos operativos. */
.gallinero-public-catalog .gallinero-section-title{padding:4px 0 22px;border-bottom:1px solid #eee4d9;margin-bottom:22px}.gallinero-section-title span{color:var(--ws-accent,#a78865);font-size:10px;font-weight:700;letter-spacing:.11em}.gallinero-section-title h3{margin:7px 0;color:var(--ws-primary,#34423a);font-size:19px;font-weight:700;letter-spacing:-.035em}.gallinero-section-title p{max-width:640px;margin:0;color:#777166;font-size:12px;line-height:1.55}.gallinero-public-catalog textarea.form-control{min-height:88px!important;padding-top:11px!important;resize:vertical}.gallinero-checkbox-field{min-height:88px;padding:17px;border:1px solid #e4d8c9;border-radius:9px;background:#fcf7f0}.gallinero-checkbox-field label{font-size:12px!important}.gallinero-checkbox-field .help-block{margin:7px 0 0;color:#897b69;font-size:10px}.gallinero-seo-details{margin-top:4px;border-top:1px solid #eee4d9}.gallinero-seo-details summary{padding:16px 0;cursor:pointer;color:#65533e;font-size:12px;font-weight:700}.gallinero-seo-details summary span{margin-left:7px;color:var(--ws-accent,#a78865);font-size:10px;font-weight:600}.gallinero-seo-details[open] summary{border-bottom:1px solid #eee4d9;margin-bottom:18px}

/* La fotografía se elige desde la tarjeta; se oculta por completo el botón nativo “Vistazo”. */
.gallinero-image-uploader .gallinero-file-input,
.gallinero-image-uploader > .file-input,
.gallinero-image-uploader .file-input-new{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.gallinero-image-preview img{object-fit:contain!important;background:#fff}
.gallinero-ai-config{color:#897b69!important}
.gallinero-feature-duration{display:flex;align-items:center;gap:13px;margin-top:12px}
.gallinero-feature-duration .form-control{width:120px!important;min-height:36px!important}
.gallinero-renew-check{display:flex!important;align-items:center;gap:7px;margin:0!important;font-size:9px!important;font-weight:600!important}
.gallinero-renew-check input{margin:0!important}

/* Product editor: category creation, unique items, and a public-style preview. */
.gallinero-category-picker{display:flex;align-items:stretch;gap:8px}.gallinero-category-picker>.select2{flex:1;min-width:0}.gallinero-category-add{flex:0 0 38px;border:1px solid #d9c9b7;border-radius:8px;background:var(--ws-surface,#fffdfa);color:#6c5843;font-size:14px;transition:background .18s,border-color .18s}.gallinero-category-add:hover{border-color:var(--ws-accent,#a98d6e);background:#f5eee5}.gallinero-category-parent{margin:12px 0 0;color:#776d61}.gallinero-category-error{margin-top:10px;color:#a14036}.gallinero-category-save{border:1px solid #755f48;background:#755f48;color:#fff}.gallinero-category-save:hover{background:#594733;color:#fff}.gallinero-unique-stock .form-group{min-height:90px;padding:14px;border:1px solid var(--ws-line,#e8ddd0);border-radius:9px;background:#fcf8f3}.gallinero-unique-stock label{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ws-primary,#34423a);font-weight:700}.gallinero-unique-stock small{display:block;color:#81776b;line-height:1.4}.gallinero-preview-modal .modal-dialog{width:min(1080px,calc(100% - 24px));margin:24px auto}.gallinero-preview-modal .modal-content{border:1px solid #e6ddd1;border-radius:18px;background:var(--ws-surface,#fffdfa);box-shadow:0 24px 65px rgba(20,28,23,.2)}.gallinero-preview-modal .modal-body{padding:28px!important}.gallinero-product-preview{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:38px;max-width:none;margin:0;color:#354039;font-family:var(--ws-font,Montserrat,Arial,sans-serif)}.gallinero-preview-image{display:grid;place-items:center;min-height:360px;aspect-ratio:1/1;overflow:hidden;border-radius:12px;background:#f3f1ed;color:#8c857c}.gallinero-preview-image img{display:block;width:100%;height:100%;object-fit:contain}.gallinero-preview-copy{display:flex;flex-direction:column;gap:16px;min-width:0;padding:6px 0}.gallinero-preview-category{margin:0;color:#967555;font:700 11px/1.4 Montserrat,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase}.gallinero-product-preview h2{margin:0;color:#303a34;font:650 34px/1.18 Montserrat,Arial,sans-serif;letter-spacing:-.04em;overflow-wrap:anywhere}.gallinero-preview-price{color:#5e4b3b;font:700 23px/1.3 Montserrat,Arial,sans-serif}.gallinero-preview-description{padding-top:17px;border-top:1px solid #eae2d9}.gallinero-preview-description h3{margin:0 0 10px;color:#344039;font:700 15px/1.4 Montserrat,Arial,sans-serif}.gallinero-preview-description .preview-description{color:#667069;font:500 14px/1.7 Montserrat,Arial,sans-serif;white-space:pre-line}.gallinero-preview-specs{margin:0;border-top:1px solid #eae2d9}.gallinero-preview-specs>div{display:grid;grid-template-columns:95px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #eae2d9}.gallinero-preview-specs dt{color:#8a7968;font-weight:500}.gallinero-preview-specs dd{margin:0;color:#344039;font-weight:650}.gallinero-preview-actions{display:flex;flex-wrap:wrap;gap:10px}.gallinero-preview-actions span{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border:1px solid #cbb698;border-radius:10px;background:#e8d8c0;color:#3c362d;font:700 11px/1.3 Montserrat,Arial,sans-serif}.gallinero-preview-actions span+span{background:var(--ws-surface,#fffdfa)}.gallinero-preview-note{display:block;margin-top:18px;color:#81776b}@media(max-width:760px){.gallinero-product-preview{grid-template-columns:1fr;gap:20px}.gallinero-preview-image{min-height:240px;max-height:360px}.gallinero-product-preview h2{font-size:26px}}

/* Product editor layout and main image removal. */
.gallinero-image-slot{position:relative;flex:0 0 180px;width:180px}.gallinero-image-slot .gallinero-image-dropzone{display:block;width:100%}.gallinero-image-remove{position:absolute;z-index:2;top:8px;right:8px;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #d8cec1;border-radius:50%;background:var(--ws-surface,#fffdfa);color:#5c534b;box-shadow:0 2px 8px rgba(27,28,25,.12);font:400 22px/1 Arial,sans-serif;cursor:pointer;transition:background .18s,color .18s,transform .18s}.gallinero-image-remove:hover{background:#4c4138;color:#fff;transform:scale(1.05)}.gallinero-image-remove[hidden]{display:none!important}.gallinero-product-classification{margin:4px 0 10px}.gallinero-product-classification>.row+.row{margin-top:8px}.gallinero-group-title{margin:0 0 10px;color:#75634f;font:700 11px/1.4 Montserrat,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}.gallinero-inventory-section{margin:13px 0 20px;padding-top:18px;border-top:1px solid var(--ws-line,#e8ddd0)}.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-unique-stock{margin-bottom:10px}.gallinero-inventory-section .gallinero-stock-alert .form-group{min-height:90px;padding:13px 14px;border:1px solid var(--ws-line,#e8ddd0);border-radius:9px;background:#fcf8f3}.gallinero-inventory-option .form-group{min-height:78px;padding:13px 14px;border:1px solid var(--ws-line,#e8ddd0);border-radius:9px;background:#fcf8f3}.gallinero-inventory-option label{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ws-primary,#34423a);font-weight:700}.gallinero-inventory-option small{display:block;color:#81776b;line-height:1.4}@media(max-width:767px){.gallinero-image-slot{flex:0 0 150px;width:150px}.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-unique-stock{min-height:0}}
.gallinero-image-rotate{position:absolute;z-index:2;top:8px;right:43px;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #d8cec1;border-radius:50%;background:var(--ws-surface,#fffdfa);color:#5c534b;box-shadow:0 2px 8px rgba(27,28,25,.12);font-size:11px;cursor:pointer;transition:background .18s,color .18s,transform .18s}.gallinero-image-rotate:hover{background:#4c4138;color:#fff;transform:scale(1.05)}.gallinero-image-rotate[hidden]{display:none!important}.gallinero-image-preview img,.gallinero-preview-image img{transition:transform .24s ease;transform-origin:center center}

/* Product editor: one visual language for stock and visibility controls. */
.gallinero-inventory-section .row{display:flex;flex-wrap:wrap}.gallinero-inventory-section .gallinero-group-title{flex:0 0 100%}.gallinero-inventory-section .clearfix{flex:0 0 100%}.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-unique-stock,.gallinero-inventory-section .gallinero-inventory-option,.gallinero-inventory-section .gallinero-featured-row{display:flex;min-height:0!important;margin-bottom:12px}.gallinero-inventory-section .form-group{width:100%;min-height:92px!important;margin:0!important;padding:14px!important;border:1px solid var(--ws-line,#e8ddd0)!important;border-radius:9px!important;background:var(--ws-surface,#fffdfa)!important}.gallinero-inventory-section label{display:flex!important;align-items:center;gap:9px;min-height:20px;margin:0 0 8px!important;color:var(--ws-primary,#34423a);font-weight:650}.gallinero-inventory-section label input[type=checkbox]{flex:none;width:16px;height:16px;margin:0;accent-color:#806747}.gallinero-inventory-section small,.gallinero-inventory-section .help-block{display:block;margin:5px 0 0!important;color:#81776b;font-size:11px;line-height:1.45}.gallinero-inventory-section .gallinero-featured-row{flex:0 0 100%;padding-inline:15px}.gallinero-featured-row>.col-sm-6{width:100%;padding:0}.gallinero-featured-field .gallinero-feature-duration{margin:8px 0 0}.gallinero-featured-field .gallinero-feature-duration select{max-width:160px}.gallinero-description-field{margin:20px 0 8px;padding-top:19px;border-top:1px solid var(--ws-line,#e8ddd0)}.gallinero-description-field .gallinero-group-title{margin-bottom:12px}.gallinero-dimension-display{text-align:right;font-variant-numeric:tabular-nums}.gallinero-category-picker .gallinero-category-add:focus-visible{outline:2px solid #8c7154;outline-offset:2px}@media(max-width:767px){.gallinero-inventory-section .gallinero-featured-row{padding-inline:15px}}
/* Compact inventory cards: three fields per row on desktop. */
.gallinero-inventory-section{margin-bottom:12px;padding-top:14px}.gallinero-inventory-section>.row{row-gap:10px}.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-unique-stock,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-inventory-option,.gallinero-inventory-section .gallinero-featured-row{flex:0 0 33.333333%;width:33.333333%;max-width:33.333333%;margin:0!important;padding-inline:8px}.gallinero-inventory-section .gallinero-group-title{margin-bottom:0;padding-inline:8px}.gallinero-inventory-section .form-group{min-height:82px!important;padding:11px 12px!important}.gallinero-inventory-section .gallinero-stock-alert .form-group{min-height:82px!important;padding:11px 12px!important}.gallinero-inventory-section .gallinero-featured-row>.col-sm-6{width:100%;max-width:100%;padding:0}.gallinero-inventory-section .gallinero-featured-field{display:grid;grid-template-columns:minmax(0,1fr) 95px;column-gap:7px;align-content:center}.gallinero-inventory-section .gallinero-featured-field>label{margin:0!important}.gallinero-inventory-section .gallinero-feature-duration{margin:0}.gallinero-inventory-section .gallinero-feature-duration select{height:28px;padding:2px 5px;font-size:10px}.gallinero-inventory-section .gallinero-featured-field>.help-block{grid-column:1/-1;margin-top:4px!important}.gallinero-inventory-section .gallinero-renew-check{grid-column:1/-1;font-size:10px}.gallinero-inventory-section small,.gallinero-inventory-section .help-block{font-size:10px;line-height:1.3}.gallinero-inventory-section label{font-size:11px;line-height:1.25}.gallinero-inventory-section .gallinero-stock-alert label{margin-bottom:5px!important}.gallinero-inventory-section .gallinero-stock-alert input{height:30px}.gallinero-inventory-section .gallinero-stock-toggle .form-group{min-height:82px!important}@media(max-width:950px){.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-unique-stock,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-inventory-option,.gallinero-inventory-section .gallinero-featured-row{flex-basis:50%;width:50%;max-width:50%}}@media(max-width:600px){.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-unique-stock,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-inventory-option,.gallinero-inventory-section .gallinero-featured-row{flex-basis:100%;width:100%;max-width:100%}.gallinero-inventory-section .gallinero-featured-field{grid-template-columns:minmax(0,1fr) 95px}}
/* Additional image gallery editor. */
.gallinero-variation-image-field,.variation-image-upload{min-width:190px}.gallinero-gallery-new,.variation-image-upload .existing-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin-top:9px}.gallinero-gallery-card,.gallinero-gallery-existing{position:relative;display:flex;flex-direction:column;min-width:0;margin:0!important;padding:5px!important;border:1px solid #ded7cd!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}.gallinero-gallery-stage{display:grid;place-items:center;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:5px;background:#f7f4ef}.gallinero-gallery-stage img,.gallinero-gallery-existing img{display:block;max-width:100%;width:100%!important;height:100%!important;object-fit:contain!important;transition:transform .2s}.gallinero-gallery-existing img{height:86px!important;background:#f7f4ef}.gallinero-gallery-stage.is-loading:before{content:'Preparando…';font-size:10px;color:#746a5e}.gallinero-gallery-actions{display:flex;justify-content:space-between;gap:4px;margin-top:5px}.gallinero-gallery-actions button,.gallinero-gallery-rotate-existing{display:grid;place-items:center;width:28px;height:26px;border:1px solid #e0d7ca;border-radius:5px;background:var(--ws-surface,#fffdfa);color:#5d5145;cursor:pointer}.gallinero-gallery-actions button:hover,.gallinero-gallery-rotate-existing:hover{background:#f2e8db}.gallinero-gallery-card small{overflow:hidden;color:#82796e;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.gallinero-gallery-existing .delete-media{position:absolute!important;top:6px!important;right:6px!important;z-index:2;display:grid;place-items:center;width:24px;height:24px;border:1px solid #e0d7ca;border-radius:5px;background:var(--ws-surface,#fffdfa)!important;color:#5d5145!important;cursor:pointer}.gallinero-gallery-rotate-existing{margin-top:5px}.gallinero-variation-upload{min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px dashed #d3c2ae;border-radius:8px;background:var(--ws-surface,#fffdfa);cursor:pointer}.gallinero-variation-upload:hover{background:#f4ecdf;border-color:var(--ws-accent,#a98d6e)}.gallinero-variation-upload small{color:#807366;font-size:10px;text-align:center}@media(max-width:767px){.gallinero-pricing-table{min-width:660px}.gallinero-gallery-new,.variation-image-upload .existing-images{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}}
@media(max-width:767px){.product_form .gallinero-pricing-table{display:block;width:100%!important;min-width:0!important}.product_form .gallinero-pricing-table tbody{display:block}.product_form .gallinero-pricing-table tr:first-child{display:none}.product_form .gallinero-pricing-table tr:nth-child(2){display:grid;grid-template-columns:1fr;gap:8px}.product_form .gallinero-pricing-table tr:nth-child(2)>td{display:block;width:100%!important;padding:11px 12px!important;border-right:0!important;border-bottom:1px solid #eee5da!important}.product_form .gallinero-pricing-table tr:nth-child(2)>td:before{display:block;margin-bottom:7px;color:#6d5b47;font:700 11px Montserrat,Arial,sans-serif}.product_form .gallinero-pricing-table tr:nth-child(2)>td:nth-child(1):before{content:'Precio de compra'}.product_form .gallinero-pricing-table tr:nth-child(2)>td:nth-child(2):before{content:'Margen'}.product_form .gallinero-pricing-table tr:nth-child(2)>td:nth-child(3):before{content:'Precio de venta'}.product_form .gallinero-pricing-table tr:nth-child(2)>td:nth-child(4):before{content:'Imágenes adicionales'}.product_form .gallinero-pricing-table .col-sm-6{width:50%;float:left;padding-inline:5px}.product_form .gallinero-pricing-table .gallinero-gallery-new{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}}
/* Product editor finishing pass. */
.gallinero-hidden-advanced{display:none!important}.gallinero-advanced-identification>.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px;align-items:start}.gallinero-advanced-identification .gallinero-compact-field{float:none;width:auto;max-width:none;min-width:0;padding-inline:0}.gallinero-advanced-identification .gallinero-compact-field .form-group{min-width:0}.product_form .gallinero-pricing-table{width:100%!important;table-layout:fixed}.product_form .gallinero-pricing-table th,.product_form .gallinero-pricing-table td{min-width:0;overflow-wrap:anywhere}.product_form .gallinero-pricing-table th:last-child,.product_form .gallinero-pricing-table td:last-child{width:23%}.product_form .gallinero-variation-image-field{width:100%;min-width:0;max-width:100%;overflow:hidden}.product_form .gallinero-gallery-new,.product_form .variation-image-upload .existing-images{display:grid;width:100%;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.product_form .gallinero-gallery-card,.product_form .gallinero-gallery-existing{min-width:0;max-width:100%;overflow:hidden}.product_form .gallinero-gallery-stage{width:100%;min-width:0}.product_form .gallinero-gallery-stage img{max-width:100%;max-height:100%;object-fit:contain}.product_form .gallinero-pricing-table .gallinero-variation-upload{width:100%;max-width:100%;white-space:normal}.gallinero-inventory-section>.row{align-items:stretch}.gallinero-inventory-section .gallinero-stock-toggle,.gallinero-inventory-section .gallinero-unique-stock,.gallinero-inventory-section .gallinero-stock-alert,.gallinero-inventory-section .gallinero-inventory-option,.gallinero-inventory-section .gallinero-featured-row{align-self:stretch}.gallinero-inventory-section .form-group,.gallinero-inventory-section .gallinero-stock-alert .form-group,.gallinero-inventory-section .gallinero-stock-toggle .form-group,.gallinero-inventory-section .gallinero-unique-stock .form-group{flex:1;height:100%;min-height:0!important;padding:10px 12px!important}.gallinero-inventory-section .gallinero-stock-toggle .form-group{display:flex;flex-direction:column;justify-content:center}.gallinero-inventory-section .gallinero-stock-alert .form-group{display:flex;flex-direction:column;justify-content:center}.gallinero-inventory-section .gallinero-featured-field{min-height:0!important}@media(max-width:800px){.gallinero-advanced-identification>.row{grid-template-columns:1fr;gap:2px}.product_form .gallinero-pricing-table th:last-child,.product_form .gallinero-pricing-table td:last-child{width:auto}}
/* Purchase price gets space for both tax fields; margin stays compact. */
@media(min-width:768px){.product_form .gallinero-pricing-table--gallery th:nth-child(1),.product_form .gallinero-pricing-table--gallery td:nth-child(1){width:38%}.product_form .gallinero-pricing-table--gallery th:nth-child(2),.product_form .gallinero-pricing-table--gallery td:nth-child(2){width:12%}.product_form .gallinero-pricing-table--gallery th:nth-child(3),.product_form .gallinero-pricing-table--gallery td:nth-child(3){width:27%}.product_form .gallinero-pricing-table--gallery th:nth-child(4),.product_form .gallinero-pricing-table--gallery td:nth-child(4){width:23%}}.product_form .gallinero-pricing-table--gallery td:first-child .col-sm-6{width:50%;min-width:0}.product_form .gallinero-pricing-table--gallery td:first-child label{display:block;white-space:nowrap;font-size:11px}.product_form .gallinero-pricing-table--gallery td:first-child input{width:100%;min-width:0}.product_form .gallinero-pricing-table--gallery td:nth-child(2) input{width:100%;min-width:0}@media(max-width:900px) and (min-width:768px){.product_form .gallinero-pricing-table--gallery td:first-child .col-sm-6{width:100%;float:none}.product_form .gallinero-pricing-table--gallery td:first-child .col-sm-6+.col-sm-6{margin-top:7px}}
.gallinero-image-tools{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;width:100%;min-width:0;margin-top:5px}
.gallinero-image-tools .gallinero-ai-fill{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;min-height:38px!important;margin:0!important;padding:7px 10px!important;font-size:12px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap}
.gallinero-chatgpt-image{display:inline-flex!important;align-items:center;justify-content:center;gap:3px;min-height:38px!important;max-width:100%;margin:0!important;padding:7px 12px!important;border:1px solid #d7cbbb!important;border-radius:8px!important;background:#fff!important;color:#51483e!important;font-size:12px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}
.gallinero-chatgpt-image:not(:disabled):hover,.gallinero-chatgpt-image:not(:disabled):focus-visible{border-color:var(--ws-accent,#a98d6e)!important;background:#f4eee6!important;transform:translateY(-1px)}
.gallinero-chatgpt-image:disabled{opacity:.48}
.gallinero-chatgpt-icon{display:inline-block;flex:0 0 16px;width:16px;height:16px;margin-right:2px;vertical-align:-3px;background:url('/img/openai-mark.svg') center/contain no-repeat;font-size:0;line-height:1}
.gallinero-gallery-chatgpt{display:grid;place-items:center;width:28px;height:26px;margin-top:5px;border:1px solid #d7cbbb;border-radius:5px;background:var(--ws-surface,#fffdfa);color:#40564e;cursor:pointer}
.gallinero-gallery-chatgpt:hover,.gallinero-gallery-chatgpt:focus-visible{background:#eee8df;border-color:var(--ws-accent,#a98d6e)}
@media(max-width:420px){.gallinero-image-tools{gap:5px}.gallinero-image-tools .gallinero-ai-fill,.gallinero-image-tools .gallinero-chatgpt-image{padding:6px 8px!important;font-size:11px!important}}

/* Shared UltimatePOS shell: El Gallinero's olive and warm paper palette. */
.gallinero-admin-header{
  background:var(--ws-primary,#34463e)!important;
  background-image:linear-gradient(100deg,#35483f 0%,#405247 58%,#4a5949 100%)!important;
  border-bottom:1px solid #243a30!important;
  color:#f9f7f2;
  font-family:var(--ws-font,Montserrat,Arial,sans-serif);
  box-shadow:0 2px 12px rgba(39,51,43,.12);
}
.gallinero-admin-header .theme-btn-bg{
  background:#ffffff12!important;
  color:#fbfaf6!important;
  border-color:#ffffff2b!important;
  box-shadow:none!important;
}
.gallinero-admin-header .theme-btn-bg:hover,
.gallinero-admin-header .theme-btn-bg:focus-visible{
  background:#ffffff27!important;
  color:#fff!important;
  border-color:#ffffff50!important;
}
.gallinero-admin-sidebar{background:#fdfbf7!important;border-right:1px solid #e8e0d6;color:#39463e;font-family:var(--ws-font,Montserrat,Arial,sans-serif)}
.gallinero-admin-sidebar>a:first-of-type{background:#fdfbf7!important;border-color:#e8e0d6!important}
.gallinero-sidebar-search{background:#fdfbf7;border-color:#e8e0d6!important}
.gallinero-sidebar-search>div{min-height:38px;background:#f7f3ed!important;border-color:#e7ded2!important}
.gallinero-sidebar-search input{color:#3d4b42!important}
.gallinero-admin-sidebar #side-bar{background:#fdfbf7;border-color:#e8e0d6!important;padding:10px 9px 18px!important;scrollbar-color:#c8b9a6 transparent}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-hover{
  min-height:44px;
  padding:10px 12px!important;
  border-radius:8px;
  color:#4c574f!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.35;
}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-hover svg,
.gallinero-admin-sidebar #side-bar a.theme-sidebar-hover i{color:#817667!important}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-hover:hover,
.gallinero-admin-sidebar #side-bar a.theme-sidebar-hover:focus-visible{
  background:#f0e9df!important;
  color:var(--ws-primary,#34463e)!important;
}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-active{
  background:#e9e1d4!important;
  color:#35463d!important;
  font-weight:600!important;
}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-active svg,
.gallinero-admin-sidebar #side-bar a.theme-sidebar-active i{color:#6e654d!important}
.gallinero-admin-sidebar #side-bar .chiled{margin-top:2px!important;margin-bottom:7px!important}
.gallinero-admin-sidebar #side-bar .chiled>div:first-child{background:#ded2c2!important}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-child-hover{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:7px 5px!important;
  border-radius:6px;
  color:#625e55!important;
  font-size:12px!important;
  line-height:1.35;
}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-child-hover:hover,
.gallinero-admin-sidebar #side-bar a.theme-sidebar-child-hover:focus-visible{background:#f3eee7!important;color:#35463d!important}
.gallinero-admin-sidebar #side-bar a.theme-sidebar-child-active{color:#405d4b!important;font-weight:600!important}

/* Compact product catalog signals and one editor for all dimensions. */
#product_table_wrapper .dataTables_scrollBody #product_table thead tr{height:0!important}
#product_table_wrapper .dataTables_scrollBody #product_table thead th{height:0!important;padding-top:0!important;padding-bottom:0!important;border-top:0!important;border-bottom:0!important;line-height:0!important}
#product_table .gallinero-catalog-status{display:flex;align-items:center;gap:4px;min-width:99px}
#product_table .gallinero-status-dot{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border:1px solid transparent;border-radius:50%;font-size:9px;font-weight:700;line-height:1;cursor:help}
#product_table .gallinero-status-dot.is-green{background:#e1eee3;border-color:#abc8af;color:#356a42}
#product_table .gallinero-status-dot.is-yellow{background:#faf0d9;border-color:#e6ce94;color:#89681e}
#product_table .gallinero-status-dot.is-red{background:#f8e8e4;border-color:#dfb4aa;color:#9a4b3f}
#product_table .gallinero-dimensions-edit{display:inline-flex;align-items:center;gap:6px;max-width:230px;padding:5px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#46534a;text-align:left;font-size:11px;line-height:1.35;cursor:pointer}
#product_table .gallinero-dimensions-edit span{white-space:normal}
#product_table .gallinero-dimensions-edit i{flex:none;font-size:10px;color:#8e8171;opacity:.55}
#product_table .gallinero-dimensions-edit:hover,#product_table .gallinero-dimensions-edit:focus-visible{border-color:#e5d9c9;background:#f5efe7;outline:none}
.gallinero-dimensions-modal-content{border:1px solid #e6ded5;border-radius:12px;overflow:hidden;box-shadow:0 22px 70px #26342e2b}
.gallinero-dimensions-modal-content .modal-header,.gallinero-dimensions-modal-content .modal-footer{padding:17px 22px;border-color:#eee8e0}
.gallinero-dimensions-modal-content .modal-body{padding:20px 22px}
.gallinero-dimensions-modal-content .modal-title{font-weight:600;color:#2d3935}
.gallinero-dimensions-hint{margin:0 0 16px;color:#70695f;font-size:13px;line-height:1.5}
.gallinero-dimensions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gallinero-dimensions-grid label{display:block;margin:0;color:#46534a;font-size:12px;font-weight:600}
.gallinero-dimensions-grid label span{float:right;color:#8e8171;font-weight:400}
.gallinero-dimensions-grid .form-control{margin-top:6px;border-color:#ded5c9;border-radius:7px}
@media(max-width:480px){.gallinero-dimensions-grid{grid-template-columns:1fr}}

/* Business settings: preserve the existing tab behavior with a cleaner layout. */
.gallinero-settings-header{padding-bottom:8px}
.gallinero-settings-header h1{margin:0;color:#34443a!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif);font-size:28px!important;font-weight:700!important;letter-spacing:-.04em}
.gallinero-settings-page .pos-tab-container{border:1px solid #e8dfd3!important;border-radius:20px!important;background:var(--ws-surface,#fffdfa)!important;box-shadow:0 12px 32px #34412e0b!important;overflow:visible}
.gallinero-settings-page .gallinero-settings-layout{display:flex;align-items:flex-start;gap:24px;padding:18px!important}
.gallinero-settings-page .pos-tab-menu{flex:0 0 232px;width:232px!important;padding:0!important;border-radius:14px!important;background:var(--ws-bg,#f7f1e9)}
.gallinero-settings-page .pos-tab-menu .list-group{margin:0;padding:7px}
.gallinero-settings-page .pos-tab-menu .list-group-item{display:block;margin:3px 0;border:0!important;border-radius:9px!important;background:transparent!important;color:#5b625a!important;text-align:left!important;font-family:var(--ws-font,Montserrat,Arial,sans-serif);font-size:12px!important;font-weight:600!important;line-height:1.3;transition:background .18s,color .18s}
.gallinero-settings-page .pos-tab-menu .list-group-item:hover,.gallinero-settings-page .pos-tab-menu .list-group-item:focus-visible{background:#eee2d2!important;color:#39493f!important}
.gallinero-settings-page .pos-tab-menu .list-group-item.active{background:#786650!important;color:#fff!important;box-shadow:0 5px 12px #55412e1f}
.gallinero-settings-page .pos-tab{flex:1;min-width:0;width:auto!important;padding:0!important}
.gallinero-settings-page .pos-tab h3,.gallinero-settings-page .pos-tab h4{color:#34443a;font-family:var(--ws-font,Montserrat,Arial,sans-serif);font-weight:700}
.gallinero-settings-page .pos-tab .form-control{border:1px solid #ded2c2;border-radius:9px;background:#fff;color:#37463d;min-height:38px}
.gallinero-settings-page .pos-tab .form-control:focus{border-color:#ae9474;box-shadow:0 0 0 3px #ac8f6b23}
.gallinero-settings-page button[type=submit]{margin:24px auto 34px;border:0!important;border-radius:11px!important;background:#786650!important;color:#fff!important;font-weight:700!important}
.gallinero-settings-page button[type=submit]:hover{background:#604f3e!important}
@media(max-width:900px){.gallinero-settings-page .gallinero-settings-layout{display:block;padding:10px!important}.gallinero-settings-page .pos-tab-menu{width:100%!important;margin-bottom:20px}.gallinero-settings-page .pos-tab-menu .list-group{display:flex;overflow-x:auto;gap:5px}.gallinero-settings-page .pos-tab-menu .list-group-item{flex:0 0 auto;white-space:nowrap;padding:10px 12px!important}.gallinero-settings-page .pos-tab{width:100%!important}}
.gallinero-backup-note{margin:0 0 18px;padding:14px 17px;border:1px solid #e8ddcf;border-radius:11px;background:#fcf8f2;color:#5e665d;font-size:13px}
.gallinero-backup-button{background:#786650!important;color:#fff!important}
.gallinero-backup-button:hover{background:#604f3e!important}
/* Shared inner tabs across the administration area. */
.content .nav-tabs:not(.nav-justified){display:flex;flex-wrap:wrap;gap:6px;padding:5px;border:1px solid #e9dfd3;border-radius:12px;background:var(--ws-bg,#f7f1e9)}
.content .nav-tabs:not(.nav-justified)>li{float:none;margin:0}
.content .nav-tabs:not(.nav-justified)>li>a{margin:0;border:0!important;border-radius:8px!important;background:transparent;color:#5c655b;font-family:var(--ws-font,Montserrat,Arial,sans-serif);font-size:12px;font-weight:600}
.content .nav-tabs:not(.nav-justified)>li>a:hover,.content .nav-tabs:not(.nav-justified)>li>a:focus-visible{background:#eee3d5;color:#3a493d}
.content .nav-tabs:not(.nav-justified)>li.active>a{background:#786650!important;color:#fff!important;box-shadow:0 4px 12px #604c3624}
.gallinero-settings-page .pos-tab-menu{position:sticky;top:12px;max-height:calc(100vh - 95px);overflow-y:auto;scrollbar-color:#c9b9a5 transparent}
.gallinero-settings-page .fa-info-circle,.gallinero-settings-page .glyphicon-info-sign,.gallinero-settings-page .fa-info{color:#a18464!important}
@media(max-width:900px){.gallinero-settings-page .pos-tab-menu{position:static;max-height:none;overflow:visible}}
/* Product photo analysis choices */
#gallinero_ai_modal .modal-content{border:1px solid var(--ws-line,#e7dccf);border-radius:15px;overflow:hidden;box-shadow:0 24px 70px rgba(42,49,42,.18)}
#gallinero_ai_modal .modal-header,#gallinero_ai_modal .modal-footer{padding:17px 22px;border-color:#ece3d8}
#gallinero_ai_modal .modal-body{padding:20px 22px;color:#4b514a}
#gallinero_ai_modal .modal-body>p{margin:0 0 15px;line-height:1.55}
.gallinero-ai-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gallinero-ai-choice{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-height:112px;padding:15px;border:1px solid #ddd1c2;border-radius:11px;background:#fff;text-align:left;color:#37423b;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.gallinero-ai-choice:hover,.gallinero-ai-choice.is-selected{border-color:#a78b6f;background:#faf5ef;box-shadow:0 0 0 2px rgba(167,139,111,.12)}
.gallinero-ai-choice strong{font-size:13px}.gallinero-ai-choice small{font-size:11px;line-height:1.45;color:#756e65}
.gallinero-ai-context{margin-top:17px}.gallinero-ai-context[hidden]{display:none}.gallinero-ai-context label{display:block;margin-bottom:8px;font-weight:700;color:#37423b}
.gallinero-ai-context textarea{min-height:108px;border:1px solid #d9cdbf;border-radius:9px;resize:vertical}.gallinero-ai-context small{display:block;margin-top:7px;color:#777167;line-height:1.5}
.gallinero-ai-run{border-radius:9px;background:#685744;color:#fff;font-weight:700;padding:9px 17px}.gallinero-ai-run:hover,.gallinero-ai-run:focus{background:#514333;color:#fff}
@media(max-width:560px){.gallinero-ai-choices{grid-template-columns:1fr}.gallinero-ai-choice{min-height:auto}}

/* Invoicing navigation icon is independent of icon font availability. */
.sii-menu-icon{display:inline-block;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M8 13h8 M8 17h5'/%3E%3C/svg%3E") center/contain no-repeat}
