/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    color: #6c757d;
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.demo-accounts {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
}

.demo-accounts p {
    margin: 4px 0;
}

.demo-accounts strong {
    display: block;
    margin-bottom: 8px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

.btn-block {
    width: 100%;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: #007bff;
}

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

.user-info {
    margin-bottom: 16px;
    padding: 0 8px;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-empnum {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.content-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* ========================================
   TAB CONTENT
   ======================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   STATISTICS CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stats-grid.stats-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid.stats-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card.stat-primary {
    border-left: 4px solid #007bff;
}

.stat-card.stat-success {
    border-left: 4px solid #28a745;
    background: #f0fff4;
    border-color: #28a745;
}

.stat-card.stat-danger {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    border-color: #dc3545;
}

.stat-card.stat-warning {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
    border-color: #ffc107;
}

.stat-card.stat-info {
    border-left: 4px solid #17a2b8;
    background: #f0f9ff;
    border-color: #17a2b8;
}

.stat-card.stat-purple {
    border-left: 4px solid #6f42c1;
}

.stat-card.stat-secondary {
    border-left: 4px solid #6c757d;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
}

/* Colorful Stats */
.stats-colorful .stat-card {
    color: white;
    border: none;
}

.stat-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-gradient-purple {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.stat-gradient-orange {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

.stat-gradient-yellow {
    background: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 13px;
}

.stat-subtext {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

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

/* ========================================
   TABLES
   ======================================== */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.table-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.table-card.table-available {
    background: white;
    border-color: #dee2e6;
}

.table-card.table-assigned {
    background: #fff8e1;
    border-color: #ffc107;
}

.table-card.table-active {
    background: #e8f5e9;
    border-color: #28a745;
}

.table-card.table-overtime {
    background: #ffebee;
    border-color: #dc3545;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.table-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-available {
    background: #e9ecef;
    color: #495057;
}

.badge-assigned {
    background: #fff3cd;
    color: #856404;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-overtime {
    background: #f8d7da;
    color: #721c24;
}

.table-info {
    margin-bottom: 12px;
    font-size: 13px;
}

.table-info p {
    margin: 4px 0;
    color: #495057;
}

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

.table-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.floor-section {
    margin-bottom: 32px;
}

.floor-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

/* ========================================
   DATA TABLES
   ======================================== */
.data-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 32px;
}

.data-table-container h3 {
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tfoot {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.data-table tfoot td {
    padding: 16px;
    font-weight: 600;
}

.text-right {
    text-align: right;
}

.text-success {
    color: #28a745;
}

/* Table Actions */
.action-buttons {
    display: flex;
    gap: 4px;
}

.action-btn {
    padding: 6px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn-edit:hover {
    background: #bbdefb;
}

.action-btn-delete {
    background: #ffebee;
    color: #c62828;
}

.action-btn-delete:hover {
    background: #ffcdd2;
}

.action-btn-add {
    background: #e8f5e9;
    color: #2e7d32;
}

.action-btn-add:hover {
    background: #c8e6c9;
}

.action-btn-minus {
    background: #fff3e0;
    color: #f57c00;
}

.action-btn-minus:hover {
    background: #ffe0b2;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #e9ecef;
    color: #495057;
}

.status-low {
    background: #f8d7da;
    color: #721c24;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-good {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* Category Badges */
.category-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e9ecef;
    color: #495057;
    text-transform: capitalize;
}

/* ========================================
   BEST SELLERS SECTION
   ======================================== */
.best-sellers-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffe5f0 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e4d5f7;
    margin-bottom: 32px;
}

.best-sellers-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #6f42c1;
    margin-bottom: 20px;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.best-seller-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    background: #6f42c1;
}

.best-seller-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best-seller-stats {
    font-size: 12px;
    color: #6c757d;
}

/* ========================================
   CASHIER SECTION
   ======================================== */
.cashier-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.menu-section h3,
.cart-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.menu-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.menu-item-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

.cart-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 12px;
    color: #6c757d;
}

.cart-item-quantity {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.cart-item-remove {
    padding: 6px;
    background: #ffebee;
    color: #c62828;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-remove:hover {
    background: #ffcdd2;
}

.cart-summary {
    border-top: 2px solid #dee2e6;
    padding-top: 16px;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-summary-row.cart-total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    margin-top: 8px;
}

.cart-empty {
    text-align: center;
    color: #6c757d;
    padding: 40px 0;
}

/* ========================================
   RECEIPT
   ======================================== */
.receipt {
    background: white;
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-width: 400px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.receipt-subtitle {
    font-size: 12px;
    color: #6c757d;
}

.provisional-label {
    background: #fef3c7;
    border: 2px dashed #f59e0b;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #92400e;
    margin: 16px 0;
}

.provisional-label-small {
    font-size: 10px;
    margin-top: 4px;
}

.receipt-divider {
    border-top: 1px dashed #000;
    margin: 12px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.receipt-total {
    font-weight: bold;
    font-size: 15px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #000;
}

.qr-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #000;
}

.qr-code {
    margin: 12px auto;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
}

/* ========================================
   PROMOS GRID
   ======================================== */
.promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.promo-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.promo-title-section {
    flex: 1;
}

.promo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.promo-description {
    color: #6c757d;
    margin-bottom: 12px;
}

.promo-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.promo-detail-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.promo-detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.promo-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.promo-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.promo-item-badge {
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 13px;
}

/* ========================================
   ALERTS GRID
   ======================================== */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.alert-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}

.alert-card.alert-danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.alert-card.alert-warning {
    border-color: #ffc107;
    background: #fffbf0;
}

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

.alert-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.alert-danger .alert-header h3 {
    color: #c82333;
}

.alert-warning .alert-header h3 {
    color: #e0a800;
}

.alert-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.alert-item-name {
    font-size: 14px;
}

.alert-item-value {
    font-size: 13px;
    font-weight: 500;
}

.alert-danger .alert-item-value {
    color: #c82333;
}

.alert-warning .alert-item-value {
    color: #e0a800;
}

/* ========================================
   CHARTS
   ======================================== */
.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.chart-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

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

.chart-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* ========================================
   FEEDBACK SECTION
   ======================================== */
.filters-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

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

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

.feedback-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-card:hover {
    border-color: #dee2e6;
}

.feedback-card.selected {
    border-color: #007bff;
}

.feedback-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.feedback-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.feedback-customer {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.feedback-concern {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 12px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 16px;
    height: 16px;
}

.star.filled {
    fill: #ffc107;
    stroke: #ffc107;
}

.star.empty {
    fill: none;
    stroke: #dee2e6;
}

.feedback-details {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 32px;
}

.feedback-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.feedback-detail-group {
    margin-bottom: 20px;
}

.feedback-detail-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
    display: block;
}

.feedback-detail-value {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.feedback-detail-value.feedback-concern-full {
    white-space: pre-wrap;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    color: #6c757d;
    padding: 60px 20px;
}

.icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

/* Priority Badges */
.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-medium {
    background: #fff3e0;
    color: #e65100;
}

.priority-low {
    background: #e9ecef;
    color: #495057;
}

/* ========================================
   DATE INPUTS
   ======================================== */
.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.date-range-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.date-range-filter label {
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #dee2e6;
}

.modal-footer .btn {
    flex: 1;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-full {
    grid-column: span 2;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

/* ========================================
   ICONS
   ======================================== */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ========================================
   UTILITIES
   ======================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: 16px;
    }
    
    .stats-grid,
    .stats-grid.stats-3,
    .stats-grid.stats-5 {
        grid-template-columns: 1fr;
    }
    
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cashier-layout,
    .feedback-layout {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    
    #receiptContent,
    #receiptContent * {
        visibility: visible;
    }
    
    #receiptContent {
        position: absolute;
        left: 0;
        top: 0;
    }
}
