:root { --primary: #0d9488; --primary-light: #ccfbf1; --bg: #f8fafc; --card: #ffffff; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
.header { background: var(--card); border-bottom: 1px solid var(--border); height: 50px; display: flex; align-items: center; padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; }
.header h1 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-right: auto; }
.status-bar { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.status-item { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.status-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-dot.red { background: #ef4444; }
.container { max-width: 1400px; margin: 0 auto; padding: 1rem; }

.dashboard-wrapper { display: flex; gap: 1rem; margin-bottom: 1rem; }
.stats-column { width: 140px; display: flex; flex-direction: column; gap: 8px; }
.stat-card { background: var(--card); padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.stat-card h3 { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.stat-card .number { font-size: 1.4rem; font-weight: 700; }

.calendar-column { flex: 1; background: var(--card); border-radius: 8px; padding: 0.8rem; border: 1px solid var(--border); }
.cal-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.cal-nav button { background: transparent; border: 1px solid var(--border); width: 24px; height: 24px; border-radius: 4px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-cell { padding: 6px 2px; font-size: 0.75rem; color: var(--muted); border-radius: 4px; min-height: 40px; }
.cal-cell.header { font-weight: 600; color: var(--text); font-size: 0.65rem; min-height: auto; padding: 4px; }
.cal-cell.empty { background: transparent; }
.cal-cell.today { background: var(--primary); color: white; }
.cal-cell.weekend { color: #dc2626; }
.cal-day-num { display: block; line-height: 1.2; }
.cal-cnt { display: inline-block; font-size: 0.6rem; background: var(--primary); color: white; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; text-align: center; margin-top: 2px; font-weight: 700; }
.cal-cell.today .cal-cnt { background: white; color: var(--primary); }
.cal-cell.has-events { background: var(--primary-light); }

.active-requests-panel { background: var(--card); border-radius: 8px; padding: 1rem; border: 1px solid var(--border); }
.requests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.8rem; }
.request-card { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; position: relative; }
.request-badge { position: absolute; top: -6px; right: 8px; background: #fee2e2; color: #b91c1c; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.request-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.request-body h4 { font-size: 1rem; margin-bottom: 4px; }
.request-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; justify-content: flex-end; border-top: 1px solid #f3f4f6; padding-top: 0.8rem; }

.tabs { display: flex; gap: 2px; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.tab { padding: 0.5rem 1rem; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.panel { display: none; }
.panel.active { display: block; }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.client-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; cursor: pointer; }
.client-card:hover { border-color: var(--primary); }
.stat-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; }
.stat-badge.pending { background: #fff7ed; color: #c2410c; }
.stat-badge.confirmed { background: var(--primary-light); color: var(--primary); }

.btn { padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border); background: white; transition: 0.2s; }
.btn:hover { background: #f8fafc; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-danger { background: #ef4444; color: white; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; background: #f8fafc; }
.status { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.pending { background: #fff7ed; color: #b45309; }
.confirmed { background: var(--primary-light); color: var(--primary); }
.archived { background: #f3f4f6; color: var(--muted); }
.wf-icons { display: flex; gap: 4px; }
.wf-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.9rem; background: #f1f5f9; opacity: 0.4; }
.wf-icon.active { opacity: 1; background: var(--primary-light); color: var(--primary); }

.modal { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex; }
.modal-content { background: var(--card); width: 100%; max-width: 900px; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); overflow: hidden; display: flex; flex-direction: column; }
.modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex-grow: 1; }
.history-list { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem; max-height: 150px; overflow-y: auto; background: #f8fafc; }
.history-item { padding: 6px 8px; font-size: 0.85rem; border-bottom: 1px solid #e2e8f0; }
.wf-step.done { background: #dcfce7; border-color: #16a34a; color: #166534; }
