:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#172536;background:#f1f4f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #4187d7;outline-offset:2px}input,textarea{width:100%;border:1px solid #d2dbe6;border-radius:8px;padding:10px 11px;background:#fff;color:#172536}input[type=color]{height:38px;padding:4px}input[type=range]{padding:0}input[type=checkbox]{width:auto}textarea{resize:vertical}.topbar{height:65px;background:#fff;border-bottom:1px solid #e0e6ef;display:flex;align-items:center;gap:40px;padding:0 26px}.brand{font-size:25px;font-weight:850;letter-spacing:-1.2px;color:#14263e}.brand span{color:#237ed5}.topbar nav{display:flex;gap:7px;flex:1}.navbtn{border:0;background:transparent;padding:13px 16px;border-radius:8px;color:#637285;font-weight:600}.navbtn.active{background:#edf4fd;color:#1264bc}.btn{border:1px solid #ced9e6;background:white;color:#1d3853;border-radius:8px;padding:9px 12px;font-weight:650;white-space:nowrap}.btn:hover{background:#edf4fb}.btn.primary{background:#1875d1;border-color:#1875d1;color:white}.btn.primary:hover{background:#075eb2}.btn.subtle{border:0}.stretch{width:100%}.editor-shell{display:grid;grid-template-columns:315px minmax(0,1fr);min-height:calc(100vh - 65px)}.sidebar{background:white;border-right:1px solid #e0e6ef;padding:20px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 65px);overflow:auto}.sidebar h3{font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:#536982;margin:10px 0 0}.sidebar label,.business-card label,.auth-card label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#405168;font-size:12px}.sidebar .checklabel{display:flex;flex-direction:row;align-items:center;font-size:13px}.sidebar hr{width:100%;border:0;border-top:1px solid #e6ebf2;margin:6px 0}.hint{color:#7b8b9d;font-size:12px;line-height:1.5;margin:0}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.layout-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.layout-options button{background:#fff;border:1px solid #d7e0ed;border-radius:9px;min-height:83px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#344b62}.layout-options button.selected{border:2px solid #1875d1;background:#f0f7ff;color:#1264bc}.mini{display:block;width:30px;height:40px;border:1px solid #94a6bb;background:#fff}.mini.two-h{background:linear-gradient(to bottom,white 48%,#c1cfdd 49%,#c1cfdd 51%,white 52%)}.mini.two-v{background:linear-gradient(to right,white 47%,#c1cfdd 48%,#c1cfdd 52%,white 53%)}.mini.four{background:linear-gradient(to right,transparent 47%,#c1cfdd 48%,#c1cfdd 52%,transparent 53%),linear-gradient(to bottom,white 48%,#c1cfdd 49%,#c1cfdd 51%,white 52%)}.workspace{min-width:0;padding:21px 28px 36px;display:flex;flex-direction:column;align-items:center;gap:14px}.workspace-toolbar{width:100%;display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:1100px}.status{font-size:13px;color:#65768a}.paper-wrap{width:100%;display:flex;justify-content:center;overflow:auto;padding:4px}.paper{background:#fff;width:210mm;height:297mm;flex:none;box-shadow:0 8px 35px #1c2c4026;display:flex;flex-direction:column;padding:9mm;overflow:hidden;color:#1a2937}.flyer-head{color:white;display:flex;align-items:center;gap:5mm;padding:4mm 7mm;flex:none;overflow:hidden}.flyer-head .logo{object-fit:contain;max-width:38mm;max-height:100%;background:white;border-radius:3px}.brand-copy{display:flex;flex-direction:column;gap:2mm;min-width:0}.brand-copy strong{font-size:19pt;line-height:1.1;overflow-wrap:anywhere}.brand-copy span{font-size:9pt}.flyer-foot{color:white;flex:none;padding:2.5mm 5mm;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5mm;overflow:hidden;overflow-wrap:anywhere}.flyer-foot strong{font-size:10pt}.flyer-foot span{font-size:8pt;line-height:1.25}.product-grid{display:grid;flex:1;min-height:0;gap:3mm;padding:3mm 0}.product-grid.one{grid-template-columns:1fr;grid-template-rows:1fr}.product-grid.two-h{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}.product-grid.two-v{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}.product-grid.four{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.product-cell{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #d8e0e8;cursor:pointer;overflow:hidden}.product-cell.picked{outline:2px solid #2180d8;outline-offset:-2px}.product-image{flex:1 1 55%;min-height:0;display:flex;align-items:center;justify-content:center;padding:3mm;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain}.image-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#f1f4f8;color:#93a1b0;font-size:10pt;letter-spacing:.05em}.product-copy{flex:0 0 auto;padding:1mm 4mm 4mm;overflow:hidden}.product-name{font-size:14pt;font-weight:800;line-height:1.25;overflow-wrap:anywhere}.product-description{font-size:9pt;color:#536277;line-height:1.35;white-space:normal;overflow-wrap:anywhere;margin-top:2mm}.product-prices{display:flex;gap:3mm;align-items:baseline;justify-content:flex-end;margin-top:2mm;flex-wrap:wrap}.product-prices del{color:#97a1ac;font-size:10pt}.product-prices strong{color:#d92335;font-size:18pt}.product-grid.one .product-name{font-size:24pt}.product-grid.one .product-description{font-size:14pt}.product-grid.one .product-prices strong{font-size:30pt}.product-grid.two-h .product-image{flex-basis:55%}.product-grid.two-v .product-image{flex-basis:65%}.product-grid.two-v .product-name{font-size:13pt}.product-grid.two-v .product-description{font-size:9pt}.workspace small{color:#79889b;text-align:center}.panel-view{max-width:980px;margin:35px auto;padding:0 20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.panel-heading h1{font-size:25px;margin:0 0 7px}.panel-heading p{color:#65778a}.business-card{padding:26px;background:#fff;border:1px solid #e2e9f1;border-radius:15px}.business-card .two-cols{gap:18px}.business-card h3{margin:30px 0 12px}.address-row{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;margin-bottom:9px}.business-actions{text-align:right;margin-top:25px}.design-list{display:grid;gap:12px}.design-entry{padding:16px 19px;border:1px solid #e2e9f1;border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center}.design-entry small{display:block;color:#7d8da1;margin-top:6px}.media-library{padding:8px;border:1px solid #dde5ed;border-radius:8px}.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:210px;overflow:auto;margin-top:10px}.thumb{border:1px solid #d8e0e9;background:#f7f9fb;border-radius:5px;height:73px}.thumb img{height:100%;width:100%;object-fit:contain}.toast{position:fixed;bottom:25px;right:25px;background:#16273c;color:#fff;padding:12px 18px;border-radius:9px;z-index:50;box-shadow:0 5px 15px #0002}.auth-body{display:grid;min-height:100vh;place-items:center;padding:20px}.auth-card{width:min(440px,100%);padding:37px;background:white;border:1px solid #e2e9f1;border-radius:18px;box-shadow:0 14px 50px #1c2c4010}.auth-card>p{color:#66768a}.auth-card form{display:flex;flex-direction:column;gap:17px}.auth-card .tabs{display:flex;background:#f1f5fa;padding:4px;border-radius:9px;margin:22px 0}.tabs button{flex:1;border:0;border-radius:7px;padding:11px;background:transparent;color:#6f7d91}.tabs button.active{background:white;color:#1264bc;box-shadow:0 1px 5px #0001}.error{padding:10px;background:#ffe8e8;color:#a63131;border-radius:8px} [hidden]{display:none!important}@media(max-width:1000px){.editor-shell{grid-template-columns:270px minmax(0,1fr)}.workspace{padding:15px 10px}.paper-wrap{justify-content:flex-start}.paper{transform-origin:top left}}@media(max-width:700px){.topbar{padding:8px;height:auto;gap:10px;flex-wrap:wrap}.topbar nav{order:3;flex-basis:100%;overflow:auto}.editor-shell{display:block}.sidebar{max-height:none}.workspace-toolbar{flex-wrap:wrap}.paper-wrap{justify-content:center}.paper{zoom:.47}.address-row{grid-template-columns:1fr}.business-card .two-cols{grid-template-columns:1fr}}@media print{@page{size:A4 portrait;margin:0}html,body{margin:0!important;padding:0!important;background:white!important;width:210mm;height:297mm}.topbar,.sidebar,.workspace-toolbar,.workspace>small,.panel-view,.toast{display:none!important}.editor-shell,.workspace,.paper-wrap{display:block!important;margin:0!important;padding:0!important;width:210mm!important;height:297mm!important;min-height:0!important;max-width:none!important;overflow:hidden!important}.paper{width:210mm!important;height:297mm!important;margin:0!important;zoom:1!important;transform:none!important;box-shadow:none!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.product-cell.picked{outline:0!important}.product-cell{break-inside:avoid!important}}

