/* tag.box-togo.com/assets/css/tag-style.css */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #ee2d37;
    --primary-blue: #2b57ff;
    --bg-light: #f4f5f7;
    --text-dark: #333;
    --text-muted: #999;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #f8f8f8;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 15px;
}

.menu-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #bbb;
    padding: 0 15px;
    margin-bottom: 15px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #444;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 400;
    margin-bottom: 8px;
    border: 1px solid transparent;
    background-color: transparent;
}

.menu-link:hover {
    background-color: #f8f9fa;
    border-color: #eee;
}

.menu-link.active {
    background-color: #fff;
    color: #333;
    font-weight: 600;
    border-color: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.menu-link i {
    font-size: 1.1rem;
    color: #6c757d;
}

.menu-link.active i {
    color: #6c757d;
}

/* Red Button Style */
.btn-receipt {
    display: block;
    width: 100%;
    background-color: var(--primary-red);
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(238, 45, 55, 0.2);
}

.sidebar-footer {
    padding: 20px;
}

.logout-link {
    color: #bbb;
    text-decoration: none !important;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent flex overflow */
}

.top-header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.content-body {
    padding: 30px;
    flex: 1;
}

/* Main Content Header */
.db-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.db-logo-circle {
    width: 70px;
    height: 70px;
    background-color: #f39c12;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #333;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1;
}

/* Trend Chart Section */
.chart-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.btn-group-pill {
    display: flex;
    background: #f0f0f0;
    padding: 2px;
    border-radius: 20px;
}

.btn-pill {
    padding: 4px 15px;
    font-size: 0.75rem;
    border-radius: 18px;
    text-decoration: none !important;
    color: #666;
}

.btn-pill.active {
    background: #1a1a1a;
    color: #fff;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 40px 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.chart-bar {
    width: 25%;
    max-width: 150px;
    background-color: var(--primary-red);
    border-radius: 4px 4px 0 0;
    position: relative;
    margin: 0 10px;
}

.chart-bar-val {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #999;
}

/* Order Section */
.order-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

.order-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.select-plain {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.8rem;
}

.month-selector {
    display: flex;
    gap: 4px;
}

.month-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none !important;
}

.month-link.active {
    background: #1a1a1a;
    color: #fff;
    border-radius: 5px;
}

/* Table */
.table-order {
    width: 100%;
}

.table-order th {
    font-size: 0.75rem;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid #f8f8f8;
}

.table-order td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f8f8;
}

.customer-name {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.order-id-group {
    line-height: 1.2;
}

.order-id {
    font-weight: 700;
    font-size: 0.9rem;
}

.order-date {
    font-size: 0.75rem;
    color: #999;
}

.order-amount {
    font-weight: 700;
    color: var(--primary-red);
    text-align: right;
    font-size: 1rem;
}

.badge-custom {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-left: 5px;
}

.bg-orange { background-color: #f39c12; }
.bg-cyan { background-color: #00bcd4; }
.bg-green { background-color: #4caf50; }

.search-box {
    position: relative;
    max-width: 250px;
}

.search-input {
    width: 100%;
    padding: 6px 15px 6px 35px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 0.85rem;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar-brand, .menu-section-title, .menu-link span, .btn-receipt, .logout-link span { display: none; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .summary-grid { grid-template-columns: 1fr; }
    .db-title { font-size: 1.5rem; }
    .stat-value { font-size: 2.5rem; }
}
