:root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-accent: #c79731;
    --color-sidebar: #52412e;
    --color-text: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.6);
    --color-border-subtle: rgba(0, 0, 0, 0.06);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-full: 999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.10);

    --sidebar-width: 260px;
    --topbar-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

body {
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

/* App shell layout */

.app-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: rgba(255, 255, 255, 0.9);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 24px;
    margin-bottom: 8px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #2f2416;
}

.brand-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

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

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link.is-active {
    background-color: rgba(199, 151, 49, 0.2);
    color: #ffffff;
    font-weight: 500;
}

.sidebar-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link-label {
    flex: 1;
}

.sidebar-chevron {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, color 0.15s ease;
    margin-left: auto;
}

.sidebar-menu-group.has-active .sidebar-chevron,
.sidebar-menu-group:hover .sidebar-chevron {
    color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

/* Sidebar Sub-menu */
.sidebar-menu-group {
    position: relative;
}

.sidebar-submenu {
    display: none;
    padding: 6px 0 6px 44px;
    margin-top: 2px;
    border-left: 2px solid rgba(199, 151, 49, 0.3);
    margin-left: 12px;
}

.sidebar-menu-group:hover .sidebar-submenu,
.sidebar-menu-group.has-active .sidebar-submenu {
    display: block;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-sublink::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin-right: 10px;
    transition: all 0.15s ease;
}

.sidebar-sublink:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 16px;
}

