/* Additions to the current design. Brown/gold palette and existing sections stay intact. */
*,*::before,*::after{box-sizing:border-box}
main label:has(>input:not([type=checkbox]):not([type=radio])),main label:has(>select){display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0}
main input:not([type=checkbox]):not([type=radio]),main select,main textarea{width:100%;max-width:100%;min-height:48px;border:1px solid #dfd7cf;border-radius:12px;padding:12px 14px;background:#fff;color:#38291f;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}
main input:focus,main select:focus,main textarea:focus{border-color:#ba9542;box-shadow:0 0 0 3px #c49a3821;outline:none}
main input::placeholder{color:#92908b;font-size:14px;opacity:1}
main input[readonly]{background:#f5f0e6}
.inventory-tools,.invoice-item-tools,.bb-product-tools{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:20px 0}
.inventory-tools>label,.invoice-item-tools>label{flex:1 1 320px;max-width:650px}
.order-search,.manage-search,.bb-search{display:flex;flex-direction:column;gap:9px;min-width:0;width:min(100%,480px)}
.inventory-tools input,.order-search input,.manage-search input,.bb-search input,.bb-search-control input{padding-inline-start:42px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%239b835c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.bb-new-invoice{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;margin-inline-start:auto;margin-inline-end:12px}
.bb-combobox{position:relative;flex:1 1 330px;min-width:0;max-width:720px}
.bb-combobox>label{display:block;font-size:14px;font-weight:700;margin-bottom:9px}
.bb-search-control{position:relative}
.bb-search-control input{padding-inline-end:42px!important}
.bb-clear-search{position:absolute;inset-inline-end:7px;top:7px;width:34px;height:34px;padding:0!important;border:0!important;background:transparent!important;font-size:24px;color:#8b7864;box-shadow:none!important}
.bb-suggestions{position:absolute;z-index:80;top:calc(100% + 7px);inset-inline:0;background:#fff;border:1px solid #dfd2b8;border-radius:14px;box-shadow:0 12px 30px #38291f21;max-height:340px;overflow:auto;padding:6px}
.bb-suggestions.above{top:auto;bottom:calc(100% + 7px)}
.bb-suggestions-count{position:sticky;top:-6px;z-index:1;background:#fff;padding:10px 8px;border-bottom:1px solid #eee7d7;color:#806635;font-size:12px;line-height:1.7}
.bb-invoice-shortcut{display:flex;align-items:center;gap:16px;width:100%;padding:20px 22px;margin:0 0 22px;border:1px solid #dfc77d;border-radius:17px;background:linear-gradient(110deg,#fff,#faf4e3);color:#493426;text-align:start;cursor:pointer;box-shadow:0 3px 12px #49342608}
.bb-invoice-shortcut:hover{border-color:#b48b34;box-shadow:0 5px 16px #49342614}
.bb-shortcut-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;background:#493426;color:#f2d67e;border-radius:14px}
.bb-shortcut-copy{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.bb-shortcut-copy strong{font-size:20px;font-weight:800}.bb-shortcut-copy small{font-size:13px;color:#8c7655;line-height:1.8}
.bb-shortcut-plus{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#e8c970;color:#493426;font-size:24px}
.bb-suggestion{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:start;gap:15px;padding:12px!important;border:0!important;border-radius:9px;background:#fff!important;color:#38291f!important}
.bb-suggestion.selected,.bb-suggestion:hover{background:#f8f3e7!important}
.bb-suggestion span{display:flex;flex-direction:column;gap:5px;min-width:0}
.bb-suggestion strong{font-size:15px;line-height:1.6;white-space:normal}
.bb-suggestion small{color:#80715f;font-size:12px}
.bb-product-meta{white-space:nowrap;align-items:flex-end;flex-shrink:0}
.bb-product-meta b{color:#8c671f;font-size:14px}
.bb-search-hint,.bb-search-message{display:block;padding:8px 12px;color:#71624f}
.bb-search-message{width:100%;padding:0;font-weight:600}
.bb-empty{padding:22px;text-align:center;color:#8b7c6a}
.bb-date-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;padding:17px;margin:18px 0;background:#faf8f3;border:1px solid #e9e1d4;border-radius:13px}
.bb-date-filter label{flex:1 1 190px;max-width:280px}
.bb-date-filter span{font-size:13px;font-weight:700;color:#6f5c44}
.bb-date-filter input[type=date]{direction:ltr;min-width:0}
.bb-reset-filter{min-height:48px;background:white;border:1px solid #dfd7cf;border-radius:10px;padding:10px 15px}
.bb-pdf-button{background:#493426!important;color:#fff!important;border:1px solid #493426!important;min-height:46px;border-radius:10px;padding:11px 17px;cursor:pointer}
.bb-pdf-button:disabled{opacity:.45;cursor:default}
.bb-telegram-button{border:1px solid #d8c99f;background:#fffaf0;border-radius:10px;padding:10px 15px;color:#6f531e;cursor:pointer}
.bb-contacts .bb-search{margin:20px 0}
.bb-table-scroll{overflow:auto;max-width:100%}
.bb-table-scroll table{width:100%;border-collapse:collapse;text-align:right}
.bb-table-scroll th{background:#f7f4ef;color:#6b5536;font-size:13px}
.bb-table-scroll th,.bb-table-scroll td{padding:14px 12px;border-bottom:1px solid #eee9df;vertical-align:top;line-height:1.7}
.bb-contacts-table{min-width:820px}
.bb-contacts-table td:nth-child(4){max-width:280px;overflow-wrap:anywhere}
.bb-contacts-table a{color:#8c671f;text-decoration:underline}
.bb-discount-field{margin:18px 0;padding:15px;background:#faf7ef;border:1px solid #e8ddc7;border-radius:12px}
.bb-discount-field>span{font-size:14px;font-weight:700}
.bb-discount-field small{font-size:12px;color:#897457}
.bb-telegram{width:min(680px,95vw)!important;max-height:90vh;overflow:auto}
.bb-telegram-fields{display:flex;flex-direction:column;gap:18px}
.bb-check-label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px}
.bb-check-label input{width:18px;height:18px}
.bb-help{background:#faf7ef;padding:14px;border-radius:10px;color:#7d6b52;font-size:13px;line-height:1.9}
.bb-actions{display:flex;gap:10px;flex-wrap:wrap}
.bb-status{padding:13px;border-radius:10px;background:#f6f0df;color:#6e531e}
@media(max-width:700px){.content>header{flex-wrap:wrap;gap:12px}.bb-new-invoice{margin-inline-start:0;font-size:13px}.bb-combobox{flex-basis:100%;max-width:none}.bb-scan-button{width:100%}.bb-date-filter{padding:12px;gap:10px}.bb-date-filter label{max-width:none;flex:1 1 140px}.orders-bulk{gap:10px;flex-wrap:wrap}.orders-title{gap:16px;align-items:stretch}.order-search{width:100%;max-width:none}.bb-product-meta{font-size:12px}.bb-suggestion{gap:8px}.bb-suggestion strong{font-size:13px}.bb-table-scroll th,.bb-table-scroll td{padding:11px 9px}}
@media(max-width:700px){main>.content>header:has(.bb-new-invoice){height:auto;min-height:128px;padding-block:12px;row-gap:12px}.bb-new-invoice{flex:0 0 100%;width:100%;justify-content:center;order:3;margin:0!important}}
@media(max-width:700px){.bb-invoice-shortcut{padding:15px;gap:12px}.bb-shortcut-copy strong{font-size:17px}.bb-shortcut-copy small{font-size:12px}.bb-shortcut-icon{flex-basis:44px;width:44px;height:44px}}
