:root {
    color-scheme: light;
    --bg: #eef3f2;
    --bg-soft: #f7f9f8;
    --ink: #172523;
    --muted: #6f7f7c;
    --line: #d9e3e0;
    --line-strong: #c9d6d2;
    --panel: #ffffff;
    --panel-soft: #f8fbfa;
    --accent: #0f8a6d;
    --accent-dark: #08664f;
    --accent-soft: #dff3ec;
    --blue: #3a72c2;
    --blue-soft: #e7effb;
    --coral: #ee765d;
    --coral-soft: #fcedea;
    --gold: #d9a441;
    --gold-soft: #fff6df;
    --purple: #8465c9;
    --shadow: 0 8px 24px rgba(31, 61, 55, .07);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    letter-spacing: 0;
}

.icon-sprite {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.icon {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.topbar {
    align-items: center;
    background: #12352f;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    gap: 22px;
    min-height: 72px;
    padding: 10px 26px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: #55c6a6;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #073b30;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.brand-mark.large {
    font-size: 18px;
    height: 48px;
    width: 48px;
}

.brand span:last-child {
    display: grid;
    gap: 2px;
}

.brand b {
    font-size: 17px;
}

.brand small {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.nav {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    align-items: center;
    border-radius: 7px;
    color: rgba(255, 255, 255, .76);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
    min-height: 42px;
    padding: 9px 10px;
    transition: background-color .16s ease, color .16s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.topbar-tools {
    align-items: center;
    display: flex;
    gap: 9px;
}

.topbar-tools form {
    display: flex;
}

.language-switch {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    display: inline-flex;
    padding: 3px;
}

.language-switch a {
    border-radius: 6px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 9px;
}

.language-switch a.active {
    background: #fff;
    color: #12352f;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: background-color .16s ease, border-color .16s ease;
    width: 40px;
}

.topbar .icon-button {
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .76);
}

.topbar .icon-button:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.mobile-nav {
    display: none;
}

.page {
    margin: 0 auto;
    max-width: 1480px;
    padding: 28px;
}

.dashboard-hero,
.hero,
.section-head,
.panel-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.dashboard-hero {
    margin-bottom: 20px;
}

.hero,
.section-head {
    margin-bottom: 20px;
}

.dashboard-hero h1,
.hero h1,
.section-head h1 {
    font-size: 36px;
    line-height: 1.08;
    margin: 5px 0 0;
}

.hero-note {
    color: var(--muted);
    margin: 7px 0 0;
}

.eyebrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0;
    text-transform: uppercase;
}

.month-control {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 11px;
    padding: 5px;
}

.month-control span {
    font-size: 14px;
    font-weight: 800;
    min-width: 116px;
    text-align: center;
}

.month-control .icon-button {
    background: var(--panel-soft);
    border-color: transparent;
    height: 34px;
    width: 34px;
}

.quick-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 18px;
}

.quick-action {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #35514d;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 9px;
    min-height: 54px;
    padding: 10px 12px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.quick-action:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.quick-action .icon {
    color: var(--accent);
    flex: 0 0 auto;
}

.quick-action.primary-action {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.quick-action.primary-action .icon {
    color: #fff;
}

.metric-grid,
.stats-grid,
.history-grid,
.product-grid {
    display: grid;
    gap: 12px;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 154px;
    padding: 17px;
    position: relative;
}

.metric-icon {
    align-items: center;
    border-radius: 7px;
    display: flex;
    height: 36px;
    justify-content: center;
    margin-bottom: 18px;
    width: 36px;
}

.metric-card span,
.metric-card small,
.stats-grid span,
.row span,
.muted,
small {
    color: var(--muted);
}

.metric-card span {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.08;
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.metric-card small {
    font-size: 12px;
}

.metric-sales .metric-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.metric-profit .metric-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

.metric-expense .metric-icon {
    background: var(--coral-soft);
    color: var(--coral);
}

.metric-stock .metric-icon {
    background: var(--gold-soft);
    color: #ad7b1e;
}

.dashboard-grid,
.lower-dashboard,
.split {
    display: grid;
    gap: 16px;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .85fr);
    margin-bottom: 16px;
}

.lower-dashboard,
.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-panel,
.panel,
.stats-grid article,
.history-grid article,
.product-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(31, 61, 55, .035);
}

.analytics-panel {
    min-width: 0;
    padding: 17px;
}

.trend-panel {
    min-height: 366px;
}

.panel-heading {
    min-height: 42px;
    margin-bottom: 12px;
}

.panel-heading h2 {
    font-size: 17px;
    margin: 5px 0 0;
}

.panel-heading > a,
.section-head > a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.chart-legend span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
}

.legend-dot {
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.sales-dot {
    background: var(--blue);
}

.profit-dot {
    background: var(--accent);
}

.trend-chart {
    max-width: 100%;
    min-height: 286px;
    width: 100%;
}

.trend-chart svg {
    display: block;
    height: auto;
    overflow: visible;
    width: 100%;
}

.chart-grid-line {
    stroke: #e5ecea;
    stroke-width: 1;
}

.chart-axis-label,
.chart-day-label {
    fill: var(--muted);
    font-size: 11px;
}

.chart-day-label {
    text-anchor: middle;
}

.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.chart-line.sales-line {
    stroke: var(--blue);
}

.chart-line.profit-line {
    stroke: var(--accent);
}

.chart-point {
    fill: #fff;
    stroke-width: 2;
}

.chart-point.sales-line {
    stroke: var(--blue);
}

.chart-point.profit-line {
    stroke: var(--accent);
}

.donut-layout,
.expense-layout {
    align-items: center;
    display: grid;
    gap: 12px;
}

.donut-layout {
    grid-template-columns: 154px minmax(0, 1fr);
    min-height: 210px;
}

.expense-layout {
    grid-template-columns: 132px minmax(0, 1fr);
}

.donut-chart {
    aspect-ratio: 1;
    position: relative;
}

.donut-chart svg {
    display: block;
    height: 100%;
    transform: rotate(-90deg);
    width: 100%;
}

.donut-track,
.donut-segment {
    fill: none;
    stroke-width: 11;
}

.donut-track {
    stroke: #ecf1f0;
}

.donut-segment {
    stroke-linecap: round;
}

.donut-chart > div {
    align-items: center;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
}

.donut-chart strong {
    font-size: 17px;
    max-width: 72%;
    overflow-wrap: anywhere;
    text-align: center;
}

.donut-chart span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.donut-chart.small strong {
    font-size: 14px;
}

.donut-legend {
    display: grid;
    gap: 10px;
}

.donut-legend > div,
.donut-legend > div > span {
    align-items: center;
    display: flex;
    gap: 7px;
}

.donut-legend > div {
    justify-content: space-between;
}

.donut-legend i {
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    height: 9px;
    width: 9px;
}

.donut-legend em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.donut-legend b {
    font-size: 12px;
}

.activity-list,
.list {
    display: grid;
}

.activity-row,
.row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 11px;
    justify-content: space-between;
    padding: 11px 0;
}

.activity-row:last-child,
.row:last-child {
    border-bottom: 0;
}

.activity-row > div:nth-child(2),
.row div {
    display: grid;
    gap: 4px;
    margin-right: auto;
    min-width: 0;
}

.activity-row strong,
.row strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.activity-row span,
.row span {
    font-size: 12px;
}

.activity-row b {
    color: var(--accent-dark);
    flex: 0 0 auto;
    font-size: 13px;
}

.activity-icon {
    align-items: center;
    background: var(--blue-soft);
    border-radius: 7px;
    color: var(--blue);
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.activity-icon.external {
    background: var(--gold-soft);
    color: #ad7b1e;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.stats-grid article,
.history-grid article,
.product-grid article {
    padding: 17px;
}

.stats-grid strong {
    display: block;
    font-size: 24px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.region-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.region {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 13px;
    transition: border-color .16s ease, transform .16s ease;
}

.region:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.region span,
.region small {
    color: var(--muted);
    font-size: 12px;
}

.region strong {
    font-size: 24px;
}

.warehouse-section {
    margin: 0 0 16px;
}

.compact-head {
    margin-bottom: 10px;
}

.compact-head h2 {
    font-size: 19px;
    margin: 5px 0 0;
}

.warehouse-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.warehouse-card {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.warehouse-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.warehouse-card-icon {
    align-items: center;
    background: var(--gold-soft);
    border-radius: 7px;
    color: #ad7b1e;
    display: flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.warehouse-card > div:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.warehouse-card strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.warehouse-card span {
    color: var(--muted);
    font-size: 12px;
}

.warehouse-arrow {
    color: var(--muted);
    flex: 0 0 auto;
    margin-left: auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button,
.primary {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.button {
    background: var(--panel);
    border-color: var(--line);
}

.button:hover {
    border-color: var(--accent);
}

.primary {
    background: var(--accent);
    color: #fff;
}

.primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 5px 14px rgba(15, 138, 109, .18);
}

.form-shell {
    margin: 0 auto;
    max-width: 760px;
}

.form-shell.wide {
    max-width: 930px;
}

.panel {
    padding: 18px;
}

.form {
    display: grid;
    gap: 15px;
}

.form label,
.report-filter label {
    display: grid;
    gap: 7px;
}

.form label > span,
.report-filter label > span {
    color: #344a46;
    font-size: 13px;
    font-weight: 800;
}

.form input,
.form select,
.form textarea,
.stock-search input,
.stock-search select,
.report-filter input {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.stock-search input:focus,
.stock-search select:focus,
.report-filter input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 138, 109, .12);
    outline: 0;
}

.stock-search {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(220px, 1fr) 180px auto auto;
    margin-bottom: 14px;
    padding: 11px;
}

.stock-search-wide {
    grid-template-columns: minmax(220px, 1fr) 160px 200px auto auto;
}

.choice-list {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    width: 100%;
}

.choice-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    line-height: 1.25;
    padding: 12px 14px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.choice-card:hover,
.choice-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 138, 109, .11);
}

.choice-card strong {
    overflow-wrap: anywhere;
}

.choice-card span,
.empty-inline {
    color: var(--muted);
}

.empty-inline,
.empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
}

.return-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 940px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px;
    text-align: left;
}

th {
    background: #e8f1ee;
    color: #61736f;
    font-size: 11px;
    text-transform: uppercase;
}

td {
    font-size: 14px;
}

.table-actions {
    display: grid;
    gap: 6px;
    min-width: 102px;
}

td:last-child,
th:last-child {
    width: 120px;
}

.mini-button {
    align-items: center;
    background: #e8f4f0;
    border: 1px solid #d0e6df;
    border-radius: 6px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.15;
    min-height: 31px;
    padding: 6px 9px;
    text-align: center;
    white-space: nowrap;
}

.history-grid,
.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid article {
    display: grid;
    gap: 6px;
}

.product-grid strong {
    font-size: 22px;
}

.report-filter {
    align-items: end;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 11px;
    grid-template-columns: 1fr 1fr auto;
    margin-bottom: 14px;
    padding: 12px;
}

.month-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.month-tabs::-webkit-scrollbar {
    display: none;
}

.month-tabs a {
    border-radius: 7px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
}

.month-tabs a.active {
    background: var(--accent);
    color: #fff;
}

.daily-report {
    display: grid;
    gap: 16px;
}

.day-group {
    display: grid;
    gap: 9px;
}

.day-group header {
    align-items: end;
    display: flex;
    justify-content: space-between;
}

.day-group h2 {
    font-size: 20px;
    margin: 0 0 4px;
}

.day-group header span,
.day-group header strong {
    color: var(--muted);
    font-size: 13px;
}

.day-items {
    display: grid;
    gap: 7px;
}

.report-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 11px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 11px;
}

.report-icon {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 7px;
    color: var(--accent-dark);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.report-row div:nth-child(2) {
    display: grid;
    gap: 4px;
}

.report-row span {
    color: var(--muted);
    font-size: 13px;
}

.report-row b {
    font-size: 16px;
    white-space: nowrap;
}

.messages {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.message {
    background: #e3f6ee;
    border: 1px solid #bce4d6;
    border-radius: 8px;
    padding: 11px 13px;
}

.errorlist {
    color: #bf523f;
    margin: 0;
    padding-left: 20px;
}

.auth-body {
    background: #dce9e6;
}

.auth-body .page {
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    min-height: 100vh;
}

.login-showcase {
    background-color: #12352f;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: 34px 44px;
    position: relative;
}

.login-showcase-top {
    align-items: center;
    display: flex;
    gap: 12px;
}

.showcase-label {
    font-size: 17px;
    font-weight: 900;
}

.tire-visual {
    height: 420px;
    position: absolute;
    right: -30px;
    top: 105px;
    width: 420px;
}

.tire-ring,
.tire-core {
    border-radius: 50%;
    position: absolute;
}

.tire-ring {
    border-style: solid;
}

.ring-one {
    border-color: rgba(92, 205, 174, .25);
    border-width: 62px;
    inset: 0;
}

.ring-two {
    border-color: rgba(255, 255, 255, .12);
    border-width: 20px;
    inset: 86px;
}

.ring-three {
    border-color: rgba(92, 205, 174, .38);
    border-width: 8px;
    inset: 126px;
}

.tire-core {
    align-items: center;
    background: #55c6a6;
    color: #0a4b3e;
    display: flex;
    inset: 166px;
    justify-content: center;
}

.showcase-copy {
    max-width: 540px;
    position: relative;
    z-index: 1;
}

.showcase-copy .eyebrow {
    color: #75d2b8;
}

.showcase-copy h1 {
    font-size: 48px;
    line-height: 1.05;
    margin: 12px 0 16px;
    max-width: 520px;
}

.showcase-copy p:last-child {
    color: rgba(255, 255, 255, .68);
    font-size: 17px;
    line-height: 1.55;
    max-width: 460px;
}

.showcase-metrics {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.showcase-metrics div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    min-width: 128px;
    padding: 14px;
}

.showcase-metrics b {
    color: #75d2b8;
    font-size: 21px;
}

.showcase-metrics span {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}

.login-panel {
    align-self: center;
    background: var(--panel);
    border: 1px solid rgba(23, 60, 53, .1);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(17, 54, 47, .14);
    justify-self: center;
    max-width: 460px;
    padding: 34px;
    width: calc(100% - 48px);
}

.auth-language {
    background: var(--bg);
    border-color: var(--line);
    margin-bottom: 28px;
}

.auth-language a {
    color: var(--muted);
}

.auth-language a.active {
    background: var(--accent);
    color: #fff;
}

.login-panel-head h2 {
    font-size: 30px;
    margin: 7px 0 8px;
}

.login-panel-head > p:last-child {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.login-form input {
    min-height: 50px;
}

.login-submit {
    gap: 8px;
    justify-content: space-between;
    min-height: 50px;
    padding-inline: 16px;
}

.login-foot {
    color: var(--muted);
    font-size: 12px;
    margin: 18px 0 0;
    text-align: center;
}

.simple-login-shell {
    align-items: center;
    background: #dce9e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 72px 18px 32px;
    position: relative;
}

.simple-login-brand {
    align-items: center;
    color: #12352f;
    display: flex;
    gap: 10px;
    left: 28px;
    position: absolute;
    top: 24px;
}

.simple-login-brand strong {
    font-size: 17px;
}

.simple-login-panel {
    background: #14352f;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(20, 53, 47, .2);
    color: #fff;
    max-width: 410px;
    padding: 54px 34px 26px;
    position: relative;
    width: 100%;
}

.simple-login-badge {
    align-items: center;
    background: #55c6a6;
    border: 6px solid #dce9e6;
    border-radius: 50%;
    color: #0a4b3e;
    display: flex;
    height: 74px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: -37px;
    transform: translateX(-50%);
    width: 74px;
}

.simple-login-badge .icon {
    height: 29px;
    stroke-width: 2.2;
    width: 29px;
}

.simple-login-panel .auth-language {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    margin: 0 0 22px;
}

.simple-login-panel .auth-language a {
    color: rgba(255, 255, 255, .68);
}

.simple-login-panel .auth-language a.active {
    background: #55c6a6;
    color: #0a4b3e;
}

.simple-login-heading {
    text-align: center;
}

.simple-login-heading .eyebrow {
    color: rgba(255, 255, 255, .54);
}

.simple-login-heading h1 {
    font-size: 29px;
    margin: 8px 0 23px;
}

.simple-login-form {
    display: grid;
    gap: 17px;
}

.simple-login-field {
    display: grid;
    gap: 6px;
}

.simple-login-field > span {
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 700;
}

.simple-login-field > div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
    display: flex;
    gap: 9px;
    transition: border-color .16s ease;
}

.simple-login-field > div:focus-within {
    border-color: #55c6a6;
}

.simple-login-field .icon {
    color: rgba(255, 255, 255, .5);
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.simple-login-field input {
    background: transparent;
    border: 0;
    color: #fff;
    font: inherit;
    min-height: 44px;
    outline: 0;
    width: 100%;
}

.simple-login-submit {
    align-items: center;
    background: #55c6a6;
    border: 0;
    border-radius: 7px;
    color: #093e34;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    justify-content: space-between;
    margin-top: 8px;
    min-height: 46px;
    padding: 10px 14px;
    transition: background-color .16s ease, transform .16s ease;
    width: 100%;
}

.simple-login-submit:hover {
    background: #75d2b8;
    transform: translateY(-1px);
}

.simple-login-foot {
    color: rgba(255, 255, 255, .47);
    font-size: 11px;
    margin: 20px 0 0;
    text-align: center;
}

.smart-login-shell {
    align-items: center;
    background: #5742c6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 88px 18px 44px;
    position: relative;
}

.login-shape {
    background: rgba(30, 22, 82, .14);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    position: absolute;
    transform: rotate(-8deg);
}

.shape-one {
    height: 280px;
    left: -56px;
    top: 18%;
    width: 230px;
}

.shape-two {
    bottom: -88px;
    height: 250px;
    right: 7%;
    transform: rotate(12deg);
    width: 250px;
}

.shape-three {
    height: 128px;
    right: 15%;
    top: 11%;
    transform: rotate(6deg);
    width: 168px;
}

.smart-login-brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 10px;
    left: 28px;
    position: absolute;
    top: 24px;
}

.smart-login-brand div {
    display: grid;
    gap: 2px;
}

.smart-login-brand strong {
    font-size: 17px;
}

.smart-login-brand span:last-child {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
}

.smart-login-wrap {
    max-width: 430px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.smart-login-kicker {
    color: #ffe05b;
    font-size: 27px;
    font-weight: 900;
    margin: 0 0 22px;
    text-align: center;
    text-shadow: 0 3px 0 rgba(37, 26, 100, .42);
}

.smart-login-card {
    background: #1e1d39;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(35, 24, 104, .28);
    color: #fff;
    padding: 54px 30px 22px;
    position: relative;
}

.smart-login-avatar {
    align-items: center;
    background: #ffe05b;
    border: 6px solid #5742c6;
    border-radius: 50%;
    color: #29223d;
    display: flex;
    height: 74px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: -37px;
    transform: translateX(-50%);
    width: 74px;
}

.smart-login-avatar .icon {
    height: 30px;
    stroke-width: 2.3;
    width: 30px;
}

.smart-login-topline {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.smart-login-topline > span {
    color: #ffe05b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smart-language {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

.smart-language a {
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    padding: 5px 7px;
}

.smart-language a.active {
    background: #ffe05b;
    color: #342a58;
}

.smart-login-field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.smart-login-field > span {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 700;
}

.smart-login-field > div {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    gap: 9px;
    transition: border-color .16s ease;
}

.smart-login-field > div:focus-within {
    border-color: #ffe05b;
}

.smart-login-field input {
    background: transparent;
    border: 0;
    color: #fff;
    font: inherit;
    min-height: 42px;
    outline: 0;
    width: 100%;
}

.smart-login-field .icon {
    color: rgba(255, 255, 255, .48);
    flex: 0 0 auto;
    height: 15px;
    width: 15px;
}

.smart-login-action-zone {
    align-items: center;
    display: flex;
    height: 74px;
    justify-content: center;
    overflow: visible;
}

.smart-login-submit {
    align-items: center;
    background: #ffe05b;
    border: 0;
    border-radius: 999px;
    color: #2d2545;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    gap: 10px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    transition: background-color .16s ease, box-shadow .16s ease, transform .2s ease;
    width: 134px;
}

.smart-login-submit .icon {
    height: 15px;
    width: 15px;
}

.smart-login-submit.ready,
.smart-login-submit:hover {
    background: #ffea85;
    box-shadow: 0 5px 13px rgba(255, 224, 91, .2);
}

.smart-login-hint {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    line-height: 1.4;
    margin: 4px 0 0;
    min-height: 16px;
    text-align: center;
}

.smart-login-card .errorlist {
    color: #ffbdb1;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .topbar {
        gap: 12px;
        padding-inline: 18px;
    }

    .nav a {
        font-size: 13px;
        padding-inline: 8px;
    }

    .nav a .icon {
        display: none;
    }

    .quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-showcase {
        padding: 28px;
    }

    .showcase-copy h1 {
        font-size: 42px;
    }
}

@media (max-width: 820px) {
    .app-body {
        padding-bottom: 70px;
    }

    .topbar {
        justify-content: space-between;
        min-height: 62px;
        padding: 8px 14px;
        position: sticky;
    }

    .brand-mark {
        height: 36px;
        width: 36px;
    }

    .brand b {
        font-size: 15px;
    }

    .brand small {
        display: none;
    }

    .nav {
        display: none;
    }

    .topbar-tools {
        margin-left: auto;
    }

    .language-switch a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .topbar .icon-button {
        height: 36px;
        width: 36px;
    }

    .mobile-nav {
        align-items: center;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line);
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: 66px;
        left: 0;
        position: fixed;
        right: 0;
        z-index: 25;
    }

    .mobile-nav a {
        align-items: center;
        color: var(--muted);
        display: flex;
        flex-direction: column;
        font-size: 10px;
        font-weight: 800;
        gap: 4px;
        justify-content: center;
        min-width: 0;
    }

    .mobile-nav a:hover {
        color: var(--accent);
    }

    .mobile-nav .icon {
        height: 20px;
        width: 20px;
    }

    .page {
        padding: 16px;
    }

    .dashboard-hero,
    .hero,
    .section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-hero h1,
    .hero h1,
    .section-head h1 {
        font-size: 29px;
    }

    .month-control {
        align-self: flex-start;
    }

    .quick-actions {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action {
        font-size: 12px;
        min-height: 50px;
        padding: 9px 10px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-card {
        min-height: 136px;
        padding: 14px;
    }

    .metric-icon {
        height: 32px;
        margin-bottom: 14px;
        width: 32px;
    }

    .metric-card strong {
        font-size: 23px;
    }

    .dashboard-grid,
    .lower-dashboard,
    .split,
    .stats-grid,
    .history-grid,
    .product-grid,
    .region-grid,
    .warehouse-grid,
    .stock-search,
    .report-filter {
        grid-template-columns: 1fr;
    }

    .analytics-panel {
        padding: 14px;
    }

    .trend-panel {
        min-height: 0;
    }

    .trend-chart {
        max-width: 100%;
        min-height: 0;
        overflow-x: auto;
        padding-top: 6px;
        width: 100%;
    }

    .trend-chart svg {
        min-width: 660px;
    }

    .donut-layout {
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 166px;
    }

    .expense-layout {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .donut-legend {
        gap: 8px;
    }

    .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-search {
        padding: 9px;
    }

    .choice-card {
        align-items: start;
        display: grid;
        gap: 5px;
        justify-content: stretch;
    }

    .day-group header {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .report-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .report-icon {
        height: 38px;
        width: 38px;
    }

    .report-row b {
        grid-column: 2;
        justify-self: start;
    }

    table {
        min-width: 940px;
    }

    th,
    td {
        padding: 11px 9px;
    }

    .table-actions {
        gap: 7px;
        min-width: 104px;
    }

    .table-actions .mini-button {
        display: flex;
        font-size: 13px;
        min-height: 35px;
        width: 100%;
    }

    .login-shell {
        display: block;
        min-height: 100vh;
        padding: 120px 0 40px;
        position: relative;
    }

    .login-showcase {
        display: block;
        inset: 0 0 auto;
        min-height: 250px;
        padding: 18px;
        position: absolute;
    }

    .login-showcase-top {
        position: relative;
        z-index: 1;
    }

    .tire-visual {
        height: 250px;
        right: -55px;
        top: 12px;
        width: 250px;
    }

    .ring-one {
        border-width: 38px;
    }

    .ring-two {
        border-width: 12px;
        inset: 52px;
    }

    .ring-three {
        border-width: 5px;
        inset: 78px;
    }

    .tire-core {
        inset: 102px;
    }

    .showcase-copy,
    .showcase-metrics {
        display: none;
    }

    .login-panel {
        padding: 24px;
        position: relative;
        width: calc(100% - 28px);
        z-index: 2;
    }

    .auth-language {
        margin-bottom: 22px;
    }

    .login-panel-head h2 {
        font-size: 26px;
    }

    .simple-login-shell {
        padding-inline: 14px;
    }

    .simple-login-brand {
        left: 18px;
        top: 18px;
    }

    .simple-login-panel {
        padding: 50px 24px 24px;
    }

    .smart-login-brand {
        left: 18px;
        top: 18px;
    }

    .smart-login-kicker {
        font-size: 24px;
    }
}
