:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#17202a;background:#f5f7fa;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{background:#0b5d4b;color:white;padding:1rem max(1rem,calc((100% - 1200px)/2));display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}header a{color:white;text-decoration:none}.brand{font-weight:800;font-size:1.2rem}nav{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}nav form{margin:0}.link{background:none;padding:0}main{max-width:1200px;margin:auto;padding:1.5rem}.card{background:white;border-radius:12px;padding:1rem;box-shadow:0 2px 12px #00000010}.login{max-width:430px;margin:8vh auto}.login h1{text-align:center}form{display:grid;gap:.8rem}label{display:grid;gap:.35rem;font-weight:650}input{width:100%;padding:.75rem;border:1px solid #cbd5df;border-radius:8px;font:inherit}button,.button{border:0;border-radius:8px;background:#087f5b;color:white;padding:.7rem 1rem;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;text-align:center}.secondary{background:#e5eeeb;color:#164b3f}.danger{background:#b42318}.alert,.error{background:#fee4e2;color:#912018;padding:.8rem;border-radius:8px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem;margin:1rem 0}.stats div{background:white;padding:1rem;border-radius:10px;display:grid}.stats b{font-size:1.8rem;color:#087f5b}.actions,.title-row,.filters,.pagination{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin:1rem 0}.title-row{justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;margin-top:1rem}.compact{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.grid img,.form-card img{width:100%;height:190px;object-fit:contain;background:#f1f3f5;border-radius:8px}.compact img{height:120px}.list{display:grid;gap:.6rem}.list a{display:flex;justify-content:space-between;background:white;padding:1rem;border-radius:8px;text-decoration:none;color:inherit}.search{display:flex}.search input{flex:1}.form-card{max-width:650px}.missing,.empty,.error-page{text-align:center;padding:3rem}.loading{color:#0b5d4b;font-weight:700}@media(max-width:600px){main{padding:1rem}nav{gap:.6rem;font-size:.9rem}.grid{grid-template-columns:1fr 1fr}.image-card{padding:.7rem}.grid img{height:140px}.search{display:grid}}

