/* Shared KIFNA manual catalog workspace. No third-party fonts or styles. */
.km{color:var(--kifna-ink);min-width:0;font-family:inherit}.km *{box-sizing:border-box}.km [hidden]{display:none!important}.km h2,.km h3,.km h4,.km p{margin:0}.km button,.km input,.km textarea,.km select{font:inherit}.km button{cursor:pointer;border:1px solid var(--kifna-line);min-height:44px;border-radius:12px;padding:10px 16px;line-height:1.5;background:#fff;color:var(--kifna-ink)}.km button:disabled{opacity:.5;cursor:not-allowed}.km :is(button,input,textarea,select):focus-visible{outline:3px solid var(--kifna-red);outline-offset:3px}.km .km-primary{background:var(--kifna-red);border-color:var(--kifna-red);color:#fff;font-weight:750}.km .km-secondary{background:#fff;color:#373944;font-weight:600}.km-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.km-header h2{font-size:28px;line-height:1.5;letter-spacing:-.4px}.km-eyebrow{display:block;color:var(--kifna-deep-red);font-size:12px;font-weight:750;margin-bottom:5px}.km-note{font-size:13px;color:var(--kifna-muted);line-height:1.85;margin:8px 0!important}.km-actions{display:flex;gap:8px;flex-wrap:wrap}.km-stats{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 24px}.km-stats>div{display:flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid var(--kifna-line);border-radius:14px;background:#fff}.km-stats strong{font-size:23px}.km-stats span{color:var(--kifna-muted);font-size:13px}.km-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}.km-categories{display:grid;gap:8px;position:sticky;top:16px}.km-categories h3{font-size:14px;color:#656979;margin:0 6px 7px}.km-category{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:start;background:#fff;width:100%;word-break:break-word}.km-category span{font-size:12px;background:#f1f2f5;padding:2px 8px;border-radius:8px}.km-category.is-current{color:var(--kifna-deep-red);background:var(--kifna-blush);border-color:#e899a6;font-weight:750}.km-content{min-width:0}.km-toolbar{display:flex;gap:12px;margin-bottom:22px}.km input,.km textarea,.km select{width:100%;min-width:0;border:1px solid #dadde5;background:#fff;border-radius:12px;min-height:46px;padding:12px;color:var(--kifna-ink);font-size:16px}.km-toolbar input{flex:1}.km-toolbar select{width:165px}.km-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.km-list-heading h3{font-size:19px;word-break:break-word}.km-count{font-size:12px;color:#717583;white-space:nowrap}.km-list{background:#fff;border:1px solid var(--kifna-line);border-radius:18px;overflow:hidden}.km-item{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:16px;padding:22px;border-bottom:1px solid var(--kifna-line)}.km-item:last-child{border-bottom:0}.km-thumbnail{width:68px;height:68px;border-radius:14px;background:#f6f1ed;display:grid;place-items:center;font-size:36px;color:#baa891}.km-item-copy{min-width:0}.km-item-copy h4{font-size:17px;line-height:1.6;word-break:break-word}.km-item-copy small{color:#9698a0;font-size:11px}.km-item-copy p{font-size:13px;color:#787b86;line-height:1.8;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.km-item-actions{display:flex;align-items:center;gap:15px}.km-price{font-size:16px;white-space:nowrap;min-width:88px;text-align:end}.km .km-stock{display:flex;align-items:center;gap:7px;border:0;background:none;padding:6px;color:var(--kifna-muted);font-size:12px;min-width:92px}.km-switch{display:block;width:35px;height:21px;border-radius:12px;background:#9a9ca5;position:relative;flex-shrink:0;direction:ltr}.km-switch:after{content:'';width:15px;height:15px;border-radius:50%;background:white;position:absolute;top:3px;left:3px;transition:left .15s}.km-stock[aria-checked=true] .km-switch{background:#207350}.km-stock[aria-checked=true] .km-switch:after{left:17px}.km-empty{text-align:center;padding:42px 20px}.km-empty h3{font-size:22px;margin-bottom:8px}.km-empty button{margin-top:15px}.km-message{padding:12px 16px;color:#176444;background:#ebf7f0;border-radius:12px;line-height:1.8;font-size:14px;margin:12px 0!important}.km-message.km-error{color:var(--kifna-deep-red);background:var(--kifna-blush)}.km-dialog{width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border:1px solid var(--kifna-line);border-radius:22px;padding:26px;background:#fff;color:var(--kifna-ink);overflow:auto;margin:auto}.km-dialog::backdrop{background:rgb(25 27 38 / 50%)}.km-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.km-dialog-head h2{font-size:22px}.km-dialog form{display:grid;gap:15px}.km-field{display:grid;gap:8px;font-size:14px;font-weight:650}.km-field textarea{min-height:115px;resize:vertical}.km-checkbox{display:flex;align-items:center;gap:10px;font-size:15px}.km-checkbox input{width:20px;min-height:20px;height:20px;accent-color:var(--kifna-red)}.km-dialog .km-note{font-weight:400}
@media(max-width:1100px){.km-item-actions{flex-wrap:wrap;justify-content:end;width:150px;gap:8px}.km-price{width:100%}.km-layout{gap:15px;grid-template-columns:180px minmax(0,1fr)}.km-header{align-items:start;flex-direction:column}}
@media(max-width:680px){.km-header h2{font-size:23px}.km-layout{display:block}.km-categories{display:flex;overflow-x:auto;position:static;gap:8px;padding:2px 2px 12px;margin-bottom:12px}.km-categories h3{display:none}.km-category{min-width:max-content;width:auto}.km-toolbar{flex-direction:column;gap:8px}.km-toolbar select{width:100%}.km-item{grid-template-columns:48px minmax(0,1fr);padding:16px;gap:12px}.km-thumbnail{width:48px;height:48px;font-size:28px}.km-item-actions{grid-column:1/-1;width:100%;justify-content:space-between;flex-wrap:nowrap}.km-price{width:auto;min-width:0;font-size:15px}.km-item-copy h4{font-size:16px}.km-stats{gap:7px;margin-bottom:18px}.km-stats>div{padding:8px 10px;gap:7px}.km-stats strong{font-size:19px}.km-actions{width:100%}.km-actions button{flex:1;font-size:13px;padding:9px 10px}.km-dialog{padding:20px}.km-dialog-head{gap:8px}.km-dialog-head h2{font-size:20px}.km .km-stock{min-width:90px}.km-item-actions .km-secondary{padding:7px 12px}}

/* Keep the item's explicit save action visible while its fields scroll. */
.km-product-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0}.km-product-dialog .km-dialog-head{flex-shrink:0;padding:18px 24px;margin:0;border-bottom:1px solid var(--kifna-line)}.km-product-dialog .km-product-form{display:flex;flex-direction:column;gap:0;min-height:0;overflow:hidden}.km-dialog-fields{display:grid;gap:15px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px}.km-dialog-actions{flex-shrink:0;display:grid;gap:10px;padding:14px 24px;background:#fff;border-top:1px solid var(--kifna-line);max-height:45dvh;overflow-y:auto}.km .km-danger{color:var(--kifna-deep-red);border-color:#e899a6;background:#fff}.km-product-dialog .km-dialog-actions .km-message{margin:0!important}
@media(max-width:680px){.km-item-actions{flex-wrap:wrap;gap:8px}.km-product-dialog .km-dialog-head,.km-dialog-fields,.km-dialog-actions{padding-inline:16px}.km-dialog-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))}}

