@font-face { font-family: Inter; src: url('../assets/fonts/inter-400.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-600.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('../assets/fonts/inter-700.ttf'); font-weight: 700; font-display: swap; }

:root {
    --ink: #203438;
    --muted: #667b80;
    --soft: #f3f6f7;
    --line: #dce5e7;
    --green: #087f80;
    --green-dark: #066869;
    --green-soft: #e4f4f1;
    --shadow: none;
    font-family: Inter, sans-serif;
}
body { background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--green); }
.sidebar { width: 248px; padding: 24px; gap: 24px; overflow-y: auto; }
.brand { padding: 0; color: var(--green); font-size: 19px; font-weight: 700; letter-spacing: normal; }
.nav { display: grid; gap: 12px; margin: 0; }
.nav-label { display: none; }
.nav-item { min-height: 44px; margin: 0; padding: 12px; border-radius: 8px; color: var(--ink); font-weight: 400; }
.nav-item.active { color: var(--green); font-weight: 600; }
.nav-item svg { display: none; }
.sidebar .profile { margin: 0; }
.profile strong, .profile small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.sidebar .logout-button { align-self: flex-start; margin: 0; padding: 0 8px; border: 0; background: transparent; }
.sidebar-foot { padding: 0; color: var(--muted); }
.sidebar-foot > p { display: none; }
.main { margin-left: 248px; padding: 32px; }
.topbar { min-height: 0; padding: 0; border: 0; background: transparent; backdrop-filter: none; align-items: flex-start; }
.topbar > div { min-width: 0; }
.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 13px; font-weight: 400; }
.breadcrumbs span { margin: 0 7px; color: inherit; }
.topbar h1, .login-page h1 { font-size: 28px; font-weight: 700; line-height: 1.45; letter-spacing: normal; }
.page-description, #page-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.content { width: 100%; max-width: none; margin: 24px 0 0; padding: 0; }
.intro { justify-content: flex-end; margin-bottom: 24px; }
.secondary-button, .primary-button { min-height: 44px; height: auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); font-size: 14px; font-weight: 600; box-shadow: none; }
.secondary-button:hover { background: var(--soft); border-color: var(--green); }
.primary-button { color: white; background: var(--green); border-color: transparent; }
.primary-button:hover { background: var(--green-dark); }
.catalog-card { border-radius: 12px; }
.search input, .pharmacy-form input { border-color: var(--line); border-radius: 8px; }
.search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(8 127 128 / 12%); }
.search input::placeholder { color: var(--muted); }
.search > svg, .search button { color: var(--muted); }
th { background: var(--soft); color: var(--muted); }
td, .product-cell strong { color: var(--ink); }
td::before { font-family: inherit; }

.login-page .page { place-content: normal; place-items: center; }
.login-page .login-card { width: min(100%, 440px); padding: 32px; border-color: var(--line); box-shadow: none; }
.login-page .eyebrow { margin: 0 0 24px; color: var(--green); font-size: 19px; font-weight: 700; }
.login-page .description { margin: 6px 0 24px; color: var(--muted); line-height: 1.45; }
.login-page label { margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.login-page input { height: 44px; margin-bottom: 24px; padding: 10px 12px; border-color: var(--line); border-radius: 8px; color: var(--ink); }
.login-page input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(8 127 128 / 12%); }
.login-page input::placeholder { color: var(--muted); }
.login-page button { height: 44px; border-radius: 8px; background: var(--green); font-weight: 600; }
.login-page button:hover { background: var(--green-dark); }
.login-help { margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

@media (max-width: 920px) {
    .main { margin-left: 0; padding: 24px; }
    .menu-button { flex-shrink: 0; margin: 0 12px 0 0; }
    .sidebar .profile > span:last-child { display: grid; }
}
@media (max-width: 680px) {
    .main { padding: 20px 16px; }
    .topbar h1 { overflow-wrap: anywhere; }
    .breadcrumbs { margin-bottom: 12px; font-size: 12px; }
    .sidebar .logout-button { margin-left: 0; }
    .login-page .page { padding: 16px; }
    .login-page .login-card { padding: 28px 22px; }
}