.sidebar-sublink:hover::before {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.sidebar-sublink.is-active {
    background-color: rgba(199, 151, 49, 0.25);
    color: #ffffff;
    font-weight: 500;
    padding-left: 16px;
}

.sidebar-sublink.is-active::before {
    background-color: var(--color-accent);
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px rgba(199, 151, 49, 0.5);
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    z-index: 20;
}

.topbar-title {
    flex: 1;
}

.topbar-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

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

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-nav-link {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.topbar-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.topbar-nav-link.is-active {
    background-color: rgba(199, 151, 49, 0.1);
    color: var(--color-accent);
    font-weight: 500;
}

.btn-download {
    padding: 8px 16px;
    background-color: var(--color-accent);
    color: #2f2416;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-download:hover {
    background-color: #b8872a;
    transform: translateY(-1px);
}

.user-menu {
    position: relative;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.user-chip:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: var(--color-sidebar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.user-caret {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 160px;
    padding: 6px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    display: none;
}

.user-dropdown-item {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
}

.user-dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.user-dropdown-form {
    margin: 0;
    padding: 0;
}

.user-dropdown-button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    padding: 6px 10px;
    margin: 0;
}

.user-menu.is-open .user-dropdown {
    display: block;
}

.app-content {
    padding: 32px;
    flex: 1;
    background-color: var(--color-bg);
}

/* Dashboard content */

.dashboard-content {
    max-width: 1400px;
}

.dashboard-heading {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 24px;
}

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

.metric-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border-subtle);
}

.metric-card-featured {
    background-color: var(--color-sidebar);
    color: #ffffff;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.metric-icon {
    font-size: 18px;
}

.metric-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric-card-featured .metric-label {
    color: rgba(255, 255, 255, 0.8);
}

.metric-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.metric-card-featured .metric-value {
    color: #ffffff;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
}

.metric-change.positive {
    color: #22c55e;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-card-featured .metric-change.positive {
    color: rgba(255, 255, 255, 0.9);
}

.metric-card-featured .metric-change.negative {
    color: rgba(255, 200, 200, 0.9);
}

.metric-note {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-chart-card,
.dashboard-activity-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border-subtle);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-placeholder {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-left: 40px;
    padding-bottom: 30px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    height: 100%;
}

.chart-bar {
    flex: 1;
    background-color: var(--color-accent);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.chart-labels {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    padding-top: 8px;
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    width: 35px;
}

.chart-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.activity-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

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

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: var(--color-sidebar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Buttons & fields */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-text);
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #c79731, #e0b85a);
    color: #2f2416;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(199, 151, 49, 0.45);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(199, 151, 49, 0.55);
}

.btn-ghost {
    border-radius: 999px;
    padding-inline: 10px;
    border-color: transparent;
    background-color: rgba(0, 0, 0, 0.03);
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.btn-full {
    width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.field-inline {
    max-width: 320px;
}

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

.field input,
.field select {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 14px;
    font-size: 14px;
    background-color: #fbfaf7;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.icon-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
}

.topbar-burger {
    display: none;
}

.burger-line {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background-color: var(--color-text);
    border-radius: 999px;
}

/* Cards & tables */

.page-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header-main h2 {
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.page-header-main p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.card {
    background-color: var(--color-surface);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 16px 18px 18px;
}

.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

.table-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: auto;
}

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

.table thead {
    background-color: #fbf5ea;
}

.table th,
.table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 11px;
    color: var(--color-text-muted);
}

.table tbody tr {
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.table tbody tr:hover {
    background-color: #fff9ee;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.table-col-actions {
    text-align: right;
    width: 80px;
    position: relative;
}

.actions-menu {
    position: relative;
    display: inline-block;
}

.actions-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 120px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 4px;
    display: none !important;
}

.actions-dropdown.is-open {
    display: block !important;
}

.actions-item {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.actions-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.actions-item.delete-vendor,
.actions-item.delete-project {
    color: #dc2626;
}

.actions-item.delete-vendor:hover,
.actions-item.delete-project:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Auth layout */

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #fbe9c3, #f7f1e7 45%, #ede7de 100%);
}

.auth-shell {
    padding: 24px;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 26px 24px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, #f9e2a4, #c18b2a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.auth-brand-text h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-brand-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.auth-field input {
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 9px 14px;
    background-color: #fbfaf7;
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.5);
    background-color: #ffffff;
}

.auth-error {
    min-height: 20px;
    font-size: 12px;
}

.auth-error p {
    margin: 0;
}

.auth-error-placeholder {
    color: var(--color-text-muted);
}

.auth-footer-text {
    margin-top: 14px;
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Responsive behavior */

@media (max-width: 960px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.4);
    }

    .topbar-burger {
        display: inline-flex;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .topbar-nav {
        display: none;
    }

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

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

    .card {
        padding-inline: 14px;
    }

    .app-content {
        padding: 20px 16px;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-title h1 {
        font-size: 20px;
    }

    .dashboard-heading {
        font-size: 24px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Vendor Management Styles */

.vendor-management {
    max-width: 1400px;
}

.vendor-header {
    margin-bottom: 24px;
}

.vendor-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.vendor-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.vendor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vendor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.vendor-filter-input {
    min-width: 280px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fbfaf7;
}

.vendor-filter-input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.btn-secondary {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.vendor-table-card {
    padding: 0;
    overflow: hidden;
}

.vendor-table {
    margin: 0;
}

.table-col-checkbox {
    width: 48px;
    text-align: center;
}

.table-col-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.table-col-sortable {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-name {
    font-weight: 500;
    color: var(--color-text);
    font-size: 14px;
}

.contact-email {
    font-size: 12px;
    color: var(--color-text-muted);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

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

.vendor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

.vendor-footer-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.vendor-footer-right {
    display: flex;
    gap: 8px;
}

.vendor-footer-right .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background-color: var(--color-surface);
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.2s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: #fbfaf7;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(199, 151, 49, 0.1);
    background-color: #ffffff;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

@media (max-width: 720px) {
    .vendor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-filter-input {
        min-width: 100%;
    }

    .project-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .project-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .project-filter-input {
        min-width: 100%;
    }

    .hoarding-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hoarding-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .hoarding-filter-input {
        min-width: 100%;
    }

    .staff-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-filter-input {
        min-width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px 16px;
    }
}

/* Project Management Styles (similar to vendors) */

.project-management {
    max-width: 1400px;
}

.project-header {
    margin-bottom: 24px;
}

.project-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.project-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.project-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.project-filter-input {
    min-width: 280px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fbfaf7;
}

.project-filter-input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.project-table-card {
    padding: 0;
    overflow: hidden;
}

.project-table {
    margin: 0;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-info strong {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.project-code {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

.project-footer-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.project-footer-right {
    display: flex;
    gap: 8px;
}

.project-footer-right .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hoarding Management Styles (similar to vendors/projects) */

.hoarding-management {
    max-width: 1400px;
}

.hoarding-header {
    margin-bottom: 24px;
}

.hoarding-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.hoarding-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.hoarding-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hoarding-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.hoarding-filter-input {
    min-width: 280px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fbfaf7;
}

.hoarding-filter-input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.hoarding-table-card {
    padding: 0;
    overflow: hidden;
}

.hoarding-table {
    margin: 0;
}

.hoarding-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hoarding-info strong {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.hoarding-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.status-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.status-indicator.status-approved .status-icon {
    background-color: #d1fae5;
    color: #065f46;
}

.status-indicator.status-paid .status-icon {
    background-color: #d1fae5;
    color: #065f46;
}

.status-indicator.status-pending .status-icon {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-expired,
.status-badge.status-booked {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.status-expiring-soon,
.status-badge.status-available {
    background-color: #fef3c7;
    color: #92400e;
}

.hoarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

.hoarding-footer-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hoarding-footer-right {
    display: flex;
    gap: 8px;
}

.hoarding-footer-right .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Staff Management Styles */

.staff-management {
    max-width: 1400px;
}

.staff-header {
    margin-bottom: 24px;
}

.staff-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.staff-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.staff-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.staff-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.staff-filter-input {
    min-width: 280px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fbfaf7;
}

.staff-filter-input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.staff-table-card {
    padding: 0;
    overflow: hidden;
}

.staff-table {
    margin: 0;
}

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

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--color-sidebar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-details strong {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    color: var(--color-text-muted);
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.role-admin {
    background-color: #dbeafe;
    color: #1e40af;
}

.role-badge.role-marketing_manager {
    background-color: #e0e7ff;
    color: #4338ca;
}

.role-badge.role-vendor {
    background-color: #f3f4f6;
    color: #6b7280;
}

.role-badge.role-viewer {
    background-color: #fee2e2;
    color: #991b1b;
}

.role-badge.role-staff {
    background-color: #fef3c7;
    color: #92400e;
}

.staff-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

.staff-footer-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.staff-footer-right {
    display: flex;
    gap: 8px;
}

.staff-footer-right .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Billing Management Styles */

.billing-management {
    max-width: 1400px;
}

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

.billing-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.billing-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.billing-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.billing-filters-left {
    flex: 1;
    min-width: 280px;
}

.billing-search-input {
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fbfaf7;
}

.billing-search-input:focus {
    outline: none;
    border-color: rgba(199, 151, 49, 0.9);
    box-shadow: 0 0 0 1px rgba(199, 151, 49, 0.6);
    background-color: #ffffff;
}

.billing-filters-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-filter {
    padding: 8px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
}

.billing-table-card {
    padding: 0;
    overflow: hidden;
}

.billing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

.billing-footer-left {
    font-size: 13px;
    color: var(--color-text-muted);
}

.billing-footer-right .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Badge Colors */
.status-badge.status-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.status-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.status-default {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Bill Detail Page */
.bill-detail {
    max-width: 1400px;
}

.bill-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.bill-detail-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bill-detail-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.bill-workflow {
    margin-bottom: 32px;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding: 0 20px;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: var(--color-border-subtle);
    z-index: 0;
}

.workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.workflow-step.completed .step-number {
    background-color: var(--color-accent);
    color: #ffffff;
}

.workflow-step.active .step-number {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(199, 151, 49, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-border-subtle);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step-content {
    text-align: center;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}

.step-content p {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

.bill-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.bill-section {
    margin-bottom: 24px;
}

.bill-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-actions {
    display: flex;
    gap: 8px;
}

.bill-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bill-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bill-info-item label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bill-info-item span {
    font-size: 14px;
    color: var(--color-text);
}

.bill-info-item.field-full {
    grid-column: 1 / -1;
}

.bill-action-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-subtle);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #d97706;
}

.text-muted {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .billing-header {
        flex-direction: column;
    }

    .billing-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .billing-filters-right {
        flex-direction: column;
    }

    .bill-detail-content {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 24px;
    }

    .workflow-steps::before {
        display: none;
    }

    .bill-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ROI Reports Styles */

.roi-reports {
    max-width: 1400px;
}

.roi-header {
    margin-bottom: 24px;
}

.roi-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.roi-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.roi-filters {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--color-border-subtle);
}

.roi-filter-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

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

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: #ffffff;
}

.filter-group button,
.filter-group a {
    white-space: nowrap;
}

.roi-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border-subtle);
    text-align: center;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.kpi-description {
    font-size: 12px;
    color: var(--color-text-muted);
}

.roi-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.roi-chart-card,
.roi-data-card {
    padding: 0;
    overflow: hidden;
}

.roi-chart-card .card-header,
.roi-data-card .card-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.roi-chart-card .card-header h3,
.roi-data-card .card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}

.roi-chart-card .card-body,
.roi-data-card .card-body {
    padding: 20px;
}

.roi-chart-container {
    position: relative;
    height: 350px;
}

.roi-chart {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    padding-bottom: 40px;
}

.roi-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 20px;
    flex: 1;
    height: 100%;
    position: relative;
}

.roi-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.roi-bar {
    width: 100%;
    background-color: var(--color-accent);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.roi-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.roi-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.roi-bar-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

.roi-chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    width: 45px;
}

.roi-data-table {
    width: 100%;
}

.roi-data-table th {
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--color-border-subtle);
}

.roi-data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.roi-value {
    font-weight: 600;
}

.roi-positive {
    color: #059669;
}

.roi-negative {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 1024px) {
    .roi-content-grid {
        grid-template-columns: 1fr;
    }

    .roi-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .roi-kpis {
        grid-template-columns: 1fr;
    }

    .roi-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}

/* Channel Data Entry Styles */

.data-entry-management {
    max-width: 1400px;
}

.data-entry-header {
    margin-bottom: 24px;
}

.data-entry-header-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.data-entry-header-main p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.data-entry-form-card {
    margin-bottom: 32px;
}

.data-entry-form-card .card-header {
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.data-entry-form-card .card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

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

.data-entry-form {
    max-width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-subtle);
}

.data-entry-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.data-entry-filters-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.date-filter {
    padding: 8px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: #ffffff;
}

.summary-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-item {
    font-size: 14px;
    color: var(--color-text-muted);
}

.stat-item strong {
    color: var(--color-text);
    font-weight: 600;
}

.data-entry-table-card {
    padding: 0;
    overflow: hidden;
}

.channel-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.channel-badge.channel-hoarding {
    background-color: #dbeafe;
    color: #1e40af;
}

.channel-badge.channel-digital {
    background-color: #e0e7ff;
    color: #4338ca;
}

.channel-badge.channel-print {
    background-color: #f3f4f6;
    color: #6b7280;
}

.channel-badge.channel-radio {
    background-color: #fef3c7;
    color: #92400e;
}

.channel-badge.channel-tv {
    background-color: #fee2e2;
    color: #991b1b;
}

.channel-badge.channel-social_media {
    background-color: #d1fae5;
    color: #065f46;
}

.channel-badge.channel-other {
    background-color: #f3f4f6;
    color: #6b7280;
}

.roi-positive {
    color: #059669;
    font-weight: 600;
}

.roi-negative {
    color: #dc2626;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .data-entry-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .data-entry-filters-left {
        flex-direction: column;
    }

    .summary-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-subtle);
    background-color: #fbfaf7;
}

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

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-link {
    padding: 6px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.15s ease;
}

.pagination-link:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-current {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}


