/* Restaurant Module Styles */

/* ========== TABLE MAP ========== */
.wf-tables-map {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wf-tables-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.wf-tables-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.wf-tables-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}
.wf-tables-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}
.wf-tables-canvas {
    position: relative;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    touch-action: none;
}
.wf-table-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s;
    z-index: 1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.wf-table-node:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 10;
}
.wf-table-node.wf-table-dragging {
    opacity: 0.8;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.wf-table-node .wf-table-label {
    pointer-events: none;
    text-align: center;
    line-height: 1.2;
}
.wf-table-node .wf-table-capacity {
    font-size: 10px;
    opacity: 0.8;
    pointer-events: none;
}
.wf-table-qr-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    padding: 2px;
    color: #374151;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
    text-decoration: none;
    line-height: 1;
}
.wf-table-node:hover .wf-table-qr-btn {
    opacity: 1;
}
.wf-table-qr-btn:hover {
    background: #fff;
    color: #c9a84c;
}
.wf-table-node.wf-shape-circle {
    border-radius: 50%;
}
.wf-table-node.wf-shape-rect {
    border-radius: 8px;
}
.wf-tables-map-edit .wf-table-node {
    cursor: grab;
}
.wf-tables-map-edit .wf-table-node:active {
    cursor: grabbing;
}

/* Table modal */
.wf-tables-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wf-tables-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.wf-tables-modal-content h3 {
    margin: 0 0 16px;
}
.wf-table-modal-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.wf-table-status-btn {
    padding: 6px 14px;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s;
}
.wf-table-status-btn:hover {
    transform: scale(1.05);
}
.wf-table-status-btn.active {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
}
.wf-table-modal-orders {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.wf-table-modal-order {
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}
.wf-table-modal-order strong {
    display: block;
}

/* ========== CAJON ========== */
.wf-cajon {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.wf-cajon h3 {
    margin: 0 0 12px;
}
.wf-cajon label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}
.wf-cajon input,
.wf-cajon textarea {
    width: 100%;
    max-width: 250px;
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}
.wf-cajon .wf-store-btn {
    margin-top: 8px;
}

/* ========== SPLIT BILL ========== */
.wf-split-bill {
    margin-top: 12px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}
.wf-split-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wf-split-diner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
.wf-split-diner h4 {
    margin: 0 0 8px;
}
.wf-split-diner-items {
    max-height: 150px;
    overflow-y: auto;
}
.wf-split-diner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
}
.wf-split-diner-item input[type="checkbox"] {
    margin: 0;
}
.wf-split-summary {
    font-weight: 700;
    text-align: center;
    padding: 8px;
    font-size: 15px;
}
.wf-split-payment-methods {
    margin-top: 8px;
}

/* ========== MODIFIERS IN POS ========== */
.wf-pos-modifiers {
    padding: 12px 0;
}
.wf-pos-modifier-group {
    margin-bottom: 12px;
}
.wf-pos-modifier-group strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.wf-pos-required {
    color: #ef4444;
    font-size: 14px;
}
.wf-pos-modifier-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wf-pos-modifier-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.wf-pos-modifier-option:hover {
    background: #f3f4f6;
}
.wf-pos-modifier-option input {
    margin: 0;
}

/* ========== DAILY MENU BADGE ========== */
.wf-daily-menu-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f59e0b;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ADMIN ========== */
.wf-admin-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}
.wf-admin-section h3 {
    margin-top: 0;
}
.wf-admin-section .form-table th {
    width: 180px;
}
.wf-modifier-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}
.wf-modifier-options {
    margin: 8px 0;
}
.wf-modifier-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.wf-modifier-group label {
    margin-right: 12px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .wf-tables-toolbar { flex-direction: column; align-items: flex-start; }
    .wf-split-header { flex-direction: column; align-items: stretch; }
}