/* A4flyer v2: direct editing and image positioning */
.product-image{touch-action:none;cursor:grab;position:relative}
.product-image.moving{cursor:grabbing}
.product-image img{pointer-events:none;user-select:none;transform-origin:center center;will-change:transform}
.product-cell.file-over{outline:3px dashed #1875d1;outline-offset:-5px}
.inline-edit{cursor:text;border-radius:2px;min-width:1em;outline:none}
.inline-edit:hover{box-shadow:0 0 0 1px #8ab9eb}
.inline-edit:focus{box-shadow:0 0 0 2px #1875d1;background:#fff9eb;color:#16273c}
.product-prices del:empty:before{content:'Παλιά τιμή';opacity:.36;text-decoration:none}
@media print{.inline-edit:hover,.inline-edit:focus{box-shadow:none!important;background:transparent!important;color:inherit!important}.product-prices del:empty:before{content:none!important}}

/* v3: movable objects within fixed A4 product cells */
.product-cell{position:relative}
.free-object .resize-handle{display:none}
.product-grid.free-mode .product-cell{display:block}
.product-grid.free-mode .product-copy,.product-grid.free-mode .product-prices{display:contents}
.product-grid.free-mode .free-object{position:absolute!important;left:var(--ox)!important;top:var(--oy)!important;width:var(--ow)!important;height:var(--oh)!important;max-width:none!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box;touch-action:none;cursor:move;user-select:none;z-index:1;margin:0!important;padding:1mm!important;flex:none!important;white-space:normal}
.product-grid.free-mode .product-image{padding:0!important}
.product-grid.free-mode .free-object .resize-handle{display:block;position:absolute;right:0;bottom:0;height:12px;width:12px;background:#1875d1;border:2px solid white;border-radius:3px;cursor:nwse-resize;z-index:5}
.product-grid.free-mode .free-object:hover{outline:1px dashed #1875d1}
.product-grid.free-mode .product-prices strong,.product-grid.free-mode .product-prices del{display:block}
@media print{.product-grid.free-mode .free-object:hover{outline:0!important}.resize-handle{display:none!important}}

.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.admin-stats .business-card{padding:20px}.admin-stats strong{font-size:25px;display:block}.admin-stats small,.admin-table small{display:block;color:#7b8b9d}.admin-table-wrap{overflow:auto}.admin-table{border-collapse:collapse;background:white;width:100%}.admin-table th,.admin-table td{padding:12px;text-align:left;border-bottom:1px solid #e2e9f1}.notice{padding:12px;border-radius:8px;background:#e9f6ec;color:#1b6c32}@media(max-width:700px){.admin-stats{grid-template-columns:repeat(2,1fr)}}

/* v4 */
.extra-text{display:block;padding:2mm;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12pt;min-height:12mm;background:transparent}
.product-grid:not(.free-mode) .extra-text{position:relative;margin:1mm 3mm}
.media-item{display:flex;flex-direction:column;gap:3px;min-width:0}.media-item .thumb{width:100%}.media-delete{font-size:10px;padding:4px}.thumbs{grid-template-columns:repeat(2,minmax(0,1fr));max-height:320px}.product-grid.free-mode .extra-text{z-index:3}
#printPages{display:none}
@media print{body.printing-all .topbar,body.printing-all .editor-shell,body.printing-all .panel-view{display:none!important}body.printing-all #printPages{display:block!important;width:210mm!important;height:auto!important;margin:0!important;padding:0!important}body.printing-all #printPages .paper{display:flex!important;page-break-after:always;break-after:page;box-shadow:none!important;zoom:1!important;transform:none!important}body.printing-all #printPages .paper:last-child{page-break-after:auto;break-after:auto}body.printing-all #printPages .free-object{outline:0!important}}
