@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@400;500;600&display=swap'); /* Prevent horizontal overflow on the page */ body, .page-content { overflow-x: hidden; } /* * This page's footer is absolutely positioned inside the reserved * bottom padding of .page-content, and that padding is itself scaled * by .page-content's zoom: 0.9 -- but the footer sits OUTSIDE * .page-content, so the footer's own 60px height is never scaled down. * The reserved padding has to stay bigger than 60px / 0.9 (~67px) or * the footer physically overlaps the content above it; 82px leaves a * small visible gap (~14px) instead of butting up against it. */ .page-content { padding-bottom: 82px; } .comment-page-wrap { display: flex; gap: 0; height: calc(100vh - 220px); min-height: 480px; margin-bottom: 6px; width: 100%; max-width: 100%; overflow: hidden; } .comment-doc-pane { flex: 1 1 0; min-width: 200px; display: flex; flex-direction: column; background: #fff; border-radius: 8px 0 0 8px; border: 1px solid #e9ebec; overflow: hidden; } .comment-doc-pane:fullscreen, .comment-doc-pane.is-document-fullscreen { width: 100vw !important; height: 100vh !important; max-width: none !important; min-width: 0 !important; border: 0; border-radius: 0; background: #fff; } .comment-doc-pane.is-document-fullscreen { position: fixed; inset: 0; z-index: 1090; } .comment-doc-pane:fullscreen .doc-version-layout, .comment-doc-pane.is-document-fullscreen .doc-version-layout { height: 100%; min-height: 0; } /* Resizer handle */ .pane-resizer { width: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: col-resize; background: #f3f6f9; border-top: 1px solid #e9ebec; border-bottom: 1px solid #e9ebec; transition: background 0.15s; user-select: none; -webkit-user-select: none; z-index: 1; } .pane-resizer:hover, .pane-resizer.is-dragging { background: #405189; } .pane-resizer:hover .resizer-dots, .pane-resizer.is-dragging .resizer-dots { color: #fff; } .resizer-dots { display: flex; flex-direction: column; gap: 3px; color: #adb5bd; pointer-events: none; } .resizer-dots span { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; } .comment-thread-pane { width: 420px; min-width: 280px; flex-shrink: 0; display: flex; flex-direction: column; background: #fff; border-radius: 0 8px 8px 0; border: 1px solid #e9ebec; border-left: none; overflow: hidden; } .comment-pane-header { padding: 10px 16px; background: #f3f6f9; border-bottom: 1px solid #e9ebec; font-weight: 600; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .preview-title-wrap { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .preview-title { font-weight: 400; } .preview-title-meta { font-size: 12px; color: #6b7280; font-weight: 500; } .pane-tabs { display: flex; gap: 0; border-bottom: 1px solid #e9ebec; background: #f3f6f9; } .pane-tab { flex: 1; padding: 10px 12px; text-align: center; cursor: pointer; background: #f3f6f9; border: none; color: #6c757d; font-weight: 500; font-size: 13px; transition: all 0.2s; } .pane-tab.active { color: #405189; border-bottom: 3px solid #405189; background: #fff; } .pane-tab:hover { background: #e9ecef; } .pane-tab-content { display: none; flex: 1 1 0; overflow-y: auto; overflow-x: hidden; flex-direction: column; } .pane-tab-content.active { display: flex; } .comment-thread { flex: 1 1 0; overflow-y: auto; overflow-x: hidden; padding: 16px; } .comment-compose { flex-shrink: 0; padding: 12px 16px; border-top: 1px solid #e9ebec; } .review-workflow-actions { padding: 10px 12px; border-bottom: 1px solid #e9ebec; } .comment-compose-label, .review-workflow-actions-label { display: block; margin-bottom: 10px; color: #878a99; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } .review-workflow-actions .review-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .review-workflow-actions .btn { min-height: 30px; border-radius: 5px; font-size: 12px; font-weight: 400; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: normal; padding: 5px 8px; } .review-workflow-actions .btn i { font-size: 13px; line-height: 1; } .review-workflow-actions .btn-primary, .review-workflow-actions .btn-success, .review-workflow-actions .btn-warning, .review-workflow-actions .btn-danger, .review-workflow-actions .btn-info, .review-workflow-actions .btn-secondary { border: 1px solid transparent; transition: all .18s ease-in-out; } .review-workflow-actions .btn-primary { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; } .review-workflow-actions .btn-primary:hover { color: #1e40af; background: #bfdbfe; border-color: #93c5fd; } .review-workflow-actions .btn-success { color: #047857; background: #d1fae5; border-color: #a7f3d0; } .review-workflow-actions .btn-success:hover { color: #065f46; background: #a7f3d0; border-color: #6ee7b7; } .review-workflow-actions .btn-warning { color: #92400e; background: #fef3c7; border-color: #fde68a; } .review-workflow-actions .btn-warning:hover { color: #78350f; background: #fde68a; border-color: #fcd34d; } .review-workflow-actions .btn-danger { color: #b91c1c; background: #fee2e2; border-color: #fecaca; } .review-workflow-actions .btn-danger:hover { color: #991b1b; background: #fecaca; border-color: #fca5a5; } .review-workflow-actions .btn-info { color: #0e7490; background: #cffafe; border-color: #a5f3fc; } .review-workflow-actions .btn-info:hover { color: #155e75; background: #a5f3fc; border-color: #67e8f9; } .review-workflow-actions .btn-secondary { color: #4338ca; background: #e0e7ff; border-color: #c7d2fe; } .review-workflow-actions .btn-secondary:hover { color: #3730a3; background: #c7d2fe; border-color: #a5b4fc; } .review-workflow-actions .review-action-grid .btn:only-child { grid-column: 1 / -1; } .review-workflow-actions .review-action-grid--count-3 .review-action-primary { grid-column: 1 / -1; min-height: 32px; font-size: 12px; } .review-workflow-actions .review-action-grid--count-4 .btn, .review-workflow-actions .review-action-grid--count-5 .btn, .review-workflow-actions .review-action-grid--count-6 .btn { grid-column: auto; } .review-workflow-actions .review-action-grid--count-5 .review-action-primary { grid-column: 1 / -1; } .review-workflow-actions .alert { grid-column: 1 / -1; padding: 8px 10px; font-size: 12px; } .comment-compose .form-control { min-height: 88px; } .comment-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .comment-compose-footer .btn { min-height: 32px; border-radius: 6px; padding: 4px 9px; font-size: 12px; line-height: 1.25; font-weight: 400; display: inline-flex; align-items: center; justify-content: center; gap: 5px; } .comment-compose-footer .btn i { font-size: 13px; line-height: 1; } .comment-attach-btn, .comment-compose-footer .comment-attach-btn { color: #0e7490; background: #cffafe; border-color: #a5f3fc; } .comment-attach-btn:hover, .comment-compose-footer .comment-attach-btn:hover { color: #155e75; background: #a5f3fc; border-color: #67e8f9; } .comment-compose-footer button[type="submit"] { margin-left: auto; } .review-workflow-modal .modal-title, .review-workflow-modal .form-label, .review-workflow-modal .btn { font-weight: 400; } @media (max-width: 575.98px) { .review-workflow-actions .review-action-grid { grid-template-columns: 1fr; } } .comment-bubble { background: #f3f6f9; border-radius: 8px; padding: 10px 12px; margin-top: 4px; word-break: break-word; } .comment-attachment { border: 1px dashed #d6d6d6; border-radius: 8px; padding: 8px 10px; margin-top: 8px; background: #fff; } .doc-version-layout { display: flex; height: 100%; min-height: 0; } .doc-version-sidebar { width: 220px; border-right: 1px solid #e5e7eb; background: #f3f4f6; padding: 8px; overflow-y: auto; flex-shrink: 0; transition: width 0.18s ease, padding 0.18s ease, border-color 0.18s ease; display: flex; flex-direction: column; gap: 8px; } .doc-version-layout.is-resizing .doc-version-sidebar { transition: none; } .doc-version-layout.is-resize-compact .doc-version-title-text, .doc-version-layout.is-resize-compact .doc-version-section-header, .doc-version-layout.is-resize-compact .doc-version-name, .doc-version-layout.is-opening .doc-version-title-text, .doc-version-layout.is-opening .doc-version-section-header, .doc-version-layout.is-opening .doc-version-name { opacity: 0; pointer-events: none; } .doc-version-layout.is-resize-compact .doc-version-list, .doc-version-layout.is-opening .doc-version-list { opacity: 0; pointer-events: none; } .doc-version-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .doc-version-toggle { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #d1d5db; background: #f9fafb; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; } .doc-version-title { margin: 0; min-width: 0; flex: 1 1 auto; } .doc-version-title-text { display: block; font-size: 13px; line-height: 1.2; color: #4b5563; font-weight: 500; margin-right: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .doc-version-list { margin-top: 2px; } .doc-version-list.nav { gap: 4px; } .doc-version-section { margin-top: 8px; } .doc-version-section:first-child { margin-top: 4px; } .doc-version-section-header { margin-bottom: 4px; } .doc-version-section-toggle { width: 100%; border: 0; background: transparent; color: #6b7280; font-size: 12px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 4px 4px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; } .doc-version-section-toggle i { font-size: 14px; transition: transform 0.15s ease; } .doc-version-section-toggle[aria-expanded="false"] i { transform: rotate(-90deg); } .doc-version-section-body { display: none; gap: 4px; flex-direction: column; } .doc-version-section-body.is-open { display: flex; } .doc-version-name { line-height: 1.3; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-version-badge { width: 28px; height: 28px; border-radius: 8px; background: #d1d5db; color: #111827; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; font-size: 12px; font-weight: 500; line-height: 1; text-transform: uppercase; } /* Unversioned documents: same slot as the version badge, but a file icon. */ .doc-version-badge.doc-version-badge--file { background: transparent; color: #6b7280; border: 1px solid #d1d5db; font-size: 15px; } .doc-version-badge--file.doc-file-type-pdf { color: #dc2626; border-color: #fecaca; background: #fef2f2; } .doc-version-badge--file.doc-file-type-word { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; } .doc-version-badge--file.doc-file-type-excel { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; } .doc-version-badge--file.doc-file-type-csv { color: #0d9488; border-color: #99f6e4; background: #f0fdfa; } .doc-version-badge--file.doc-file-type-ppt { color: #ea580c; border-color: #fed7aa; background: #fff7ed; } .doc-version-badge--file.doc-file-type-image { color: #9333ea; border-color: #e9d5ff; background: #faf5ff; } .doc-version-badge--file.doc-file-type-archive { color: #a16207; border-color: #fde68a; background: #fefce8; } .preview-title-version { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .preview-title-version .doc-version-badge { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; } .doc-version-list .nav-link { border-radius: 7px; padding: 6px; font-size: 12px; text-align: left; border: 1px solid transparent; color: #4b5563; background: transparent; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; display: flex; align-items: center; gap: 7px; } .doc-version-list .nav-link:hover { border-color: #d1d5db; background: #f9fafb; color: #4b5563; } .doc-version-list .nav-link.active { border-color: #cbd5e1 !important; background: #eef2ff !important; color: #1e3a8a !important; box-shadow: none; } .doc-version-list .nav-link:focus-visible { outline: 2px solid #93c5fd; outline-offset: 1px; box-shadow: none; } .doc-version-tab small { display: block; color: #6b7280; font-weight: 400; margin-top: 2px; font-size: 12px; } .doc-version-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .doc-version-layout.is-collapsed .doc-version-sidebar { --collapsed-version-slot-size: 42px; --collapsed-version-button-size: 28px; width: 64px; padding: 8px 10px; box-sizing: border-box; border-right-color: transparent; overflow-x: hidden; align-items: center; } .doc-version-layout.is-collapsed .doc-version-title-text, .doc-version-layout.is-collapsed .doc-version-section-header { display: none; } .doc-version-layout.is-collapsed .doc-version-header { width: var(--collapsed-version-slot-size); height: var(--collapsed-version-slot-size); flex: 0 0 var(--collapsed-version-slot-size); justify-content: center; } .doc-version-layout.is-collapsed .doc-version-toggle { width: var(--collapsed-version-button-size); height: var(--collapsed-version-button-size); flex: 0 0 var(--collapsed-version-button-size); box-sizing: border-box; border-radius: 8px; margin-inline: auto; } .doc-version-layout.is-collapsed .doc-version-list { display: flex; width: 100%; align-items: center; overflow-x: hidden; } .doc-version-layout.is-collapsed .doc-version-section { width: 100%; margin-top: 4px; } .doc-version-layout.is-collapsed .doc-version-section-body { display: flex; align-items: center; } .doc-version-layout.is-collapsed .doc-version-list .nav-link { width: var(--collapsed-version-slot-size); height: var(--collapsed-version-slot-size); flex: 0 0 var(--collapsed-version-slot-size); box-sizing: border-box; margin-inline: auto; padding: 3px; justify-content: center; } .doc-version-layout.is-collapsed .doc-version-name { display: none; } .doc-version-layout.is-collapsed .doc-version-badge { flex: 0 0 26px; width: 26px; height: 26px; font-size: 10px; } .doc-version-preview { flex: 1 1 0; min-width: 0; overflow: hidden; } .doc-version-resizer { width: 16px; flex: 0 0 16px; border-top: 0; border-bottom: 0; border-left: 0; border-right: 1px solid #e9ebec; touch-action: none; } @media (max-width: 991.98px) { .comment-page-wrap { flex-direction: column; height: auto; margin-bottom: 32px; } .pane-resizer { display: none; } .comment-doc-pane { border-radius: 8px 8px 0 0; height: 50vh; min-height: 280px; min-width: 0; } .comment-thread-pane { width: 100% !important; max-width: 100%; border-radius: 0 0 8px 8px; border-left: 1px solid #e9ebec; border-top: none; min-height: 400px; } .pane-tabs { flex-wrap: wrap; } .pane-tab { flex: 1 1 auto; min-width: 120px; } .doc-version-layout { flex-direction: column; } .doc-version-resizer { display: none; } .doc-version-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e9ebec; max-height: 120px; overflow-y: auto; } .doc-version-tab { min-width: 0; } .doc-version-layout.is-collapsed .doc-version-sidebar { --collapsed-version-slot-size: 36px; --collapsed-version-button-size: 26px; width: 100%; max-height: none; min-height: 50px; border-bottom-color: transparent; padding: 6px 8px; flex-direction: row; align-items: center; gap: 8px; overflow: hidden; } .doc-version-layout.is-collapsed .doc-version-title-text, .doc-version-layout.is-collapsed .doc-version-section-header { display: none; } .doc-version-layout.is-collapsed .doc-version-list { display: flex; flex-flow: row nowrap !important; align-items: center; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 0; } .doc-version-layout.is-collapsed .doc-version-header { width: var(--collapsed-version-slot-size); height: var(--collapsed-version-slot-size); flex: 0 0 var(--collapsed-version-slot-size); } .doc-version-layout.is-collapsed .doc-version-toggle { width: var(--collapsed-version-button-size); height: var(--collapsed-version-button-size); } .doc-version-layout.is-collapsed .doc-version-section { width: auto; margin: 0; } .doc-version-layout.is-collapsed .doc-version-section-body { flex-direction: row; } .doc-version-layout.is-collapsed .doc-version-list .nav-link { flex: 0 0 var(--collapsed-version-slot-size); width: var(--collapsed-version-slot-size); height: var(--collapsed-version-slot-size); margin-inline: 0; } } @media (max-width: 575.98px) { .comment-pane-header { padding: 8px 10px; gap: 8px; } .doc-version-sidebar { max-height: 108px; padding: 6px; } .doc-version-title-text { font-size: 12px; } .doc-version-toggle { width: 28px; height: 28px; } .doc-version-badge { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; font-size: 10px; } .doc-version-list .nav-link { padding: 5px; gap: 6px; font-size: 12px; } }