/* KH AdminLTE Pages V3
   Estética aplicada a los PHP visibles: formularios, tablas, cards, filtros y acciones.
   No cambia lógica, IDs, names, actions ni endpoints. */
:root{--kh-v3-primary:#2563eb;--kh-v3-primary-dark:#1e3a8a;--kh-v3-accent:#f97316;--kh-v3-success:#16a34a;--kh-v3-ink:#0f172a;--kh-v3-muted:#64748b;--kh-v3-border:#dbe4ef;--kh-v3-soft:#f8fafc;--kh-v3-card:#ffffff;--kh-v3-shadow:0 18px 46px rgba(15,23,42,.09);--kh-v3-shadow-sm:0 10px 28px rgba(15,23,42,.065)}
.kh-admin-body .kh-content{padding-bottom:2rem}.kh-admin-body .kh-page-container{max-width:100%}.kh-admin-body .kh-content>.container,.kh-admin-body .kh-content>.container-fluid{max-width:100%}
.kh-admin-body .kh-content h1,.kh-admin-body .kh-content .h1,.kh-admin-body .kh-content h2,.kh-admin-body .kh-content .h2,.kh-admin-body .kh-content h3,.kh-admin-body .kh-content .h3{color:var(--kh-v3-ink);letter-spacing:-.03em}
.kh-admin-body .kh-content>.d-flex.justify-content-between,.kh-admin-body .kh-content>.d-flex.align-items-center,.kh-admin-body .kh-page-container>.d-flex.justify-content-between,.kh-admin-body .kh-page-container>.d-flex.align-items-center{background:linear-gradient(135deg,#fff,#f8fbff)!important;border:1px solid rgba(219,228,239,.95)!important;border-radius:24px!important;box-shadow:var(--kh-v3-shadow-sm)!important;padding:1rem 1.1rem!important;margin-bottom:1rem!important}.kh-admin-body .kh-content .text-muted{color:var(--kh-v3-muted)!important}
.kh-admin-body .kh-admin-card,.kh-admin-body .card.kh-admin-card{border:1px solid rgba(219,228,239,.96)!important;border-radius:22px!important;box-shadow:var(--kh-v3-shadow-sm)!important;background:var(--kh-v3-card)!important;overflow:hidden}.kh-admin-body .card.kh-admin-card:hover{box-shadow:var(--kh-v3-shadow)!important}
.kh-admin-body .kh-admin-card-header,.kh-admin-body .card-header.kh-admin-card-header,.kh-admin-body .card-header.kh-readable-header{background:linear-gradient(180deg,#fff,#f8fafc)!important;color:var(--kh-v3-ink)!important;border-bottom:1px solid #e5edf7!important;font-weight:900!important;letter-spacing:-.012em;padding:.95rem 1.1rem!important;display:flex;align-items:center;gap:.45rem}
.kh-admin-body .kh-admin-card-header.bg-primary,.kh-admin-body .kh-admin-card-header.bg-dark,.kh-admin-body .kh-admin-card-header.bg-success,.kh-admin-body .kh-admin-card-header.bg-info,.kh-admin-body .kh-admin-card-header.bg-secondary,.kh-admin-body .kh-admin-card-header.bg-danger,.kh-admin-body .kh-admin-card-header.bg-warning,.kh-admin-body .card-header.kh-readable-header.bg-primary,.kh-admin-body .card-header.kh-readable-header.bg-dark,.kh-admin-body .card-header.kh-readable-header.bg-success,.kh-admin-body .card-header.kh-readable-header.bg-info,.kh-admin-body .card-header.kh-readable-header.bg-secondary,.kh-admin-body .card-header.kh-readable-header.bg-danger,.kh-admin-body .card-header.kh-readable-header.bg-warning{background:linear-gradient(180deg,#fff,#f8fafc)!important;color:var(--kh-v3-ink)!important;text-shadow:none!important}
.kh-admin-body .kh-admin-card-header.bg-primary,.kh-admin-body .card-header.kh-readable-header.bg-primary{border-top:4px solid var(--kh-v3-primary)!important}.kh-admin-body .kh-admin-card-header.bg-dark,.kh-admin-body .card-header.kh-readable-header.bg-dark{border-top:4px solid #0f172a!important}.kh-admin-body .kh-admin-card-header.bg-success,.kh-admin-body .card-header.kh-readable-header.bg-success{border-top:4px solid var(--kh-v3-success)!important}.kh-admin-body .kh-admin-card-header.bg-warning,.kh-admin-body .card-header.kh-readable-header.bg-warning{border-top:4px solid #f59e0b!important}.kh-admin-body .kh-admin-card-header.bg-danger,.kh-admin-body .card-header.kh-readable-header.bg-danger{border-top:4px solid #dc2626!important}.kh-admin-body .kh-admin-card-header.bg-info,.kh-admin-body .card-header.kh-readable-header.bg-info{border-top:4px solid #0891b2!important}
.kh-admin-body .kh-admin-card-body,.kh-admin-body .card-body.kh-admin-card-body{padding:1.15rem!important}.kh-admin-body .kh-admin-card-footer,.kh-admin-body .card-footer.kh-admin-card-footer{background:#f8fafc!important;border-top:1px solid #e5edf7!important}.kh-admin-body .card-title{font-weight:900;color:var(--kh-v3-ink)}
.kh-admin-body form.kh-admin-form:not(.d-inline):not(.d-inline-block),.kh-admin-body form.kh-auto-form:not(.d-inline):not(.d-inline-block),.kh-admin-body .kh-content>form:not(.d-inline):not(.d-inline-block):not(.navbar-form):not([data-kh-compact]){background:#fff!important;border:1px solid rgba(219,228,239,.96)!important;border-radius:24px!important;box-shadow:var(--kh-v3-shadow-sm)!important;padding:1.15rem!important;margin-bottom:1rem!important}.kh-admin-body form.kh-admin-form[method="get"],.kh-admin-body form.kh-auto-filter,.kh-admin-body form[method="get"]:not(.d-inline):not(.d-inline-block){background:linear-gradient(135deg,#fff,#f8fbff)!important;border-left:6px solid var(--kh-v3-primary)!important}.kh-admin-body form.kh-admin-form[method="post"],.kh-admin-body form[method="post"]:not(.d-inline):not(.d-inline-block):not(.kh-login-form form){border-left:6px solid var(--kh-v3-accent)!important}
.kh-admin-body .form-label,.kh-admin-body label.form-label{color:#1e293b!important;font-weight:850!important;margin-bottom:.35rem}.kh-admin-body .form-control.kh-control,.kh-admin-body .form-select.kh-control,.kh-admin-body .form-control,.kh-admin-body .form-select{border-color:#d8e2ef!important;border-radius:13px!important;min-height:42px;box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.kh-admin-body textarea.form-control{min-height:96px}.kh-admin-body .form-control:focus,.kh-admin-body .form-select:focus{border-color:var(--kh-v3-primary)!important;box-shadow:0 0 0 .22rem rgba(37,99,235,.11)!important}.kh-admin-body .input-group-text{border-color:#d8e2ef!important;background:#f8fafc!important;color:#334155;font-weight:800;border-radius:13px}.kh-admin-body .form-check-label{color:#334155!important;font-weight:750!important}.kh-admin-body .form-text,.kh-admin-body small.text-muted{color:#64748b!important}.kh-admin-body fieldset{border:1px solid #dbe4ef!important;border-radius:22px!important;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 20px rgba(15,23,42,.04)}.kh-admin-body legend{color:var(--kh-v3-ink)!important;font-weight:950!important}
.kh-admin-body .kh-admin-table-shell,.kh-admin-body .table-responsive.kh-admin-table-shell,.kh-admin-body .kh-table-shell{background:#fff!important;border:1px solid rgba(219,228,239,.96)!important;border-radius:22px!important;box-shadow:var(--kh-v3-shadow-sm)!important;overflow:auto!important;margin-bottom:1rem}.kh-admin-body table.kh-admin-table,.kh-admin-body .kh-content table.table{--bs-table-striped-bg:#f8fafc;--bs-table-hover-bg:#eef6ff;margin-bottom:0!important;border-color:#e7edf5!important}.kh-admin-body table.kh-admin-table thead th,.kh-admin-body .kh-content table.table thead th{background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;color:#0f172a!important;border-bottom:2px solid #dbe4ef!important;font-weight:950!important;font-size:.78rem;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;vertical-align:middle!important}.kh-admin-body table.kh-admin-table tbody td,.kh-admin-body .kh-content table.table tbody td{vertical-align:middle!important;color:#334155}.kh-admin-body table.kh-admin-table tbody tr:hover td{background:#eef6ff!important}.kh-admin-body table.kh-admin-table .btn,.kh-admin-body .kh-content table.table .btn{border-radius:11px!important;font-weight:800!important}.kh-admin-body .table td code,.kh-admin-body .table th code{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:.18rem .38rem;color:#0f172a}
.kh-admin-body .btn.kh-btn,.kh-admin-body .btn{border-radius:13px;font-weight:800;letter-spacing:.005em}.kh-admin-body .btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border-color:#1d4ed8!important;box-shadow:0 10px 22px rgba(37,99,235,.18)!important}.kh-admin-body .btn-success{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#15803d!important}.kh-admin-body .btn-warning{background:linear-gradient(135deg,#f59e0b,#f97316)!important;border-color:#f59e0b!important;color:#111827!important}.kh-admin-body .btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626)!important;border-color:#dc2626!important}.kh-admin-body .btn-outline-secondary,.kh-admin-body .btn-light{border-color:#dbe4ef!important;background:#fff!important;color:#334155!important}.kh-admin-body .btn-outline-secondary:hover,.kh-admin-body .btn-light:hover{background:#f1f5f9!important;color:#0f172a!important}.kh-admin-body .btn-group .btn{margin-right:.18rem}
.kh-admin-body .alert{border:0!important;border-left:6px solid #94a3b8!important;border-radius:18px!important;box-shadow:var(--kh-v3-shadow-sm)!important}.kh-admin-body .alert-success{background:#f0fdf4!important;color:#14532d!important;border-left-color:#22c55e!important}.kh-admin-body .alert-danger{background:#fef2f2!important;color:#7f1d1d!important;border-left-color:#ef4444!important}.kh-admin-body .alert-warning{background:#fffbeb!important;color:#78350f!important;border-left-color:#f59e0b!important}.kh-admin-body .alert-info{background:#ecfeff!important;color:#164e63!important;border-left-color:#06b6d4!important}.kh-admin-body .badge{border-radius:999px;padding:.42rem .62rem;font-weight:850}
.kh-admin-body .card-header.text-white.kh-readable-header,.kh-admin-body .card-header.kh-readable-header.text-white,.kh-admin-body .card-header.kh-readable-header *{color:var(--kh-v3-ink)!important}.kh-admin-body [data-kh-page="customer_form.php"] .card-header,.kh-admin-body [data-kh-page="order_form.php"] .card-header,.kh-admin-body [data-kh-page="product_form.php"] .card-header,.kh-admin-body [data-kh-page="apartado_form.php"] .card-header,.kh-admin-body [data-kh-page="company.php"] .card-header,.kh-admin-body [data-kh-page="stores.php"] .card-header{color:var(--kh-v3-ink)!important}
.kh-admin-body [data-kh-page="customer_form.php"] .card-header.bg-primary::before{content:"";width:10px;height:10px;border-radius:50%;background:#2563eb;display:inline-block;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.kh-admin-body [data-kh-page="customer_form.php"] .card-header.bg-dark::before{content:"";width:10px;height:10px;border-radius:50%;background:#0f172a;display:inline-block;box-shadow:0 0 0 4px rgba(15,23,42,.10)}.kh-admin-body [data-kh-page="customer_form.php"] .card-header.bg-success::before{content:"";width:10px;height:10px;border-radius:50%;background:#16a34a;display:inline-block;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.kh-admin-body [data-kh-page="pos_new.php"] .pos-card,.kh-admin-body [data-kh-page="pos_new.php"] .card,.kh-admin-body [data-kh-page="stores.php"] .card,.kh-admin-body [data-kh-page="products.php"] .card{border-radius:22px!important}.kh-admin-body [data-kh-page="documentation.php"] .doc-hero{box-shadow:var(--kh-v3-shadow)!important;border:1px solid rgba(255,255,255,.22)}.kh-admin-body [data-kh-page="documentation.php"] .doc-card{border:1px solid rgba(219,228,239,.96)!important;border-radius:22px!important;box-shadow:var(--kh-v3-shadow-sm)!important}
@media (max-width:767.98px){.kh-admin-body .kh-content{padding-left:.55rem;padding-right:.55rem}.kh-admin-body .kh-content>.d-flex.justify-content-between,.kh-admin-body .kh-page-container>.d-flex.justify-content-between{align-items:flex-start!important;gap:.7rem}.kh-admin-body .btn{white-space:normal}.kh-admin-body .kh-admin-card-body,.kh-admin-body .card-body.kh-admin-card-body{padding:.9rem!important}}
