@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --bg: #f6f2ea;
    --bg-accent: #fefbf7;
    --primary: #2f3a2c;
    --secondary: #ff7a51;
    --accent: #3d7b8f;
    --card: #ffffff;
    --muted: #6b6b63;
    --border: #e3dacd;
    --shadow: 0 16px 40px rgba(32, 35, 32, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #fffdf8 0%, var(--bg) 45%, #efe6d9 100%);
    color: var(--primary);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

h1, h2, h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    margin: 0 0 12px;
}

p {
    margin: 0 0 12px;
}

.muted {
    color: var(--muted);
}

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

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.with-sidebar .page {
    max-width: none;
    padding: 0;
}

.layout {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 260px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    overflow-y: auto;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #f3c7b8;
    background: #fff3ea;
    padding: 6px;
    object-fit: contain;
}

.sidebar-user {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.user-name {
    font-weight: 600;
    margin: 0 0 4px;
}

.user-role {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.nav-item {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item.is-active {
    background: #ffe9df;
    border-color: #ffc9b5;
    color: #b5431e;
}

.nav-badge {
    background: #1f6a35;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.nav-badge.warn {
    background: #d84b3d;
}

.nav-badge.success {
    background: #1f6a35;
}

.nav-badge.danger {
    background: #b73b31;
}

.nav-badge.info {
    background: #3d7b8f;
}

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

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.nav-text {
    white-space: nowrap;
}

.nav-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-group {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 6px 8px;
}

.sidebar-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-weight: 600;
    gap: 10px;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: "v";
    font-size: 12px;
    color: var(--muted);
    transition: transform 0.25s ease;
}

.sidebar-group[open] summary::after {
    transform: rotate(180deg);
}

.sidebar-group[open] summary {
    color: #b5431e;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 8px 12px;
    padding-left: 12px;
    border-left: 1px dashed var(--border);
    animation: submenuFade 0.25s ease;
}

.nav-submenu .nav-item {
    background: #fff8f1;
    font-size: 14px;
}

.nav-submenu .nav-item.is-active {
    background: #ffe2d6;
    border-color: #ffbfa7;
    color: #a8401f;
}

.sidebar-group summary {
    transition: color 0.25s ease, background 0.25s ease;
}

.sidebar-group summary:hover {
    background: #fff3ea;
    border-radius: 10px;
}

.nav-item,
.button,
.sidebar-toggle {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sidebar-logo,
.nav-text,
.brand-title,
.brand-subtitle,
.sidebar-user {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-item:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(45, 38, 33, 0.08);
}

.sidebar-collapsed .nav-badge {
    display: none;
}

.sidebar-collapsed .nav-badges {
    display: none;
}

@keyframes submenuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-logout {
    justify-content: center;
    width: 100%;
}

.main {
    flex: 1;
    min-width: 0;
    transition: margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.page-title {
    font-weight: 600;
    margin: 0 0 6px;
}

.page-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-mark {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: #fff;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.brand-title {
    font-weight: 600;
    margin: 0;
}

.brand-subtitle {
    font-size: 14px;
    margin: 0;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff3ea;
    border: 1px solid #ffd8c9;
    font-size: 13px;
    font-weight: 600;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 500;
}

.content {
    margin-top: 28px;
}

.with-sidebar .content {
    margin-top: 0;
}

.sidebar-collapsed .sidebar {
    width: 88px;
    padding: 16px 10px;
}

.sidebar-collapsed .sidebar-user,
.sidebar-collapsed .brand-title,
.sidebar-collapsed .brand-subtitle,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .sidebar-footer .nav-text {
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
    height: 0;
    margin: 0;
}

.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
}

.sidebar-collapsed .nav-item,
.sidebar-collapsed .sidebar-group summary {
    justify-content: center;
}

.sidebar-collapsed .sidebar-group summary::after {
    display: none;
}

.sidebar-collapsed .nav-submenu {
    padding-left: 0;
    border-left: none;
    margin: 8px 0 12px;
}

.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.section + .section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.button {
    background: var(--secondary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button.ghost {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}

.button.danger {
    background: #d84b3d;
    color: #fff;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 500;
}

tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid #f1ebe2;
    vertical-align: top;
}

.thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.thumb.placeholder {
    display: grid;
    place-items: center;
    background: #f8f4ee;
    color: var(--muted);
    font-size: 12px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.card.empty {
    text-align: center;
}

.card.product {
    padding: 0;
    overflow: hidden;
}

.card.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid.filters {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.etalase-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: center;
    margin-bottom: 24px;
}

.etalase-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.etalase-kicker {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
}

.etalase-lead {
    font-size: 16px;
    color: var(--muted);
}

.etalase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.etalase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.etalase-actions .muted {
    margin: 0;
    font-size: 12px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d6e1f5;
    background: #eef3ff;
    color: #274060;
}

.badge-pill.warn {
    border-color: #f3d6a8;
    background: #fff0db;
    color: #9b5d00;
}

.request-last {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: var(--primary);
}

.etalase-highlight {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.hero-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-grid.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (min-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
    text-decoration: none;
}

.product-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(32, 35, 32, 0.18);
    border-color: #f3c7b8;
}

.product-card:focus {
    outline: 2px solid #f3c7b8;
    outline-offset: 2px;
}

.product-link:focus {
    outline: 2px solid #f3c7b8;
    outline-offset: 2px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 14px;
    border-top: 1px dashed var(--border);
    background: #fffaf4;
}

.qty-label {
    font-size: 12px;
    color: var(--muted);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 6px;
    background: #fff;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
}

.qty-input {
    width: 48px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: transparent;
    color: var(--primary);
}

.qty-input:focus {
    outline: none;
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f2ea;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
}

.stock-pill {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #e6f4ea;
    color: #1f6a35;
    box-shadow: 0 10px 18px rgba(31, 106, 53, 0.18);
}

.stock-pill.low {
    background: #fff0db;
    color: #9b5d00;
    box-shadow: 0 10px 18px rgba(155, 93, 0, 0.18);
}

.stock-pill.out {
    background: #fde4e4;
    color: #9a1b1b;
    box-shadow: 0 10px 18px rgba(154, 27, 27, 0.18);
}

.product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.product-desc {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price {
    font-weight: 700;
    color: var(--secondary);
}

.product-category {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f8f9;
    border: 1px solid #d7e1e4;
    color: #355a67;
    font-weight: 600;
}

.filter-bar {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    display: block;
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: end;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.detail-media {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    aspect-ratio: 1 / 1;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-media .thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.detail-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.detail-kicker {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.detail-desc {
    color: var(--muted);
    line-height: 1.6;
}

.detail-grid {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.detail-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.detail-message {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.detail-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #fdf8f2;
}

.detail-label {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.detail-value {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.request-meta {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #fff0db;
    color: #9b5d00;
}

.status-pill.status-approved {
    background: #e2f7e4;
    color: #1f6a35;
}

.status-pill.status-partial {
    background: #eaf3ff;
    color: #1b4b7a;
}

.status-pill.status-rejected {
    background: #fde4e4;
    color: #9a1b1b;
}

.status-pill.status-success {
    background: #e2f7e4;
    color: #1f6a35;
}

.status-pill.status-failed {
    background: #fde4e4;
    color: #9a1b1b;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.section-title {
    margin: 0 0 12px;
    font-size: 18px;
}

.request-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

.request-cart {
    background: #fffaf4;
    border: 1px solid #f2dcc3;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 6px;
}

.cart-name {
    flex: 1;
}

.cart-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-remove {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #a54b2a;
    font-weight: 700;
    line-height: 1;
}

.cart-qty-input {
    width: 52px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    font-weight: 600;
}

@media (min-width: 960px) {
    .request-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }
}

.approval-form {
    margin-bottom: 18px;
}


.hero {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: center;
    margin-bottom: 24px;
}

.hero-card {
    background: linear-gradient(135deg, #ffede5, #fff5ef);
    border: 1px solid #ffd4c6;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.lead {
    font-size: 16px;
    color: var(--muted);
}

.photo-placeholder {
    height: 180px;
    display: grid;
    place-items: center;
    background: #f8f4ee;
    color: var(--muted);
    font-size: 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price {
    font-weight: 700;
    color: var(--secondary);
}

.stock {
    font-size: 12px;
    color: var(--muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.badge.success {
    background: #e2f7e4;
    color: #1f6a35;
}

.badge.danger {
    background: #fde4e4;
    color: #9a1b1b;
}

.alert {
    background: #fff4f2;
    border: 1px solid #ffd2c7;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions form {
    margin: 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.page-info {
    font-size: 13px;
    color: var(--muted);
}

.page-summary {
    font-size: 13px;
    color: var(--muted);
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-number {
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 0 8px;
}

.page-number:hover {
    border-color: #f3c7b8;
    color: #b5431e;
}

.page-number.is-active {
    background: #ffe9df;
    border-color: #ffc9b5;
    color: #b5431e;
}

.page-ellipsis {
    color: var(--muted);
    font-weight: 600;
}

.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-jump-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.page-jump input {
    width: 72px;
    padding: 8px 10px;
}

.button.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card {
    background: #fff9f2;
    border: 1px solid #f5dcc2;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.summary-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.dashboard-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card-stat {
    background: #fffdf9;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.card-stat.highlight {
    background: #fff2e5;
    border-color: #ffcfb6;
}

.stat-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.filter-card {
    margin-bottom: 20px;
}

.chart-wrapper {
    background: #fffaf4;
    border: 1px solid #f2dcc3;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.area-chart {
    width: 100%;
    height: 260px;
}

.area-line {
    fill: none;
    stroke: #e05a3f;
    stroke-width: 3;
}

.area-dot {
    fill: #fff;
    stroke: #e05a3f;
    stroke-width: 2;
}

.chart-labels {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 16px;
}

input, textarea, select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
}

.hint {
    font-size: 12px;
    color: var(--muted);
}

.site-footer {
    text-align: center;
    color: var(--muted);
    margin-top: 32px;
}

@media (max-width: 980px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-group {
        width: 100%;
        justify-content: flex-start;
    }
}
