.rfpdropi-panel{ max-width:1080px; margin:0 auto; padding:48px 24px 100px; font-family:'Inter',sans-serif; color:var(--ss-ink,#171412); }
.rfpdropi-panel *{ box-sizing:border-box; }
.rfpdropi-panel h1{ font-family:'Poppins',sans-serif; font-size:28px; font-weight:700; margin:0 0 4px; letter-spacing:-0.01em; }
.rfpdropi-panel h2{ font-family:'Poppins',sans-serif; font-size:20px; font-weight:700; margin:0 0 4px; }
.rfpdropi-header{ margin-bottom:28px; }
.rfpdropi-header p{ color:var(--ss-ink-soft,#6B6560); font-size:14px; margin:0; }

/* Tabs */
.rfpdropi-tabs{ display:flex; gap:4px; margin-bottom:32px; border-bottom:1px solid var(--ss-line,#EAE5E0); }
.rfpdropi-tab-link{ padding:12px 20px; text-decoration:none; font-weight:600; font-size:14px; color:var(--ss-ink-soft,#6B6560); border-bottom:2px solid transparent; margin-bottom:-1px; transition:color .15s ease; }
.rfpdropi-tab-link:hover{ color:var(--ss-ink,#171412); }
.rfpdropi-tab-link.is-active{ color:var(--ss-ink,#171412); border-bottom-color:var(--ss-rose,#E88C86); }

/* Standalone dashboard shell for the admin panel: hide the site's normal
   header wherever this panel renders, and turn the tab list into a
   full-height left sidebar with the site logo pinned at the top. */
/* Sidebar de administrador — fijo, visible en TODO el sitio para admins */
#rfpdropi-admin-sidebar{
    position:fixed; top:0; left:0; width:220px; height:100vh; overflow-y:auto;
    display:flex; flex-direction:column; box-sizing:border-box;
    background:var(--ss-bg-soft,#F7F5F3); border-right:1px solid var(--ss-line,#EAE5E0);
    padding:24px 16px; z-index:100000; font-family:'Inter',sans-serif;
}
#rfpdropi-admin-sidebar *{ box-sizing:border-box; }
body:has(#rfpdropi-admin-sidebar){ margin:0; }
body:has(#rfpdropi-admin-sidebar) .wp-site-blocks{ margin-left:220px; }
body:has(#rfpdropi-admin-sidebar) header.wp-block-template-part,
body:has(#rfpdropi-admin-sidebar) footer.wp-block-template-part{ display:none !important; }

.rfpdropi-sidebar-logo{ margin-bottom:24px; padding:0 14px; }
.rfpdropi-sidebar-logo img{ max-width:130px; height:auto; }
.rfpdropi-sidebar-divider{ height:1px; background:var(--ss-line,#EAE5E0); margin:16px 14px; }
.rfpdropi-sidebar-sitenav{ display:flex; flex-direction:column; gap:2px; }
.rfpdropi-sidebar-sitenav a{ padding:10px 14px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px; color:var(--ss-ink-soft,#6B6560); }
.rfpdropi-sidebar-sitenav a:hover{ color:var(--ss-ink,#171412); background:#fff; }
.rfpdropi-sidebar-config{ padding:0 14px; }
.rfpdropi-sidebar-config summary{ cursor:pointer; padding:10px 0; font-weight:600; font-size:14px; color:var(--ss-ink,#171412); list-style:none; }
.rfpdropi-sidebar-config summary::-webkit-details-marker{ display:none; }
.rfpdropi-sidebar-config-items{ display:flex; flex-direction:column; gap:2px; margin:4px 0 8px -14px; }
.rfpdropi-sidebar-config-items .rfpdropi-tab-link{ border-bottom:none; border-radius:8px; padding:10px 14px; margin-bottom:0; }
.rfpdropi-sidebar-config-items .rfpdropi-tab-link.is-active{ background:#fff; border-bottom-color:transparent; box-shadow:0 1px 3px rgba(23,20,18,.06); }
.rfpdropi-sidebar-spacer{ flex:1; }
.rfpdropi-sidebar-user{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-top:1px solid var(--ss-line,#EAE5E0); }
.rfpdropi-sidebar-user img{ border-radius:50%; flex-shrink:0; }
.rfpdropi-sidebar-user-info{ min-width:0; }
.rfpdropi-sidebar-user-name{ font-size:13px; font-weight:700; color:var(--ss-ink,#171412); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rfpdropi-sidebar-user-email{ font-size:11px; color:var(--ss-ink-soft,#6B6560); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rfpdropi-sidebar-user-actions{ display:flex; justify-content:center; gap:8px; padding:0 14px 16px; }
.rfpdropi-sidebar-account{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:8px; background:var(--ss-panel,#F1ECE7); color:var(--ss-ink,#171412); font-size:15px; text-decoration:none; }
.rfpdropi-sidebar-account:hover{ background:var(--ss-line,#EAE5E0); }
.rfpdropi-sidebar-logout{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:8px; background:#FCE7E5; color:#B3352C; font-size:16px; font-weight:600; text-decoration:none; }
.rfpdropi-sidebar-logout:hover{ background:#F3D6D3; }
.rfpdropi-sidebar-wpadmin{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:8px; background:var(--ss-ink,#171412); color:#fff; text-decoration:none; flex-shrink:0; }
.rfpdropi-sidebar-wpadmin:hover{ background:var(--ss-rose-dark,#c96c66); }

/* Solo en la página del panel (/rfpdropi/): look de dashboard independiente */
body.page-id-2676 .wp-block-post-title{ display:none !important; }
body.page-id-2676 main,
body.page-id-2676 main > div,
body.page-id-2676 .entry-content{
    margin:0 !important; padding:0 !important; max-width:none !important;
}
.rfpdropi-panel{ padding:48px 40px 100px; }

.rfpdropi-sidebar-hamburger{ display:none; }
.rfpdropi-sidebar-overlay{ display:none; }
.rfpdropi-sidebar-login{ display:block; margin:0 14px; padding:10px 14px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px; text-align:center; background:var(--ss-ink,#171412); color:#fff; }

@media(max-width:820px){
    body:has(#rfpdropi-admin-sidebar) .wp-site-blocks{ margin-left:0 !important; padding-top:70px !important; }

    .rfpdropi-sidebar-hamburger{
        display:flex; align-items:center; justify-content:center;
        position:fixed; top:14px; left:14px; width:42px; height:42px;
        background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:10px;
        font-size:20px; cursor:pointer; z-index:100001; box-shadow:0 2px 8px rgba(23,20,18,.08);
    }

    #rfpdropi-admin-sidebar{
        position:fixed; width:260px; transform:translateX(-100%);
        transition:transform .2s ease; z-index:100000; box-shadow:0 0 30px rgba(23,20,18,.15);
    }
    .rfpdropi-sidebar-toggle-checkbox:checked ~ #rfpdropi-admin-sidebar{ transform:translateX(0); }

    .rfpdropi-sidebar-overlay{
        display:none; position:fixed; inset:0; background:rgba(23,20,18,.4); z-index:99999;
    }
    .rfpdropi-sidebar-toggle-checkbox:checked ~ .rfpdropi-sidebar-overlay{ display:block; }
}

/* Buttons */
.rfpdropi-panel .ss-btn{ display:inline-flex; align-items:center; gap:6px; }
.button{ display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:1px solid var(--ss-line,#EAE5E0); border-radius:100px; background:#fff; color:var(--ss-ink,#171412); text-decoration:none; font-size:13px; font-weight:600; cursor:pointer; transition:background .15s ease, box-shadow .15s ease; }
.button:hover{ background:var(--ss-bg-soft,#F7F5F3); }
.button-small{ padding:6px 14px; font-size:12px; }
.button-link-delete{ color:#B3352C; border-color:#F3D6D3; background:#fff; }
.button-link-delete:hover{ background:#FCE7E5; }
.rfpdropi-toolbar{ margin-bottom:20px; display:flex; justify-content:space-between; align-items:center; }

/* List cards (Formularios, Flujos, Envíos) */
.rfpdropi-list{ display:flex; flex-direction:column; gap:12px; }
.rfpdropi-row{ display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:14px; padding:18px 20px; box-shadow:0 1px 3px rgba(23,20,18,.03); transition:box-shadow .15s ease; }
.rfpdropi-row:hover{ box-shadow:0 6px 16px rgba(23,20,18,.06); }
.rfpdropi-row-main{ flex:1; min-width:0; }
.rfpdropi-row-thumb{ width:48px; height:48px; border-radius:8px; object-fit:cover; flex-shrink:0; background:var(--ss-bg-soft,#F7F5F3); }
.rfpdropi-row-title{ font-family:'Poppins',sans-serif; font-weight:600; font-size:15px; margin-bottom:4px; }
.rfpdropi-row-meta{ font-size:13px; color:var(--ss-ink-soft,#6B6560); display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.rfpdropi-row-meta code{ background:var(--ss-bg-soft,#F7F5F3); padding:2px 8px; border-radius:6px; font-size:12px; }
.rfpdropi-row-actions{ display:flex; gap:8px; flex-shrink:0; }
.rfpdropi-empty{ text-align:center; padding:56px 24px; color:var(--ss-ink-soft,#6B6560); background:var(--ss-bg-soft,#F7F5F3); border-radius:16px; font-size:14px; }

/* Badges */
.rfpdropi-badge{ display:inline-block; padding:3px 12px; border-radius:100px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; background:var(--ss-panel,#F1ECE7); }
.rfpdropi-badge-abierto{ background:#FCE7E5; color:#B3352C; }
.rfpdropi-badge-cerrado{ background:#E7F5EC; color:#1E7A44; }

/* Notices */
.rfpdropi-notice{ padding:13px 18px; border-radius:10px; margin-bottom:20px; font-size:14px; font-weight:600; }
.rfpdropi-notice-success{ background:#E7F5EC; color:#1E7A44; }

/* Editor card wrapper */
.rfpdropi-editor-card{ background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:18px; padding:32px; }
.rfpdropi-back-link{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ss-ink-soft,#6B6560); text-decoration:none; margin-bottom:20px; }
.rfpdropi-back-link:hover{ color:var(--ss-ink,#171412); }
.rfpdropi-field-group{ margin-bottom:24px; }
.rfpdropi-field-group label{ display:block; font-size:13px; font-weight:600; color:var(--ss-ink-soft,#6B6560); margin-bottom:6px; }
.rfpdropi-field-group input[type=text], .rfpdropi-field-group select{ width:100%; max-width:420px; padding:12px 14px; border:1px solid var(--ss-line,#EAE5E0); border-radius:10px; background:var(--ss-bg-soft,#F7F5F3); font-family:'Inter',sans-serif; font-size:14px; }
.rfpdropi-field-group input:focus, .rfpdropi-field-group select:focus{ outline:none; border-color:var(--ss-rose,#E88C86); background:#fff; }
.rfpdropi-section-label{ font-family:'Poppins',sans-serif; font-weight:700; font-size:15px; margin:28px 0 14px; padding-top:20px; border-top:1px solid var(--ss-line,#EAE5E0); }
.rfpdropi-section-label:first-child{ margin-top:0; padding-top:0; border-top:none; }
.rfpdropi-section-hint{ font-size:13px; color:var(--ss-ink-soft,#6B6560); margin:-8px 0 16px; }

/* Field / step rows in editors — card style, not raw tables */
#rfpdropi-fields-table, #rfpdropi-steps-table{ display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
#rfpdropi-fields-table thead, #rfpdropi-steps-table thead{ display:none; }
#rfpdropi-fields-table tbody, #rfpdropi-steps-table tbody{ display:flex; flex-direction:column; gap:10px; }
#rfpdropi-fields-table tr, #rfpdropi-steps-table tr{ display:grid; grid-template-columns:1.4fr 1fr 1fr auto auto; gap:12px; align-items:start; background:var(--ss-bg-soft,#F7F5F3); border:1px solid var(--ss-line,#EAE5E0); border-radius:12px; padding:14px; }
#rfpdropi-steps-table tr{ grid-template-columns:1fr 1fr 1.4fr 1.4fr auto; }
#rfpdropi-fields-table td, #rfpdropi-steps-table td{ padding:0 !important; border:none !important; background:transparent !important; }
#rfpdropi-fields-table input[type=text], #rfpdropi-fields-table select,
#rfpdropi-steps-table input[type=text], #rfpdropi-steps-table select{ width:100%; padding:9px 11px; border:1px solid var(--ss-line,#EAE5E0); border-radius:8px; background:#fff; font-family:'Inter',sans-serif; font-size:13px; }
#rfpdropi-fields-table input:focus, #rfpdropi-fields-table select:focus,
#rfpdropi-steps-table input:focus, #rfpdropi-steps-table select:focus{ outline:none; border-color:var(--ss-rose,#E88C86); }
.rfpdropi-checkbox-cell{ display:flex; align-items:center; justify-content:center; height:38px; }
.rfpdropi-checkbox-cell input{ width:18px; height:18px; }
.rfpdropi-checklist label{ display:inline-flex; align-items:center; gap:5px; margin:0 12px 6px 0; font-size:12px; font-weight:500; color:var(--ss-ink,#171412); background:#fff; border:1px solid var(--ss-line,#EAE5E0); padding:5px 10px; border-radius:100px; }
.rfpdropi-checklist label input{ margin:0; }
.rfpdropi-checklist em{ font-size:12px; color:var(--ss-ink-soft,#6B6560); }
@media(max-width:820px){ #rfpdropi-fields-table tr, #rfpdropi-steps-table tr{ grid-template-columns:1fr; } }

/* Editor de producto — layout de dos columnas, tarjetas modernas */
.rfpdropi-pe-header{ margin-bottom:24px; }
.rfpdropi-pe-eyebrow{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ss-rose,#E88C86); margin-bottom:4px; }
.rfpdropi-pe-title{ font-family:'Poppins',sans-serif; font-size:26px; font-weight:700; margin:0; }
.rfpdropi-pe-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:20px; align-items:start; }
@media(max-width:900px){ .rfpdropi-pe-grid{ grid-template-columns:1fr; } }
.rfpdropi-pe-card{ background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:16px; padding:24px; margin-bottom:20px; box-shadow:0 1px 3px rgba(23,20,18,.03); }
.rfpdropi-pe-card-title{ display:flex; align-items:center; gap:8px; font-family:'Poppins',sans-serif; font-weight:700; font-size:15px; margin:0 0 18px; }
.rfpdropi-pe-field{ margin-bottom:18px; }
.rfpdropi-pe-field:last-child{ margin-bottom:0; }
.rfpdropi-pe-field label{ display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--ss-ink-soft,#6B6560); margin-bottom:7px; }
.rfpdropi-pe-field input[type=text], .rfpdropi-pe-field input[type=url], .rfpdropi-pe-field select{
    width:100%; padding:12px 14px; border:1.5px solid var(--ss-line,#EAE5E0); border-radius:10px;
    background:var(--ss-bg-soft,#F7F5F3); font-family:'Inter',sans-serif; font-size:14px; transition:border-color .15s ease, background .15s ease;
}
.rfpdropi-pe-field input:focus, .rfpdropi-pe-field select:focus{ outline:none; border-color:var(--ss-rose,#E88C86); background:#fff; }
.rfpdropi-pe-title-input{ font-family:'Poppins',sans-serif !important; font-size:18px !important; font-weight:600; padding:14px 16px !important; }
.rfpdropi-pe-price-wrap{ position:relative; }
.rfpdropi-pe-price-wrap span{ position:absolute; left:14px; top:50%; transform:translateY(-50%); font-weight:700; color:var(--ss-ink-soft,#6B6560); }
.rfpdropi-pe-price-wrap input{ padding-left:28px !important; font-weight:700; }
.rfpdropi-pe-hint{ font-size:12.5px; color:var(--ss-ink-soft,#6B6560); margin:8px 0 0; line-height:1.5; }

.rfpdropi-pe-image-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; margin-bottom:14px; }
.rfpdropi-pe-image-tile{ position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; background:var(--ss-bg-soft,#F7F5F3); border:1px solid var(--ss-line,#EAE5E0); }
.rfpdropi-pe-image-tile img{ width:100%; height:100%; object-fit:cover; display:block; }
.rfpdropi-pe-image-badge{ position:absolute; top:6px; left:6px; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; background:rgba(23,20,18,.75); color:#fff; padding:3px 7px; border-radius:100px; }
.rfpdropi-pe-image-remove{ position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; padding:8px; background:linear-gradient(to top,rgba(23,20,18,.65),transparent 60%); opacity:0; transition:opacity .15s ease; }
.rfpdropi-pe-image-tile:hover .rfpdropi-pe-image-remove{ opacity:1; }
.rfpdropi-pe-image-remove label{ display:flex; align-items:center; gap:5px; font-size:11px; font-weight:600; color:#fff; cursor:pointer; }
.rfpdropi-pe-image-remove input{ width:14px; height:14px; }
.rfpdropi-pe-dropzone{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; padding:22px 14px; border:1.5px dashed var(--ss-line,#EAE5E0); border-radius:12px; background:var(--ss-bg-soft,#F7F5F3); cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.rfpdropi-pe-dropzone:hover, .rfpdropi-pe-dropzone.is-dragover{ border-color:var(--ss-rose,#E88C86); background:#fff; }
.rfpdropi-pe-dropzone-icon{ font-size:22px; }
.rfpdropi-pe-dropzone-text{ font-size:13px; font-weight:600; }
.rfpdropi-pe-dropzone-sub{ font-size:11.5px; color:var(--ss-ink-soft,#6B6560); }
.rfpdropi-pe-dropzone input[type=file]{ display:none; }
.rfpdropi-pe-file-list{ font-size:12px; color:var(--ss-ink-soft,#6B6560); margin-top:8px; }

.rfpdropi-pe-savebar{ position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:10px; background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:16px; padding:16px 20px; margin-top:4px; box-shadow:0 -6px 20px rgba(23,20,18,.05); }
.rfpdropi-pe-savebar .button-primary{ background:var(--ss-rose,#E88C86); color:#fff; border-color:var(--ss-rose,#E88C86); padding:11px 24px; }
.rfpdropi-pe-savebar .button-primary:hover{ background:var(--ss-rose-dark,#c96c66); }

/* Submission detail */
.rfpdropi-detail-header{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.rfpdropi-step-pill{ font-size:13px; color:var(--ss-ink-soft,#6B6560); }
.rfpdropi-detail-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--ss-line,#EAE5E0); border-radius:14px; overflow:hidden; margin-bottom:24px; }
.rfpdropi-detail-table th, .rfpdropi-detail-table td{ padding:14px 18px; text-align:left; border-bottom:1px solid var(--ss-line,#EAE5E0); font-size:14px; vertical-align:top; }
.rfpdropi-detail-table tr:last-child th, .rfpdropi-detail-table tr:last-child td{ border-bottom:none; }
.rfpdropi-detail-table th{ width:220px; font-weight:600; color:var(--ss-ink-soft,#6B6560); background:var(--ss-bg-soft,#F7F5F3); }
.rfpdropi-detail-table input[type=text], .rfpdropi-detail-table textarea{ width:100%; padding:10px 12px; border:1px solid var(--ss-line,#EAE5E0); border-radius:8px; font-family:'Inter',sans-serif; font-size:14px; }
.rfpdropi-history-table{ width:100%; border-collapse:collapse; }
.rfpdropi-history-table th, .rfpdropi-history-table td{ padding:10px 14px; text-align:left; border-bottom:1px solid var(--ss-line,#EAE5E0); font-size:13px; }
.rfpdropi-history-table th{ color:var(--ss-ink-soft,#6B6560); font-weight:600; }
