/* Workspace docs/wiki/files (Phase 6). */
.wsd-boards { max-width: 70%; overflow-x: auto; }
.wsd-tree { padding: 8px 14px; }
.wsd-node { margin: 2px 0; }
.wsd-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.wsd-row:hover { background: var(--bg-hover, #F8FAFC); }
.wsd-row > i { color: var(--admin-primary, #3B82F6); font-size: 16px; }
.wsd-child { margin-inline-start: 34px; }
.wsd-title { flex: 1; font-weight: 600; font-size: 13.5px; }
.wsd-meta { color: #94A3B8; font-size: 11.5px; }
.wsd-row-actions { display: none; gap: 4px; }
.wsd-row:hover .wsd-row-actions { display: inline-flex; }

.wsd-editor-wrap { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(15,23,42,.08); overflow: hidden; }
.wsd-editor-wrap .ql-container { min-height: 55vh; font-size: 14px; }
.wsd-editor-wrap .ql-toolbar { border-inline: 0; border-top: 0; }
.wsd-dirty { color: #F59E0B; font-size: 22px; line-height: 1; }
.wsd-conflict { display: flex; align-items: center; gap: 10px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.wsd-conflict i { font-size: 18px; }
.wsd-comments { position: fixed; inset-inline-end: 0; top: 0; bottom: 0; width: 340px; background: #fff; box-shadow: -4px 0 16px rgba(15,23,42,.14); z-index: 60; display: flex; flex-direction: column; }
.wsd-comments-body { flex: 1; overflow-y: auto; padding: 10px 14px; }
.wsd-comment { border: 1px solid var(--border-color, #E2E8F0); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.wsd-comment-resolved { opacity: .5; }
.wsd-comment-head { display: flex; gap: 8px; align-items: baseline; }
.wsd-comment-body { font-size: 13px; margin-top: 4px; }
.wsd-comment-actions { display: flex; gap: 4px; margin-top: 6px; }
.wsd-preview { font-size: 13px; }
.wsd-category { font-size: 10.5px; font-weight: 800; background: #EEF2FF; color: #4338CA; border-radius: 999px; padding: 2px 9px; }
.wsd-page { cursor: pointer; }

/* files */
.wsf-layout { display: flex; gap: 14px; }
.wsf-folders { width: 220px; flex: 0 0 220px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 1px 4px rgba(15,23,42,.08); align-self: flex-start; }
.wsf-folder { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--text-primary, #0F172A); }
.wsf-folder:hover { background: var(--bg-hover, #F8FAFC); }
.wsf-folder-active, .wsf-folder-active:hover { background: var(--admin-primary, #3B82F6); color: #fff; }
.wsf-folder i:first-child { color: #F59E0B; }
.wsf-folder-active i:first-child { color: #fff; }
.wsf-folder span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsf-folder-del { opacity: 0; }
.wsf-folder:hover .wsf-folder-del { opacity: 1; }
.wsf-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-content: start; }
.wsf-file { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 4px rgba(15,23,42,.08); display: flex; flex-direction: column; gap: 6px; position: relative; }
.wsf-file-deleted { opacity: .55; }
.wsf-file-preview img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.wsf-file-icon { text-align: center; padding: 18px 0; }
.wsf-file-icon i { font-size: 38px; color: var(--admin-primary, #3B82F6); }
.wsf-file-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsf-file-meta { display: flex; gap: 8px; font-size: 11px; color: #94A3B8; align-items: center; }
.wsf-appr { font-weight: 800; font-size: 10px; border-radius: 999px; padding: 2px 8px; }
.wsf-appr-pending { background: #FEF3C7; color: #92400E; }
.wsf-appr-approved { background: #DCFCE7; color: #15803D; }
.wsf-file-tags small { color: #94A3B8; font-size: 10.5px; }
.wsf-file-actions { display: none; gap: 2px; position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 2px 4px; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.wsf-file:hover .wsf-file-actions { display: inline-flex; }
.wsf-file-actions button, .wsf-file-actions label { border: 0; background: transparent; cursor: pointer; font-size: 13px; color: #64748B; padding: 4px 5px; border-radius: 6px; }
.wsf-file-actions button:hover, .wsf-file-actions label:hover { color: var(--admin-primary, #3B82F6); background: var(--bg-hover, #F1F5F9); }
@media (max-width: 900px) { .wsf-layout { flex-direction: column; } .wsf-folders { width: 100%; flex-basis: auto; display: flex; overflow-x: auto; gap: 4px; } }

/* ---------- goals/timesheets/reports/whiteboard (Phase 7) ---------- */
.wsg-period { width: 90px; height: 34px; font-size: 12.5px; }
.wsg-boardsel { width: 170px; height: 34px; font-size: 12.5px; }
.wsg-week { font-size: 13px; font-weight: 600; color: #475569; }
.wsg-list { display: flex; flex-direction: column; gap: 12px; }
.wsg-goal { padding: 16px; }
.wsg-goal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wsg-goal-title h4 { margin: 0; font-size: 15px; font-weight: 700; }
.wsg-progress { position: relative; height: 22px; background: #E2E8F0; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.wsg-progress-bar { height: 100%; background: var(--admin-primary, #3B82F6); border-radius: 999px; transition: width .3s; }
.wsg-progress-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #0F172A; }
.wsg-krs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wsg-kr { display: flex; align-items: center; gap: 12px; border-top: 1px dashed #F1F5F9; padding-top: 8px; }
.wsg-kr-main { flex: 1; min-width: 0; }
.wsg-kr-title { font-size: 13px; font-weight: 600; display: block; }
.wsg-kr-progress { flex: 2; margin-top: 0; }
.wsg-running { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; color: var(--admin-primary, #3B82F6); }
.wsg-weekgrid { padding: 12px 14px; margin-bottom: 12px; }
.wsg-week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wsg-week-head h5 { margin: 0; }
.wsg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wsg-day { border: 1px solid #F1F5F9; border-radius: 10px; padding: 8px; min-height: 120px; }
.wsg-day-head { display: flex; justify-content: space-between; font-size: 11px; color: #64748B; }
.wsg-day-total { font-size: 15px; font-weight: 800; margin: 6px 0; }
.wsg-entry { background: var(--bg-hover, #F1F5F9); border-radius: 8px; padding: 5px 8px; margin-top: 4px; font-size: 11px; }
.wsg-entry-name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsg-manual { padding: 12px 14px; }
.wsg-manual h5 { margin: 0 0 10px; }
.wsg-manual-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wsg-manual-row .uk-input { height: 36px; font-size: 12.5px; }
.wsg-cardpick { position: relative; flex: 1; min-width: 220px; }
.wsg-cardresults { position: absolute; top: 38px; inset-inline-start: 0; min-width: 260px; background: #fff; border: 1px solid var(--border-color, #E2E8F0); border-radius: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.14); z-index: 30; }
.wsg-cardresults a { display: block; padding: 8px 12px; font-size: 12.5px; }
.wsg-cardresults a:hover { background: #F8FAFC; }
.wsg-min { width: 90px; }
.wsg-team { padding: 10px 14px; }
.wsw-tools { display: flex; align-items: center; gap: 4px; }
.wsw-tool { width: 34px; height: 34px; border: 1px solid transparent; background: transparent; border-radius: 9px; cursor: pointer; font-size: 15px; color: #64748B; display: inline-flex; align-items: center; justify-content: center; }
.wsw-tool:hover { background: var(--bg-hover, #F1F5F9); color: var(--admin-primary, #3B82F6); }
.wsw-tool-active { background: rgba(59,130,246,.12); color: var(--admin-primary, #3B82F6); border-color: var(--admin-primary, #3B82F6); }
.wsw-colors { display: inline-flex; gap: 4px; margin-inline: 8px; }
.wsw-color { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.wsw-color-active { border-color: #0F172A; }
.wsw-wrap { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(15,23,42,.08); overflow: hidden; }
.wsw-wrap canvas { display: block; }
@media (max-width: 1100px) { .wsg-days { grid-template-columns: repeat(3, 1fr); } }
