@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
    --green: #07836b;
    --green-dark: #076553;
    --blue: #397ada;
    --navy: #192e35;
    --muted: #7b8a90;
    --line: #e7edeb;
    --bg: #f6f8f9;
    --font: "DM Sans", sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--navy);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.5;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select {
    outline-offset: 4px;
}
button {
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.15s;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button:hover {
    filter: brightness(0.97);
}
a {
    color: var(--green);
    text-decoration: none;
}
button {
    color: inherit;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    font-family: "Manrope", sans-serif;
}
h1 {
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.4;
    font-weight: 800;
}
h2 {
    font-size: 15px;
    font-weight: 750;
}
h3 {
    font-size: 14px;
}
p {
    color: var(--muted);
}
small {
    font-size: 11px;
}
input,
select,
textarea {
    background: white;
    border: 1px solid #dce4e2;
    border-radius: 7px;
    min-height: 42px;
    padding: 10px 12px;
    max-width: 100%;
    color: var(--navy);
}
input:focus,
select:focus {
    outline: 2px solid #73baa8;
    outline-offset: 1px;
}
input[type="number"] {
    width: 100%;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 244px;
    background: white;
    border-right: 1px solid var(--line);
    padding: 28px 18px 0;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    padding: 0 5px;
}
.brand strong {
    font-family: Manrope, sans-serif;
    font-size: 15px;
    letter-spacing: -0.5px;
    display: block;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}
.logo {
    width: 37px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-size: 28px;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.workspace {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 10px;
    margin: 31px 0 26px;
}
.workspace div {
    flex: 1;
}
.workspace b {
    font-size: 12px;
}
.workspace small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.store-icon {
    width: 29px;
    height: 29px;
    background: #f0f5f3;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 21px;
}
.nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #99a5aa;
    margin: 0 12px 10px;
}
.nav-label.lower {
    margin-top: 22px;
}
.sidebar nav {
    overflow-y: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    padding: 11px 13px;
    margin-bottom: 3px;
    font-size: 12px;
    color: #63747a;
    border-radius: 7px;
    min-height: 42px;
}
.nav-item.active {
    color: var(--green);
    background: #e9f5f0;
    font-weight: 700;
    position: relative;
}
.nav-item.active:before {
    content: "";
    position: absolute;
    left: -18px;
    width: 3px;
    background: var(--green);
    height: 24px;
    border-radius: 0 2px 2px 0;
}
.nav-icon {
    font-size: 19px;
    width: 21px;
    text-align: center;
    line-height: 1;
}
.nav-count {
    margin-left: auto;
    background: #fff2dc;
    color: #b27b23;
    padding: 0px 6px;
    border-radius: 5px;
    font-size: 10px;
}
.sidebar-bottom {
    margin-top: auto;
    padding: 23px 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}
.live-dot {
    width: 6px;
    height: 6px;
    background: #249b79;
    border-radius: 50%;
}
.demo-pill {
    font-size: 8px;
    margin-left: auto;
    background: #f1f5f4;
    padding: 3px 5px;
    border-radius: 4px;
}
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 4px;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    text-align: left;
}
.profile b {
    font-size: 11px;
}
.profile small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}
.profile > span:last-child {
    margin-left: auto;
}
.avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5f0ec;
    color: #477769;
    border: 3px solid #f5f8f7;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.avatar.small {
    width: 32px;
    height: 32px;
}
.main-wrap {
    margin-left: 244px;
}
header {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(12px);
    height: 76px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    background: #ffffffd9;
}
.breadcrumb {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 12px;
}
.breadcrumb b {
    color: #485c64;
    font-weight: 500;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.global-search {
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #91a0a5;
    font-size: 12px;
}
.global-search > span {
    margin-right: 24px;
}
kbd {
    font: 10px var(--font);
    border: 1px solid var(--line);
    padding: 2px 5px;
    border-radius: 4px;
}
.icon-button {
    background: none;
    border: 0;
    min-width: 32px;
    min-height: 32px;
    font-size: 20px;
    display: inline-grid;
    place-items: center;
    color: #7e8d92;
}
.notification {
    position: relative;
}
.notification i {
    position: absolute;
    top: 6px;
    right: 7px;
    background: #e5a251;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
main {
    padding: 32px 35px 20px;
    max-width: 1600px;
    margin: auto;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 27px;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 7px;
}
.page-heading p {
    font-size: 12px;
    margin-top: 7px;
}
.wave {
    color: #d9ac50;
    font-size: 23px;
    margin-left: 4px;
}
.heading-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.primary,
.secondary,
.brand-button {
    border-radius: 7px;
    padding: 11px 16px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 11px;
    min-height: 42px;
}
.primary {
    background: var(--green);
    color: white;
    box-shadow: 0 3px 5px #07836b10;
}
.secondary {
    background: white;
    border-color: #dfe7e4;
    color: #52676e;
}
.date-chip {
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 10px;
    color: #65777d;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-bottom: 25px;
}
.stats-grid.three {
    grid-template-columns: repeat(3, 1fr);
}
.stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: #667a80;
    margin-bottom: 9px;
}
.stat-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 18px;
}
.green {
    background: #e8f5ee;
    color: #108569;
}
.blue {
    background: #ebf2fe;
    color: #407bc9;
}
.amber {
    background: #fff4e1;
    color: #b4832e;
}
.violet {
    background: #f1ecfb;
    color: #8b76b9;
}
.stat > strong {
    font-family: Manrope, sans-serif;
    font-size: 26px;
    letter-spacing: -0.6px;
    font-weight: 800;
    display: block;
    margin: 0 0 9px;
}
.stat > small {
    display: block;
    color: #8c999e;
    font-size: 10px;
}
.positive {
    color: #229675;
    font-weight: 600;
}
.warning {
    color: #bd8a35;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 23px;
}
.dashboard-main,
.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 21px;
}
.select-button {
    border: 1px solid var(--line);
    padding: 6px 10px;
    min-height: 32px;
    font-size: 10px;
    border-radius: 5px;
    background: white;
    color: #73848b;
}
.chart-summary {
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.chart-summary > strong {
    font-family: Manrope;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.chart-summary > span {
    font-size: 10px;
}
.chart-summary small {
    font-weight: 400;
    color: #99a6ab;
    font-size: 9px;
    margin-left: 4px;
}
.chart {
    height: 226px;
    padding: 24px 23px 24px 18px;
    display: flex;
    gap: 13px;
}
.chart-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #9aa7ab;
    font-size: 9px;
    padding-bottom: 23px;
}
.chart-plot {
    position: relative;
    flex: 1;
    min-width: 0;
}
.gridlines {
    height: calc(100% - 23px);
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        #fff 0,
        #fff calc(33.33% - 1px),
        #edf1f0 calc(33.33% - 1px),
        #edf1f0 33.33%
    );
}
.chart svg {
    position: relative;
    width: 100%;
    height: calc(100% - 23px);
    overflow: visible;
}
.chart-days {
    display: flex;
    justify-content: space-between;
    color: #97a6ab;
    font-size: 9px;
    margin-top: 7px;
}
.text-link {
    background: none;
    border: 0;
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 0;
    min-height: 30px;
    text-align: left;
}
.table-wrap {
    width: 100%;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
    text-align: left;
}
th {
    background: #f9fbfa;
    color: #91a0a5;
    font-weight: 500;
    font-size: 9px;
    padding: 11px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 13px 18px;
    border-bottom: 1px solid #f0f3f2;
    color: #63777f;
}
tr:last-child td {
    border-bottom: 0;
}
.strong {
    font-weight: 600;
    color: #314a52;
}
.badge {
    display: inline-block;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}
