/* Native workbench components; only layout additions for note planning. */
.np-workbench .panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.np-workbench .task-action-row{display:flex;gap:8px;flex-wrap:wrap}.np-task{min-width:0}.np-task>.mini-card{width:100%;height:100%}.np-task:has(.np-task-actions)>.mini-card{height:auto}.np-task .mini-card img{width:100%;height:170px;object-fit:contain;background:white;border-radius:6px}.np-task .mini-card small{max-width:100%}.np-task-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.np-task-actions button{font-size:11px;padding:5px 7px}.np-no-image{height:170px;display:grid;place-items:center;color:var(--muted)}.np-empty{padding:24px}.np-pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:14px}.np-workbench .table-scroll{overflow:auto}.np-workbench td small{display:block}.np-modal{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;padding:20px;background:#30251b66}.np-modal .np-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);height:auto;padding:0;display:flex;flex-direction:column;overflow:hidden;outline:0}.np-modal-head{padding:20px 26px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0;border-bottom:1px solid var(--line)}.np-modal-head h2{margin:0}.np-modal-head .close{position:static;flex-shrink:0}.np-modal-body{padding:20px 26px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.np-modal-footer{display:flex;gap:10px;padding:14px 26px;border-top:1px solid var(--line);flex-shrink:0}.np-form{display:flex;flex-direction:column;gap:16px}.np-form label{display:flex;flex-direction:column;gap:7px;min-width:0}.np-form input:not([type=file]),.np-form select,.np-form textarea{width:100%;min-width:0;box-sizing:border-box}.np-form textarea{height:90px;min-height:90px;resize:vertical}.np-search{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.np-search .photo-create-search{display:flex;gap:8px}.np-search button{white-space:nowrap}.np-form .photo-create-pair,.np-requirement{display:grid;grid-template-columns:1fr 1fr;gap:12px}.np-image-box{height:90px;box-sizing:border-box;display:flex;gap:8px;justify-content:space-between;padding:10px;border:1px dashed var(--line);border-radius:8px;overflow:hidden}.np-image-box:focus{outline:2px solid var(--line)}.np-image-previews{flex:1;min-width:0;overflow:auto;display:flex;gap:8px;align-items:flex-start}.np-image-previews>div{position:relative;flex-shrink:0}.np-image-previews img{height:66px;width:66px;object-fit:contain}.np-image-previews button{position:absolute;right:0;top:0;padding:0;width:20px;height:20px}.np-image-actions{display:flex;flex-direction:column;gap:5px;flex-shrink:0}.np-image-actions button{font-size:11px;padding:5px 8px}.np-design-image{display:block;width:150px;height:150px;object-fit:contain}.np-product-select,.np-video,.np-info{border:1px solid var(--line);border-radius:10px;padding:14px}.np-product-select{margin-bottom:12px}.np-video{display:flex;flex-direction:column;gap:14px}.np-video>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.np-video h3{margin:0 0 10px}.np-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.np-details section{padding:12px;background:var(--cream,#f7f2e9);border-radius:8px;overflow-wrap:anywhere}.np-details p{white-space:pre-wrap}.np-images{display:flex;gap:8px;flex-wrap:wrap}.np-images img{width:100px;height:90px;object-fit:contain}.np-info{margin:16px 0}.np-modal .task-action-row{display:flex;gap:8px}@media(max-width:650px){.np-search{grid-template-columns:1fr}.np-requirement,.np-form .photo-create-pair,.np-details{grid-template-columns:1fr}.np-modal-body{padding:16px}.np-modal{padding:8px}}
.np-modal .np-form label{margin:0}.np-modal .np-form input,.np-modal .np-form select,.np-modal .np-form textarea{margin:0}.np-modal .np-form .photo-create-pair{margin:0}.np-modal .np-catalog{margin:0}.np-modal .np-product-select{margin-top:12px}.np-workbench .status-pill{align-self:flex-start;font-size:11px;padding:3px 7px;border-radius:5px;background:#fff0d6;color:#936425}.np-workbench .status-pill.completed{background:#e4f0df;color:#527544}

/* Fit cards and toolbar to the available workspace width. */
.np-workbench{min-width:0;max-width:100%}.np-workbench .workspace{min-width:0;max-width:100%}.np-workbench .filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.np-workbench .np-create-actions{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.np-workbench .eight-grid{grid-template-columns:repeat(auto-fill,minmax(min(175px,100%),1fr));overflow-x:visible;min-width:0;width:100%;box-sizing:border-box}.np-workbench .table-scroll{overflow-x:visible;min-width:0}.np-workbench .table-scroll table{width:100%;min-width:0;table-layout:fixed}.np-workbench .table-scroll th,.np-workbench .table-scroll td{min-width:0;white-space:normal;overflow-wrap:anywhere}.np-workbench .table-scroll td button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.np-unified-search{display:flex;gap:12px;align-items:center}.np-search-input{position:relative;flex:1;min-width:0}.np-modal .np-search-input>input{padding-right:48px}.np-image-entry>.ais-entry{position:absolute;right:4px;top:4px;width:34px;height:32px;padding:0;font-size:0;background:#f7f0e7;border:0;border-radius:6px}.np-image-entry>.ais-entry:before{content:'';display:block;width:22px;height:22px;margin:auto;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M4 6h4l2-3h4l2 3h4a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z'/%3E%3Ccircle cx='12' cy='13' r='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center/contain no-repeat}.np-image-entry .workbench-native-dialog-backdrop{z-index:100020}.np-image-entry .ais-dialog{max-height:calc(100dvh - 48px);overflow:auto}.np-image-entry .ais-drop input[hidden]{display:none}
.np-modal .np-image-entry>.ais-entry{font-size:0!important;line-height:0!important;overflow:hidden}

/* Compact paired requirements, matching the refund paste field. */
.np-modal .np-form .np-requirement textarea{height:64px;min-height:64px;padding:10px 12px}
.np-modal .np-requirement>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.np-modal .np-requirement>div>label{margin:0}
.np-modal .np-image-box{height:64px;min-height:64px;padding:10px 14px;align-items:center;background:#fffaf5;border:1px dashed #dfbda5;border-radius:8px}
.np-modal .np-image-previews{height:42px;align-items:center}
.np-modal .np-image-previews>small{font-size:12px;color:#795842;white-space:normal}
.np-modal .np-image-previews img{height:40px;width:48px;object-fit:contain}
.np-modal .np-image-actions{flex-direction:row;align-items:center;justify-content:center}
.np-modal .np-image-actions>button:nth-child(2){display:none}
.np-modal .np-image-actions>button:first-child{padding:6px 10px;min-height:32px;font-size:12px;white-space:nowrap}
.np-modal .np-form{gap:12px}
.np-workbench .filter-row>button{border:0!important;background:#f0e8dc!important;color:#8d7055!important;border-radius:22px;padding:8px 14px;box-shadow:none!important;font-size:13px}
.np-workbench .filter-row>button.active{background:#78543d!important;color:white!important;font-weight:600}
.np-picker>label{display:flex;flex-direction:column;gap:7px}.np-picker h3{font-size:15px;margin:20px 0 12px}.np-color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.np-color-option{display:flex;flex-direction:column;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fffdfb;color:var(--ink);cursor:pointer}.np-color-option img,.np-color-loading{height:145px;width:100%;object-fit:contain;background:white}.np-color-loading{display:grid;place-items:center;font-size:12px}.np-color-option.selected,.np-size-options .selected{border-color:#78543d;box-shadow:inset 0 0 0 1px #78543d;background:#f5eadd}.np-size-options{display:flex;flex-wrap:wrap;gap:8px}.np-confirmed-product{display:flex;align-items:center;gap:16px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:10px}.np-confirmed-product>img{width:140px;height:140px;object-fit:contain;background:white}.np-confirmed-product p{margin:6px 0}.np-catalog .np-modal{z-index:100030}
.np-detail-actions{display:flex;gap:8px;margin-left:auto;margin-right:10px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#f8f2eb}.np-modal .np-delete{color:#b74d3e;border-color:#ecc8bf;background:#fff7f5}.np-modal-head:has(.np-detail-actions){gap:10px}.np-modal-head:has(.np-detail-actions) h2{flex:1}

.np-dialog .np-detail-product{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;gap:24px;padding:18px;border:1px solid #ead6c6;border-radius:12px;background:#fffcf8}.np-detail-product>img{width:160px;height:160px;object-fit:contain;background:white;border-radius:8px}.np-dialog .np-detail-product h3{margin:0 0 10px;font-size:18px}.np-dialog .np-detail-product p{margin:0 0 12px}.np-detail-meta{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 12px;margin:0;font-size:13px}.np-detail-meta dt{color:#9b7e69}.np-detail-meta dd{margin:0;overflow-wrap:anywhere}.np-dialog .np-detail-heading{font-size:16px;margin:22px 0 12px}.np-dialog .np-readable-details{gap:12px;margin:0}.np-dialog .np-readable-details>section{background:#f8f2e9;border-radius:10px;padding:14px;min-width:0}.np-readable-details small{font-weight:600;color:#98775f}.np-dialog .np-readable-details p{line-height:1.75;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.np-dialog .np-delivery{margin-top:18px;padding:16px 18px;background:#fffaf4}.np-dialog .np-delivery h3{font-size:15px;margin:0 0 12px}.np-dialog .np-delivery p{margin:8px 0;overflow-wrap:anywhere}.np-form .np-production-choice{display:flex;align-items:center;gap:8px;margin:0}.np-form .np-production-choice input{width:16px;height:16px;margin:0;accent-color:#77503a}.np-production-hint{display:block;color:#98775f;margin-top:-8px}@media(max-width:600px){.np-dialog .np-detail-product{grid-template-columns:100px minmax(0,1fr);gap:12px}.np-detail-product>img{width:100px;height:120px}}