/* Product photos: original proportions in editor, cropped thumbnails in the list. */
.km-fx{padding:16px;border:1px solid var(--kifna-line);border-radius:16px;background:#fff;margin-bottom:20px;display:grid;gap:12px;min-width:0}.km-fx>button{text-align:start;justify-self:start}.km-fx-choices{display:flex;flex-wrap:wrap;gap:8px}.km-fx-choices [aria-pressed=true]{color:var(--kifna-deep-red);background:var(--kifna-blush);border-color:#e899a6;font-weight:750}.km-fx .km-field{max-width:460px}.km-fx select{width:100%}.km-fx .km-note>button{display:block;margin-top:8px}.km-price-copy{display:grid;gap:3px;min-width:0}.km-price-copy .km-note{margin:0!important;overflow-wrap:anywhere}.km-fx strong{display:block}
.km-thumbnail img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.km-photo-editor{padding:16px;border:1px solid #e7e7eb;border-radius:16px;margin:0 0 20px;min-width:0}
.km-photo-editor h3{margin:0 0 12px;font-size:17px}
.km-photo-preview{display:block;width:100%;max-height:240px;object-fit:contain;background:var(--kifna-canvas);border-radius:12px;margin-bottom:14px}
.km-photo-preview[hidden],.km-photo-empty[hidden]{display:none!important}
.km-photo-empty{padding:32px;text-align:center;background:var(--kifna-canvas);border-radius:12px;color:#737581}
.km-file-label{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--kifna-line);border-radius:12px;overflow:hidden}.km-file-label:focus-within{outline:3px solid var(--kifna-red);outline-offset:3px}
.km-photo-file{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.km-photo-status{font-size:14px;line-height:1.7;color:#8a343f}

/* The photo-only staff workspace has fewer columns than the full menu editor. */
#photo-staff-root .km-item{display:flex;align-items:center;flex-wrap:nowrap;gap:14px;padding:18px 0}
#photo-staff-root .km-item>div{flex:1;min-width:0}
#photo-staff-root .km-item h3{margin:0;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
#photo-staff-root .km-item p{margin:4px 0 0;font-size:13px;line-height:1.6}
#photo-staff-root .km-item>img{display:block;flex:0 0 64px;width:64px;height:64px;object-fit:cover;border-radius:12px}
#photo-staff-root .km-item>button{flex:0 0 auto;max-width:100px;min-height:44px;padding:8px 10px;white-space:normal;font-size:13px}
@media(max-width:480px){#photo-staff-root .km-item{gap:10px}#photo-staff-root .km-item>img{flex-basis:56px;width:56px;height:56px}}

.km-menu-currency,.km-smart-import{background:#fff;border:1px solid var(--border,#e8e5e5);border-radius:16px;padding:20px;margin-block:16px}.km-menu-currency select,.km-smart-import input,.km-smart-import textarea{min-height:48px;max-width:100%;box-sizing:border-box}.km-import-row{border:1px solid #e8e5e5;border-radius:12px;padding:16px;margin-block:12px;display:grid;gap:12px}.km-smart-import .km-actions{margin-block:12px;gap:8px;flex-wrap:wrap}.km-smart-import [type=file]{display:block;max-width:100%;margin-block-start:8px}.km-menu-currency .km-field{margin-block-end:12px}
/* KIFNA Market categories (PENDING-017/market-sections). */
.km-market{margin-bottom:28px}.km-market-add{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,220px) auto;gap:10px;margin:0 0 16px}.km-market-tree{background:#fff;border:1px solid var(--kifna-line);border-radius:18px;overflow:hidden;margin-bottom:22px}.km-market-section.is-child{padding-inline-start:52px;background:#fbfbfc}.km-market-section.is-hidden .km-item-copy h4{color:var(--kifna-muted)}.km-market-section .km-thumbnail{background:#f2f3f5}.km-market-section .km-thumbnail img{object-fit:contain}.km-market-section .km-item-actions{flex-wrap:wrap;gap:8px}.km-market-section .km-item-copy input{margin-bottom:8px}.km .km-file{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--kifna-line);border-radius:12px;padding:10px 16px;cursor:pointer;position:relative}.km .km-file:focus-within{outline:3px solid var(--kifna-red);outline-offset:3px}.km-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0!important}.km-market-starter{display:grid;gap:6px;margin:0 0 16px}.km-market-starter>button,.km-market-starter>select{justify-self:start}.km-market-starter>select{min-width:200px;max-width:100%}.km-market-starter .km-note{margin:0!important}.km-market-settings{display:grid;gap:10px;background:#fff;border:1px solid var(--kifna-line);border-radius:18px;padding:20px;margin:0 0 20px}.km-market-settings h3{font-size:19px}.km-market-settings .km-field{max-width:460px}.km-market-settings .km-note{margin:0!important}.km-market-settings>button{justify-self:start}.km-market-products h3{font-size:19px;margin-bottom:4px}.km-market-product{grid-template-columns:minmax(0,1fr)}
@media(max-width:680px){.km-market-add{grid-template-columns:1fr}.km-market-section.is-child{padding-inline-start:28px}}
.km-translations{margin-bottom:28px}.km-translations-body{display:grid;gap:18px;margin-bottom:16px}.km-translation-group{background:#fff;border:1px solid var(--kifna-line);border-radius:18px;padding:16px 18px;display:grid;gap:10px}.km-translation-group h3{font-size:18px;margin:0 0 4px}.km-translation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;align-items:start;padding:8px 0;border-top:1px solid var(--kifna-line)}.km-translation-row:first-of-type{border-top:0}.km-translation-row.is-child .km-translation-source{color:var(--kifna-muted);padding-inline-start:16px}.km-translation-source{font-weight:600;overflow-wrap:anywhere;padding-top:10px}.km-translation-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.km-translation-fields input,.km-translation-fields textarea{width:100%;min-height:44px;border:1px solid var(--kifna-line);border-radius:12px;padding:10px 12px;font:inherit;box-sizing:border-box}.km-translations>.km-primary{justify-self:start}@media(max-width:720px){.km-translation-row,.km-translation-fields{grid-template-columns:minmax(0,1fr)}}