.badge.green:before {
    content: "•";
    margin-right: 4px;
}
.quick-actions {
    padding: 0 20px 9px;
}
.quick-actions > button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    width: 100%;
    padding: 10px 0;
    text-align: left;
}
.action-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    font-size: 19px;
    flex-shrink: 0;
}
.quick-actions b {
    font-size: 11px;
    font-weight: 600;
}
.quick-actions small {
    display: block;
    color: #91a0a5;
    font-size: 9px;
    margin-top: 2px;
}
.arrow {
    margin-left: auto;
    color: #a5b2b6;
}
.attention-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #e4a64c;
    margin-right: 6px;
}
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: none;
    border: 0;
    text-align: left;
    width: 100%;
    padding: 0 20px 18px;
}
.alert-card b {
    font-size: 11px;
    font-weight: 600;
}
.alert-card p {
    font-size: 9px;
    margin-top: 3px;
}
.alert-card div > span {
    display: block;
    font-size: 9px;
    color: var(--green);
    font-weight: 600;
    margin-top: 7px;
}
.brand-card {
    padding: 20px 22px;
    background: linear-gradient(120deg, #ebf4f1, #eef4fa);
    border: 1px solid #e2ede8;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.brand-card:after {
    content: "✚";
    position: absolute;
    right: -12px;
    top: -30px;
    font-size: 130px;
    color: #dcece67a;
    transform: rotate(-15deg);
    pointer-events: none;
}
.brand-card-icon {
    color: var(--green);
    font-size: 22px;
    margin-bottom: 9px;
}
.brand-card h3 {
    font-size: 12px;
    position: relative;
    z-index: 1;
}
.brand-card p {
    font-size: 10px;
    line-height: 1.8;
    margin: 6px 0 11px;
    max-width: 220px;
}
.brand-button {
    padding: 0;
    min-height: 26px;
    background: none;
    font-size: 10px;
    color: var(--green);
}
footer {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 35px 22px;
    display: flex;
    justify-content: space-between;
    color: #a1adb1;
    font-size: 9px;
}
.bottom-nav {
    display: none;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}
.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e7e4;
    padding: 0 12px;
    border-radius: 7px;
    flex: 1;
    max-width: 470px;
    background: white;
}
.search-field span {
    font-size: 22px;
    color: #93a3a6;
}
.search-field input {
    border: 0;
    background: none;
    width: 100%;
    font-size: 12px;
    padding-left: 0;
    min-width: 0;
}
.search-field input:focus {
    outline: 0;
}
.search-field:focus-within {
    outline: 2px solid #73baa8;
}
.medicine-name {
    display: flex;
    align-items: center;
    gap: 11px;
    background: none;
    border: 0;
    text-align: left;
    padding: 0;
}
.medicine-name b {
    display: block;
    font-size: 12px;
}
.medicine-name small {
    display: block;
    color: #8c9b9f;
    font-size: 10px;
    margin-top: 4px;
}
.medicine-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    background: #f0f5f4;
    border-radius: 9px;
    font-size: 20px;
    color: #6e998b;
    flex-shrink: 0;
}
.muted {
    color: #8e9ea3;
    font-weight: 400;
}
.block {
    display: block;
}
.table-footer {
    padding: 16px 20px;
    font-size: 10px;
    color: #95a2a6;
    border-top: 1px solid var(--line);
}
.empty {
    padding: 38px 20px;
    text-align: center;
}
.empty > span {
    display: block;
    color: #95b8ad;
    font-size: 30px;
    margin-bottom: 10px;
}
.empty h3 {
    font-size: 13px;
}
.empty p {
    font-size: 11px;
    margin-top: 6px;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #102b3a65;
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    width: 490px;
    max-width: 100%;
    max-height: 90dvh;
    overflow: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 70px #092c3e25;
}
.modal.wide {
    width: 750px;
}
.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 23px;
    border-bottom: 1px solid var(--line);
    background: white;
}
.modal-content {
    padding: 24px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    color: #657a80;
    margin-bottom: 17px;
    min-width: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.full {
    width: 100%;
}
.info {
    border-radius: 7px;
    background: #edf4fc;
    border: 1px solid #dfebf9;
    color: #567c9c;
    padding: 13px;
    font-size: 11px;
    line-height: 1.7;
    margin: 16px 0;
}
.detail-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.large {
    width: 62px;
    height: 62px;
    font-size: 32px;
}
.detail-summary p {
    font-size: 12px;
}
.detail-summary > strong {
    margin-left: auto;
    font-size: 24px;
}
.detail-summary > strong small {
    display: block;
    font-size: 10px;
    color: #8b9e9e;
    font-weight: 400;
}
.section-title {
    font-weight: 600;
    margin: 20px 0 12px;
}
.batch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 16px;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
}
.batch-card p {
    font-size: 11px;
    margin-top: 4px;
}
.batch-card .badge {
    margin-left: 10px;
}
.batch-card input {
    width: 85px;
}
.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 12px;
}
.activity-row strong {
    margin-left: auto;
    color: var(--green);
}
.activity-row p {
    font-size: 10px;
}
.activity-dot {
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
}
.danger {
    background: #fff0f0;
    color: #c34c4c;
    border: 1px solid #f2d9d9;
    border-radius: 6px;
    padding: 9px 12px;
}
.invoice-brand {
    text-align: center;
    padding: 10px 0 25px;
    color: var(--green);
    font-size: 25px;
}
.invoice-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.invoice-brand p {
    font-size: 11px;
}
.total-line {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}
.total-line strong {
    font-size: 24px;
    color: var(--green);
}
.pos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}
.product-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.product-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px;
    text-align: left;
}
.product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 6px;
}
.product-card > b {
    display: block;
    font-size: 14px;
}
.product-card > span:not(.product-top) {
    font-size: 11px;
    color: var(--muted);
}
.product-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    color: var(--green);
}
.product-card small {
    font-size: 9px;
    color: #8e9f9e;
}
.cart-content {
    padding: 0 20px 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item div {
    flex: 1;
}
.cart-item b {
    font-size: 12px;
}
.cart-item small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}
.cart-item input {
    width: 60px;
    min-height: 34px;
    padding: 6px;
}
.cart-items {
    margin-bottom: 20px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.cart-content > p {
    font-size: 10px;
    margin: 12px 0 18px;
}
.form-panel {
    padding: 24px;
}
.form-panel h2 {
    margin-bottom: 20px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px;
}
.purchase-line {
    margin-bottom: 20px;
}
.line-name {
    display: flex;
    align-items: center;
    gap: 12px;
}
.line-name small {
    color: var(--muted);
    font-size: 11px;
}
.batch-editor {
    margin: 0 20px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}
.batch-editor summary {
    padding: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}
.batch-number {
    background: #e7f2ee;
    border-radius: 5px;
    padding: 3px 8px;
    color: var(--green);
    font-size: 10px;
}
.batch-fields {
    padding: 5px 16px 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
}
.batch-fields .field {
    font-size: 10px;
}
.batch-fields input,
.batch-fields select {
    font-size: 11px;
    padding: 8px;
    width: 100%;
}
.add-batch {
    padding: 0 20px 20px;
}
.remove-batch {
    margin: 0 16px 12px;
    color: #bb6666;
}
.sticky-summary {
    position: sticky;
    bottom: 12px;
    padding: 17px 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 5px 30px #183a3112;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.sticky-summary small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.sticky-summary strong {
    font-size: 23px;
    color: var(--green);
}
.error-box {
    background: #fff1ed;
    color: #ae4539;
    border: 1px solid #edc8bf;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}
.error-box p,
.error-text {
    color: #ae4539;
    font-size: 11px;
}
.list-choice {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 12px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
}
.list-choice span {
    color: var(--green);
    font-size: 11px;
}
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.location-card {
    padding: 23px;
}
.location-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}
.location-card h2 {
    margin: 14px 0 8px;
    font-size: 17px;
}
.location-card p {
    font-size: 11px;
    margin-bottom: 22px;
}
.location-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.expiry-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px;
    border-bottom: 1px solid var(--line);
}
.expiry-row > div {
    flex: 1;
}
.expiry-row p {
    font-size: 11px;
    margin-top: 6px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}
