/* ===================================================

   RentQuote — Admin CSS v2

   =================================================== */

#post-body-content { display: none; }



/* Cajas generales */

.rq-box-inner { padding: 10px 0; }

.rq-box-inner p { margin: 0 0 14px; }

.rq-box-inner label {

    display: block; font-weight: 600; margin-bottom: 5px;

    color: #3c434a; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;

}

.rq-box-inner input[type="text"],

.rq-box-inner input[type="email"],

.rq-box-inner input[type="number"],

.rq-box-inner input[type="date"],

.rq-box-inner input[type="time"],

.rq-box-inner select,

.rq-box-inner textarea {

    width: 100%; box-sizing: border-box;

    border: 1px solid #c3c4c7; border-radius: 4px;

    padding: 7px 10px; font-size: 13px; line-height: 1.4;

    background: #fff; transition: border-color .15s;

}

.rq-box-inner input:focus,

.rq-box-inner select:focus,

.rq-box-inner textarea:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 1px #2271b1; }

.rq-box-inner hr { border: none; border-top: 1px solid #e0e0e0; margin: 14px 0; }

.rq-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #646970; margin-bottom: 10px; }



/* Grid */

.rq-box-inner::after { content: ''; display: table; clear: both; }

.rq-half  { float: left; width: 48.5%; margin-right: 3% !important; }

.rq-half:nth-child(even) { margin-right: 0 !important; }

.rq-third { float: left; width: 31%; margin-right: 3.5% !important; }

.rq-third:last-child { margin-right: 0 !important; }



/* Fecha + hora */

.rq-datetime-wrap { display: flex; gap: 8px; }

.rq-datetime-wrap .rq-date-part { flex: 2; }

.rq-datetime-wrap .rq-time-part { flex: 1; min-width: 90px; }



/* Badge días */

.rq-days-badge {

    display: inline-flex; align-items: center; gap: 6px;

    background: #e8f4fd; color: #0073aa; border: 1px solid #b8d9ef;

    border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 600;

}



/* ===================================================

   SELECTOR TIPO PRESUPUESTO

   =================================================== */

.rq-type-selector { display: flex; gap: 12px; padding: 4px 0 8px; }

.rq-type-option {

    flex: 1; display: flex; align-items: center; gap: 12px;

    padding: 14px 18px; border: 2px solid #dcdcde; border-radius: 8px;

    cursor: pointer; transition: all .15s; background: #fff;

    text-transform: none !important; font-weight: normal !important;

    font-size: 14px !important; letter-spacing: 0 !important;

}

.rq-type-option input[type="radio"] { display: none; }

.rq-type-option .rq-type-icon { font-size: 28px; flex-shrink: 0; }

.rq-type-option .rq-type-label { font-weight: 700 !important; font-size: 15px !important; color: #1d2327; }

.rq-type-option.active { border-color: #2271b1; background: #f0f6fc; box-shadow: 0 0 0 1px #2271b1; }

.rq-type-option.active .rq-type-label { color: #2271b1; }



/* ===================================================

   TABLA EQUIPOS

   =================================================== */

.rq-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 13px; }

.rq-table th {

    background: #f6f7f7; padding: 8px 10px; text-align: left;

    font-weight: 600; font-size: 11px; text-transform: uppercase;

    letter-spacing: .4px; color: #646970; border-bottom: 2px solid #dcdcde;

}

.rq-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f1; vertical-align: middle; }

.rq-table tbody tr:hover td { background: #fafafa; }

.rq-table .small-text { width: 100%; }

.rq-item-total { text-align: right; font-weight: 700; white-space: nowrap; color: #1d2327; }

.rq-remove-item, .rq-remove-service {

    color: #d63638 !important; font-size: 18px !important;

    cursor: pointer; background: none; border: none; padding: 0; line-height: 1;

}

.rq-remove-item:hover, .rq-remove-service:hover { color: #a00 !important; }

.rq-item-thumb { width: 46px; text-align: center; }

.rq-item-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #dcdcde; }

.rq-no-img { font-size: 22px; line-height: 40px; }

.rq-item-name-display { font-weight: 600; color: #1d2327; }



/* Stock badge */

.rq-stock-badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 10px; margin-top: 3px; font-weight: 600; }

.rq-stock-ok   { background: #edfaef; color: #0a6b1d; }

.rq-stock-low  { background: #fef9e7; color: #8a5c00; }

.rq-stock-none { background: #fce8e6; color: #a01b1b; }



/* ===================================================

   MODAL

   =================================================== */

#rq-product-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }

#rq-product-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }

#rq-product-modal-box {

    position: relative; z-index: 1; background: #fff; border-radius: 10px;

    width: 92vw; max-width: 1100px; height: 88vh;

    display: flex; flex-direction: column;

    box-shadow: 0 24px 80px rgba(0,0,0,.25);

}

#rq-modal-header {

    padding: 16px 20px; border-bottom: 1px solid #dcdcde;

    display: flex; align-items: center; gap: 12px; flex-shrink: 0;

}

#rq-modal-header h2 { margin: 0; font-size: 17px; flex-shrink: 0; }

#rq-modal-search-wrap { flex: 1; display: flex; gap: 8px; }

#rq-modal-search {

    flex: 2; padding: 7px 12px; border: 1px solid #c3c4c7;

    border-radius: 4px; font-size: 13px;

}

#rq-modal-cat-filter { flex: 1; padding: 7px 10px; border: 1px solid #c3c4c7; border-radius: 4px; font-size: 13px; }

#rq-modal-close {

    background: none; border: none; font-size: 22px; cursor: pointer;

    color: #787c82; padding: 4px 8px; border-radius: 4px; margin-left: 4px;

}

#rq-modal-close:hover { background: #f0f0f1; color: #d63638; }

#rq-modal-body { flex: 1; overflow-y: auto; padding: 16px 20px; background: #f6f7f7; }

#rq-modal-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));

    gap: 12px;

}

.rq-modal-product {

    border: 2px solid #dcdcde; border-radius: 8px; padding: 12px 10px;

    cursor: pointer; transition: all .15s; position: relative;

    text-align: center; background: #fff;

}

.rq-modal-product:hover:not(.no-stock) { border-color: #2271b1; box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); }

.rq-modal-product.selected { border-color: #00a32a; background: #edfaef; }

.rq-modal-product.no-stock { opacity: .45; cursor: not-allowed; }

.rq-modal-check {

    position: absolute; top: 7px; right: 7px; width: 22px; height: 22px;

    background: #00a32a; border-radius: 50%; color: #fff; font-size: 12px;

    display: none; align-items: center; justify-content: center; font-weight: 700;

}

.rq-modal-product.selected .rq-modal-check { display: flex; }

.rq-modal-img { width: 100%; height: 95px; object-fit: cover; border-radius: 5px; margin-bottom: 8px; }

.rq-modal-img-placeholder { width: 100%; height: 95px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: #f0f0f1; border-radius: 5px; margin-bottom: 8px; }

.rq-modal-product-name { font-weight: 700; font-size: 12px; margin-bottom: 5px; line-height: 1.3; color: #1d2327; }

.rq-modal-product-price { color: #2271b1; font-weight: 700; font-size: 13px; margin-bottom: 4px; }

.rq-modal-qty-wrap { margin-top: 8px; display: none; }

.rq-modal-product.selected .rq-modal-qty-wrap { display: block; }

.rq-modal-qty-wrap input { width: 100%; text-align: center; padding: 4px; border: 1px solid #c3c4c7; border-radius: 4px; font-size: 13px; }

#rq-modal-footer { padding: 14px 20px; border-top: 1px solid #dcdcde; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 0 0 10px 10px; }

#rq-modal-selected-count { flex: 1; font-weight: 700; color: #2271b1; font-size: 13px; }

#rq-modal-loading { text-align: center; padding: 60px 20px; color: #787c82; font-size: 15px; }



/* ===================================================

   DESCUENTO GLOBAL

   =================================================== */

.rq-discount-global-wrap {

    display: flex; align-items: center; gap: 10px;

    background: #fff8e6; border: 1px solid #f0c040; border-radius: 6px;

    padding: 10px 14px; margin-bottom: 12px;

}

.rq-discount-global-wrap label { margin: 0 !important; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; white-space: nowrap; }

.rq-discount-global-wrap input { width: 80px !important; text-align: center; }



/* ===================================================

   HISTORIAL

   =================================================== */

#rq-history-list { max-height: 300px; overflow-y: auto; }

.rq-history-entry {

    display: flex; gap: 12px; padding: 10px 0;

    border-bottom: 1px solid #f0f0f1; font-size: 12px;

}

.rq-history-entry:last-child { border-bottom: none; }

.rq-history-date { color: #787c82; white-space: nowrap; flex-shrink: 0; }

.rq-history-user { font-weight: 700; color: #1d2327; flex-shrink: 0; }

.rq-history-msg  { color: #3c434a; flex: 1; }



/* ===================================================

   BOTONES DE ACCIÓN EN EL PRESUPUESTO

   =================================================== */

.rq-action-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; background: #f0f6fc; border-radius: 6px; border: 1px solid #c9dff6; }

.rq-action-buttons .button { display: flex; align-items: center; gap: 5px; }



/* ===================================================

   TOTALES

   =================================================== */

.rq-totals-box { display: flex; gap: 24px; }

.rq-totals-left { flex: 1; }

.rq-totals-right { width: 300px; flex-shrink: 0; }

.rq-totals-table { width: 100%; border-collapse: collapse; }

.rq-totals-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f1; font-size: 14px; }

.rq-totals-table td:last-child { text-align: right; font-weight: 700; }

.rq-totals-table .total-row td { font-size: 20px !important; background: #f0f6fc; border-top: 2px solid #2271b1 !important; color: #2271b1; }



/* Columna PDF en listado */

.column-rq_pdf { width: 50px; text-align: center; }

.rq-pdf-link { font-size: 20px; text-decoration: none; }

.rq-pdf-link:hover { opacity: .7; }



@media (max-width: 782px) {

    .rq-half, .rq-third { float: none; width: 100%; margin-right: 0 !important; }

    .rq-totals-box { flex-direction: column; }

    .rq-totals-right { width: 100%; }

    .rq-type-selector { flex-direction: column; }

}



/* ===================================================

   HISTORIAL SIDEBAR — estilo WooCommerce

   =================================================== */

.rq-history-wrap { font-size:12px; }

.rq-notes-list { list-style:none; margin:0 0 14px; padding:0; max-height:500px; overflow-y:auto; }

.rq-note-item { position:relative; border-left:3px solid #c3c4c7; padding:8px 10px 8px 12px; margin-bottom:8px; background:#f9f9f9; border-radius:0 4px 4px 0; }

.rq-note-item.system   { border-left-color:#2271b1; background:#f0f6fc; }

.rq-note-item.client   { border-left-color:#00a32a; background:#f0fdf4; }

.rq-note-item.internal { border-left-color:#c07700; background:#fffbeb; }

.rq-note-meta { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:3px; gap:4px; }

.rq-note-meta .author  { font-weight:700; color:#1d2327; font-size:11px; }

.rq-note-meta .date    { color:#999; font-size:10px; white-space:nowrap; flex-shrink:0; }

.rq-note-msg  { color:#3c434a; line-height:1.5; font-size:12px; }

.rq-note-type-badge { display:inline-block; font-size:9px; padding:1px 5px; border-radius:3px; margin-left:4px; vertical-align:middle; font-weight:700; text-transform:uppercase; letter-spacing:.3px; }

.badge-client   { background:#dcfce7; color:#166534; }

.badge-internal { background:#fef9c3; color:#854d0e; }

.badge-system   { background:#dbeafe; color:#1e40af; }

.rq-add-note { border-top:1px solid #ddd; padding-top:12px; margin-top:4px; }



/* Select2 de producto — ancho completo */

#rq-add-product-select + .select2-container { flex:1; }





/* ===================================================

   ACCIONES SIDEBAR

   =================================================== */

.rq-action-buttons-sidebar { display:flex; flex-direction:column; gap:6px; }

.rq-btn-full { width:100%; text-align:center; justify-content:center; }



/* ===================================================

   TIPO DE PRESUPUESTO — tabs compactos

   =================================================== */

.rq-type-tabs { display:flex; gap:0; border:1px solid #ddd; border-radius:6px; overflow:hidden; width:fit-content; }

.rq-type-tab  { display:flex; align-items:center; justify-content:center; gap:5px; padding:5px 18px; cursor:pointer; font-size:12px; font-weight:500; color:#555; background:#f9f9f9; border:none; transition:all .15s; white-space:nowrap; }

.rq-type-tab input[type="radio"] { display:none; }

.rq-type-tab:not(:last-child) { border-right:1px solid #ddd; }

.rq-type-tab.active { background:var(--rq-primary,#1a5fb4); color:#fff; font-weight:700; }

.rq-type-tab:hover:not(.active) { background:#f0f0f0; }



/* ===================================================

   MODAL GRID PRODUCTOS

   =================================================== */

.rq-product-card { border:2px solid #ddd; border-radius:8px; padding:10px; cursor:pointer; text-align:center; transition:all .15s; position:relative; background:#fff; }

.rq-product-card:hover { border-color:#1a5fb4; background:#f0f6ff; }

.rq-product-card.selected { border-color:#1a5fb4; background:#e8f0fe; }

.rq-product-card.selected::after { content:'✓'; position:absolute; top:6px; right:8px; color:#1a5fb4; font-weight:700; font-size:14px; }

.rq-product-card img { width:100%; height:100px; object-fit:cover; border-radius:6px; margin-bottom:8px; }

.rq-product-card .rq-no-img-grid { width:100%; height:100px; background:#f5f5f5; border-radius:6px; margin-bottom:8px; display:flex; align-items:center; justify-content:center; font-size:32px; }

.rq-product-card .rq-card-name { font-size:12px; font-weight:600; color:#1c1c1e; line-height:1.3; margin-bottom:4px; }

.rq-product-card .rq-card-price { font-size:11px; color:#666; }

.rq-product-card .rq-card-stock { font-size:10px; margin-top:4px; padding:2px 6px; border-radius:10px; display:inline-block; }

.rq-card-stock-ok   { background:#e8f5e9; color:#1b5e20; }

.rq-card-stock-low  { background:#fff3e0; color:#bf360c; }

.rq-card-stock-none { background:#fce8e6; color:#c62828; }

.rq-card-qty-wrap { margin-top:8px; display:flex; align-items:center; justify-content:center; gap:4px; }

.rq-card-qty-wrap input { width:50px; text-align:center; padding:3px; border:1px solid #ddd; border-radius:4px; font-size:13px; }


/* ===================================================
   STEPS — navegación de 4 pestañas en crear presupuesto
   =================================================== */

/* Ocultar el título del meta-box rq_steps (usamos nuestra propia nav) */
#rq_steps .postbox-header { display: none !important; }
#rq_steps .inside { padding: 0 12px 12px !important; margin: 0 !important; }

/* Nav de pasos */
.rq-steps-nav {
    display: flex;
    align-items: stretch;
    background: #f6f7f7;
    border-bottom: 2px solid #ddd;
    margin: 0 -12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rq-step-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color: #787c82;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    line-height: 1.4;
}
.rq-step-btn:hover { color: #1d2327; background: #eee; }
.rq-step-btn.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: #fff;
    font-weight: 700;
}
.rq-step-btn.done { color: #00a32a; }
.rq-step-btn.done .rsb-num { background: #00a32a !important; }
.rsb-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #c3c4c7;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    flex-shrink: 0;
    transition: background .15s;
}
.rq-step-btn.active .rsb-num { background: #2271b1; }
.rsb-label { font-size: 13px; }
.rq-steps-arrow {
    color: #ccc;
    font-size: 18px;
    line-height: 1;
    padding: 14px 0;
    flex-shrink: 0;
    align-self: center;
}

/* Paneles de contenido */
.rq-step-panel { display: none; }
.rq-step-panel.active { display: block; }
.rq-step-panel-inner { padding: 16px 0 8px; }

/* Secciones dentro del step 1 */
.rq-step-section { margin-bottom: 4px; }
.rq-step-section > .rq-box-inner { padding-top: 8px; }
.rq-step-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
    padding: 14px 0 6px;
    border-top: 1px solid #f0f0f1;
    margin-top: 8px;
}
.rq-step-section:first-child .rq-step-section-title {
    border-top: none;
    margin-top: 0;
    padding-top: 4px;
}

/* Footer con botones de nav */
.rq-step-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0 2px;
    border-top: 2px solid #f0f0f1;
    margin-top: 12px;
}
.rq-step-footer .rq-step-prev { margin-right: auto; }

/* Responsive: en móvil ocultar labels de los steps */
@media (max-width: 600px) {
    .rq-steps-arrow { display: none; }
    .rsb-label { display: none; }
    .rq-step-btn { padding: 12px 14px; }
}

/* ===================================================
   EQUIPOS — Layout inline (sidebar + lista)
   =================================================== */

/* Contenedor principal: flex horizontal */
.rq-eq-wrap {
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 460px;
    margin-bottom: 16px;
}

/* SIDEBAR */
.rq-eq-sidebar {
    width: 200px !important;
    min-width: 200px !important;
    flex-shrink: 0 !important;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.rq-eq-search-wrap {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.rq-eq-search-wrap input {
    width: 100%;
    padding: 7px 10px 7px 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    box-sizing: border-box;
}
.rq-eq-search-wrap input:focus { border-color: #2271b1; outline: none; }
.rq-eq-search-ico {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%); font-size: 12px; pointer-events: none;
}
.rq-eq-cats { overflow-y: auto; flex: 1; padding: 4px 0; }
.rq-eq-cat-item {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; cursor: pointer;
    font-size: 12px; color: #3c434a;
    transition: background .1s;
    border-left: 3px solid transparent;
}
.rq-eq-cat-item:hover { background: #f0f0f0; }
.rq-eq-cat-item.active { background: #e8f0fe; border-left-color: #2271b1; color: #2271b1; font-weight: 700; }
.rq-eq-cat-ico { font-size: 13px; flex-shrink: 0; }
.rq-eq-cat-label { flex: 1; line-height: 1.3; }
.rq-eq-cat-count { font-size: 10px; background: #e0e0e0; color: #666; border-radius: 10px; padding: 1px 5px; flex-shrink: 0; }
.rq-eq-cat-item.active .rq-eq-cat-count { background: #2271b1; color: #fff; }
.rq-eq-cat-toggle { font-size: 9px; color: #aaa; flex-shrink: 0; transition: transform .15s; }
.rq-eq-cat-group.open > .rq-eq-cat-item .rq-eq-cat-toggle { transform: rotate(90deg); }
.rq-eq-cat-child { padding-left: 22px !important; }

/* PANEL DERECHO */
.rq-eq-panel {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    min-width: 0;
    height: 100%;
}
.rq-eq-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; border-bottom: 1px solid #e8e8e8;
    background: #fff; flex-shrink: 0;
}
.rq-eq-panel-title { font-size: 13px; font-weight: 700; color: #1d2327; }
.rq-eq-badge { background: #2271b1; color: #fff; border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700; }

/* Lista de productos */
.rq-eq-list { overflow-y: auto; flex: 1; }
.rq-eq-loading { text-align: center; padding: 30px; color: #aaa; font-size: 13px; }

/* Fila producto */
.rq-eq-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f1;
    cursor: pointer;
    transition: background .1s;
}
.rq-eq-row:hover { background: #f8f9fa; }
.rq-eq-row.open  { background: #f0f6fe; }
.rq-eq-row-thumb {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rq-eq-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rq-eq-row-info { flex: 1; min-width: 0; }
.rq-eq-row-name { font-size: 13px; font-weight: 600; color: #1d2327; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-eq-row-meta { font-size: 11px; color: #888; margin-top: 2px; }
.rq-avail-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; white-space: nowrap; }
.rq-avail-ok   { background: #edfaef; color: #1a7e2a; }
.rq-avail-low  { background: #fff8e5; color: #996800; }
.rq-avail-none { background: #fce8e6; color: #c62828; }
.rq-eq-row-qty-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.rq-eq-row-qty {
    width: 48px; padding: 4px 6px; text-align: center;
    border: 2px solid #8c8f94; border-radius: 5px; font-size: 13px; font-weight: 700;
    background: #fff; color: #1e1e1e;
}
.rq-eq-row-qty:focus { border-color: #2271b1; outline: none; }
.rq-eq-row-add-auto {
    width: 32px; height: 32px; font-size: 18px; font-weight: 700; line-height: 1;
    background: #2271b1; color: #fff; border: none; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.rq-eq-row-add-auto:hover:not(:disabled) { background: #1a5fa3; }
.rq-eq-row-add-auto:disabled { opacity: .4; cursor: not-allowed; background: #aaa; }
.rq-eq-row-toggle { font-size: 11px; color: #bbb; flex-shrink: 0; transition: transform .15s; padding: 3px; }
.rq-eq-row.open .rq-eq-row-toggle { transform: rotate(90deg); color: #2271b1; }

/* Panel de unidades */
.rq-eq-units-panel { display: none; background: #f5f8fe; border-bottom: 2px solid #d0e3f7; border-left: 3px solid #2271b1; }
.rq-eq-units-panel.open { display: block; }
.rq-eq-units-head { padding: 6px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #999; display: flex; gap: 0; }
.rq-eq-unit-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-top: 1px solid #e5edf8; transition: background .1s; }
.rq-eq-unit-row:hover:not(.disabled) { background: #edf3fc; }
.rq-eq-unit-row.selected { background: #ddeeff; }
.rq-eq-unit-row.disabled { opacity: .6; }
.rq-eq-unit-check { width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; accent-color: #2271b1; }
.rq-eq-unit-check:disabled { cursor: not-allowed; }
.rq-eq-unit-id { font-size: 12px; font-weight: 700; color: #1d2327; min-width: 100px; }
.rq-eq-unit-serial { font-size: 11px; color: #888; flex: 1; }
.rq-eq-unit-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; flex-shrink: 0; }
.rq-unit-available   { background: #edfaef; color: #1a7e2a; }
.rq-unit-reserved    { background: #fff3e0; color: #996800; }
.rq-unit-maintenance { background: #fce8e6; color: #c62828; }
.rq-unit-repair      { background: #fce8e6; color: #c62828; }
.rq-unit-retired     { background: #f0f0f0; color: #999; }

/* Footer añadir */
.rq-eq-panel-footer { padding: 8px 14px; border-top: 1px solid #e8e8e8; background: #fff; flex-shrink: 0; }

/* Tabla resumen */
.rq-eq-table-wrap { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.rq-eq-table-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: #f6f7f7; border-bottom: 1px solid #e0e0e0; font-size: 13px; }
.rq-eq-subtotal-badge { font-size: 13px; font-weight: 700; color: #2271b1; }
.rq-item-units-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.rq-unit-tag { font-size: 10px; background: #e8f0fe; color: #1a5fb4; border-radius: 3px; padding: 1px 5px; font-weight: 600; }
