/* OnWorkspace - SharePoint-style Workspace & Office Suite */
.ows-body { margin: 0; padding: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif; background: #f3f2f1; color: #201f1e; }
.ows-portal-body { background: linear-gradient(135deg, #0f2942 0%, #1b4b72 55%, #0078d4 100%); min-height: 100vh; padding: 36px 16px; box-sizing: border-box; }
.ows-portal-wrapper { max-width: 1060px; margin: 0 auto; }
.ows-portal-hero { text-align: center; color: #fff; margin-bottom: 28px; }
.ows-portal-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.ows-portal-hero h1 { margin: 0 0 8px; font-size: 32px; font-weight: 700; }
.ows-portal-hero p { margin: 0 auto; max-width: 680px; font-size: 15px; opacity: 0.92; }
.ows-portal-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .ows-portal-grid { grid-template-columns: 1fr; } }
.ows-portal-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); box-sizing: border-box; }
.ows-portal-card h2 { margin: 0 0 16px; font-size: 19px; color: #1b1a19; }
.ows-portal-card h3 { margin: 0 0 12px; font-size: 16px; color: #1b1a19; }
.ows-divider { border: 0; border-top: 1px solid #edebe9; margin: 18px 0; }
.ows-field { margin-bottom: 14px; }
.ows-field label { display: block; font-size: 12.5px; font-weight: 600; color: #323130; margin-bottom: 5px; }
.ows-field input[type="text"], .ows-field input[type="email"], .ows-field input[type="password"], .ows-field select { width: 100%; padding: 9px 11px; border: 1px solid #8a8886; border-radius: 4px; font-size: 13.5px; box-sizing: border-box; background: #fff; color: #201f1e; }
.ows-field input:focus, .ows-field select:focus { outline: none; border-color: #0078d4; box-shadow: 0 0 0 2px rgba(0,120,212,0.15); }
.ows-slug-input-group { display: flex; align-items: center; border: 1px solid #8a8886; border-radius: 4px; overflow: hidden; background: #faf9f8; }
.ows-slug-prefix { padding: 9px 10px; font-size: 12.5px; color: #605e5c; background: #f3f2f1; border-right: 1px solid #edebe9; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ows-slug-input-group input { border: 0 !important; box-shadow: none !important; background: #fff !important; flex: 1; }
.ows-feedback { display: block; margin-top: 5px; font-size: 12px; color: #605e5c; }
.ows-feedback.ok { color: #107c10; font-weight: 600; }
.ows-feedback.err { color: #a4262c; font-weight: 600; }
.ows-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ows-row-2 { grid-template-columns: 1fr; } }
.ows-logged-in-banner { background: #eff6fc; border-left: 3px solid #0078d4; padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; color: #201f1e; }
.ows-alert.error { background: #fde7e9; border-left: 3px solid #a4262c; color: #a4262c; padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.ows-org-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ows-org-link-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1px solid #edebe9; border-radius: 6px; text-decoration: none; color: #201f1e; transition: all 0.15s; }
.ows-org-link-item:hover { border-color: #0078d4; background: #f3f9fd; }
.ows-org-link-item strong { display: block; font-size: 14px; }
.ows-org-link-item span { font-size: 12px; color: #605e5c; }
.ows-badge { background: #e1dfdd; color: #201f1e; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 10px; }
.ows-link-muted { font-size: 12.5px; color: #605e5c; text-decoration: none; }
.ows-link-muted:hover { text-decoration: underline; }
.ows-logo-grid { display: inline-grid; grid-template-columns: repeat(2, 7px); gap: 2px; }
.ows-logo-grid span { width: 7px; height: 7px; background: #0078d4; display: block; border-radius: 1px; }
.ows-logo-grid.white span { background: #ffffff; }
.ows-topbar { height: 48px; background: #0078d4; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); position: sticky; top: 0; z-index: 100; }
.ows-topbar-left { display: flex; align-items: center; gap: 10px; }
.ows-app-launcher { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; text-decoration: none; }
.ows-app-launcher:hover { background: rgba(255,255,255,0.15); }
.ows-suite-title { font-weight: 600; font-size: 15px; }
.ows-org-divider { opacity: 0.5; }
.ows-org-badge { font-weight: 600; font-size: 14px; }
.ows-url-pill { background: rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 12px; font-size: 11.5px; }
.ows-topbar-right { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ows-role-chip { background: rgba(0,0,0,0.22); padding: 3px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.ows-logout-link { color: #fff; text-decoration: none; opacity: 0.9; font-size: 12px; border: 1px solid rgba(255,255,255,0.4); padding: 3px 8px; border-radius: 4px; }
.ows-logout-link:hover { background: rgba(255,255,255,0.15); }
.ows-workspace-container { display: flex; min-height: calc(100vh - 48px); }
.ows-sidebar { width: 245px; background: #faf9f8; border-right: 1px solid #edebe9; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.ows-sidebar-section { padding: 14px 10px 6px; }
.ows-sidebar-heading { font-size: 11px; font-weight: 700; color: #605e5c; letter-spacing: 0.6px; padding: 0 8px 6px; }
.ows-dept-list { list-style: none; margin: 0; padding: 0; }
.ows-dept-item, .ows-nav-admin-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; cursor: pointer; font-size: 13.5px; color: #201f1e; margin-bottom: 2px; }
.ows-dept-item:hover, .ows-nav-admin-btn:hover { background: #edebe9; }
.ows-dept-item.active { background: #deecf9; color: #0078d4; font-weight: 600; }
.ows-dept-item.locked { color: #8a8886; }
.ows-sidebar-footer { padding: 14px; border-top: 1px solid #edebe9; }
.ows-workflow-legend { font-size: 11.5px; color: #605e5c; line-height: 1.5; }
.ows-workflow-legend strong { display: block; color: #323130; margin-bottom: 4px; }
.ows-main { flex: 1; background: #ffffff; display: flex; flex-direction: column; min-width: 0; }
.ows-command-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px; border-bottom: 1px solid #edebe9; background: #ffffff; gap: 10px; flex-wrap: wrap; }
.ows-cmd-left { display: flex; align-items: center; gap: 8px; }
.ows-cmd-btn { background: #f3f2f1; border: 1px solid transparent; color: #201f1e; padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ows-cmd-btn:hover { background: #edebe9; }
.ows-cmd-btn.primary { background: #0078d4; color: #fff; font-weight: 600; }
.ows-cmd-btn.primary:hover { background: #106ebe; }
.ows-dropdown { position: relative; display: inline-block; }
.ows-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #edebe9; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.14); min-width: 205px; z-index: 50; padding: 4px 0; }
.ows-dropdown-menu.open { display: block; }
.ows-dropdown-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 14px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; color: #201f1e; }
.ows-dropdown-menu button:hover { background: #f3f2f1; }
.ows-icon-word { background: #185abd; color: #fff; font-weight: 700; font-size: 11px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; }
.ows-icon-cel { background: #107c41; color: #fff; font-weight: 700; font-size: 11px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; }
.ows-content-header { padding: 14px 20px 8px; }
.ows-breadcrumb { font-size: 18px; color: #201f1e; }
.ows-breadcrumb span { color: #605e5c; font-weight: 400; }
.ows-library-view { padding: 6px 20px 24px; overflow-x: auto; }
.ows-sp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ows-sp-table th { text-align: left; padding: 9px 10px; border-bottom: 1px solid #edebe9; color: #605e5c; font-weight: 600; font-size: 12px; }
.ows-sp-table td { padding: 10px 10px; border-bottom: 1px solid #f3f2f1; vertical-align: middle; }
.ows-sp-table tr:hover td { background: #f9f8f7; }
.ows-doc-title-link { font-weight: 600; color: #0078d4; cursor: pointer; text-decoration: none; }
.ows-doc-title-link:hover { text-decoration: underline; }
.ows-table-empty { text-align: center; color: #605e5c; padding: 28px !important; }
.ows-status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-draft { background: #edebe9; color: #323130; }
.status-pending_review { background: #fff4ce; color: #795e00; }
.status-pending_approval { background: #deecf9; color: #005a9e; }
.status-approved { background: #dff6dd; color: #107c10; }
.status-returned { background: #fde7e9; color: #a4262c; }
.status-active { background: #dff6dd; color: #107c10; }
.status-pending_hod_approval { background: #fff4ce; color: #795e00; }
.status-terminated { background: #fde7e9; color: #a4262c; }
.ows-action-link { background: none; border: 0; color: #0078d4; cursor: pointer; font-size: 12px; padding: 2px 6px; }
.ows-action-link:hover { text-decoration: underline; }
.ows-action-link.danger { color: #a4262c; }
.ows-locked-view { padding: 40px 20px; display: flex; justify-content: center; }
.ows-locked-card { max-width: 460px; text-align: center; background: #faf9f8; border: 1px solid #edebe9; border-radius: 8px; padding: 32px 24px; }
.ows-lock-big { font-size: 38px; margin-bottom: 10px; }
.ows-locked-card h3 { margin: 0 0 8px; }
.ows-auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f3f2f1; padding: 20px; }
.ows-auth-box { background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.ows-sp-brand-dark { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.ows-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ows-editor-shell { width: 100%; max-width: 1140px; height: 90vh; background: #f3f2f1; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.ows-editor-header { height: 46px; background: #185abd; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.ows-editor-header.cel-theme { background: #107c41; }
.ows-editor-title-group { display: flex; align-items: center; gap: 10px; flex: 1; }
.ows-app-pill { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 700; }
#ows-doc-title-input { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35); color: #fff; padding: 4px 10px; border-radius: 3px; font-size: 14px; font-weight: 600; min-width: 240px; }
#ows-doc-title-input::placeholder { color: rgba(255,255,255,0.75); }
.ows-editor-actions { display: flex; align-items: center; gap: 8px; }
.ows-save-status { font-size: 12px; opacity: 0.9; }
.ows-btn-light { background: #fff; color: #201f1e; border: 0; padding: 5px 12px; border-radius: 3px; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.ows-btn-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ows-dialog-header .ows-btn-close { color: #323130; }
.ows-workflow-bar { background: #fff; border-bottom: 1px solid #edebe9; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ows-wf-steps { font-size: 12px; color: #605e5c; }
.ows-wf-steps .ows-step.active-step { font-weight: 700; color: #0078d4; background: #eff6fc; padding: 2px 7px; border-radius: 10px; }
.ows-wf-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ows-wf-notes-input { padding: 4px 8px; font-size: 12px; border: 1px solid #8a8886; border-radius: 3px; width: 190px; }
.ows-wf-btn { border: 0; padding: 5px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ows-wf-btn.submit { background: #0078d4; color: #fff; }
.ows-wf-btn.review { background: #d83b01; color: #fff; }
.ows-wf-btn.approve { background: #107c10; color: #fff; }
.ows-wf-btn.reject { background: #a4262c; color: #fff; }
.ows-wf-meta-bar { background: #faf9f8; border-bottom: 1px solid #edebe9; padding: 5px 14px; font-size: 11.5px; color: #605e5c; }
.ows-tool-workspace { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ows-word-toolbar { background: #faf9f8; border-bottom: 1px solid #e1dfdd; padding: 6px 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ows-word-toolbar button { background: #fff; border: 1px solid #e1dfdd; border-radius: 3px; padding: 4px 8px; font-size: 12.5px; cursor: pointer; color: #201f1e; }
.ows-word-toolbar button:hover { background: #eff6fc; border-color: #0078d4; }
.ows-tb-sep { width: 1px; height: 18px; background: #e1dfdd; margin: 0 4px; }
.ows-word-page-container { flex: 1; overflow-y: auto; padding: 24px; background: #e6e4e2; display: flex; justify-content: center; }
.ows-word-page { width: 100%; max-width: 816px; min-height: 960px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 54px 64px; box-sizing: border-box; font-size: 15px; line-height: 1.6; outline: none; }
.ows-cel-formula-bar { background: #fff; border-bottom: 1px solid #d1d1d1; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.ows-cell-ref { background: #f3f2f1; border: 1px solid #d1d1d1; padding: 3px 8px; font-size: 12px; font-weight: 700; min-width: 38px; text-align: center; border-radius: 2px; }
.ows-fx-label { font-style: italic; font-weight: 700; color: #107c41; font-family: Georgia, serif; }
#ows-formula-input { flex: 1; border: 1px solid #d1d1d1; padding: 4px 8px; font-size: 13px; border-radius: 2px; }
.ows-btn-mini { background: #f3f2f1; border: 1px solid #c8c6c4; padding: 4px 8px; font-size: 12px; border-radius: 2px; cursor: pointer; }
.ows-cel-grid-wrapper { flex: 1; overflow: auto; background: #fff; }
.ows-cel-table { border-collapse: collapse; width: max-content; min-width: 100%; }
.ows-cel-table th, .ows-cel-table td { border: 1px solid #e1dfdd; min-width: 96px; height: 28px; padding: 0 6px; font-size: 12.5px; box-sizing: border-box; }
.ows-cel-table th { background: #f3f2f1; color: #605e5c; font-weight: 600; text-align: center; user-select: none; }
.ows-cel-table th.row-hdr { min-width: 38px; width: 38px; }
.ows-cel-table td.selected-cell { outline: 2px solid #107c41; outline-offset: -2px; background: #f3faf6; }
.ows-dialog-box { background: #fff; border-radius: 6px; width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.ows-dialog-box.wide { max-width: 940px; }
.ows-dialog-box.small { max-width: 460px; }
.ows-dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #edebe9; }
.ows-dialog-header h3 { margin: 0; font-size: 16px; }
.ows-dialog-body { padding: 18px; }
.ows-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ows-grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .ows-grid-2, .ows-grid-2-tight { grid-template-columns: 1fr; } }
.ows-card-panel { background: #faf9f8; border: 1px solid #edebe9; border-radius: 6px; padding: 14px; }
.ows-card-panel h4 { margin: 0 0 12px; font-size: 14px; }
.ows-inline-form { display: flex; gap: 8px; margin-bottom: 14px; }
.ows-inline-form select { flex: 1; padding: 7px 10px; border: 1px solid #8a8886; border-radius: 4px; }
.ows-granted-list { list-style: none; margin: 0; padding: 0; }
.ows-granted-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-bottom: 1px solid #edebe9; font-size: 13px; }
.ows-role-pill { background: #eff6fc; color: #0078d4; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ows-btn-primary { background: #0078d4; color: #fff; border: 0; padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; cursor: pointer; }
.ows-btn-primary:hover { background: #106ebe; }
.ows-btn-primary.full-width { width: 100%; padding: 11px 16px; font-size: 14px; }
.ows-btn-secondary { display: inline-block; background: #f3f2f1; color: #201f1e; padding: 8px 14px; border-radius: 4px; text-decoration: none; font-size: 13px; }
.ows-muted { color: #605e5c; font-size: 13px; }

#wpadminbar { display: none !important; }
html.ows-no-adminbar, body.ows-body { padding-top: 0 !important; margin-top: 0 !important; }
.ows-header-logo-img { max-height: 32px; max-width: 180px; width: auto; height: auto; display: block; object-fit: contain; }
.ows-swatch-btn { border: 1px solid rgba(0,0,0,0.2); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 4px; cursor: pointer; }
.ows-swatch-btn:hover { opacity: 0.9; }
.ows-icon-folder { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-size: 13px; }
.ows-subfolders-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 10px 12px; background: #faf9f8; border: 1px solid #edebe9; border-radius: 6px; }
.ows-subfolder-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid #d2d0ce; border-radius: 4px; font-size: 12.5px; font-weight: 600; color: #201f1e; cursor: pointer; }
.ows-subfolder-chip:hover { border-color: #0078d4; background: #eff6fc; color: #0078d4; }
.ows-row-menu-wrap { position: relative; display: inline-block; text-align: right; }
.ows-row-more-btn { background: #f3f2f1; border: 1px solid #e1dfdd; border-radius: 4px; padding: 3px 8px; font-size: 13px; font-weight: 700; color: #323130; cursor: pointer; line-height: 1.2; }
.ows-row-more-btn:hover { background: #edebe9; }
.ows-row-menu-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 3px; background: #fff; border: 1px solid #e1dfdd; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.14); min-width: 125px; z-index: 60; padding: 4px 0; text-align: left; }
.ows-row-menu-dropdown.open { display: block; }
.ows-row-menu-item { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; padding: 7px 12px; font-size: 12.5px; color: #201f1e; cursor: pointer; text-align: left; }
.ows-row-menu-item:hover { background: #f3f2f1; }
.ows-row-menu-item.danger { color: #a4262c; }
.ows-cel-style-toolbar { background: #faf9f8; border-bottom: 1px solid #e1dfdd; padding: 6px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ows-cel-style-toolbar button, .ows-cel-style-toolbar select { background: #fff; border: 1px solid #c8c6c4; border-radius: 3px; padding: 3px 7px; font-size: 12px; cursor: pointer; color: #201f1e; }
.ows-cel-style-toolbar button.active-style { background: #dff6dd; border-color: #107c41; color: #107c41; font-weight: 700; }
.ows-cel-style-toolbar input[type="color"] { width: 26px; height: 24px; padding: 0; border: 1px solid #c8c6c4; border-radius: 2px; cursor: pointer; background: none; }

.ows-subfolder-chip-wrap { display: inline-flex; align-items: center; background: #fff; border: 1px solid #d2d0ce; border-radius: 4px; overflow: hidden; }
.ows-subfolder-chip-wrap:hover { border-color: #0078d4; }
.ows-subfolder-chip-wrap .ows-subfolder-chip { border: 0; border-radius: 0; }
.ows-folder-del-btn { background: none; border: 0; border-left: 1px solid #edebe9; color: #a4262c; padding: 6px 8px; cursor: pointer; font-size: 12px; font-weight: 700; }
.ows-folder-del-btn:hover { background: #fde7e9; }
.ows-cmd-select { padding: 6px 10px; border: 1px solid #d2d0ce; border-radius: 4px; font-size: 12.5px; background: #fff; color: #201f1e; }
.ows-period-pills { display: inline-flex; border: 1px solid #d2d0ce; border-radius: 4px; overflow: hidden; background: #fff; }
.ows-period-btn { background: none; border: 0; border-right: 1px solid #edebe9; padding: 6px 11px; font-size: 12px; font-weight: 600; color: #323130; cursor: pointer; }
.ows-period-btn:last-child { border-right: 0; }
.ows-period-btn:hover { background: #f3f2f1; }
.ows-period-btn.active { background: #0078d4; color: #fff; }
.ows-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ows-kpi-card { background: #fff; border: 1px solid #edebe9; border-radius: 6px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ows-kpi-label { font-size: 11.5px; font-weight: 600; color: #605e5c; text-transform: uppercase; letter-spacing: 0.03em; }
.ows-kpi-val { font-size: 20px; font-weight: 700; color: #201f1e; margin: 4px 0; }
.ows-kpi-sub { font-size: 11.5px; color: #605e5c; }
.ows-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .ows-charts-grid { grid-template-columns: 1fr; } }
.ows-chart-card { background: #fff; border: 1px solid #edebe9; border-radius: 6px; padding: 14px; }
.ows-chart-card h4 { margin: 0 0 12px 0; font-size: 13.5px; color: #201f1e; }
.ows-bar-row { margin-bottom: 12px; }
.ows-bar-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: #323130; }
.ows-bar-track { height: 10px; background: #f3f2f1; border-radius: 5px; overflow: hidden; }
.ows-bar-fill { height: 100%; border-radius: 5px; transition: width 0.25s ease; }
.ows-bar-fill.inc { background: #107c41; }
.ows-bar-fill.exp { background: #d83b01; }
.ows-bar-fill.pur { background: #5c2d91; }
.ows-bar-fill.over { background: #a4262c; }
.ows-info-banner { background: #eff6fc; border: 1px solid #c7e0f4; color: #004578; padding: 10px 12px; border-radius: 4px; font-size: 12.5px; }
.ows-type-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ows-type-pill.income { background: #dff6dd; color: #107c10; }
.ows-type-pill.expense { background: #fed9cc; color: #a4262c; }
.ows-type-pill.purchase { background: #e8daef; color: #5c2d91; }


.ows-workspace-container {
    display: flex;
    min-height: calc(100vh - 48px);
    align-items: stretch;
    background: #f3f2f1;
}

.ows-sidebar {
    width: 248px;
    min-height: calc(100vh - 48px);
    background: #faf9f8;
    border-right: 1px solid #edebe9;
    margin-right: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    align-self: stretch;
}

.ows-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: #ffffff;
    border-left: 1px solid #edebe9;
    overflow-x: clip;
}
/* ==================== EXACT GRID HEADER + FILE ROW ALIGNMENT & SYSTEM INFO TABLE (v1.8.5) ==================== */
.ows-sticky-workspace-head {
    position: static;
    background: #faf9f8;
    border-bottom: 1px solid #edebe9;
}

.ows-sticky-workspace-head {
    position: static;
    background: #faf9f8;
    border-bottom: 1px solid #edebe9;
}

#ows-library-view .ows-sticky-table-header {
    position: static;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1.8fr) 150px 120px 155px 64px !important;
    align-items: center;
    padding: 9px 12px;
    background: #f3f2f1;
    border: 1px solid #edebe9;
    border-radius: 4px 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #323130;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#ows-library-view .ows-sticky-table-header > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ows-library-view .ows-sticky-table-header .act {
    text-align: right;
}

#ows-library-view .ows-headless-table {
    display: block !important;
    width: 100% !important;
    border: 1px solid #edebe9;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    border-collapse: collapse;
    table-layout: fixed;
}

#ows-library-view .ows-headless-table tbody {
    display: block !important;
    width: 100% !important;
}

#ows-library-view .ows-headless-table tr {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1.8fr) 150px 120px 155px 64px !important;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    border-bottom: 1px solid #f3f2f1;
    box-sizing: border-box;
    width: 100%;
    background: #ffffff;
}

#ows-library-view .ows-headless-table tr:last-child {
    border-bottom: 0;
}

#ows-library-view .ows-headless-table tr:hover {
    background: #f9f8f7;
}

#ows-library-view .ows-headless-table td {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

#ows-library-view .ows-headless-table td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
}

#ows-library-view .ows-headless-table td:nth-child(6) {
    text-align: right;
    overflow: visible;
}

.ows-doc-title-link {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.ows-status-badge {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Stylish System Information Table & Duration Progress Bar */
.ows-sysinfo-card {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 18px 20px;
    max-width: 860px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ows-sysinfo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edebe9;
    margin-bottom: 14px;
}

.ows-sysinfo-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #201f1e;
}

.ows-sysinfo-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #605e5c;
}

.ows-sysinfo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #edebe9;
    border-radius: 6px;
    overflow: hidden;
}

.ows-sysinfo-table th {
    width: 220px;
    text-align: left;
    padding: 9px 14px;
    background: #faf9f8;
    color: #323130;
    font-weight: 600;
    border-bottom: 1px solid #edebe9;
    border-right: 1px solid #edebe9;
    font-size: 12.5px;
}

.ows-sysinfo-table td {
    padding: 9px 14px;
    color: #201f1e;
    border-bottom: 1px solid #edebe9;
    background: #ffffff;
    font-size: 13px;
}

.ows-sysinfo-table tr:last-child th,
.ows-sysinfo-table tr:last-child td {
    border-bottom: 0;
}

.ows-duration-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: #faf9f8;
    border: 1px solid #e1dfdd;
    border-radius: 6px;
}

.ows-duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ows-duration-track {
    width: 100%;
    height: 10px;
    background: #e1dfdd;
    border-radius: 999px;
    overflow: hidden;
}

.ows-duration-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ows-duration-fill.is-green {
    background: #107c10;
}

.ows-duration-fill.is-yellow {
    background: #d97706;
}

.ows-duration-fill.is-red {
    background: #d13438;
}

.ows-duration-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.ows-duration-pill.is-green {
    background: #dff6dd;
    color: #107c10;
}

.ows-duration-pill.is-yellow {
    background: #fff4ce;
    color: #8a5300;
}

.ows-duration-pill.is-red {
    background: #fde7e9;
    color: #a4262c;
}

@media (max-width: 960px) {
    .ows-workspace-container {
        flex-direction: column;
    }
    .ows-sidebar {
        width: 100%;
        min-height: auto;
        margin-right: 0;
        border-right: 0;
        border-bottom: 1px solid #edebe9;
    }
    .ows-main {
        border-left: 0;
    }
    .ows-sticky-table-header {
        display: none;
    }
    .ows-headless-table tr {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }
}

/* ==================== MODERN REGISTRATION & LOGIN PORTAL STYLES (v1.8.7) ==================== */
.ows-landing-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 14px 36px;
    box-sizing: border-box;
}

.ows-landing-hero {
    color: #ffffff;
    margin-bottom: 24px;
}

.ows-landing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.ows-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.ows-brand-pill .ows-logo-grid span {
    background: #ffffff;
}

.ows-landing-nav-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.ows-pill-link {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ows-pill-link:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

.ows-hero-copy {
    max-width: 760px;
}

.ows-hero-copy h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.22;
    font-weight: 700;
    color: #ffffff;
}

.ows-hero-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.ows-landing-card-wide {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    color: #201f1e;
}

.ows-card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ows-card-head-row h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #201f1e;
}

.ows-org-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.ows-org-tile {
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 14px;
    background: #faf9f8;
}

.ows-org-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.ows-role-pill {
    background: #deecf9;
    color: #005a9e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.ows-org-tile-url {
    font-size: 12px;
    color: #605e5c;
    word-break: break-all;
}

.ows-landing-grid-modern {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 22px;
    align-items: start;
}

.ows-landing-card-modern {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #201f1e;
    box-sizing: border-box;
    min-width: 0;
}

.ows-card-header-modern {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edebe9;
}

.ows-step-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #deecf9;
    color: #005a9e;
    margin-bottom: 8px;
}

.ows-step-tag.secondary {
    background: #eff6fc;
    color: #106ebe;
}

.ows-card-header-modern h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #1b1a19;
}

.ows-card-header-modern p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #605e5c;
}

.ows-form-section-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #005a9e;
    margin: 18px 0 10px;
}

.ows-form-section-title:first-child {
    margin-top: 0;
}

.ows-modern-field {
    margin-bottom: 14px;
}

.ows-modern-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 5px;
}

.ows-modern-field input[type="text"],
.ows-modern-field input[type="email"],
.ows-modern-field input[type="password"],
.ows-modern-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #8a8886;
    border-radius: 5px;
    font-size: 13.5px;
    color: #201f1e;
    background: #ffffff;
    box-sizing: border-box;
}

.ows-modern-field input:focus,
.ows-modern-field select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.16);
}

.ows-modern-url-group {
    display: flex;
    align-items: center;
    border: 1px solid #8a8886;
    border-radius: 5px;
    overflow: hidden;
    background: #faf9f8;
}

.ows-modern-url-prefix {
    padding: 9px 10px;
    font-size: 12px;
    color: #605e5c;
    background: #f3f2f1;
    border-right: 1px solid #e1dfdd;
    white-space: nowrap;
}

.ows-modern-url-group input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.ows-slug-feedback {
    margin-top: 5px;
    font-size: 12px;
    color: #605e5c;
}

.ows-modern-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ows-plan-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.ows-plan-option-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d2d0ce;
    border-radius: 7px;
    background: #faf9f8;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ows-plan-option-card:hover {
    border-color: #0078d4;
    background: #f3f9fd;
}

.ows-plan-option-card input[type="radio"] {
    margin-top: 3px;
    accent-color: #0078d4;
}

.ows-plan-option-body {
    flex: 1;
    min-width: 0;
}

.ows-plan-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #201f1e;
}

.ows-plan-price {
    font-weight: 700;
    color: #005a9e;
    font-size: 14px;
}

.ows-plan-meta {
    font-size: 12px;
    color: #605e5c;
    margin-top: 2px;
}

.ows-plan-desc {
    font-size: 12px;
    color: #323130;
    margin-top: 4px;
    line-height: 1.4;
}

.ows-info-banner {
    background: #eff6fc;
    border-left: 3px solid #0078d4;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13px;
    color: #201f1e;
}

.ows-error-box {
    background: #fde7e9;
    border-left: 3px solid #a4262c;
    color: #a4262c;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.ows-modern-btn-primary {
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: #0078d4;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ows-modern-btn-primary:hover {
    background: #106ebe;
}

.ows-modern-btn-sm {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    background: #0078d4;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.ows-modern-btn-sm:hover {
    background: #106ebe;
    color: #ffffff;
}

.ows-modern-wp-login p {
    margin: 0 0 12px;
}

.ows-modern-wp-login label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 4px;
}

.ows-modern-wp-login input[type="text"],
.ows-modern-wp-login input[type="password"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #8a8886;
    border-radius: 5px;
    font-size: 13.5px;
    color: #201f1e;
    background: #ffffff;
    box-sizing: border-box;
}

.ows-modern-wp-login .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.ows-modern-wp-login input[type="submit"] {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    background: #1b4b72;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.ows-modern-wp-login input[type="submit"]:hover {
    background: #0f2942;
}

.ows-feature-checklist {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edebe9;
}

.ows-feature-checklist h4 {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: #201f1e;
}

.ows-feature-checklist ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #323130;
}

@media (max-width: 900px) {
    .ows-landing-grid-modern {
        grid-template-columns: 1fr;
    }
    .ows-modern-row-2 {
        grid-template-columns: 1fr;
    }
    .ows-hero-copy h1 {
        font-size: 24px;
    }
    .ows-landing-card-modern {
        padding: 18px 16px;
    }
}