.contact-card > div {
    flex: 1;
}
.contact-card p {
    font-size: 11px;
    margin: 4px 0;
}
.contact-card small {
    color: var(--muted);
}
.report-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.report-tabs button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 9px 13px;
    font-size: 11px;
    min-height: 40px;
}
.report-tabs button.selected {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.report-filters {
    align-items: end;
    flex-wrap: wrap;
}
.report-filters .field {
    margin: 0;
    flex: 1;
    min-width: 130px;
}
.report-stock {
    padding: 20px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    align-items: start;
}
.form-panel > p {
    font-size: 11px;
}
.logo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}
.logo-upload p {
    font-size: 10px;
    margin-top: 7px;
}
.upload-button {
    cursor: pointer;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.toggle-row input {
    accent-color: var(--green);
    width: 17px;
    height: 17px;
    min-height: 0;
}
.scan-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
    border: 2px dashed #c9ded6;
    padding: 28px 12px;
    border-radius: 12px;
    color: var(--green);
    font-size: 28px;
}
.scan-upload b {
    font-size: 15px;
}
.scan-upload span {
    font-size: 10px;
    color: var(--muted);
}
.scan-upload input {
    width: 100%;
    font-size: 11px;
    border: 0;
}
.scan-preview {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f8f7;
}
.onboarding {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}
.onboard-mark {
    display: inline-grid;
    place-items: center;
    width: 65px;
    height: 65px;
    background: #e8f4ef;
    color: var(--green);
    font-size: 42px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.onboarding h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.onboarding > p {
    margin-bottom: 20px;
}
.setup-step {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 12px 0;
    padding: 17px;
    text-align: left;
}
.setup-step > span:first-child {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9f3ee;
    color: var(--green);
    height: 29px;
    width: 29px;
}
.setup-step > span:last-child {
    margin-left: auto;
}
.setup-step p {
    font-size: 11px;
    margin-top: 4px;
}
.more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.more-grid button {
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.more-grid button > span:last-child {
    margin-left: auto;
}
#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #1d4239;
    color: white;
    border-radius: 8px;
    box-shadow: 0 6px 25px #142e3325;
    padding: 13px 22px;
    font-size: 12px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    max-width: 90vw;
}
#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
    main {
        padding-top: 40px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
    .chart {
        height: 280px;
    }
    .stat {
        padding: 23px;
    }
    .quick-actions > button {
        padding: 14px 0;
    }
    td {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 215px;
        padding-left: 14px;
        padding-right: 14px;
    }
    .brand strong {
        font-size: 13px;
    }
    .main-wrap {
        margin-left: 215px;
    }
    main {
        padding: 25px 23px;
    }
    header {
        padding: 0 23px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 17px;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat {
        padding: 15px;
    }
    .stat > strong {
        font-size: 23px;
    }
    .date-chip {
        display: none;
    }
    h1 {
        font-size: 25px;
    }
    td,
    th {
        padding-left: 12px;
        padding-right: 12px;
    }
    .pos-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
    .batch-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .brand strong {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-item {
        font-size: 11px;
    }
}
@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 17px;
    }
    .brand-card {
        grid-column: 1/-1;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .global-search > span {
        display: none;
    }
    .global-search kbd {
        display: none;
    }
    .pos-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cart-panel {
        max-width: none;
    }
    .page-heading {
        align-items: flex-start;
    }
    .batch-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body {
        font-size: 13px;
    }
    .sidebar {
        display: none;
    }
    .main-wrap {
        margin-left: 0;
    }
    header {
        height: 62px;
        padding: 0 18px;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .header-actions {
        gap: 12px;
    }
    .global-search {
        font-size: 21px;
    }
    .notification {
        display: none;
    }
    main {
        padding: 24px 17px 18px;
    }
    .page-heading {
        margin-bottom: 22px;
        flex-wrap: wrap;
        gap: 17px;
    }
    .page-heading p {
        font-size: 11px;
        line-height: 1.7;
    }
    h1 {
        font-size: 25px;
    }
    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .page-heading .heading-actions {
        gap: 8px;
    }
    .page-heading .primary,
    .page-heading .secondary {
        font-size: 11px;
    }
    .page-heading .heading-actions:empty {
        display: none;
    }
    .primary,
    .secondary {
        min-height: 44px;
    }
    .stats-grid {
        gap: 11px;
        margin-bottom: 18px;
    }
    .stats-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid.three .stat:last-child {
        grid-column: 1/-1;
    }
    .stat {
        padding: 14px;
    }
    .stat-top {
        font-size: 10px;
        gap: 5px;
    }
    .stat > strong {
        font-size: 24px;
    }
    .stat > small {
        font-size: 9px;
    }
    .stat-icon {
        width: 27px;
        height: 27px;
        font-size: 17px;
    }
    .dashboard-grid {
        gap: 18px;
    }
    .dashboard-main,
    .dashboard-side {
        gap: 18px;
    }
    .dashboard-side {
        display: flex;
    }
    .dashboard-side .panel:first-child {
        order: -1;
    }
    .panel-heading {
        padding: 17px;
    }
    h2 {
        font-size: 14px;
    }
    .chart {
        height: 210px;
        padding: 24px 18px 24px 12px;
    }
    .chart-summary {
        padding: 0 17px;
        gap: 9px;
    }
    .chart-summary > strong {
        font-size: 22px;
    }
    .chart-summary small {
        display: none;
    }
    .chart-summary > span {
        font-size: 9px;
    }
    .dashboard-main .panel:last-child .panel-heading {
        gap: 5px;
    }
    .dashboard-main .panel:last-child h2 {
        font-size: 13px;
    }
    .text-link {
        font-size: 10px;
        min-height: 40px;
    }
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 17px 13px;
        gap: 6px;
    }
    .quick-actions > button {
        gap: 8px;
    }
    .quick-actions .arrow {
        display: none;
    }
    .quick-actions b {
        font-size: 10px;
    }
    .quick-actions small {
        font-size: 8px;
    }
    .action-icon {
        width: 32px;
        height: 32px;
    }
    .quick-actions .action-icon {
        width: 30px;
        height: 34px;
    }
    .brand-card {
        padding: 22px;
    }
    .brand-card h3 {
        font-size: 14px;
    }
    .brand-card p {
        max-width: 270px;
        font-size: 11px;
    }
    .brand-button {
        font-size: 11px;
        min-height: 35px;
    }
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 7px 8px max(8px, env(safe-area-inset-bottom));
        background: #fffffff5;
        backdrop-filter: blur(10px);
        border-top: 1px solid #e1eae6;
        z-index: 30;
        justify-content: space-around;
    }
    .bottom-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: 0;
        color: #8a9b9f;
        font-size: 9px;
        width: 20%;
        min-height: 48px;
    }
    .bottom-nav button > span {
        font-size: 21px;
        line-height: 24px;
    }
    .bottom-nav button.active {
        color: var(--green);
        font-weight: 700;
    }
    .bottom-nav button.active > span {
        background: #e9f5ee;
        border-radius: 8px;
        width: 44px;
    }
    footer {
        padding: 12px 18px 95px;
        font-size: 8px;
        gap: 20px;
    }
    footer > span:first-child {
        display: none;
    }
    .toolbar {
        padding: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .search-field {
        flex-basis: 100%;
        max-width: none;
    }
    .toolbar select {
        flex: 1;
        min-width: 0;
    }
    table,
    thead,
    tbody,
    tr,
    td {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        padding: 13px 17px;
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }
    tr:last-child {
        border-bottom: 0;
    }
    td {
        border: 0;
        padding: 0;
        font-size: 11px;
        min-width: 0;
    }
    td:before {
        content: attr(data-label);
        display: block;
        font-size: 8px;
        color: #93a2a5;
        margin-bottom: 3px;
    }
    td:first-child {
        grid-column: 1/-1;
    }
    td:last-child {
        position: relative;
        text-align: right;
    }
    .table-wrap td .text-link {
        min-height: 25px;
        font-size: 11px;
    }
    .table-wrap td .icon-button {
        min-height: 26px;
        height: 26px;
    }
    .medicine-name {
        min-height: 44px;
    }
    .medicine-name b {
        font-size: 13px;
    }
    .medicine-name small {
        font-size: 10px;
    }
    .dashboard-main td:nth-child(3) {
        display: none;
    }
    .dashboard-main td:first-child {
        grid-column: auto;
    }
    .dashboard-main td:last-child {
        display: none;
    }
    .dashboard-main tr {
        grid-template-columns: 1.3fr 1fr;
    }
    .dashboard-main td:nth-child(4) {
        grid-column: 1;
    }
    .dashboard-main td:nth-child(5) {
        text-align: right;
    }
    .modal-backdrop {
        padding: 12px;
        align-items: center;
    }
    .modal {
        max-height: 88dvh;
        border-radius: 12px;
    }
    .modal-content {
        padding: 19px;
    }
    .modal-header {
        padding: 16px 19px;
    }
    .modal-header h2 {
        font-size: 15px;
    }
    .form-grid {
        gap: 0 12px;
    }
    .field {
        font-size: 10px;
    }
    .field input,
    .field select {
        width: 100%;
        min-width: 0;
        font-size: 12px;
    }
    .form-actions .primary,
    .form-actions .secondary {
        flex: 1;
    }
    .batch-card {
        padding: 13px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    .batch-card input {
        width: 68px;
    }
    .batch-card p {
        font-size: 10px;
    }
    .detail-summary {
        gap: 10px;
        flex-wrap: wrap;
    }
    .detail-summary p {
        font-size: 10px;
    }
    .detail-summary > strong {
        font-size: 20px;
    }
    .detail-summary .large {
        width: 42px;
        height: 42px;
    }
    .pos-grid {
        gap: 18px;
    }
    .product-grid {
        padding: 15px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-card {
        padding: 12px;
    }
    .product-card > b {
        font-size: 12px;
    }
    .product-card > span:not(.product-top) {
        font-size: 10px;
    }
    .product-card > div {
        gap: 5px;
        flex-wrap: wrap;
    }
    .product-card .badge {
        font-size: 7px;
        padding: 3px 4px;
    }
    .product-card .medicine-icon {
        width: 29px;
        height: 29px;
        font-size: 17px;
    }
    .form-panel {
        padding: 20px 17px;
    }
    .section-heading h2 {
        font-size: 13px;
    }
    .section-heading .secondary {
        font-size: 10px;
        padding: 10px;
    }
    .line-name {
        gap: 9px;
    }
    .line-name h2 {
        font-size: 12px;
    }
    .line-name small {
        font-size: 9px;
    }
    .purchase-line .panel-heading {
        padding: 14px;
    }
    .purchase-line .panel-heading > .text-link {
        font-size: 9px;
    }
    .batch-editor {
        margin: 0 12px 12px;
    }
    .batch-editor summary {
        font-size: 11px;
        padding: 11px;
    }
    .batch-fields {
        padding: 5px 11px 0;
        gap: 0 10px;
    }
    .batch-fields .field {
        font-size: 9px;
    }
    .add-batch {
        padding: 0 12px 14px;
    }
    .sticky-summary {
        bottom: 78px;
        padding: 12px;
        gap: 8px;
    }
    .sticky-summary strong {
        font-size: 19px;
    }
    .sticky-summary small {
        font-size: 8px;
    }
    .sticky-summary .heading-actions {
        gap: 5px;
    }
    .sticky-summary button {
        padding: 9px;
        font-size: 9px;
        min-height: 42px;
    }
    .location-grid {
        gap: 12px;
    }
    .location-card {
        padding: 17px;
    }
    .location-card h2 {
        font-size: 14px;
    }
    .location-card p {
        font-size: 10px;
    }
    .location-top {
        margin-bottom: 15px;
        gap: 5px;
    }
    .location-bottom {
        flex-wrap: wrap;
        gap: 0;
    }
    .location-bottom .text-link {
        min-height: 32px;
        font-size: 9px;
    }
    .expiry-row {
        padding: 17px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .expiry-row > div {
        flex-basis: 70%;
    }
    .expiry-row h3 {
        font-size: 12px;
    }
    .expiry-row p {
        font-size: 10px;
    }
    .expiry-row > .badge {
        margin-left: 42px;
    }
    .expiry-row > .secondary {
        margin-left: auto;
    }
    .contact-card {
        padding: 18px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .contact-card h3 {
        font-size: 12px;
    }
    .contact-card p {
        font-size: 10px;
    }
    .report-tabs {
        gap: 7px;
    }
    .report-tabs button {
        font-size: 10px;
        padding: 8px 10px;
    }
    .report-filters .field {
        flex-basis: 40%;
        min-width: 0;
    }
    .report-stock {
        padding: 13px;
    }
    .settings-grid {
        gap: 18px;
    }
    .onboarding {
        padding: 24px 16px;
    }
    .onboarding h2 {
        font-size: 20px;
    }
    .onboarding > p {
        font-size: 11px;
    }
    .setup-step {
        padding: 13px;
        gap: 10px;
    }
    .setup-step b {
        font-size: 12px;
    }
    .setup-step p {
        font-size: 10px;
    }
    .more-grid {
        grid-template-columns: 1fr;
    }
    .more-grid button {
        min-height: 65px;
    }
    .more-grid b {
        font-size: 12px;
    }
    #toast {
        bottom: 90px;
        width: max-content;
        max-width: 90vw;
        font-size: 11px;
        text-align: center;
    }
    .error-box p {
        font-size: 10px;
    }
}
@media print {
    body {
        background: white;
    }
    .sidebar,
    .main-wrap,
    .bottom-nav,
    #toast,
    .modal-header,
    .form-actions {
        display: none !important;
    }
    .modal-backdrop {
        position: static;
        display: block;
        background: none;
        padding: 0;
    }
    .modal {
        max-height: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }
    .modal-content {
        padding: 0;
    }
    #print-area {
        display: block;
    }
    table {
        display: table;
    }
    tbody {
        display: table-row-group;
    }
    thead {
        display: table-header-group;
    }
    tr {
        display: table-row;
    }
    td,
    th {
        display: table-cell;
    }
}
.mobile-brand {
    display: none;
}
@media (max-width: 767px) {
    header .breadcrumb {
        display: none;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--navy);
        min-width: 0;
    }
    .mobile-brand .logo {
        width: 30px;
        height: 32px;
        font-size: 24px;
        border-radius: 8px;
    }
    .mobile-brand b {
        font-family: Manrope, sans-serif;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
    }
    header .header-actions {
        gap: 8px;
    }
    header .global-search {
        display: none;
    }
}
.scan-intro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.scan-intro p {
    font-size: 12px;
    margin-top: 6px;
}
.invoice-capture-actions {
    display: flex;
    gap: 12px;
}
.invoice-capture-actions label {
    flex: 1;
}
.scan-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 22px 0;
    font-size: 10px;
    color: var(--green);
}
.invoice-scan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
}
.invoice-photo-panel {
    background: #f4f7f6;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 10px;
    align-self: start;
}
.invoice-photo-panel img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
}
.invoice-photo-panel small {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 10px;
    color: var(--muted);
}
.scan-line {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.scan-line p {
    font-size: 11px;
    margin-top: 5px;
}
.scan-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    color: #60777d;
    margin: 20px 0;
}
.scan-consent input {
    min-height: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--green);
}
.invoice-source {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #cce1eb;
    background: #edf5fa;
    padding: 15px;
    border-radius: 9px;
    margin-bottom: 18px;
}
.invoice-source img {
    width: 42px;
    height: 52px;
    object-fit: cover;
    border-radius: 5px;
}
.invoice-source div {
    flex: 1;
}
.invoice-source p {
    font-size: 11px;
    margin-top: 3px;
}
.invoice-full-photo {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
@media (max-width: 767px) {
    .invoice-scan-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .invoice-photo-panel img {
        max-height: 190px;
    }
    .invoice-source {
        gap: 9px;
        flex-wrap: wrap;
    }
    .invoice-source b {
        font-size: 12px;
    }
    .invoice-source p {
        font-size: 10px;
    }
    .invoice-source .secondary {
        margin-left: auto;
    }
    .invoice-capture-actions {
        flex-wrap: wrap;
    }
    .scan-steps {
        font-size: 9px;
    }
    .page-heading .heading-actions {
        flex-wrap: wrap;
    }
}
