/* Workspace sheets (Phase 5) — list + grid view. */
.wss-card { cursor: pointer; }
.wss-card:hover { box-shadow: 0 4px 14px rgba(15,23,42,.12); }
.wss-icon { font-size: 20px; color: var(--admin-primary, #3B82F6); }
.wss-level { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.wss-level-owner { background: #DCFCE7; color: #15803D; }
.wss-level-edit { background: #DBEAFE; color: #1D4ED8; }
.wss-level-read { background: #F1F5F9; color: #64748B; }

.wss-title { display: flex; align-items: center; gap: 10px; }
.wss-title h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.wss-saving { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--admin-primary, #3B82F6); }
.wss-readonly { font-size: 11px; font-weight: 800; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 3px 10px; }
.wss-presence { font-size: 11px; font-weight: 700; background: rgba(59,130,246,.12); color: var(--admin-primary, #3B82F6); border-radius: 999px; padding: 4px 10px; }

.wss-container { height: calc(100vh - 180px) !important; min-height: 650px !important; width: 100% !important; position: relative !important; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(15,23,42,.08); display: block !important; }
.wss-container iframe,
.wss-grid iframe,
iframe#frameEditor,
iframe[name="frameEditor"] { width: 100% !important; height: 100% !important; min-height: 650px !important; border: none !important; display: block !important; }
.wss-grid { width: 100% !important; height: 100% !important; min-height: 650px !important; }
.wss-grid .x-spreadsheet { height: 100% !important; }
[dir="rtl"] .wss-grid .x-spreadsheet { direction: ltr; }   /* the grid itself stays LTR (columns A→Z) */

.wss-drawer { position: fixed; inset-inline-end: 0; top: 0; bottom: 0; width: 400px; background: #fff; box-shadow: -4px 0 16px rgba(15,23,42,.14); z-index: 60; display: flex; flex-direction: column; }
.wss-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color, #E2E8F0); }
.wss-drawer-head h5 { margin: 0; font-size: 14.5px; }
.wss-drawer-body { flex: 1; overflow-y: auto; padding: 10px 16px; }
.wss-history-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F1F5F9; font-size: 12.5px; }
.wss-history-seq { font-weight: 800; color: #64748B; font-size: 11px; }
.wss-history-user { font-weight: 700; }
.wss-history-op { color: #64748B; flex: 1; }
.wss-history-time { color: #94A3B8; font-size: 11px; margin-inline-start: auto; }
.wss-share-add { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