.orders-list article{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.orders-list form{display:inline}.order-editor{max-width:900px}.order-editor section{border-top:1px solid #dde3e8;padding-top:1rem}.selected-product{display:grid;gap:.65rem;margin:.55rem 0;padding:.85rem 1rem}.selected-product-name{display:block;width:100%;min-width:0;direction:rtl;text-align:right;unicode-bidi:plaintext;writing-mode:horizontal-tb;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.45;font-size:1.1rem;font-weight:800;color:#17202a}.selected-product-row{display:flex;direction:rtl;align-items:center;justify-content:space-between;gap:.65rem;width:100%;min-width:0}.selected-quantity-input{flex:0 0 112px;width:112px;min-width:112px;max-width:112px;height:46px;padding:.55rem .5rem;border:1px solid #cbd5df;border-radius:8px;background:#fff;color:#17202a;font-size:1.1rem;font-weight:700;line-height:1;text-align:center;direction:ltr;font-variant-numeric:tabular-nums}.selected-product-actions{display:flex;flex-wrap:nowrap;gap:.4rem;margin:0;align-items:center}.selected-product-actions button{min-width:44px;min-height:44px;padding:.5rem .6rem}.selected-product-actions [data-remove]{min-width:68px}

.product-search-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"image" "name" "controls" "error";gap:.65rem;align-content:start;min-width:0}.product-search-card>img{grid-area:image;width:100%}.product-search-name{grid-area:name;display:block;width:100%;min-width:0;text-align:center;overflow-wrap:anywhere;line-height:1.35}.product-add-controls{grid-area:controls;display:flex;direction:rtl;align-items:stretch;gap:.45rem;width:100%;min-width:0}.product-quantity-input{flex:1 1 auto;width:auto;min-width:0;height:46px;padding:.55rem .7rem;border:1px solid #cbd5df;border-radius:8px;background:#fff;color:#17202a;font-size:1.05rem;font-weight:700;line-height:1;text-align:center;direction:ltr;font-variant-numeric:tabular-nums}.product-quantity-input::placeholder{color:#667085;opacity:1;font-size:.9rem;font-weight:600}.product-add-button{flex:0 0 72px;width:72px;min-width:72px;max-width:72px;min-height:46px;padding:.5rem .3rem;font-size:.98rem;line-height:1.1;white-space:nowrap}.product-quantity-input::-webkit-inner-spin-button,.product-quantity-input::-webkit-outer-spin-button,.selected-quantity-input::-webkit-inner-spin-button,.selected-quantity-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.product-quantity-input,.selected-quantity-input{appearance:textfield;-moz-appearance:textfield}.product-quantity-input.is-invalid{border:2px solid #d92d20;background:#fff5f5;color:#17202a;outline:none}.product-quantity-input.is-invalid:focus{box-shadow:0 0 0 3px rgba(217,45,32,.18)}.field-error{grid-area:error;width:100%;margin:0;color:#b42318;font-size:.85rem;font-weight:700}.selected-products-list{display:flex;flex-direction:column-reverse;gap:.7rem}.order-notification{position:fixed;z-index:10;left:50%;bottom:1.25rem;transform:translateX(-50%);width:min(90%,430px);padding:.8rem 1rem;border-radius:8px;box-shadow:0 4px 18px #0003;text-align:center;font-weight:700}.order-notification[data-type="error"]{background:#fee4e2;color:#912018}.order-notification[data-type="success"]{background:#d1fadf;color:#05603a}.order-notification[data-type="info"]{background:#e0f2fe;color:#075985}

@media(max-width:600px){.product-add-button{flex-basis:70px;width:70px;min-width:70px;max-width:70px}.product-quantity-input{font-size:1rem}.selected-product{padding:.8rem .9rem;gap:.55rem}.selected-product-name{font-size:1.05rem;line-height:1.4}.selected-product-row{gap:.55rem}.selected-quantity-input{flex-basis:104px;width:104px;min-width:104px;max-width:104px;font-size:1.05rem}.selected-product-actions button{min-width:42px;min-height:42px;padding:.45rem .55rem}.selected-product-actions [data-remove]{min-width:64px}}
@media(max-width:380px){.selected-product-row{align-items:stretch;flex-direction:column}.selected-quantity-input{align-self:flex-end}.selected-product-actions{justify-content:flex-start}}
.pricing-card{margin-inline:auto}.pricing-card small{color:#52606d;font-weight:400}.pricing-card input[type="number"]{direction:ltr;text-align:left}.pricing-card button{margin-top:.35rem}@media(max-width:600px){.pricing-card{padding:.9rem}.pricing-card h1{font-size:1.45rem}}

/* Primary navigation */
.site-header{display:block;padding:1rem max(1rem,calc((100% - 1200px)/2));background:#0b5d4b;color:#fff}
.header-inner{display:grid;gap:.8rem;min-width:0}
.brand{width:max-content;max-width:100%;color:#fff;font-size:1.25rem;font-weight:800;text-decoration:none;white-space:nowrap}
.main-nav{display:flex;align-items:center;gap:.5rem;min-width:0;margin:0;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:.2rem;scrollbar-width:none;flex-wrap:nowrap}
.main-nav::-webkit-scrollbar,.batch-filters::-webkit-scrollbar{display:none}
.nav-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:42px;padding:.55rem .85rem;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;font-weight:700;white-space:nowrap}
.nav-link:hover,.nav-link:focus-visible{background:rgba(255,255,255,.18)}
.nav-link-active,.nav-link-active:hover,.nav-link-active:focus-visible{border-color:#fff;background:#fff;color:#0b5d4b}
.logout-form{display:block;flex:0 0 auto;margin:0}
.logout-button{min-height:42px;padding:.55rem .85rem;border:1px solid rgba(255,255,255,.45);border-radius:10px;background:transparent;color:#fff;white-space:nowrap}
.logout-button:hover,.logout-button:focus-visible{background:rgba(255,255,255,.12)}

/* Import batch navigation and feedback */
.batch-title{max-width:100%;font-size:clamp(1.6rem,6vw,3rem);line-height:1.25;overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext}
.batch-stats div{border:1px solid #e2e8ee;box-shadow:0 2px 8px #00000008}
.batch-filters{display:flex;align-items:center;gap:.55rem;overflow-x:auto;overscroll-behavior-inline:contain;padding:.25rem 0 .65rem;margin:1rem 0;scrollbar-width:none}
.filter-button{flex:0 0 auto;display:inline-flex;align-items:center;gap:.4rem;min-height:42px;padding:.5rem .75rem;border:1px solid #cbd5df;border-radius:999px;background:#fff;color:#164b3f;text-decoration:none;font-weight:750;white-space:nowrap}
.filter-button:hover,.filter-button:focus-visible{border-color:#087f5b;background:#f1f8f5}
.filter-button-active,.filter-button-active:hover,.filter-button-active:focus-visible{border-color:#087f5b;background:#087f5b;color:#fff}
.filter-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 .35rem;border-radius:999px;background:#e5eeeb;color:#164b3f;font-size:.85rem}
.filter-button-active .filter-count{background:rgba(255,255,255,.2);color:#fff}
.empty-filter{grid-column:1/-1;display:grid;justify-items:center;gap:1rem;padding:2.5rem;text-align:center}
.empty-filter h2{margin:0;font-size:1.2rem}
.app-notification{position:fixed;z-index:20;inset-inline-start:50%;bottom:1.25rem;transform:translateX(-50%);width:min(90%,430px);padding:.85rem 1rem;border-radius:10px;box-shadow:0 4px 18px #0003;text-align:center;font-weight:700}
.app-notification[data-type="error"]{background:#fee4e2;color:#912018}
.app-notification[data-type="success"]{background:#d1fadf;color:#05603a}
button:disabled{cursor:wait;opacity:.65}

@media(min-width:900px){.header-inner{grid-template-columns:auto minmax(0,1fr);align-items:center}.main-nav{justify-content:flex-end}}
@media(max-width:600px){.site-header{padding:.85rem 1rem}.brand{font-size:1.15rem}.main-nav{width:calc(100vw - 2rem)}.grid{grid-template-columns:1fr 1fr}}
.danger-outline{background:#fff;color:#b42318;border:1px solid #b42318}.danger-outline:hover{background:#fee4e2}.compact{padding:.45rem .7rem;font-size:.9rem;width:auto}.delete-image-form{display:flex;justify-content:flex-start}.shared-image-product{border-top:1px solid #e5e7eb;margin-top:1rem;padding-top:1rem}
[data-batch-content].is-loading{opacity:.72;transition:opacity .12s ease}.shared-image-product{display:grid;gap:.7rem;border:1px solid #d1fadf;background:#f6fef9;border-radius:10px;margin:1rem 0;padding:1rem}.shared-image-product h2,.shared-image-product h3{margin:0;color:#05603a}.shared-image-product p{margin:0;color:#344054}.shared-products-list{margin:.2rem 1.2rem .2rem 0}.shared-image-message{min-height:1.4rem;color:#05603a;font-weight:700}.image-card-saved{outline:2px solid #abefc6}.batch-shared-image button{width:100%}
.product-card-actions{display:flex;justify-content:flex-start;margin-top:.7rem}.product-card-actions .button{width:auto}
.brand{display:inline-flex;align-items:center;gap:.55rem;line-height:1}.brand img{width:40px;height:40px;object-fit:contain;flex:0 0 auto}.upload-form section{display:grid;gap:.55rem;border:1px solid #e2e8ee;border-radius:10px;padding:1rem}.selected-images-count{margin:0;color:#0b5d4b;font-weight:700}@media(max-width:600px){.brand img{width:36px;height:36px}}
