@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;450;500;550;600;650;700;750;800;900&display=swap");
:root {
    --md-primary: #236b4b;
    --md-on-primary: #fff;
    --md-primary-container: #c5edb4;
    --md-on-primary-container: #183e23;
    --md-secondary: #315f91;
    --md-secondary-container: #d5e5ff;
    --md-surface: #f5f7f1;
    --md-container: #edf1e8;
    --md-container-high: #e4eade;
    --md-on-surface: #20271f;
    --md-muted: #626d60;
    --md-outline: #c5cebf;
    --green: var(--md-primary);
    --blue: var(--md-secondary);
    --navy: var(--md-on-surface);
    --muted: var(--md-muted);
    --line: #e0e6d9;
    --bg: var(--md-surface);
    --font: "Roboto", sans-serif;
}
body {
    font-family: var(--font);
    font-size: 14px;
    background: var(--md-surface);
    color: var(--md-on-surface);
}
h1,
h2,
h3,
.brand strong,
.stat > strong,
.chart-summary > strong,
.mobile-brand b {
    font-family: var(--font);
}
h1 {
    font-weight: 650;
    font-size: 36px;
    letter-spacing: -1.3px;
    line-height: 1.15;
}
h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.25px;
}
h3 {
    font-size: 15px;
    font-weight: 600;
}
p {
    color: var(--md-muted);
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.7px;
    font-weight: 600;
    margin-bottom: 12px;
}
.page-heading {
    margin-bottom: 30px;
    align-items: center;
}
.page-heading p {
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}
.primary,
.secondary,
.brand-button,
.danger {
    min-height: 48px;
    padding: 13px 23px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
.primary {
    background: var(--md-primary);
    color: white;
}
.primary:hover {
    background: #195b3e;
    filter: none;
}
.secondary {
    border: 1px solid var(--md-outline);
    background: transparent;
    color: var(--md-primary);
}
.secondary:hover {
    background: var(--md-container-high);
    filter: none;
}
button,
a.primary,
a.secondary,
.nav-item {
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-radius 0.2s ease;
}
button:active,
a.primary:active,
a.secondary:active {
    transform: scale(0.97);
}
:focus-visible {
    outline: 3px solid #527fa7;
    outline-offset: 3px;
}
.text-link {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 4px;
}
.panel {
    border: 0;
    border-radius: 28px;
    background: white;
}
.panel-heading {
    padding: 24px;
}
.form-panel {
    padding: 28px;
}
.form-panel h2 {
    margin-bottom: 24px;
}
.panel.form-panel p {
    font-size: 12px;
    line-height: 1.7;
}
.stats-grid {
    gap: 16px;
}
.stat {
    border: 0;
    border-radius: 28px;
    background: #e6f0df;
    padding: 24px;
}
.stat:nth-child(2) {
    background: #e4ecfa;
}
.stat:nth-child(3) {
    background: #e9eddf;
}
.stat:nth-child(4) {
    background: #f8edcf;
}
.stat-top {
    font-size: 12px;
    color: #475440;
    margin-bottom: 17px;
}
.stat > strong {
    font-size: 34px;
    font-weight: 650;
    letter-spacing: -1px;
}
.stat > small {
    font-size: 11px;
    color: #626d60;
}
.stat-icon {
    background: #ffffff85 !important;
    color: #3e5e44;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}
.sidebar {
    width: 264px;
    border: 0;
    background: var(--md-container);
    padding: 30px 16px 0;
}
.main-wrap {
    margin-left: 264px;
}
.sidebar .brand {
    padding: 0 12px;
    gap: 12px;
}
.brand strong {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.5px;
    max-width: 165px;
    white-space: normal;
}
.brand small {
    font-size: 11px;
    margin-top: 5px;
}
.logo {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border-radius: 15px;
    width: 42px;
    height: 44px;
    font-size: 29px;
}
.workspace {
    border: 0;
    background: #e1e8d9;
    border-radius: 22px;
    padding: 16px;
    margin: 30px 4px 25px;
}
.workspace b {
    font-size: 13px;
}
.workspace small {
    font-size: 11px;
    margin-top: 3px;
}
.store-icon {
    background: #f6f9f1;
    width: 35px;
    height: 35px;
    border-radius: 12px;
}
.nav-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--md-muted);
    margin-left: 20px;
}
.nav-item {
    min-height: 49px;
    border-radius: 100px;
    gap: 14px;
    margin-bottom: 3px;
    padding: 13px 20px;
    font-size: 12px;
    color: #4c5748;
}
.nav-item.active,
.nav-item[aria-current="page"] {
    background: var(--md-primary-container);
    color: #173e24;
    font-weight: 700;
}
.nav-item.active:before {
    display: none;
}
.nav-item:hover {
    background: #dde6d4;
}
.nav-icon {
    font-size: 22px;
}
.sidebar-bottom {
    font-size: 10px;
    padding: 22px 13px 15px;
}
.profile {
    padding: 17px 9px;
    border-color: #d3dccd;
    gap: 9px;
}
.profile b {
    font-size: 12px;
}
.profile small {
    font-size: 10px;
}
.avatar {
    background: #d5e5ff;
    color: #254c78;
    border: 0;
    width: 40px;
    height: 40px;
    font-size: 13px;
}
.profile .text-link {
    font-size: 10px;
}
header {
    height: 86px;
    background: #f5f7f1ee;
    border-bottom: 0;
    padding: 0 36px;
    backdrop-filter: blur(18px);
}
.breadcrumb {
    font-size: 12px;
    color: #65705f;
}
.breadcrumb b {
    color: var(--md-on-surface);
    font-weight: 500;
}
header .global-search input {
    background: var(--md-container-high);
    border-radius: 100px;
    padding: 13px 20px;
    min-height: 46px;
    width: 260px;
    font-size: 12px;
}
.header-actions {
    gap: 18px;
}
main {
    padding: 28px 36px 24px;
}
footer {
    color: #6d7768;
    font-size: 10px;
    padding: 22px 36px;
}
.badge {
    border-radius: 100px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 600;
}
.green,
.badge.green {
    background: #dceece;
    color: #32572b;
}
.blue,
.badge.blue {
    background: var(--md-secondary-container);
    color: #315680;
}
.amber,
.badge.amber {
    background: #f9e8be;
    color: #745b14;
}
.badge.green:before {
    display: none;
}
.action-icon,
.medicine-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}
.action-icon.green {
    border-radius: 50% 50% 16px 50%;
}
.action-icon.blue {
    border-radius: 15px 50% 50% 50%;
}
.quick-actions {
    padding: 0 24px 15px;
}
.quick-actions > a {
    padding: 13px 0;
    gap: 14px;
}
.quick-actions b {
    font-size: 13px;
}
.quick-actions small {
    font-size: 11px;
    margin-top: 4px;
}
.brand-card {
    background: var(--md-secondary-container);
    border: 0;
    border-radius: 28px;
    padding: 26px;
}
.brand-card h3 {
    font-size: 17px;
    line-height: 1.4;
    max-width: 210px;
}
.brand-card p {
    font-size: 12px;
    color: #526a83;
    margin: 11px 0;
    max-width: 245px;
}
.brand-card-icon {
    font-size: 29px;
    color: #315680;
}
.brand-card:after {
    color: #b8d0f2;
}
.brand-button {
    padding: 8px 0;
    min-height: 40px;
    font-size: 12px;
    color: #294f7c;
}
.record-row,
.contact-card {
    border-color: #edf0e8;
    padding: 21px 24px;
}
.record-row b {
    font-size: 13px;
}
.record-row small {
    font-size: 11px;
    line-height: 1.6;
}
.record-row:hover,
.contact-card:hover {
    background: #f7faf3;
}
.table-wrap th {
    background: #edf2e7;
    color: #57644f;
    font-size: 11px;
    font-weight: 600;
    border: 0;
    padding: 15px 20px;
}
.table-wrap td {
    font-size: 12px;
    padding: 18px 20px;
    border-color: #e9eee3;
}
.medicine-name b {
    font-size: 14px;
}
.medicine-name small {
    font-size: 11px;
}
.toolbar {
    padding: 22px 24px;
    border-color: #edf0e8;
    gap: 14px;
}
.search-field {
    border: 0;
    background: var(--md-container);
    border-radius: 100px;
    padding: 0 17px;
    min-height: 50px;
}
.search-field input {
    background: none !important;
    border: 0 !important;
    min-height: 50px;
    font-size: 13px;
}
.search-field:focus-within {
    outline-color: var(--md-primary);
}
.field {
    font-size: 12px;
    font-weight: 500;
    color: #52604b;
    gap: 8px;
    margin-bottom: 22px;
}
input,
select,
textarea {
    background: #f0f3eb;
    border: 1px solid transparent;
    border-bottom: 2px solid #aebaa6;
    border-radius: 12px 12px 4px 4px;
    padding: 15px 14px;
    min-height: 54px;
    font-size: 14px;
    color: #25301f;
}
input::placeholder {
    color: #7a8572;
}
input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: transparent;
    border-bottom-color: var(--md-primary);
    background: #eaf0e2;
    box-shadow: 0 1px 0 var(--md-primary);
}
.form-grid {
    gap: 0 22px;
}
.toolbar > select {
    border-radius: 100px;
    background: var(--md-container);
    border: 0;
    font-size: 12px;
}
.batch-card {
    background: var(--md-container);
    border: 0;
    border-radius: 18px;
    padding: 18px;
}
.batch-card p {
    color: #5c6954;
    font-size: 12px;
}
.info {
    background: #e6effb;
    border: 0;
    color: #3e5d80;
    border-radius: 20px;
    padding: 17px 20px;
    font-size: 12px;
}
.info a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.notice.success {
    border: 0;
    border-radius: 20px;
    background: #dfedcf;
    color: #365629;
}
.error-box {
    border: 0;
    background: #ffdad5;
    color: #8c332b;
    border-radius: 20px;
    padding: 20px;
}
.error-box p {
    color: #8c332b;
}
.empty {
    padding: 45px 24px;
}
.empty > span {
    font-size: 34px;
    color: #76966a;
}
.empty h3 {
    font-size: 16px;
}
.empty p {
    font-size: 12px;
    line-height: 1.7;
}
.pagination {
    padding: 20px 24px;
    color: #5a6852;
    font-size: 12px;
}
.pagination a {
    border-radius: 100px;
    background: var(--md-container);
    padding: 10px 16px;
}
.section-heading {
    margin: 30px 0 18px;
}
.purchase-line {
    margin-bottom: 18px;
}
.purchase-line .panel-heading {
    padding: 23px;
}
.batch-editor {
    background: #f0f4eb;
    border: 0;
    border-radius: 20px;
    margin: 0 20px 16px;
}
.batch-editor .panel-heading {
    padding: 15px 20px;
}
.batch-fields {
    padding: 0 20px 4px;
    gap: 0 16px;
}
.batch-fields .field {
    font-size: 11px;
}
.batch-fields input,
.batch-fields select {
    font-size: 13px;
    background: #e4ebdc;
    min-height: 50px;
    padding: 12px;
}
.add-batch {
    padding: 0 20px 23px;
}
.add-batch .secondary {
    background: var(--md-secondary-container);
    border: 0;
    color: #315680;
}
.sticky-summary {
    border: 0;
    border-radius: 24px;
    background: #e1edda;
    box-shadow: 0 5px 20px #283d2312;
    padding: 18px 24px;
    bottom: 16px;
}
.sticky-summary strong {
    font-size: 25px;
    color: #234d2c;
}
.sticky-summary small {
    font-size: 11px;
    color: #53694a;
}
.sale-entry {
    border-radius: 24px;
    padding: 24px;
}
.line-selector .field {
    margin-bottom: 8px;
}
.line-units {
    font-size: 12px;
}
.location-card {
    padding: 26px;
}
.location-card h2 {
    font-size: 20px;
}
.location-card p {
    font-size: 12px;
}
.location-bottom {
    border-color: #dfe6d6;
}
.more-grid > a {
    padding: 25px;
    border-radius: 24px;
    color: #31513a;
}
.more-grid > a:nth-child(3n + 2) {
    background: #e5edfa;
    color: #315680;
}
.more-grid > a:nth-child(3n) {
    background: #e9efdf;
}
.report-tabs {
    gap: 8px;
}
.report-tabs > a {
    border-radius: 100px;
    border: 0;
    background: #e5eadf;
    padding: 11px 19px;
    font-size: 12px;
}
.report-tabs > a.selected {
    background: #315f91;
    color: white;
}
.toggle-row {
    font-size: 13px;
    min-height: 54px;
}
.toggle-row input {
    accent-color: var(--md-primary);
    border-radius: 4px;
    width: 20px;
    height: 20px;
}
.sales-bar > div {
    border-radius: 100px;
    background: #4f8455;
    min-width: 16px;
}
.sales-bar:nth-child(even) > div {
    background: #82a2cc;
}
.sales-bar > span {
    font-size: 10px;
    color: #4e6046;
}
.sales-bar small {
    color: #66765e;
}
.scan-upload {
    border: 2px dashed #a8bc98;
    border-radius: 28px;
    background: #f3f7ee;
    padding: 35px 18px;
}
.scan-upload b {
    font-size: 19px;
}
.scan-upload span {
    font-size: 12px;
}
.invoice-source {
    border: 0;
    border-radius: 22px;
    background: #dfeafb;
    padding: 19px;
}
.invoice-source img {
    border-radius: 9px;
}
.scan-consent {
    font-size: 12px;
    line-height: 1.6;
}
.invoice-photo-panel {
    border: 0;
    border-radius: 20px;
    background: #eaf0e2;
}
.ocr-text {
    border: 0;
    border-radius: 18px;
    background: #eff3e9;
}
.invoice-brand h2 {
    font-size: 22px;
}
.total-line strong {
    font-size: 28px;
}
.table-footer {
    border-color: #e3e9dc;
    font-size: 11px;
}
.print-note {
    color: #62705a;
}
/* The welcome screen uses the same tonal surfaces as the workspace. */
.material-auth {
    padding: 24px;
    min-height: 100dvh;
    background: #f3f6ee;
    display: grid;
    place-items: center;
}
.auth-layout {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: min(800px, calc(100dvh - 48px));
    background: #fdfef9;
    border-radius: 40px;
    overflow: hidden;
}
.auth-story {
    background: #deebd4;
    border-radius: 40px;
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-wordmark {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.auth-wordmark .logo {
    width: 38px;
    height: 40px;
    background: #315f42;
    color: #effce8;
    border-radius: 14px;
    font-size: 26px;
}
.auth-story-content {
    margin: auto 0;
    padding-top: 45px;
}
.material-chip {
    display: inline-flex;
    align-items: center;
    background: #c6dcb7;
    color: #34522c;
    border-radius: 100px;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1px;
}
.material-chip.blue {
    background: #e0eafb;
    color: #355d8a;
}
.auth-story h2 {
    font-size: 64px;
    line-height: 1.03;
    letter-spacing: -3px;
    font-weight: 600;
    margin: 24px 0 20px;
    color: #24492f;
}
.auth-story-content > p {
    max-width: 320px;
    color: #617456;
    line-height: 1.7;
    font-size: 14px;
}
.auth-story-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #65785b;
    align-items: center;
}
.auth-story-footer > span:last-child {
    font-size: 22px;
}
.care-illustration {
    height: 260px;
    position: relative;
    margin-top: 20px;
}
.care-orbit {
    width: 204px;
    height: 204px;
    border: 1px solid #b3c8a5;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 67px;
}
.care-orbit:after {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid #bdd0b1;
    border-radius: 50%;
}
.care-cross {
    position: absolute;
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    background: #b8d89c;
    color: #31593d;
    font-size: 100px;
    left: 47px;
    top: 18px;
    border-radius: 40px;
    transform: rotate(-12deg);
}
.care-capsule {
    position: absolute;
    left: 194px;
    top: 60px;
    width: 82px;
    height: 150px;
    background: #c0d5f5;
    border-radius: 100px;
    transform: rotate(32deg);
    box-shadow: 0 8px 0 #bbd0af80;
    overflow: hidden;
}
.care-capsule span {
    display: block;
    height: 50%;
    background: #4f78a7;
}
.care-note {
    position: absolute;
    left: 24px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fff2;
    padding: 15px 20px;
    border-radius: 22px;
    box-shadow: 0 5px 25px #5e7e4d0d;
    transform: rotate(-3deg);
}
.care-check {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c9e9b5;
    color: #386033;
    font-size: 18px;
}
.care-note b {
    font-size: 12px;
    color: #3d5336;
}
.care-note small {
    display: block;
    color: #788671;
    font-size: 10px;
    margin-top: 4px;
}
.care-spark {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 39px;
    color: #7a9c60;
}
.material-auth .auth-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    max-width: none;
    width: 100%;
    padding: 48px 46px;
    margin: auto;
    box-shadow: none;
}
.auth-form-header h1 {
    font-size: 38px;
    max-width: 330px;
    font-weight: 600;
    letter-spacing: -1.6px;
    line-height: 1.12;
    margin-top: 22px;
}
.auth-form-header > p {
    font-size: 13px;
    line-height: 1.6;
    margin: 13px 0 28px;
}
.auth-fields-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.auth-passwords {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.material-auth .field {
    font-size: 11px;
    margin-bottom: 21px;
    gap: 9px;
}
.material-auth input {
    background: #eef2e8;
    border-radius: 14px 14px 5px 5px;
    min-height: 56px;
    font-size: 12px;
    padding: 15px 14px;
    border-bottom: 2px solid #b7c2ad;
}
.material-auth input:focus {
    background: #e5eddb;
    border-bottom-color: #316b49;
}
.material-auth .auth-helper {
    font-size: 11px;
    line-height: 1.7;
    display: flex;
    gap: 9px;
    color: #6b7862;
    align-items: flex-start;
    margin: 0 0 8px;
}
.auth-helper > span {
    color: #317044;
}
.material-auth .auth-submit {
    min-height: 58px;
    margin-top: 21px;
    font-size: 14px;
    padding: 17px 24px;
    justify-content: space-between;
    background: #356e49;
}
.auth-submit > span:last-child {
    font-size: 23px;
    line-height: 1;
}
.auth-bottom-note {
    text-align: center;
    font-size: 10px !important;
    color: #8b9584;
    margin: 24px 0 0 !important;
}
.auth-mobile-brand {
    display: none;
}
.material-auth .toggle-row input {
    min-height: 20px;
    width: 20px;
    height: 20px;
}
.material-auth .error-box {
    margin: 20px 0;
    font-size: 12px;
}
@media (min-width: 1500px) {
    .sidebar {
        width: 280px;
    }
    .main-wrap {
        margin-left: 280px;
    }
    main {
        padding: 35px 44px;
    }
    .stat {
        padding: 27px;
    }
    .stat > strong {
        font-size: 38px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 232px;
    }
    .main-wrap {
        margin-left: 232px;
    }
    .brand strong {
        font-size: 14px;
        max-width: 145px;
    }
    .sidebar .brand {
        padding: 0 5px;
    }
    .nav-item {
        padding: 12px 15px;
        font-size: 11px;
    }
    .main-wrap header {
        padding: 0 24px;
    }
    main {
        padding: 24px;
    }
    h1 {
        font-size: 32px;
    }
    .stat {
        padding: 20px;
    }
    .stat > strong {
        font-size: 30px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
    .material-auth .auth-card {
        padding: 38px;
    }
    .auth-story {
        padding: 32px;
    }
    .auth-story h2 {
        font-size: 57px;
    }
    .auth-layout {
        max-width: 1040px;
    }
}
@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .auth-layout {
        grid-template-columns: 0.85fr 1.15fr;
    }
    .auth-story {
        padding: 27px;
    }
    .auth-story h2 {
        font-size: 48px;
        letter-spacing: -2px;
    }
    .auth-wordmark {
        font-size: 12px;
    }
    .care-illustration {
        transform: scale(0.85);
        transform-origin: left center;
        width: 320px;
    }
    .material-auth .auth-card {
        padding: 32px 26px;
    }
    .auth-fields-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-form-header h1 {
        font-size: 33px;
    }
    .auth-passwords {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-story-content {
        padding-top: 28px;
    }
}
@media (max-width: 767px) {
    .sidebar {
        display: none;
    }
    .main-wrap {
        margin-left: 0;
    }
    header,
    .main-wrap header {
        height: 76px;
        padding: 0 20px;
        background: #f5f7f1f2;
        top: 0;
    }
    .mobile-brand {
        gap: 11px;
    }
    .mobile-brand .logo {
        width: 37px;
        height: 39px;
        border-radius: 14px;
        font-size: 27px;
    }
    .mobile-brand b {
        font-size: 16px;
        font-weight: 600;
        max-width: 245px;
        letter-spacing: -0.5px;
    }
    .avatar {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    main {
        padding: 26px 18px 20px;
    }
    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.6px;
        margin-bottom: 12px;
    }
    h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }
    .page-heading {
        gap: 20px;
        margin-bottom: 27px;
    }
    .page-heading p {
        font-size: 13px;
        margin-top: 12px;
    }
    .page-heading .primary,
    .page-heading .secondary {
        font-size: 12px;
        padding: 12px 20px;
        min-height: 46px;
    }
    .heading-actions {
        gap: 10px;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat {
        border-radius: 24px;
        padding: 19px 17px;
    }
    .stat-top {
        font-size: 11px;
        gap: 5px;
        margin-bottom: 15px;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
    .stat > strong {
        font-size: 29px;
        letter-spacing: -1px;
        margin-bottom: 8px;
    }
    .stat > small {
        font-size: 10px;
        line-height: 1.5;
    }
    .panel {
        border-radius: 25px;
    }
    .panel-heading {
        padding: 21px;
    }
    .panel-heading h2 {
        font-size: 17px;
    }
    .form-panel {
        padding: 24px 20px;
    }
    .form-panel h2 {
        font-size: 18px;
    }
    .form-grid {
        gap: 0 15px;
    }
    .field {
        font-size: 11px;
        margin-bottom: 20px;
    }
    input,
    select,
    textarea {
        font-size: 14px;
        min-height: 54px;
        padding: 14px 12px;
        border-radius: 12px 12px 4px 4px;
    }
    .field input,
    .field select {
        font-size: 14px;
        min-height: 54px;
    }
    .primary,
    .secondary {
        min-height: 48px;
        font-size: 13px;
        padding: 13px 21px;
    }
    .text-link {
        font-size: 12px;
        min-height: 44px;
    }
    .toolbar {
        padding: 20px;
        gap: 12px;
    }
    .search-field {
        min-height: 52px;
    }
    .search-field input {
        font-size: 13px;
        min-height: 52px;
    }
    .record-row {
        padding: 20px;
        gap: 12px;
        font-size: 12px;
    }
    .record-row b {
        font-size: 13px;
    }
    .record-row small {
        font-size: 11px;
    }
    .table-wrap td {
        padding: 0;
        font-size: 12px;
    }
    .table-wrap tr {
        padding: 18px 20px;
        gap: 13px;
    }
    .table-wrap td:before {
        font-size: 10px;
        margin-bottom: 6px;
        color: #7a8770;
    }
    .table-wrap td .text-link {
        font-size: 13px;
        min-height: 30px;
    }
    .medicine-name b {
        font-size: 14px;
    }
    .medicine-name small {
        font-size: 11px;
    }
    .medicine-icon {
        width: 39px;
        height: 39px;
        border-radius: 14px;
    }
    .badge {
        padding: 5px 9px;
        font-size: 10px;
    }
    .quick-actions {
        padding: 0 20px 15px;
        gap: 8px;
    }
    .quick-actions > a {
        gap: 10px;
        padding: 12px 0;
    }
    .quick-actions .action-icon {
        width: 36px;
        height: 38px;
    }
    .quick-actions b {
        font-size: 12px;
    }
    .quick-actions small {
        font-size: 9px;
        line-height: 1.5;
    }
    .brand-card {
        border-radius: 25px;
        padding: 25px;
    }
    .brand-card h3 {
        font-size: 19px;
    }
    .brand-card p {
        font-size: 12px;
        max-width: 270px;
    }
    .brand-button {
        font-size: 12px;
        min-height: 42px;
    }
    .bottom-nav {
        background: #e7eddf;
        border: 0;
        border-radius: 28px 28px 0 0;
        padding: 9px 9px max(12px, env(safe-area-inset-bottom));
        box-shadow: 0 -4px 18px #20361505;
        gap: 4px;
    }
    .bottom-nav > a {
        font-size: 10px;
        font-weight: 500;
        color: #52604b;
        min-height: 58px;
        gap: 5px;
    }
    .bottom-nav > a > span {
        display: grid;
        place-items: center;
        width: 58px;
        height: 30px;
        font-size: 22px;
        border-radius: 100px;
        line-height: 1;
    }
    .bottom-nav > a.active,
    .bottom-nav > a[aria-current="page"] {
        color: #234929;
        font-weight: 700;
    }
    .bottom-nav > a.active > span {
        background: #c7e7b2;
        color: #204525;
    }
    .bottom-nav > a:hover > span {
        background: #d7e5cb;
    }
    footer {
        padding: 18px 20px 115px;
        font-size: 10px;
    }
    .sticky-summary {
        bottom: 95px;
        border-radius: 22px;
        padding: 17px 18px;
        gap: 10px;
    }
    .sticky-summary strong {
        font-size: 23px;
    }
    .sticky-summary small {
        font-size: 10px;
    }
    .sticky-summary button {
        min-height: 46px;
        font-size: 12px;
        padding: 12px 16px;
    }
    .purchase-line .panel-heading {
        padding: 19px 16px;
        gap: 12px;
    }
    .purchase-line .panel-heading > .text-link {
        font-size: 10px;
    }
    .batch-editor {
        border-radius: 18px;
        margin: 0 12px 14px;
    }
    .batch-editor .panel-heading {
        padding: 12px 15px;
    }
    .batch-fields {
        padding: 0 14px 3px;
        gap: 0 12px;
    }
    .batch-fields .field {
        font-size: 10px;
    }
    .batch-fields input,
    .batch-fields select {
        min-height: 50px;
        font-size: 12px;
        padding: 11px 9px;
    }
    .add-batch {
        padding: 0 14px 18px;
    }
    .line-selector select {
        font-size: 12px;
    }
    .line-units {
        font-size: 10px;
    }
    .sale-entry {
        padding: 20px;
    }
    .section-heading {
        margin-top: 26px;
    }
    .section-heading h2 {
        font-size: 17px;
    }
    .section-heading .secondary {
        font-size: 11px;
        padding: 11px 16px;
    }
    .batch-card {
        padding: 17px;
        border-radius: 18px;
    }
    .batch-card p {
        font-size: 11px;
    }
    .location-grid {
        gap: 14px;
    }
    .location-card {
        padding: 22px 18px;
    }
    .location-card h2 {
        font-size: 18px;
    }
    .location-card p {
        font-size: 11px;
        line-height: 1.6;
    }
    .location-top {
        gap: 8px;
    }
    .more-grid {
        gap: 10px;
    }
    .more-grid > a {
        padding: 24px;
        font-size: 15px;
    }
    .report-tabs > a {
        font-size: 11px;
        padding: 10px 16px;
    }
    .info {
        padding: 16px 18px;
        font-size: 12px;
        border-radius: 19px;
    }
    .empty {
        padding: 35px 20px;
    }
    .pagination {
        gap: 8px;
        font-size: 11px;
        padding: 17px;
    }
    .pagination a {
        padding: 9px 12px;
    }
    .material-auth {
        padding: 0;
        display: block;
        background: #f3f6ee;
    }
    .auth-layout {
        display: block;
        border-radius: 0;
        background: transparent;
        min-height: 100dvh;
        width: 100%;
    }
    .auth-story {
        display: none;
    }
    .material-auth .auth-card {
        padding: 25px 25px 32px;
        max-width: 520px;
        margin: 0 auto;
    }
    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        font-size: 15px;
        margin: 0 0 36px;
    }
    .auth-mobile-brand .logo {
        width: 37px;
        height: 39px;
        font-size: 26px;
    }
    .auth-mobile-brand b {
        font-weight: 600;
        letter-spacing: -0.3px;
    }
    .auth-form-header h1 {
        font-size: 40px;
        letter-spacing: -1.8px;
        max-width: 310px;
        line-height: 1.07;
        margin-top: 20px;
    }
    .auth-form-header > p {
        font-size: 14px;
        line-height: 1.65;
        margin: 16px 0 29px;
    }
    .material-chip {
        font-size: 11px;
        padding: 9px 15px;
    }
    .auth-fields-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .material-auth .field {
        font-size: 12px;
        gap: 8px;
        margin-bottom: 19px;
    }
    .material-auth input {
        min-height: 58px;
        font-size: 14px;
        background: #e7edde;
        border-radius: 15px 15px 5px 5px;
        padding: 16px;
    }
    .auth-passwords {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .material-auth .auth-helper {
        font-size: 11px;
        margin: 5px 0 0;
        line-height: 1.8;
    }
    .material-auth .auth-submit {
        min-height: 60px;
        margin-top: 25px;
        font-size: 15px;
        border-radius: 100px;
    }
    .auth-bottom-note {
        font-size: 11px !important;
        margin-top: 24px !important;
    }
    .auth-card .error-box {
        font-size: 12px;
    }
    .sales-bars {
        padding: 25px 15px;
    }
    .sales-bar > span {
        font-size: 9px;
    }
    .table-footer {
        font-size: 10px;
    }
    .invoice-source {
        padding: 17px;
    }
    .invoice-source .secondary {
        min-height: 42px;
        font-size: 11px;
    }
    .invoice-scan-layout {
        gap: 18px;
    }
    .scan-upload {
        padding: 28px 15px;
    }
    .scan-upload b {
        font-size: 18px;
    }
    .scan-upload span {
        font-size: 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    button,
    a.primary,
    a.secondary,
    .nav-item {
        transition: none;
    }
    button:active,
    a.primary:active,
    a.secondary:active {
        transform: none;
    }
}
@media print {
    body {
        background: white;
        color: black;
        font-family: Arial, sans-serif;
    }
    .panel {
        border-radius: 0;
    }
    .main-wrap {
        margin-left: 0;
    }
    .printable {
        background: white;
    }
    .printable td,
    .printable th {
        font-size: 10px;
    }
    .batch-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 0;
    }
    .badge {
        background: none;
        color: black;
    }
    .invoice-brand h2 {
        font-size: 20px;
    }
    .invoice-totals .total-line strong {
        font-size: 22px;
        color: black;
    }
}

.invoice-print-options { display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.invoice-print-options .field { min-width:200px; margin:0; }
.invoice-print-options p { flex:1; min-width:220px; }
[data-search-status] { display:block; margin:6px 0; color:var(--green); }
@media print {
    .printable { width:100%; max-width:100%; box-shadow:none; }
    .printable .table-wrap { overflow:visible; }
    .printable table { width:100%; min-width:0; }
    .printable tr, .printable .invoice-totals, .printable .invoice-brand { break-inside:avoid; }
    .printable[data-print-format="A5"] { font-size:11px; }
    .printable[data-print-format="A5"] td, .printable[data-print-format="A5"] th { padding:6px 3px; font-size:9px; }
    .printable[data-print-format="A5"] .invoice-brand h2 { font-size:16px; }
    .printable[data-print-format="A5"] .invoice-brand { margin-bottom:12px; }
    .printable[data-print-format="80mm"] { width:72mm; max-width:72mm; font-size:10px; }
    .printable[data-print-format="80mm"] td, .printable[data-print-format="80mm"] th { padding:4px 2px; font-size:8px; }
    .printable[data-print-format="80mm"] .invoice-brand h2 { font-size:14px; }
    .printable[data-print-format="80mm"] .invoice-brand p { font-size:9px; }
    .printable[data-print-format="80mm"] .invoice-totals { max-width:100%; }
    .printable[data-print-format="80mm"] .total-line strong { font-size:16px; }
}
