/* MOM Digital - gaya tambahan di atas AdminLTE 3 */
.table td, .table th { vertical-align: middle; }
.table-sm td, .table-sm th { padding: .35rem .5rem; }
.required::after { content: " *"; color: #dc3545; }
.sortable-ghost { opacity: .4; background: #e9f5ff; }
.drag-handle { cursor: grab; color: #6c757d; }
.drag-handle:active { cursor: grabbing; }
.perm-matrix th.rot { white-space: nowrap; font-size: .8rem; }
.perm-matrix td.chk { text-align: center; }
.perm-matrix tr.module-row td { background: #f4f6f9; font-weight: 600; }
.doc-skeleton { background: #fff; border: 1px solid #ced4da; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 18px 22px; max-width: 820px; }
.doc-skeleton .doc-head { display: flex; border: 1px solid #adb5bd; }
.doc-skeleton .doc-head > div { padding: 8px 10px; }
.doc-skeleton .doc-head .left { flex: 1; border-right: 1px solid #adb5bd; }
.doc-skeleton .doc-head .quote { width: 34%; background: #fff8e1; font-size: .8rem; }
.doc-skeleton .group { background: #e9ecef; font-weight: 700; padding: 4px 8px; margin-top: 10px; border: 1px solid #adb5bd; }
.doc-skeleton .sec { border: 1px solid #dee2e6; border-top: 0; padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; }
.doc-skeleton .sec .t { font-weight: 600; }
.doc-skeleton .pagebreak { border-top: 2px dashed #adb5bd; margin: 14px 0 6px; text-align: center; font-size: .75rem; color: #6c757d; }
.sig-preview { max-height: 90px; max-width: 240px; border: 1px dashed #ced4da; padding: 4px; background: repeating-conic-gradient(#f1f3f5 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.temp-pw { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; letter-spacing: 1px; }

/* ---- Tahap 5: branding & mode gelap ---- */
.brand-link .brand-logo-img { max-height: 33px; width: auto; max-width: 160px; float: none; margin: 0 .5rem 0 .3rem; object-fit: contain; }
.sidebar-collapse .main-sidebar:not(:hover) .brand-link .brand-logo-img { max-width: 40px; }
.login-logo-img { max-height: 72px; max-width: 260px; vertical-align: middle; }
.login-org { font-size: 1rem; color: #6c757d; margin-top: 4px; }
.login-tagline { color: #6c757d; }
body.has-login-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
body.has-login-bg .login-logo, body.has-login-bg .login-logo a, body.has-login-bg .login-org, body.has-login-bg .login-tagline { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
#themeToggle .theme-icon-light { display: none; }
.dark-mode #themeToggle .theme-icon-light { display: inline; } .dark-mode #themeToggle .theme-icon-dark { display: none; }

.dark-mode .main-header.navbar-white { background-color: #343a40; border-color: #4b545c; }
.dark-mode .main-header.navbar-light .navbar-nav .nav-link { color: rgba(255,255,255,.8); }
.dark-mode .main-header.navbar-light .navbar-nav .nav-link:hover { color: #fff; }
.dark-mode .main-header .text-muted { color: #adb5bd !important; }
.dark-mode .content-header h1.text-dark { color: #f8f9fa !important; }
.dark-mode .login-org, .dark-mode .login-tagline { color: #adb5bd; }
.dark-mode .table .thead-light th { background-color: #3f474e; color: #fff; border-color: #56606a; }
.dark-mode .table-danger, .dark-mode .table-danger > td, .dark-mode .table-danger > th { background-color: #5c2b30; color: #fff; }
.dark-mode .table-warning, .dark-mode .table-warning > td { background-color: #5a4a1f; color: #fff; }
.dark-mode .alert-light { background-color: #3f474e; color: #f8f9fa; border-color: #56606a; }
.dark-mode .perm-matrix tr.module-row td { background: #3f474e; }
.dark-mode .sortable-ghost { background: #2c4a63; }
.dark-mode .doc-skeleton { color: #212529; }
.dark-mode mark { background: #8a7520; color: #fff; }
.dark-mode .sig-preview, .dark-mode .img-slot { background: repeating-conic-gradient(#d9dde1 0% 25%, #f8f9fa 0% 50%) 50% / 16px 16px; }
.dark-mode .select2-container--bootstrap4 .select2-selection { background-color: #343a40; border-color: #6c757d; color: #fff; }
.dark-mode .select2-container--bootstrap4 .select2-selection__rendered { color: #fff; }
.dark-mode .select2-dropdown { background-color: #343a40; color: #fff; border-color: #6c757d; }
.dark-mode .select2-search__field { background: #3f474e; color: #fff; }
.dark-mode .note-editor.note-frame { border-color: #6c757d; }
.dark-mode .note-editor .note-toolbar { background: #3f474e; border-color: #56606a; }
.dark-mode .note-editor .note-btn { background: #454d55; color: #fff; border-color: #56606a; }
.dark-mode .note-editor .note-editable { background: #fff; color: #212529; } /* isi tetap seperti kertas */
.dark-mode .note-editor .note-statusbar { background: #3f474e; }
.logo-plate { background: #fff; border-radius: 6px; padding: 3px 6px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.login-logo-img.logo-plate { padding: 8px 14px; border-radius: 10px; }
.main-header.navbar-dark .text-muted { color: rgba(255,255,255,.75) !important; }
.main-header.navbar-primary.navbar-light .text-muted { color: rgba(0,0,0,.6) !important; }
.swatch, #customColor, #customHex { vertical-align: top; }
