/* =====================================================
   DPS LIBRO LITE - BASE ESTRUCTURE (Bootstrap 5 Emulation)
   ===================================================== */
#dps-lr-v1 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    max-width: 850px;
    margin: 20px auto;
    box-sizing: border-box;
}

#dps-lr-v1 .dps-pro-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

/* --- GRID SYSTEM --- */
#dps-lr-v1 .dps-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
#dps-lr-v1 .dps-col-4 { flex: 0 0 33.33%; padding: 10px; }
#dps-lr-v1 .dps-col-6 { flex: 0 0 50%; padding: 10px; }
#dps-lr-v1 .dps-col-8 { flex: 0 0 66.66%; padding: 10px; }
#dps-lr-v1 .dps-col-12 { flex: 0 0 100%; padding: 10px; }

/* --- FORM CONTROLS --- */
#dps-lr-v1 .dps-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #475569; }

#dps-lr-v1 .form-control {
    display: block; width: 100%; padding: 0.6rem 0.75rem; font-size: 1rem;
    color: #1f2937; background-color: #fff; border: 1px solid #d1d5db;
    border-radius: 0.375rem; transition: border-color 0.2s; box-sizing: border-box;
}

#dps-lr-v1 .form-select {
    display: block; width: 100%; padding: 0.6rem 2.25rem 0.6rem 0.75rem;
    font-size: 1rem; background-color: #fff; border: 1px solid #d1d5db;
    border-radius: 0.375rem; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px;
}

#dps-lr-v1 .form-control:focus, #dps-lr-v1 .form-select:focus {
    border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0,115,170,0.15); outline: none;
}

#dps-lr-v1 .btn-lite {
    display: block; width: 100%; background-color: #0073aa; color: #ffffff;
    padding: 0.85rem; border: none; border-radius: 0.375rem; font-size: 1rem;
    font-weight: 700; cursor: pointer; transition: 0.2s; margin-top: 1.5rem;
}
#dps-lr-v1 .btn-lite:disabled { opacity: 0.5; cursor: not-allowed; }

#dps-lr-v1 .mb-3 { margin-bottom: 1rem !important; }

#dps-lr-v1 .dps-switch input:disabled + .dps-slider {
    background-color: #e2e8f0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

#dps-lr-v1 .dps-switch input:disabled + .dps-slider:before {
    background-color: #cbd5e1;
}
.small { font-size: 0.8em; font-weight: normal; opacity: 0.8; }

/* =====================================================
   REGLAS DE IMPRESIÓN (SOLO PARA EL TICKET DE ÉXITO)
   ===================================================== */
@media print {
    body * {
        visibility: hidden;
        box-shadow: none !important;
    }
    #dps-lr-v1 #dps-lr-printable-success,
    #dps-lr-v1 #dps-lr-printable-success * {
        visibility: visible;
    }
    #dps-lr-v1 #dps-lr-printable-success {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 1px solid #ccc !important;
        background-color: #fff !important;
        color: #000 !important;
        padding: 20px;
    }
    #dps-lr-v1 #dps-lr-printable-success button {
        display: none !important;
    }
}

.dps-alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}
.dps-alert-secondary {
  color: #41464b;
  background-color: #e2e3e5;
  border-color: #d3d6d8;
}
.dps-alert-heading {
  color: inherit;
}
.d-block {
  display: block !important;
}
/* Utils Margins & Paddings */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.info-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.info-item {
	display: flex;
	align-items: center;
	gap: 8px;
}
.info-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}
#dps-lr-v1 .btn-pro {
    display: block;
    width: 100%;
    background-color: #0073aa;
    color: #ffffff;
    padding: 0.85rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
