/* ===========================================================
 Parmagito Book Editor — V1.6.3: fully scoped, geometric layout.
 Bundled inside admin.css so admin themes/cache cannot omit it.
 =========================================================== */
.pcdp-app .pcdp-books-page{--book-ink:#38283f;--book-muted:#77697e;--book-line:#e9e1eb;--book-bg:#faf8fb;--book-accent:#76527e;direction:rtl;max-width:1340px;width:100%;margin-inline:auto;padding:0 0 40px;color:var(--book-ink);font-family:inherit;}
.pcdp-app .pcdp-books-page *{box-sizing:border-box}
.pcdp-app .pcdp-books-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:30px 32px;min-height:170px;border:1px solid #604268;border-radius:22px;background:radial-gradient(circle at 6% -40%,rgba(210,171,124,.24),transparent 36%),linear-gradient(118deg,#604268,#76527e);color:#ffffff;overflow:hidden;box-shadow:0 16px 38px rgba(67,45,74,.11)}
.pcdp-app .pcdp-books-heading:after{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:linear-gradient(#d3b9d8,#916f9a)}
.pcdp-app .pcdp-books-heading>div{position:relative;z-index:1;min-width:0}
.pcdp-app .pcdp-books-heading span{display:block;font-size:11px;font-weight:750;letter-spacing:.13em;color:#ead9ec;margin:0 0 10px;direction:ltr;text-align:start}
.pcdp-app .pcdp-books-heading h1{margin:0 0 10px!important;padding:0!important;color:#fffaf3!important;font-size:clamp(25px,2.5vw,34px)!important;font-weight:800;line-height:1.35}
.pcdp-app .pcdp-books-heading p{margin:0!important;color:#f2eaf3!important;font-size:13px!important;line-height:1.9!important;font-weight:400;max-width:680px}
.pcdp-app .pcdp-books-heading a.pcdp-btn{position:relative;z-index:1;flex:0 0 auto;white-space:nowrap;min-height:44px;border:1px solid rgba(255,255,255,.35)!important;border-radius:12px;padding:10px 17px;background:rgba(255,255,255,.12)!important;color:#fff!important;font-size:12px}
.pcdp-app .pcdp-books-heading a.pcdp-btn:hover{background:rgba(255,255,255,.21)!important}
.pcdp-app .pcdp-book-form{display:block;width:100%;margin:0;padding:0}
.pcdp-app .pcdp-book-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,315px)!important;align-items:start;gap:20px!important;width:100%}
.pcdp-app .pcdp-book-main,.pcdp-app .pcdp-book-aside{display:flex!important;flex-direction:column!important;gap:20px;min-width:0;width:100%;margin:0;padding:0}
.pcdp-app .pcdp-book-panel{display:block;min-width:0;margin:0;padding:26px!important;background:#fff!important;border:1px solid var(--book-line)!important;border-radius:20px!important;box-shadow:0 10px 28px rgba(67,45,74,.055);overflow:hidden}
.pcdp-app .pcdp-book-panel-head{display:flex!important;align-items:center!important;gap:12px;margin:0 0 22px!important;padding:0 0 17px!important;border-bottom:1px solid #f2edf3}
.pcdp-app .pcdp-book-panel-head>span{display:grid!important;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#f3ebf5;color:#604268;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.pcdp-app .pcdp-book-panel-head h2{margin:0!important;padding:0!important;font-size:18px!important;font-weight:800!important;line-height:1.5!important;color:var(--book-ink)!important}
.pcdp-app .pcdp-book-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:18px!important;width:100%}
.pcdp-app .pcdp-book-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0;width:100%;margin:0!important;padding:0!important;color:var(--book-ink)!important;font-weight:600;line-height:1.5;text-align:right}
.pcdp-app .pcdp-book-field.is-full,.pcdp-app .pcdp-book-note.is-full{grid-column:1/-1!important}
.pcdp-app .pcdp-book-field>span{display:block!important;line-height:1.5;font-size:12px!important;font-weight:750!important;color:#47354c!important;margin:0!important}
.pcdp-app .pcdp-book-field input:not([type="file"]),.pcdp-app .pcdp-book-field select,.pcdp-app .pcdp-book-field textarea{display:block!important;position:static!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px 14px!important;border:1px solid #dfd4e4!important;background:#ffffff!important;color:#38283f!important;border-radius:12px!important;box-shadow:none!important;text-align:right!important;font-family:inherit!important;font-size:13px!important;font-weight:500!important;line-height:1.65!important;transition:border-color .18s,box-shadow .18s}
.pcdp-app .pcdp-book-field input:not([type="file"]):focus,.pcdp-app .pcdp-book-field select:focus,.pcdp-app .pcdp-book-field textarea:focus{border-color:#8e6c98!important;box-shadow:0 0 0 3px rgba(118,82,126,.15)!important;outline:0!important}
.pcdp-app .pcdp-book-field textarea{resize:vertical!important;min-height:100px!important}
.pcdp-app .pcdp-book-field:has(textarea[name="book_description"]) textarea{min-height:185px!important}
.pcdp-app .pcdp-book-field input[type="number"]{direction:ltr!important;text-align:right!important;font-variant-numeric:tabular-nums}
.pcdp-app .pcdp-book-field small{display:block;color:#766978!important;font-size:11px!important;font-weight:400;line-height:1.8}
.pcdp-app .pcdp-book-field input[type="file"]{width:100%!important;max-width:100%!important;min-width:0!important;display:block!important;margin:0!important;padding:10px!important;background:#faf8fb!important;border:1px dashed #cbb7ce!important;border-radius:12px!important;color:#47354c!important;font-size:11px!important;white-space:normal}
.pcdp-app .pcdp-book-cover{display:flex!important;justify-content:center!important;align-items:center!important;min-height:235px;max-height:295px;overflow:hidden;margin:0 0 17px!important;padding:20px;border:1px solid #ece1ed;border-radius:14px;background:radial-gradient(circle at 50% 35%,#fff,#f3eaf5)}
.pcdp-app .pcdp-book-cover img{display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:250px!important;object-fit:contain!important;margin:auto;border-radius:4px;box-shadow:0 8px 20px rgba(58,40,28,.1)}
.pcdp-app .pcdp-book-cover>span{font-size:55px}
.pcdp-app .pcdp-book-category-list{display:grid!important;grid-template-columns:1fr;gap:7px!important;max-height:310px!important;overflow-y:auto!important;overflow-x:hidden;padding:4px 4px 4px 8px!important;margin:0 0 20px!important;scrollbar-width:thin}
.pcdp-app .pcdp-book-category-list label{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:41px;margin:0!important;padding:9px 11px!important;background:#faf8fb!important;border:1px solid #ece4ed!important;border-radius:10px!important;color:#4c3951!important;font-size:12px!important;font-weight:550!important;line-height:1.55!important;cursor:pointer;white-space:normal}
.pcdp-app .pcdp-book-category-list label:has(input:checked){background:#f2e9f4!important;border-color:#c6a8cb!important;color:#4a3550!important}
.pcdp-app .pcdp-book-category-list label input[type="checkbox"]{display:inline-block!important;position:static!important;width:17px!important;height:17px!important;flex:0 0 17px!important;min-width:17px!important;margin:0!important;accent-color:#76527e;vertical-align:middle}
.pcdp-app .pcdp-book-submit{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:52px!important;margin:0!important;border-radius:13px!important;background:#604268!important;color:#fff!important;font-size:13px!important;letter-spacing:0!important;box-shadow:0 10px 20px rgba(82,55,93,.16)}
.pcdp-app .pcdp-book-submit:hover{background:#503657!important;color:#fff!important}
.pcdp-app .pcdp-book-note{padding:13px 15px;background:#f7f2f8;border:1px solid #e5d7e7;border-radius:11px;color:#614e68;font-size:12px;line-height:1.75}
.pcdp-app .pcdp-book-success{margin:0 0 20px;padding:14px 18px;background:#f0f9f3;border:1px solid #b6d7bd;border-radius:12px;color:#205c38;font-size:13px;font-weight:700}
@media(max-width:1120px){.pcdp-app .pcdp-book-grid{grid-template-columns:minmax(0,1fr) minmax(235px,285px)!important}.pcdp-app .pcdp-book-panel{padding:20px!important}}
@media(max-width:960px){.pcdp-app .pcdp-book-grid{grid-template-columns:minmax(0,1fr)!important}.pcdp-app .pcdp-book-aside{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pcdp-app .pcdp-book-aside>.pcdp-book-submit{grid-column:1/-1}}
@media(max-width:700px){.pcdp-app .pcdp-books-heading{flex-direction:column;align-items:stretch;padding:24px 20px;min-height:0}.pcdp-app .pcdp-books-heading a.pcdp-btn{align-self:flex-start}.pcdp-app .pcdp-book-fields{grid-template-columns:minmax(0,1fr)!important}.pcdp-app .pcdp-book-aside{display:flex!important;flex-direction:column!important}.pcdp-app .pcdp-book-panel{padding:18px!important}.pcdp-app .pcdp-book-panel-head h2{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.pcdp-app .pcdp-books-page *{transition:none!important}}

/* Gallery and stock quantity — v1.6.4 */
.pcdp-app .pcdp-book-helper{font-size:12px;line-height:1.8;color:#77697e;margin:0 0 14px}
.pcdp-app .pcdp-book-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.pcdp-app .pcdp-book-gallery-card{display:flex!important;flex-direction:column;gap:8px;padding:9px;border:1px solid #e9e1eb;border-radius:12px;background:#faf8fb;color:#47354c;font-size:11px;cursor:pointer;min-width:0}
.pcdp-app .pcdp-book-gallery-card img{display:block;width:100%;height:135px;object-fit:contain;background:white;border-radius:7px}
.pcdp-app .pcdp-book-gallery-card span{display:flex;align-items:center;gap:6px;font-size:11px}
.pcdp-app .pcdp-book-gallery-card input[type=checkbox]{width:16px;height:16px;accent-color:#76527e}
.pcdp-app .pcdp-book-gallery-empty{grid-column:1/-1;padding:18px;border:1px dashed #cbb7ce;border-radius:12px;text-align:center;font-size:12px;color:#77697e;background:#faf8fb}
.pcdp-app .pcdp-book-field input[type=file]{display:block;max-width:100%;font-family:inherit}
@media(max-width:390px){.pcdp-app .pcdp-book-gallery{grid-template-columns:1fr 1fr}}
