/* public/assets/css/s41-document-templates.css
   KHMER HRMS — Document Print Template Settings (M23)
   Season: S41 — Document Print Template Settings

   Small, page-specific styling only — every color still comes from
   the shared CSS variable system in themes.css (Day/Night applies
   automatically); this file adds layout, not a competing palette.
*/

[x-cloak] { display: none !important; }

.doc-assign-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.doc-assign-row select { min-width: 220px; }

/* Component editor: form + live preview side by side, same
   two-column pattern already established by the Card Templates
   Designer (S32, .template-designer-layout) — reused here under a
   new name since this screen's field set genuinely differs. */
.doc-component-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 991px) {
    .doc-component-layout { grid-template-columns: 1fr; }
}
.doc-component-form { padding: 20px; }
.doc-component-preview {
    position: sticky;
    top: 84px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    padding: 12px;
    box-shadow: 0 2px 10px rgba(16,24,40,.06);
    overflow: hidden;
}
.doc-component-preview iframe {
    width: 100%;
    height: 460px;
    border: none;
    background: #fff;
    border-radius: 6px;
}
.doc-component-preview-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.doc-color-input-pair { display: flex; align-items: center; gap: 8px; }
.doc-color-input-pair input[type="color"] {
    width: 40px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer;
}
.doc-color-hex-input { width: 90px; font-family: monospace; text-transform: uppercase; }

.doc-history-row.is-current { background: var(--surface-hover, var(--surface)); }
