.products-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.products-heading h1 { margin-bottom: 5px; }
.products-heading .button { flex: 0 0 auto; }
.product-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 15px; }
.product-metric { display: flex; align-items: center; gap: 11px; min-height: 69px; padding: 12px 15px; border: 1px solid #e9efec; border-radius: 10px; background: white; box-shadow: 0 3px 10px #18382d05; }
.product-metric > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.product-metric small { color: #87948f; font-size: 9px; }
.product-metric strong { color: #2d403a; font-family: Manrope,sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.product-metric-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 16px; font-weight: 700; }
.product-metric-icon--green { color: #438d72; background: #e8f4ee; }
.product-metric-icon--amber { color: #bd8b3f; background: #fbf3e4; }
.product-metric-icon--red { color: #b86e5c; background: #f9eeeb; }
.catalogue-panel { padding: 18px 0 0; }
.catalogue-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 19px 16px; }
.catalogue-header h2 { display: flex; align-items: center; gap: 9px; }
.result-count { padding: 4px 7px; border-radius: 5px; color: #87948f; background: #f4f7f5; font: 500 8px "DM Sans",sans-serif; letter-spacing: 0; }
.catalogue-filters { display: flex; align-items: center; gap: 7px; }
.catalogue-search { display: flex; width: 222px; height: 34px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e6ece9; border-radius: 7px; background: #fff; }
.catalogue-search svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: #97a39e; stroke-linecap: round; stroke-width: 1.6; }
.catalogue-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #44534e; background: transparent; font-size: 9px; }
.catalogue-search input::placeholder { color: #a5afab; }
.catalogue-filters select { height: 34px; max-width: 145px; padding: 0 25px 0 9px; border: 1px solid #e6ece9; border-radius: 7px; color: #71807a; background: white; font-size: 9px; }
.filter-submit { height: 34px; padding: 0 11px; border: 1px solid #e2eae6; border-radius: 7px; color: #51635b; background: #f9fbfa; font-size: 9px; font-weight: 600; cursor: pointer; }
.filter-submit:hover { border-color: #cfe0d7; color: #2e725c; }
.catalogue-table-wrap { overflow-x: auto; }
.catalogue-table { width: 100%; min-width: 850px; border-collapse: collapse; text-align: left; white-space: nowrap; }
.catalogue-table th { height: 36px; padding: 0 12px; border-top: 1px solid #eef2f0; border-bottom: 1px solid #eef2f0; color: #9ba6a2; background: #fafcfb; font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.catalogue-table th:first-child,.catalogue-table td:first-child { padding-left: 19px; }
.catalogue-table th:last-child,.catalogue-table td:last-child { padding-right: 18px; text-align: right; }
.catalogue-table td { height: 65px; padding: 7px 12px; border-bottom: 1px solid #f0f3f1; color: #89958f; font-size: 8px; }
.catalogue-table tbody tr:last-child td { border-bottom: 0; }
.catalogue-product { display: inline-flex; min-width: 220px; align-items: center; gap: 9px; }
.catalogue-product > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.catalogue-product strong { overflow: hidden; max-width: 235px; color: #43524d; font-size: 9px; font-weight: 600; text-overflow: ellipsis; }
.catalogue-product small,.catalogue-barcode { color: #a0aaa6; font-size: 7px; }
.catalogue-thumb { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 1px solid #edf1ef; border-radius: 8px; object-fit: cover; background: #f5f8f6; }
.catalogue-thumb--empty { padding: 7px; color: #8eaaa0; background: #edf5f0; }
.catalogue-thumb--empty svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.catalogue-sku,.catalogue-price { display: block; margin-bottom: 4px; color: #52615b; font-size: 8px; font-weight: 600; }
.catalogue-sku { color: #377964; }
.category-pill { display: inline-flex; padding: 5px 7px; border-radius: 5px; color: #6c8076; background: #f1f5f2; font-size: 7px; }
.stock-count { display: inline-flex; align-items: center; gap: 6px; color: #4e6f5d; font-weight: 700; }
.stock-count small { color: #9eaaa4; font-size: 7px; font-weight: 400; }
.stock-count--low { color: #b27f35; }.stock-count--out { color: #b66b5b; }
.product-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 7px; font-weight: 600; }
.product-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.product-status--active { color: #39846a; background: #eaf5ef; }.product-status--inactive { color: #8b9591; background: #f1f3f2; }
.catalogue-actions { display: inline-flex; align-items: center; gap: 8px; }
.edit-product,.status-toggle { padding: 5px 7px; border: 0; border-radius: 5px; color: #3d806b; background: transparent; font-size: 8px; font-weight: 600; text-decoration: none; cursor: pointer; }
.edit-product:hover,.status-toggle:hover { background: #edf6f1; }
.status-toggle { color: #85918c; }
.catalogue-pagination { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-top: 1px solid #eef2f0; color: #9ca7a3; font-size: 8px; }
.catalogue-pagination strong { color: #64726c; font-weight: 600; }
.catalogue-pagination nav { margin-left: auto; }
.catalogue-pagination nav div:first-child { display: none; }
.catalogue-pagination nav div:last-child { margin-top: 0; }
.catalogue-pagination nav span,.catalogue-pagination nav a { border-color: #e8eeeb !important; color: #75827c !important; background: white !important; font-size: 9px !important; }
.catalogue-pagination nav [aria-current="page"] span { border-color: #dcebe4 !important; color: #31745f !important; background: #edf6f1 !important; }
.catalogue-pagination nav svg { width: 13px; height: 13px; }
.catalogue-empty { display: flex; min-height: 290px; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border-top: 1px solid #eef2f0; text-align: center; }
.empty-box { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 13px; color: #40866d; background: #eaf5ef; font-size: 21px; }
.catalogue-empty h3 { margin: 15px 0 5px; color: #354740; font-family: Manrope,sans-serif; font-size: 15px; }
.catalogue-empty p { max-width: 330px; margin: 0 0 15px; color: #93a09a; font-size: 10px; line-height: 1.6; }
.catalogue-empty .button { margin-top: 4px; }

.product-form { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.85fr); align-items: start; gap: 14px; }
.product-form-main,.product-form-aside { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.form-panel { padding: 18px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-section-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #4b8e75; background: #eaf5ef; font-size: 9px; font-weight: 700; }
.form-section-icon--gold { color: #bd8c40; background: #fbf3e4; }.form-section-icon--violet { color: #8374ae; background: #f1eff8; }.form-section-icon--green { color: #4c8d71; background: #eaf5ef; }
.form-section-heading h2 { margin: 1px 0 4px; }
.form-section-heading p { margin: 0; color: #98a49f; font-size: 8px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 12px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #62716b; font-size: 9px; font-weight: 600; }
.form-field > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.form-field b { color: #bf705d; font-size: 9px; }
.form-field em { margin-left: 3px; color: #a0916d; font-size: 7px; font-style: normal; font-weight: 500; }
.form-field input,.form-field textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e4ebe7; border-radius: 7px; outline: none; color: #3e5048; background: #fff; font-size: 9px; font-weight: 400; transition: border .16s ease,box-shadow .16s ease; }
.form-field input { height: 35px; }
.form-field textarea { min-height: 68px; resize: vertical; line-height: 1.5; }
.form-field input:focus,.form-field textarea:focus,.catalogue-search:focus-within { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.form-field input::placeholder,.form-field textarea::placeholder { color: #acb6b1; }
.form-field--wide { grid-column: 1/-1; }
.field-hint { color: #9ba6a2; font-size: 7px; font-weight: 400; line-height: 1.45; }
.field-error { min-height: 10px; color: #b55c4c; font-size: 8px; font-weight: 500; }
.money-input { display: flex; height: 35px; align-items: center; border: 1px solid #e4ebe7; border-radius: 7px; background: #fff; }
.money-input:focus-within { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.money-input i { padding-left: 10px; color: #899790; font-size: 9px; font-style: normal; }
.money-input input { height: 33px; border: 0; box-shadow: none !important; }
.read-only-stock { display: flex; min-height: 35px; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid #e8eeea; border-radius: 7px; color: #3f765e; background: #f7faf8; font-size: 10px; font-weight: 700; }
.read-only-stock small { color: #91a098; font-size: 8px; font-weight: 400; }
.read-only-stock a { margin-left: auto; color: #398269; font-size: 8px; font-weight: 600; }
.upload-zone { display: flex; min-height: 117px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #cfded5; border-radius: 9px; color: #5b7469; background: #fafcfb; cursor: pointer; text-align: center; transition: background .15s ease,border-color .15s ease; }
.upload-zone:hover { border-color: #77aa91; background: #f2f8f4; }
.upload-zone strong { font-size: 8px; font-weight: 600; }
.upload-zone small { color: #a1aca7; font-size: 7px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
.upload-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: #42886e; background: #e8f4ed; font-size: 15px; }
.image-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.image-item { position: relative; overflow: hidden; min-width: 0; aspect-ratio: 1/1; border: 1px solid #e8eeeb; border-radius: 8px; background: #f5f8f6; }
.image-item > img { width: 100%; height: 100%; object-fit: cover; }
.main-image-option { position: absolute; right: 4px; bottom: 4px; left: 4px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 5px; color: #50635a; background: #ffffffed; font-size: 7px; cursor: pointer; }
.main-image-option input { width: 10px; height: 10px; margin: 0; accent-color: #32775f; }
.image-remove { position: absolute; top: 4px; right: 4px; display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #1c3029bb; font-size: 15px; cursor: pointer; }
.image-reorder { position: absolute; top: 5px; left: 5px; display: flex; gap: 3px; }
.image-reorder button { display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 5px; color: #41554c; background: #ffffffdb; font-size: 11px; cursor: pointer; }
.status-panel .form-section-heading { margin-bottom: 13px; }
.status-switch { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.status-switch > span { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.status-switch strong { color: #5c6c64; font-size: 9px; font-weight: 600; }
.status-switch small { color: #9ba6a1; font-size: 7px; line-height: 1.4; }
.status-switch input[type="checkbox"] { position: absolute; opacity: 0; }
.status-switch i { position: relative; width: 32px; height: 18px; flex: 0 0 auto; border-radius: 20px; background: #d7dfda; transition: background .2s ease; }
.status-switch i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #18382d20; content: ""; transition: transform .2s ease; }
.status-switch input:checked + i { background: #3d9273; }
.status-switch input:checked + i::after { transform: translateX(14px); }
.status-switch input:focus-visible + i { outline: 3px solid #3c947344; outline-offset: 2px; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; grid-column: 1/-1; justify-content: flex-end; gap: 8px; padding: 11px 0; background: #f5f8f6ed; backdrop-filter: blur(8px); }
.form-actions .button span { margin-left: 5px; }
.flash-message { margin-bottom: 14px; padding: 10px 13px; border: 1px solid #d8eae0; border-radius: 8px; color: #367358; background: #edf7f1; font-size: 10px; }
.logout-button { padding: 5px 8px; border: 1px solid #e7eeea; border-radius: 6px; color: #71807a; background: white; font-size: 8px; cursor: pointer; }
.logout-button:hover { color: #a45b4e; border-color: #efd8d2; background: #fff9f7; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: radial-gradient(ellipse at 15% 0%,#e4f1e9 0,transparent 48%),#f4f8f5; }
.login-card { width: min(100%,390px); padding: 33px; border: 1px solid #e5ede8; border-radius: 15px; background: white; box-shadow: 0 15px 55px #18382d12; }
.login-brand { width: fit-content; margin: 0 0 31px; padding: 0; color: #1b3930; }
.login-brand .brand-copy small { color: #81978e; }
.login-eyebrow { margin-bottom: 9px; color: #9aa8a1; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.login-card h1 { margin-bottom: 6px; font-size: 25px; }
.login-subtitle { margin-bottom: 23px; color: #8f9c96; font-size: 10px; }
.login-form { display: flex; flex-direction: column; gap: 7px; }
.login-form > label:not(.remember-row) { margin-top: 5px; color: #5c6c65; font-size: 9px; font-weight: 600; }
.login-form > input { height: 39px; padding: 0 11px; border: 1px solid #e1e9e4; border-radius: 7px; outline: 0; color: #3e5048; font-size: 10px; }
.login-form > input:focus { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.remember-row { display: flex; align-items: center; gap: 7px; margin: 5px 0 9px; color: #829089; font-size: 9px; cursor: pointer; }
.remember-row input { width: 13px; height: 13px; margin: 0; accent-color: #32775f; }
.login-submit { width: 100%; justify-content: space-between; height: 40px; padding: 0 14px; }
.login-submit span { font-size: 14px; }
.login-foot { display: flex; align-items: center; gap: 8px; margin-top: 23px; padding-top: 14px; border-top: 1px solid #eff3f0; color: #99a59f; font-size: 8px; }

.inventory-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.product-metric-icon--blue { color: #5885a4; background: #edf4f8; }
.inventory-filters .catalogue-search { width: 236px; }
.inventory-on-hand { display: inline-flex; align-items: baseline; gap: 4px; color: #43866a; font-size: 10px; font-weight: 700; }
.inventory-on-hand small,.inventory-minimum small { color: #a1aca7; font-size: 7px; font-weight: 400; }
.inventory-on-hand--low { color: #b78337; }
.inventory-on-hand--out { color: #b86f5c; }
.inventory-minimum { color: #64736d; font-size: 9px; font-weight: 600; }
.product-status--healthy { color: #39846a; background: #eaf5ef; }
.product-status--low { color: #b1833d; background: #fbf4e6; }
.product-status--out { color: #b76857; background: #f9eeeb; }
.adjust-stock-button { padding: 6px 9px; border: 1px solid #dcebe3; border-radius: 6px; color: #367962; background: #f4faf6; font-size: 8px; font-weight: 600; cursor: pointer; }
.adjust-stock-button:hover { border-color: #b9d8c7; background: #eaf5ee; }
.movements-panel { margin-top: 15px; padding: 0; }
.movements-heading { padding-top: 17px; padding-bottom: 15px; }
.movement-product { display: flex; flex-direction: column; gap: 4px; }
.movement-product strong { max-width: 190px; overflow: hidden; color: #485751; font-size: 8px; font-weight: 600; text-overflow: ellipsis; }
.movement-product small { color: #a0aaa6; font-size: 7px; }
.movement-quantity { font-size: 9px; font-weight: 700; }
.movement-quantity--in { color: #36866a; }
.movement-quantity--out { color: #bd745e; }
.reason-pill { display: inline-flex; padding: 5px 7px; border-radius: 5px; color: #688274; background: #eef5f0; font-size: 7px; }
.reason-pill--out { color: #9a766a; background: #f8f0ed; }
.movement-reference { display: block; color: #66756e; font-size: 8px; }
.movement-note { display: block; max-width: 150px; overflow: hidden; margin-top: 3px; color: #a1aca7; font-size: 7px; text-overflow: ellipsis; }
.movement-user,.movement-time { color: #75837c; font-size: 8px; }
.movements-pagination { border-top: 1px solid #eef2f0; }
.movement-empty { display: flex; align-items: center; gap: 11px; min-height: 85px; padding: 14px 19px; border-top: 1px solid #eef2f0; }
.movement-empty-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 9px; color: #47856c; background: #eaf5ef; font-size: 17px; }
.movement-empty > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.movement-empty strong { color: #586860; font-size: 9px; font-weight: 600; }
.movement-empty small { color: #9ba6a1; font-size: 8px; }
.stock-adjust-dialog { width: min(100% - 28px, 510px); max-width: 510px; max-height: min(90vh, 720px); padding: 0; overflow: auto; border: 1px solid #e3ebe6; border-radius: 13px; color: #40514a; background: #fff; box-shadow: 0 24px 80px #10251e30; }
.stock-adjust-dialog::backdrop { background: #12272070; backdrop-filter: blur(3px); }
.stock-adjust-dialog form { padding: 20px; }
.dialog-heading { display: flex; align-items: flex-start; gap: 10px; }
.dialog-heading > div { flex: 1; padding-top: 2px; }
.dialog-heading h2 { margin: 0 0 4px; }
.dialog-heading p { margin: 0; color: #92a09a; font-size: 8px; }
.dialog-close { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #e9efeb; border-radius: 7px; color: #7c8a83; background: white; font-size: 16px; cursor: pointer; }
.dialog-current-stock { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 15px; padding: 11px 12px; border: 1px solid #e7efe9; border-radius: 8px; background: #f7faf8; }
.dialog-current-stock span { color: #87958e; font-size: 8px; }
.dialog-current-stock strong { color: #356e59; font-family: Manrope,sans-serif; font-size: 15px; }
.dialog-current-stock small { color: #8fa099; font: 400 8px "DM Sans",sans-serif; }
.adjust-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adjust-fields .form-field select { width: 100%; height: 35px; padding: 0 9px; border: 1px solid #e4ebe7; border-radius: 7px; outline: 0; color: #53625c; background: #fff; font-size: 8px; }
.adjust-fields .form-field select:focus { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.adjust-note-field { grid-column: 1/-1; }
.adjust-fields textarea { min-height: 58px; }
.dialog-validation { min-height: 16px; margin-top: 5px; color: #b55c4c; font-size: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid #eef2f0; }
.dialog-actions .button span { margin-left: 5px; }

.customer-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.customer-filters .catalogue-search { width: 235px; }
.customer-table-person { display: inline-flex; align-items: center; gap: 9px; }
.customer-table-person > span:last-child,.customer-contact { display: flex; flex-direction: column; gap: 4px; }
.customer-table-person strong { color: #45544f; font-size: 8px; font-weight: 600; }
.customer-table-person small,.customer-contact small { color: #a0aaa6; font-size: 7px; }
.customer-avatar { color: #527d68; background: #e9f2eb; }
.customer-avatar--garage { color: #947146; background: #f5efe3; }
.customer-contact strong { color: #62716b; font-size: 8px; font-weight: 500; }
.customer-location,.customer-added { color: #829089; font-size: 8px; }
.customer-type { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; color: #5a806c; background: #eff5f0; font-size: 7px; font-weight: 600; }
.customer-type i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.customer-type--garage { color: #a27a3d; background: #fbf5e9; }
.customer-form { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,.85fr); align-items: start; gap: 14px; }
.customer-form-main,.customer-form-aside { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.customer-form-aside .form-section-heading { margin-bottom: 17px; }
.customer-form .form-field select { width: 100%; height: 35px; padding: 0 9px; border: 1px solid #e4ebe7; border-radius: 7px; outline: 0; color: #53625c; background: #fff; font-size: 9px; }
.customer-form .form-field select:focus { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.customer-company-field[hidden] { display: none; }
.customer-consent { margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef2f0; }
.customer-consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.customer-consent input { width: 13px; height: 13px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #32775f; }
.customer-consent label > span { display: flex; flex-direction: column; gap: 4px; }
.customer-consent strong { color: #62716b; font-size: 8px; font-weight: 600; }
.customer-consent small { color: #9ba6a1; font-size: 7px; line-height: 1.5; }
.customer-tip { padding: 15px; background: linear-gradient(135deg,#f2f8f3,#fff); }
.customer-tip-mark { display: grid; width: 24px; height: 24px; margin-bottom: 10px; place-items: center; border-radius: 7px; color: #b38c4c; background: #fbf4e7; font-size: 12px; }
.customer-tip strong { display: block; margin-bottom: 5px; color: #476352; font-size: 9px; }
.customer-tip p { margin: 0; color: #91a096; font-size: 8px; line-height: 1.55; }
.customer-profile-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.customer-profile-actions form { margin: 0; }
.customer-profile-actions .button span { margin-left: 4px; }
.customer-profile-grid { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.7fr); align-items: start; gap: 14px; }
.customer-summary-panel { display: flex; flex-direction: column; align-items: center; padding: 22px 18px 18px; }
.customer-profile-avatar { display: grid; width: 58px; height: 58px; margin-bottom: 13px; place-items: center; border-radius: 18px; color: #557a64; background: #eaf3ec; font-family: Manrope,sans-serif; font-size: 18px; font-weight: 700; }
.customer-profile-avatar.customer-avatar--garage { color: #9a7845; background: #f6f0e4; }
.customer-summary-panel h2 { margin-bottom: 5px; color: #354740; font-size: 15px; text-align: center; }
.customer-profile-company { margin-bottom: 10px; color: #8f9c95; font-size: 9px; text-align: center; }
.customer-summary-panel > .customer-type { margin-bottom: 8px; }
.customer-summary-panel > .product-status { margin-bottom: 1px; }
.customer-profile-divider { width: 100%; height: 1px; margin: 17px 0 14px; background: #eef2f0; }
.profile-detail { display: flex; width: 100%; flex-direction: column; gap: 5px; padding: 7px 0; }
.profile-detail > span { color: #a0aaa5; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.profile-detail > strong { overflow-wrap: anywhere; color: #53625c; font-size: 9px; font-weight: 500; }
.customer-profile-main { display: flex; min-width: 0; flex-direction: column; gap: 13px; }
.customer-address-panel,.customer-notes-panel,.customer-history-panel { min-height: 104px; }
.customer-address { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; color: #64736c; font-size: 9px; font-style: normal; line-height: 1.5; }
.customer-empty-detail { margin-top: 14px; color: #98a39e; font-size: 8px; }
.customer-empty-detail a { margin-left: 4px; color: #3d806b; font-weight: 600; }
.customer-notes { margin: 13px 0 0; color: #728078; font-size: 9px; line-height: 1.6; white-space: pre-line; }
.customer-history-empty { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px; border: 1px dashed #e4ebe6; border-radius: 8px; background: #fafcfb; }
.history-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #578b70; background: #e9f3ec; font-size: 15px; }
.customer-history-empty > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.customer-history-empty strong { color: #64746b; font-size: 8px; font-weight: 600; }
.customer-history-empty small { color: #9ba69f; font-size: 7px; line-height: 1.45; }
.invoice-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.invoice-filters .catalogue-search { width: 225px; }
.invoice-number { display: block; color: #397760; font-size: 9px; font-weight: 700; text-decoration: none; }
.invoice-number:hover { color: #245d49; text-decoration: underline; }
.invoice-plate-badge { display: inline-block; margin-top: 5px; padding: 2px 7px; background: #f5c518; border: 1px solid #d4a90a; border-radius: 4px; color: #1a1a1a; font-family: 'Courier New', monospace; font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.invoice-created { display: block; margin-top: 4px; color: #a0aaa6; font-size: 7px; }
.invoice-status { display: inline-flex; width: fit-content; padding: 5px 7px; border-radius: 5px; color: #7a8290; background: #f1f3f5; font-size: 7px; font-weight: 700; text-transform: capitalize; }
.invoice-status--issued { color: #9b7130; background: #fbf3e3; }
.invoice-status--paid { color: #39846a; background: #eaf5ef; }
.invoice-status--draft { color: #647f9b; background: #edf3f8; }
.invoice-status--cancelled { color: #a66b5c; background: #f8eeeb; }
.invoice-total { color: #40564b; font-size: 9px; font-weight: 700; }
.invoice-form { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(240px,.75fr); align-items: start; gap: 14px; }
.invoice-form-main,.invoice-form-aside { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.invoice-customer-grid { align-items: start; }
.invoice-form .form-field select { width: 100%; height: 35px; padding: 0 9px; border: 1px solid #e4ebe7; border-radius: 7px; outline: 0; color: #53625c; background: #fff; font-size: 9px; }
.invoice-form .form-field select:focus { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.invoice-form input[type="date"],.invoice-line-quantity input { height: 35px; padding: 0 9px; border: 1px solid #e4ebe7; border-radius: 7px; outline: 0; color: #53625c; background: #fff; font: 400 9px "DM Sans",sans-serif; }
.invoice-form input:focus { border-color: #87b6a2; box-shadow: 0 0 0 3px #3c947316; }
.field-hint { color: #9ba69f; font-size: 7px; font-weight: 400; }
.invoice-no-customers { grid-column: 1/-1; margin: 0; color: #9ba69f; font-size: 8px; }
.invoice-no-customers a { color: #3d806b; font-weight: 600; }
.invoice-lines { display: flex; flex-direction: column; gap: 9px; }
.invoice-line { display: grid; grid-template-columns: minmax(0,1fr) 70px 95px 28px; align-items: end; gap: 9px; padding: 10px; border: 1px solid #edf1ef; border-radius: 8px; background: #fbfcfb; }
.invoice-line-product select { min-width: 0; }
.invoice-line-quantity input { width: 100%; }
.invoice-line-price { display: flex; min-height: 35px; flex-direction: column; justify-content: center; gap: 3px; }
.invoice-line-price span,.invoice-line-price small { color: #a1aaa5; font-size: 6px; }
.invoice-line-price strong { color: #526c5d; font-size: 9px; }
.invoice-line-hint { min-height: 10px; color: #91a096; font-size: 7px; font-weight: 400; }
.invoice-remove-line { width: 27px; height: 27px; margin-bottom: 6px; border: 1px solid #e8eeeb; border-radius: 7px; color: #a46d60; background: white; font-size: 15px; cursor: pointer; }
.invoice-remove-line:disabled { cursor: not-allowed; opacity: .4; }
.invoice-add-line { align-self: flex-start; min-height: 31px; padding: 0 10px; font-size: 8px; }
.invoice-summary-panel { padding: 17px; }
.invoice-summary-panel > .panel-kicker { margin-bottom: 14px; }
.invoice-summary-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f3f1; color: #87948d; font-size: 8px; }
.invoice-summary-row strong { color: #5a6d62; font-size: 9px; }
.invoice-summary-total { padding-top: 13px; border-bottom: 0; color: #44574b; font-size: 9px; font-weight: 700; }
.invoice-summary-total strong { color: #2f7058; font-family: Manrope,sans-serif; font-size: 16px; }
.invoice-summary-panel > p { margin: 7px 0 0; color: #9ba69f; font-size: 7px; line-height: 1.5; }
.invoice-tip { padding: 15px; background: linear-gradient(135deg,#f2f8f3,#fff); }
.invoice-tip strong { display: block; margin-bottom: 5px; color: #476352; font-size: 9px; }
.invoice-tip p { margin: 0; color: #91a096; font-size: 8px; line-height: 1.55; }
.invoice-form-actions { display: flex; flex-direction: column-reverse; }
.invoice-form-actions .button { width: 100%; justify-content: center; }
.invoice-errors { margin-bottom: 14px; padding: 12px 15px; border: 1px solid #f0d8d2; border-radius: 8px; color: #985a4e; background: #fff8f6; font-size: 9px; }
.invoice-errors strong { font-size: 9px; }
.invoice-errors ul { margin: 6px 0 0; padding-left: 16px; line-height: 1.6; }
.invoice-actions { display: flex; align-items: center; gap: 8px; }
.invoice-actions form { margin: 0; }
.invoice-actions .button span { margin-left: 4px; }
.invoice-profile-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(220px,.7fr); align-items: start; gap: 14px; }
.invoice-document { overflow: hidden; padding: 21px 0 0; }
.invoice-document-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 21px 18px; border-bottom: 1px solid #eef2f0; }
.invoice-document-top h2 { margin: 5px 0 3px; color: #34473f; font-family: Manrope,sans-serif; font-size: 16px; }
.invoice-document-top > div > span { color: #8d9a93; font-size: 8px; }
.invoice-document-top > .invoice-status { margin-top: 4px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 18px 21px; }
.invoice-parties > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.invoice-parties > div > span,.invoice-notes > span { margin-bottom: 3px; color: #a0aaa5; font-size: 7px; font-weight: 700; letter-spacing: .09em; }
.invoice-parties strong { color: #53645b; font-size: 9px; }
.invoice-parties small { color: #87948d; font-size: 8px; }
.invoice-document-lines .catalogue-table { min-width: 550px; }
.invoice-document-lines .catalogue-table th:first-child,.invoice-document-lines .catalogue-table td:first-child { padding-left: 21px; }
.invoice-document-lines .catalogue-table th:last-child,.invoice-document-lines .catalogue-table td:last-child { padding-right: 21px; }
.invoice-part-name { color: #52645a; font-size: 8px; font-weight: 600; }
.invoice-totals { display: flex; width: min(280px,calc(100% - 42px)); flex-direction: column; gap: 10px; margin: 14px 21px 19px auto; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 10px; color: #87948d; font-size: 8px; }
.invoice-totals strong { color: #53645b; font-size: 9px; }
.invoice-totals .invoice-grand-total { margin-top: 2px; padding-top: 11px; border-top: 1px solid #e9efec; color: #40564b; font-size: 9px; font-weight: 700; }
.invoice-totals .invoice-grand-total strong { color: #2f7058; font-family: Manrope,sans-serif; font-size: 15px; }
.invoice-notes { margin: 0 21px 16px; padding-top: 12px; border-top: 1px solid #eef2f0; }
.invoice-notes p { margin: 5px 0 0; color: #78867e; font-size: 8px; line-height: 1.5; white-space: pre-line; }
.invoice-cancel-form { margin: 0; padding: 10px 21px; border-top: 1px solid #f0f3f1; text-align: right; }
.invoice-cancel-button { border: 0; color: #a46d60; background: transparent; font-size: 8px; cursor: pointer; }
.invoice-side-panels { display: flex; flex-direction: column; gap: 12px; }
.invoice-info-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.invoice-info-panel .panel-kicker { margin-bottom: 2px; }
.invoice-info-panel > small { color: #8b9790; font-size: 8px; line-height: 1.45; }
.invoice-customer-link { display: flex; width: 100%; justify-content: space-between; gap: 6px; color: #3d806b; font-size: 9px; font-weight: 600; text-decoration: none; }
.invoice-customer-link span { color: #95a39b; }
.invoice-info-panel > .invoice-status { margin-bottom: 1px; }
.customer-invoice-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; margin-top: 7px; padding: 8px 10px; border: 1px solid #edf1ef; border-radius: 7px; color: #596a60; text-decoration: none; }
.customer-invoice-row > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.customer-invoice-row > span:first-child strong { color: #3d806b; font-size: 8px; }
.customer-invoice-row > span:first-child small { color: #9ba69f; font-size: 7px; }
.customer-invoice-row > strong { font-size: 8px; }
.report-period-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 15px 17px; }
.report-period-panel > div:first-child p { margin: 5px 0 0; color: #9ba69f; font-size: 8px; }
.report-period-form { display: flex; align-items: flex-end; gap: 8px; }
.report-period-form label { display: flex; flex-direction: column; gap: 4px; color: #89968f; font-size: 7px; font-weight: 600; }
.report-period-form input { height: 34px; padding: 0 8px; border: 1px solid #e6ece9; border-radius: 7px; color: #54635b; background: white; font: 400 8px "DM Sans",sans-serif; }
.report-period-form .button { height: 34px; padding: 0 10px; white-space: nowrap; font-size: 8px; }
.report-errors { color: #aa5e50; font-size: 8px; }
.report-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.report-metrics .product-metric { min-width: 0; gap: 8px; padding: 10px; }
.report-metrics .product-metric-icon { width: 29px; height: 29px; }
.report-metrics .product-metric small { font-size: 8px; line-height: 1.4; }
.report-metrics .product-metric strong { font-size: 15px; }
.report-content-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 14px; margin-bottom: 14px; }
.report-sales-panel,.report-products-panel { min-width: 0; padding: 17px; }
.report-sales-panel .panel-header,.report-products-panel .panel-header { margin-bottom: 12px; }
.report-period-label { color: #8e9b94; font-size: 7px; white-space: nowrap; }
.report-chart { display: flex; height: 155px; align-items: stretch; gap: 3px; padding: 12px 0 0; border-bottom: 1px solid #e9efec; background: repeating-linear-gradient(to bottom,transparent 0,transparent 37px,#f1f4f2 38px,#f1f4f2 39px); }
.report-chart-day { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; }
.report-bar { display: block; width: min(100%,20px); min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#75b293,#34785f); transition: opacity .15s ease; }
.report-chart-day:hover .report-bar { opacity: .72; }
.report-chart-day small { position: absolute; top: calc(100% + 6px); color: #9ba69f; font-size: 6px; white-space: nowrap; }
.report-chart-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; color: #9ba69f; font-size: 7px; }
.report-chart-foot strong { color: #48705a; font-size: 8px; }
.report-empty { display: grid; min-height: 100px; place-items: center; color: #99a59e; font-size: 8px; text-align: center; }
.top-products-list { display: flex; flex-direction: column; }
.top-product-row { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f0f3f1; }
.top-product-row:last-child { border-bottom: 0; }
.top-product-rank { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #43846b; background: #edf5f0; font-size: 7px; font-weight: 700; }
.top-product-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.top-product-copy strong { overflow: hidden; color: #55665d; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-product-copy small { color: #9ba69f; font-size: 7px; }
.top-product-quantity { color: #55725f; font-size: 8px; font-weight: 700; white-space: nowrap; }
.top-product-quantity small { color: #9ba69f; font-size: 7px; font-weight: 400; }
.report-stock-panel { overflow: hidden; padding: 17px 0 0; }
.report-stock-panel > .catalogue-header { padding-bottom: 12px; }
.report-stock-export { height: 31px; font-size: 8px; }
.report-stock-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0 17px 13px; }
.report-stock-metrics .product-metric { min-height: 56px; padding: 8px 10px; }
.report-stock-metrics .product-metric strong { font-size: 15px; }
.report-stock-table { min-width: 740px; }
.report-stock-table th:first-child,.report-stock-table td:first-child { padding-left: 18px; }
.report-stock-table th:last-child,.report-stock-table td:last-child { text-align: left; }
.report-part { display: flex; min-width: 160px; flex-direction: column; gap: 4px; }
.report-part strong { color: #52645a; font-size: 8px; font-weight: 600; }
.report-part small { color: #9ba69f; font-size: 7px; }
.report-stock-number { color: #518065; font-size: 9px; }
.report-stock-number--low { color: #aa803e; }
.report-stock-number--out { color: #ad6b5e; }
.garage-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.garage-filters .catalogue-search { width: 250px; }
.garage-table { min-width: 920px; }
.garage-account-link { display: inline-flex; min-width: 190px; align-items: center; gap: 9px; }
.garage-account-link > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.garage-account-link strong { overflow: hidden; max-width: 220px; color: #47594f; font-size: 8px; font-weight: 600; text-overflow: ellipsis; }
.garage-account-link small,.garage-limit-label,.garage-overdue-count { color: #9ba69f; font-size: 7px; }
.garage-terms { display: block; color: #65786c; font-size: 8px; font-weight: 600; }
.garage-limit-label { display: block; margin-top: 4px; white-space: nowrap; }
.garage-balance { color: #4b6d59; font-size: 9px; }
.garage-balance--over { color: #ad6b5d; }
.garage-overdue-count { display: block; margin-top: 4px; color: #aa6a5d; }
.garage-account-fields[hidden] { display: none; }
.garage-account-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 14px; color: #9da8a2; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.garage-account-divider::after { height: 1px; flex: 1; background: #eef2f0; content: ""; }
.garage-account-panel { padding: 16px; }
.garage-account-panel .panel-header { align-items: center; margin-bottom: 14px; }
.garage-account-panel .panel-header h2 { margin: 0; }
.garage-edit-button { height: 30px; padding: 0 9px; font-size: 8px; }
.garage-account-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.garage-account-overview > div,.garage-credit-overview { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.garage-account-overview span,.garage-credit-overview > div:first-child span { color: #9ba69f; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.garage-account-overview strong,.garage-credit-overview > div:first-child strong { overflow-wrap: anywhere; color: #596b60; font-size: 9px; font-weight: 600; }
.garage-credit-overview { margin-top: 14px; padding: 12px; border: 1px solid #edf1ef; border-radius: 8px; background: #fafcfb; }
.garage-credit-overview > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.garage-credit-overview > div:first-child strong { color: #3e7357; font-size: 12px; }
.garage-credit-overview > small { color: #98a39c; font-size: 7px; line-height: 1.45; }
.garage-credit-meter { overflow: hidden; height: 5px; border-radius: 5px; background: #e9efec; }
.garage-credit-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#69a883,#c19c55); }
.garage-credit-meter--over > span { background: linear-gradient(90deg,#cf9a50,#b96353); }
.garage-new-invoice { width: 100%; margin-top: 12px; }
.garage-new-invoice span { margin-left: auto; }
.notification-button { text-decoration: none; }
.notification-button.has-unread::after { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #dc9353; content: ""; }
.notification-count { position: absolute; top: -5px; right: -7px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 10px; color: white; background: #b96a50; font-size: 7px; font-weight: 700; }
.notification-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.notification-panel { margin-top: 14px; }
.notification-filters select { max-width: 135px; }
.notification-list { border-top: 1px solid #eef2f0; }
.notification-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 28px; align-items: center; gap: 12px; min-height: 82px; padding: 12px 18px; border-bottom: 1px solid #f0f3f1; }
.notification-row:last-child { border-bottom: 0; }
.notification-row--unread { background: linear-gradient(90deg,#fbfdfb,#fff); }
.notification-row--resolved { opacity: .74; }
.notification-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 700; }
.notification-icon--stock { color: #a17b3f; background: #fbf4e7; }
.notification-icon--invoice { color: #a96757; background: #faefec; }
.notification-copy { min-width: 0; }
.notification-title-line { display: flex; align-items: center; gap: 7px; }
.notification-title-line h3 { overflow: hidden; margin: 0; color: #4a5b51; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.notification-title-line .invoice-status { flex: 0 0 auto; }
.notification-unread-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #ca8850; }
.notification-copy p { margin: 5px 0 4px; color: #78877e; font-size: 8px; line-height: 1.45; }
.notification-copy > small { color: #a2aca6; font-size: 7px; }
.notification-action { height: 30px; padding: 0 9px; white-space: nowrap; font-size: 8px; }
.notification-action span { margin-left: 3px; }
.notification-read-form { margin: 0; }
.notification-read-button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #e3ebe6; border-radius: 7px; color: #4b8a6f; background: white; font-size: 12px; cursor: pointer; }
.notification-read-button:hover { border-color: #bfd8ca; background: #f0f7f2; }
.notification-read-spacer { width: 27px; }
.notification-empty .button { margin-top: 3px; }
.settings-form { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(230px,.65fr); align-items: start; gap: 14px; }
.settings-form-main,.settings-form-aside { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.settings-heading { margin-bottom: 18px; }
.settings-panel { padding: 19px; }
.settings-secure-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e4eee8; border-radius: 8px; color: #638272; background: #f8fbf9; font-size: 8px; font-weight: 600; white-space: nowrap; }
.settings-secure-badge span { width: 6px; height: 6px; border-radius: 50%; background: #69a883; box-shadow: 0 0 0 3px #69a8831c; }
.settings-form .form-field input { height: 38px; }
.settings-input-suffix { position: relative; }
.settings-input-suffix input { padding-right: 30px; }
.settings-input-suffix > span { position: absolute; top: 50%; right: 12px; color: #87948f; font-size: 10px; transform: translateY(-50%); }
.settings-form .field-hint { color: #9ba69f; font-size: 7px; font-weight: 400; line-height: 1.45; }
.settings-preview { padding: 19px; border-color: #e7eee9; background: linear-gradient(145deg,#fff 15%,#f7fbf8 100%); }
.settings-preview-icon { display: grid; width: 34px; height: 34px; margin-bottom: 17px; place-items: center; border-radius: 10px; color: #ac8548; background: #faf3e5; font-size: 15px; }
.settings-preview .panel-kicker { margin-bottom: 8px; }
.settings-preview h2 { margin: 0 0 8px; color: #34483e; font: 700 17px Manrope,sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.settings-preview p { margin: 0; color: #89978f; font-size: 8px; line-height: 1.65; }
.settings-preview-note { display: flex; flex-direction: column; gap: 5px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e9efeb; }
.settings-preview-note strong { color: #597568; font-size: 8px; }
.settings-preview-note span { color: #9ba69f; font-size: 7px; }
.settings-form-actions { justify-content: flex-end; }
.settings-form-actions .button { width: 100%; justify-content: center; }
.invoice-issuer-detail { display: block; margin-top: 4px; color: #87948f; font-size: 8px; font-weight: 400; }
.invoice-document-top > div:first-child { max-width: 75%; }
@media print {
    @page { size: A4; margin: 16mm; }
    body { min-width: 0; background: white; }
    .sidebar,.topbar,.invoice-heading,.page-footer,.flash-message,.invoice-side-panels,.invoice-cancel-form,.toast { display: none !important; }
    .main-area { width: 100%; min-height: 0; margin: 0; }
    .page-content { width: 100%; max-width: none; margin: 0; padding: 0; }
    .invoice-profile-grid { display: block; }
    .invoice-document { overflow: visible; border: 0; box-shadow: none; }
    .invoice-document-lines { overflow: visible; }
    .invoice-document-lines .catalogue-table { min-width: 0; }
    .invoice-document-lines .catalogue-table th,.invoice-document-lines .catalogue-table td { padding-right: 6px; padding-left: 6px; }
    .invoice-document-lines .catalogue-table th:first-child,.invoice-document-lines .catalogue-table td:first-child { padding-left: 0; }
    .invoice-document-lines .catalogue-table th:last-child,.invoice-document-lines .catalogue-table td:last-child { padding-right: 0; }
    .invoice-document-top,.invoice-parties,.invoice-totals,.invoice-notes,.invoice-terms { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media(max-width:1080px) {
    .catalogue-header { align-items: flex-start; flex-direction: column; }
    .catalogue-filters { width: 100%; }
    .catalogue-search { flex: 1; }
    .product-form { grid-template-columns: minmax(0,1.3fr) minmax(240px,.9fr); }
}
@media(max-width:900px) {
    .inventory-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-form { grid-template-columns: minmax(0,1fr); }
    .product-form-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .form-actions { grid-column: 1; }
    .customer-form { grid-template-columns: minmax(0,1fr); }
    .customer-form-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .customer-form .form-actions { grid-column: 1; }
    .invoice-form { grid-template-columns: minmax(0,1fr); }
    .invoice-form-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .invoice-form-actions { grid-column: 1/-1; flex-direction: row; }
    .report-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .report-period-panel { align-items: flex-start; flex-direction: column; }
    .report-content-grid { grid-template-columns: minmax(0,1fr); }
    .notification-filters { width: auto; }
}
@media(max-width:620px) {
    .products-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
    .products-heading > .button { width: 100%; }
    .product-metrics { gap: 7px; }
    .customer-metrics { grid-template-columns: 1fr; }
    .customer-metrics .product-metric { min-height: 57px; }
    .customer-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .customer-filters .catalogue-search { width: 100%; grid-column: 1/-1; }
    .customer-filters select { max-width: none; width: 100%; }
    .customer-profile-actions { width: 100%; }
    .customer-profile-actions .button { flex: 1; }
    .customer-profile-grid { grid-template-columns: minmax(0,1fr); }
    .customer-form-aside { display: flex; }
    .invoice-metrics { grid-template-columns: 1fr; }
    .invoice-metrics .product-metric { min-height: 57px; }
    .invoice-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .invoice-filters .catalogue-search { width: 100%; grid-column: 1/-1; }
    .invoice-filters select { max-width: none; width: 100%; }
    .invoice-profile-grid { grid-template-columns: minmax(0,1fr); }
    .report-period-form { width: 100%; flex-wrap: wrap; }
    .report-period-form label { flex: 1 1 40%; }
    .report-period-form input { width: 100%; }
    .report-period-form .button { flex: 1; }
    .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-stock-metrics { grid-template-columns: 1fr; }
    .report-period-label { white-space: normal; }
    .report-stock-export { width: auto !important; }
    .notification-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .notification-filters { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .notification-filters select { width: 100%; max-width: none; }
    .notification-row { grid-template-columns: 30px minmax(0,1fr) 27px; gap: 8px; padding: 10px; }
    .notification-action { grid-column: 2; justify-self: start; }
    .notification-read-form,.notification-read-spacer { grid-column: 3; grid-row: 1; }
    .invoice-heading .invoice-actions { width: 100%; }
    .invoice-actions .button { justify-content: center; }
    .invoice-actions form { flex: 1; }
    .invoice-actions form .button { width: 100%; }
    .invoice-form-aside { display: flex; }
    .invoice-form-actions { flex-direction: column-reverse; }
    .invoice-line { grid-template-columns: minmax(0,1fr) 64px 30px; align-items: end; gap: 7px; padding: 8px; }
    .invoice-line-product { grid-column: 1/-1; }
    .invoice-line-price { padding-left: 3px; }
    .customer-invoice-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
    .customer-invoice-row > strong { grid-column: 1/-1; }
    .product-metric { min-height: 65px; gap: 7px; padding: 9px 8px; }
    .product-metric-icon { width: 27px; height: 27px; font-size: 13px; }
    .product-metric small { font-size: 7px; line-height: 1.35; }
    .product-metric strong { font-size: 16px; }
    .catalogue-panel { padding-top: 14px; }
    .inventory-filters .catalogue-search { width: 100%; }
    .catalogue-header { padding-right: 13px; padding-left: 13px; }
    .catalogue-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .catalogue-search { width: 100%; grid-column: 1/-1; }
    .catalogue-filters select { max-width: none; width: 100%; }
    .filter-submit { width: 100%; }
    .catalogue-pagination { align-items: flex-start; flex-direction: column; justify-content: center; padding: 9px 13px; }
    .catalogue-pagination nav { margin-left: 0; }
    .product-form-aside { display: flex; }
    .form-grid { gap: 12px 8px; }
    .adjust-fields { grid-template-columns: 1fr; }
    .adjust-note-field { grid-column: auto; }
    .form-panel { padding: 14px; }
    .settings-form { grid-template-columns: minmax(0,1fr); }
    .settings-form-aside { display: contents; }
    .settings-form-actions { order: 2; }
    .settings-heading { align-items: flex-start; }
    .settings-secure-badge { padding: 7px 8px; font-size: 7px; }
    .form-field { font-size: 8px; }
    .login-card { padding: 27px 22px; }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Keep supporting copy and data readable without changing the heading hierarchy. */
.sidebar .nav-link { font-size: 14px; }
.sidebar .brand-copy small,.sidebar .workspace-label,.sidebar .sidebar-foot { font-size: 12px; }
.sidebar .help-card strong { font-size: 12px; }
.sidebar .help-card div span { font-size: 12px; }
.topbar .breadcrumb { font-size: 14px; }
.topbar .search-box input { font-size: 14px; }
.topbar .search-box kbd { font-size: 12px; }
.topbar .profile-copy strong { font-size: 12px; }
.topbar .profile-copy small,.topbar .logout-button { font-size: 12px; }
.page-content { font-size: 15px; }
.page-content p { font-size: 15px; line-height: 1.6; }
.page-content small { font-size: 13px; line-height: 1.5; }
.page-content a { font-size: 14px; }
.page-content .welcome-subtitle { font-size: 16px; line-height: 1.55; }
.page-content :is(.eyebrow,.panel-kicker) { font-size: 11px; }
.page-content :is(.button,.filter-submit,.catalogue-filters select,.invoice-actions button,.notification-action) { font-size: 14px; }
.page-content :is(input,select,textarea) { font-size: 15px; }
.page-content .form-field { font-size: 14px; }
.page-content :is(.field-hint,.field-error,.invoice-line-hint,.form-field small,.invoice-issuer-detail) { font-size: 13px; line-height: 1.5; }
.page-content :is(.catalogue-table td,.orders-table td,.report-stock-table td) { font-size: 14px; }
.page-content :is(.catalogue-table th,.orders-table th,.report-stock-table th) { font-size: 11px; letter-spacing: .08em; }
.page-content :is(.catalogue-product strong,.catalogue-sku,.catalogue-price,.order-id,.customer-cell strong,.product-details strong,.product-sales strong,.invoice-part-name,.invoice-number,.garage-account-link strong,.notification-title-line h3) { font-size: 14px; }
.page-content :is(.catalogue-product small,.catalogue-barcode,.catalogue-pagination,.catalogue-pagination nav span,.catalogue-pagination nav a,.customer-cell small,.invoice-created,.garage-account-link small,.garage-limit-label,.garage-overdue-count,.notification-copy > small,.invoice-plate-badge) { font-size: 13px; }
.page-content :is(.category-pill,.product-status,.status,.invoice-status,.customer-type,.notification-action,.garage-terms,.report-part small) { font-size: 13px; }
.page-content :is(.metric-label,.product-metric small,.metric-note,.trend,.chart-footer,.text-link,.legend-label,.legend-row strong,.stock-alert strong,.top-product-copy strong,.top-product-quantity,.notice-label,.notice-card > a,.page-footer,.table-footer,.empty-search,.panel-bottom-link,.result-count) { font-size: 13px; }
.page-content :is(.metric-note,.trend,.chart-footer,.legend-row strong small,.stock-alert small,.top-product-copy small,.top-product-quantity small,.notice-card .notice-label,.page-footer,.table-footer,.result-count) { font-size: 13px; }
.page-content :is(.chart-y-labels,.chart-x-labels) { font-size: 12px; }
.page-content :is(.notice-card p,.settings-preview p,.notification-copy p,.catalogue-empty p,.product-tip p,.invoice-tip p) { font-size: 15px; line-height: 1.6; }
.page-content :is(.invoice-summary-row,.invoice-totals,.customer-invoice-row,.report-period-label,.settings-preview-note strong) { font-size: 14px; }
.page-content .settings-preview-note span { font-size: 13px; }
.page-content .settings-secure-badge { font-size: 13px; }
.page-content .settings-form .field-hint { font-size: 13px; }
.page-content .catalogue-search input { font-size: 14px; }
.page-content .catalogue-empty h3 { font-size: 18px; }
.page-content .catalogue-pagination nav span,.page-content .catalogue-pagination nav a { font-size: 13px !important; }
.page-content .product-metric strong { font-size: 20px; }
.page-content .metric-label { line-height: 1.4; }
.page-content .invoice-status { padding: 6px 9px; }
.page-content .category-pill,.page-content .product-status,.page-content .status { padding: 6px 9px; }
.page-content .notification-row { min-height: 100px; }

/* Password recovery (login-card pages) */
.login-forgot { align-self: flex-end; margin-top: 2px; font-size: 9px; color: inherit; opacity: .75; text-decoration: underline; }
.login-forgot:hover { opacity: 1; }
.login-link-row { margin-top: 14px; font-size: 9px; text-align: center; }
.login-link-row a { color: inherit; opacity: .75; text-decoration: underline; }
.login-link-row a:hover { opacity: 1; }
.login-form > input.pin-input { text-align: center; letter-spacing: .5em; font-size: 18px; font-weight: 700; }

/* VAT toggle & invoice terms */
.invoice-vat-included-note { display: none; font-weight: 400; }
.invoice-document--hide-vat [data-vat-line] { display: none !important; }
.invoice-document--hide-vat .invoice-vat-included-note { display: inline; }
.invoice-terms { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e9efeb; break-inside: avoid; }
.invoice-terms span { display: block; margin-bottom: 6px; color: #87948f; font-size: 8px; letter-spacing: .06em; }
.invoice-terms p { margin: 0; color: #5f726a; font-size: 8px; line-height: 1.6; white-space: pre-line; }

/* ── Invoice readability improvements ───────────────────────────────────────── */

/* "Sales invoice" heading — bolder and clearly visible */
.invoice-document-top h2 { margin: 6px 0 5px; color: #1b3930; font-family: Manrope,sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* Invoice number under h2 — legible, not grey whisper */
.invoice-document-top > div > span { color: #4a6159; font-size: 10px; font-weight: 600; letter-spacing: .01em; }

/* Issuer contact lines — readable body text */
.invoice-issuer-detail { display: block; margin-top: 5px; color: #4a6159; font-size: 9px; font-weight: 400; line-height: 1.55; }

/* BILL TO / INVOICE DETAILS labels */
.invoice-parties > div > span, .invoice-notes > span { margin-bottom: 5px; color: #7a8e87; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; }

/* Customer name + detail values */
.invoice-parties strong { color: #1b3930; font-size: 10px; font-weight: 700; }
.invoice-parties small { color: #4a6159; font-size: 9px; }

/* Line-item part name */
.invoice-part-name { color: #1b3930; font-size: 9px; font-weight: 700; }

/* ── Terms & Conditions — prominent block ───────────────────────────────────── */
.invoice-terms {
    margin: 20px 21px 20px;
    padding: 14px 16px;
    background: #f5f8f6;
    border: 1px solid #dce8e2;
    border-radius: 8px;
    break-inside: avoid;
}
.invoice-terms > span {
    display: block;
    margin-bottom: 8px;
    color: #3d6b57;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.invoice-terms > p {
    margin: 0;
    color: #3d5249;
    font-size: 9px;
    line-height: 1.75;
    white-space: pre-line;
}
