/* =====================================================
 * 05-views-orders.css — Orders View, Kanban Board, Print Invoice
 * ===================================================== */

/* ── Kanban Board ── */
.kanban-board {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding: 0; width: 100%;
}
.kanban-column {
    background: #f1f3f5; display: flex; flex-direction: column;
    border: 1px solid var(--border); transition: background 0.2s;
    box-sizing: border-box; min-height: 250px;
}
.kanban-column.drag-over { background: #e9ecef; }

.kanban-header {
    padding: 15px 20px; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--border); background: #ffffff;
}
.kanban-count {
    background: #f8f9fa; padding: 2px 12px; font-size: 0.85rem;
    color: var(--text-muted); border: 1px solid var(--border); font-weight: 700;
}
.kanban-list {
    padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    align-content: start;
}
.kanban-card {
    background: white; padding: 12px; box-shadow: none; box-sizing: border-box;
    border: 1px solid var(--border); cursor: grab; transition: all 0.2s;
    position: relative; user-select: none; display: flex; flex-direction: column;
    overflow: hidden; width: 100%; gap: 6px; aspect-ratio: 1 / 1; justify-content: center;
}
.kanban-card:hover { border-color: var(--primary); background: #fcfbff; }

/* ── Orders Main Actions ── */
#orders-main-actions { display: flex; gap: 10px; align-items: center; }

/* ── Print Invoice ── */
@media print {
    body * { visibility: hidden; }
    #invoice-print-area, #invoice-print-area * { visibility: visible; }
    .orders-shell, .orders-modal-overlay { display: none !important; }
    #invoice-print-area {
        display: block !important; position: absolute; left: 0; top: 0;
        width: 105mm; height: 148mm; margin: 0; padding: 0; background: white; overflow: hidden;
    }
    @page { size: 105mm 148mm; margin: 0; }
}

.print-invoice {
    background: white; color: #333;
    font-family: 'RTA', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%; display: flex; flex-direction: column;
    padding: 8mm; position: relative; border: 1px solid #eee;
}
.print-header   { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
.print-header h3 { color: var(--primary); margin: 5px 0; font-size: 18px; }
.print-header p  { font-size: 12px; color: #777; margin: 0; }
.print-customer  { background: #fcfcff; padding: 10px; border-radius: 0; margin-bottom: 15px; font-size: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-customer p { margin: 0; }
.print-customer strong { color: #555; }
.print-table    { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 10px; flex: 1; }
.print-table th { background: #f8f9fa; padding: 8px 4px; text-align: right; border-bottom: 2px solid #eee; color: #666; }
.print-table td { padding: 8px 4px; border-bottom: 1px solid #f0f0f0; }
.print-total-box { margin-top: 15px; padding: 10px; background: #fdfcff; border-top: 1px solid #eee; text-align: left; }
.print-total-box .total-row { font-size: 14px; font-weight: 800; color: var(--primary); }
.print-qr       { text-align: center; margin: 15px 0; }
.print-footer   { text-align: center; font-size: 9px; color: #aaa; border-top: 1px dashed #eee; padding-top: 10px; }

/* ── Toast (Legacy — overridden by 07-alerts.css) ── */
.toast-msg {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; padding: 12px 28px; font-size: 0.95rem; z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: toastSlideUp 0.3s ease forwards;
}
@keyframes toastSlideUp {
    from { bottom: 10px; opacity: 0; }
    to   { bottom: 30px; opacity: 1; }
}
.toast-success { background: #2ecc71; }
.toast-error   { background: #ff4d4d; }
.toast-info    { background: var(--primary); }
