/* =====================================================
 * 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;
    min-width: 24px;
    width: auto;
    height: 24px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    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: 12px;
    align-content: start;
}
.kanban-card {
    background: white; padding: 14px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); 
    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: 10px; border-radius: 4px;
}
.kanban-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(142,113,240,0.2); }
.kanban-card.dragging { opacity: 0.5; border: 2px dashed var(--primary); }

.kanban-card-top {
    display: flex; justify-content: space-between; align-items: center;
}
.kanban-id {
    font-size: 0.7rem; font-weight: 800; color: var(--primary); background: rgba(142,113,240,0.1); padding: 2px 6px;
}
.kanban-date {
    font-size: 0.7rem; color: #94a3b8; font-weight: 700;
}

.kanban-customer-name {
    font-size: 1.05rem; font-weight: 900; color: #1e293b; line-height: 1.2;
    text-align: center; margin-top: 4px; border-bottom: 2px solid #f1f5f9; padding-bottom: 6px;
}

.kanban-customer-meta {
    display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem;
}
.meta-item {
    display: flex; align-items: center; gap: 6px; color: #64748b;
}
.meta-item i { color: #94a3b8; width: 14px; text-align: center; font-size: 0.75rem; }
.meta-item span { font-weight: 700; }

.kanban-products {
    background: #f8fafc; border-radius: 4px; padding: 6px; display: flex; flex-direction: column; gap: 3px;
    max-height: 60px; overflow-y: auto; border: 1px solid #eef2f6;
}
.kanban-product-item {
    font-size: 0.75rem; display: flex; gap: 5px; color: #475569; line-height: 1.2;
}
.kanban-product-item .qty { font-weight: 800; color: var(--primary); }
.kanban-product-item .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kanban-product-more { font-size: 0.7rem; color: #94a3b8; text-align: center; font-style: italic; }

.kanban-card-bottom {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto;
    border-top: 1px dashed #e2e8f0; padding-top: 8px;
}
.kanban-price {
    font-size: 1.2rem; font-weight: 900; color: var(--primary);
}
.kanban-price .currency { font-size: 0.75rem; font-weight: 700; color: #94a3b8; }

.kanban-actions {
    display: flex; gap: 4px;
}
.kanban-action-btn {
    width: 28px; height: 28px; border-radius: 4px; border: 1px solid #e2e8f0; background: white;
    cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s;
}
.kanban-action-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

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

/* ── Print Invoice ── */
/* Print rules moved to invoice.css */

.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; }


