/*!
 * JOB Manajemen – gaya dasar.
 * Prinsip: font, ukuran, warna teks, link, judul & tombol mengikuti tema aktif.
 * Warna aksen otomatis diambil dari: preset warna primer tema blok (theme.json) →
 * Elementor Global Color "Primary" → warna link/tombol bawaan. Netral dibentuk dari currentColor
 * sehingga tetap selaras di tema terang maupun gelap.
 */

.jm-root,
.jm-scope {
	--jm-accent: var(--wp--preset--color--primary, var(--e-global-color-primary, var(--wp--preset--color--accent, var(--global-palette1, #2271b1))));
	--jm-accent-contrast: var(--wp--preset--color--base, var(--wp--preset--color--background, #fff));
	--jm-surface: transparent;
	--jm-line: color-mix(in srgb, currentColor 14%, transparent);
	--jm-line-strong: color-mix(in srgb, currentColor 26%, transparent);
	--jm-soft: color-mix(in srgb, currentColor 4%, transparent);
	--jm-soft-2: color-mix(in srgb, currentColor 8%, transparent);
	--jm-muted: color-mix(in srgb, currentColor 62%, transparent);
	--jm-accent-soft: color-mix(in srgb, var(--jm-accent) 13%, transparent);
	--jm-ok: #1a7f37;
	--jm-warn: #b8860b;
	--jm-danger: #c62828;
	--jm-info: #1565c0;
	--jm-purple: #7b3fb5;
	--jm-radius: 10px;
	--jm-radius-sm: 6px;
	--jm-gap: clamp(10px, 1.6vw, 18px);
	--jm-shadow: 0 1px 2px color-mix(in srgb, currentColor 10%, transparent);
}

/* ---------- lebar penuh ---------- */
.jm-root {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: inherit;
	line-height: inherit;
	margin-inline: 0;
	position: relative;
}
.jm-root.jm-stretch {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-inline: clamp(12px, 3vw, 40px);
}
/* Tema blok (theme.json) membatasi lebar konten → lepaskan batas agar memenuhi area konten. */
.is-layout-constrained > .jm-root.jm-fullwidth,
.wp-block-post-content > .jm-root.jm-fullwidth,
.entry-content > .jm-root.jm-fullwidth,
.wp-block-shortcode > .jm-root.jm-fullwidth { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.elementor-widget-jm_app,
.elementor-widget-jm_app > .elementor-widget-container,
.wpb_wrapper > .jm-root,
.vce-row .jm-root { width: 100%; max-width: 100%; }

.jm-root *,
.jm-scope *,
.jm-root *::before,
.jm-scope *::before,
.jm-root *::after,
.jm-scope *::after { box-sizing: border-box; }

.jm-root input,
.jm-root select,
.jm-root textarea,
.jm-root button,
.jm-scope input,
.jm-scope select,
.jm-scope textarea,
.jm-scope button { font: inherit; letter-spacing: inherit; }

.jm-root h2, .jm-root h3, .jm-root h4, .jm-root h5,
.jm-scope h2, .jm-scope h3, .jm-scope h4, .jm-scope h5 { margin: 0 0 .5em; }
.jm-root h4, .jm-scope h4 { margin-top: 1.2em; }
.jm-root ul, .jm-scope ul { margin-top: 0; }
.jm-root img.jm-avatar, .jm-scope img.jm-avatar { border-radius: 50%; display: inline-block; vertical-align: middle; flex: none; max-width: none; height: auto; margin: 0; }

.jm-host { width: 100%; }
.jm-module { display: flex; flex-direction: column; gap: var(--jm-gap); width: 100%; min-width: 0; }
.jm-title { margin: 0 !important; }
.jm-muted { color: var(--jm-muted); }
.jm-small, .jm-root small, .jm-scope small { font-size: .86em; }
.jm-danger { color: var(--jm-danger) !important; }
.jm-loading, .jm-empty { padding: 1.4em; text-align: center; color: var(--jm-muted); border: 1px dashed var(--jm-line); border-radius: var(--jm-radius); }
.jm-loading::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid var(--jm-line-strong); border-top-color: var(--jm-accent); border-radius: 50%; animation: jm-spin .7s linear infinite; }
@keyframes jm-spin { to { transform: rotate(360deg); } }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- tombol (mengikuti tema; tombol utama memakai kelas wp-element-button) ---------- */
.jm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .35em;
	padding: .5em 1em; min-height: 2.4em;
	border: 1px solid var(--jm-line-strong); border-radius: var(--jm-radius-sm);
	background: transparent; color: inherit; cursor: pointer; text-decoration: none;
	line-height: 1.2; white-space: nowrap; font-size: .95em;
	transition: background-color .15s, border-color .15s;
}
.jm-btn:hover { background: var(--jm-soft-2); color: inherit; }
.jm-btn:focus-visible, .jm-link:focus-visible, .jm-icon-btn:focus-visible, .jm-nav-btn:focus-visible, .jm-tab:focus-visible { outline: 2px solid var(--jm-accent); outline-offset: 2px; }
.jm-btn[disabled] { opacity: .55; cursor: not-allowed; }
.jm-btn.is-active { background: var(--jm-accent-soft); border-color: var(--jm-accent); }
.jm-btn-primary { background: var(--jm-accent); border-color: var(--jm-accent); color: var(--jm-accent-contrast); }
.jm-btn-primary:hover { background: color-mix(in srgb, var(--jm-accent) 85%, #000); color: var(--jm-accent-contrast); }
.wp-element-button.jm-btn { padding: .5em 1em; font-size: .95em; }
.jm-btn-danger { color: var(--jm-danger); border-color: color-mix(in srgb, var(--jm-danger) 45%, transparent); }
.jm-btn-danger:hover { background: color-mix(in srgb, var(--jm-danger) 10%, transparent); color: var(--jm-danger); }
.jm-btn-wa { border-color: #25d366; }
.jm-btn-sm { padding: .3em .7em; min-height: 2em; font-size: .85em; }
.jm-btn-group { display: inline-flex; flex-wrap: wrap; }
.jm-btn-group .jm-btn { border-radius: 0; margin-left: -1px; }
.jm-btn-group .jm-btn:first-child { border-radius: var(--jm-radius-sm) 0 0 var(--jm-radius-sm); margin-left: 0; }
.jm-btn-group .jm-btn:last-child { border-radius: 0 var(--jm-radius-sm) var(--jm-radius-sm) 0; }
.jm-link { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--jm-line-strong); text-underline-offset: .2em; font: inherit; }
.jm-link:hover { color: var(--jm-accent); text-decoration-color: currentColor; background: none; }
.jm-icon-btn { background: none; border: 0; width: 2em; height: 2em; border-radius: 50%; cursor: pointer; color: inherit; font-size: 1.15em; line-height: 1; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.jm-icon-btn:hover { background: var(--jm-soft-2); color: inherit; }
.jm-chip-btn { background: var(--jm-soft-2); border: 0; border-radius: 4px; padding: .1em .4em; font-size: .85em; cursor: pointer; color: inherit; margin: 2px 0; }

/* ---------- form ---------- */
.jm-root input[type=text], .jm-root input[type=search], .jm-root input[type=date], .jm-root input[type=datetime-local], .jm-root input[type=number], .jm-root input[type=email], .jm-root input[type=tel], .jm-root select, .jm-root textarea,
.jm-scope input[type=text], .jm-scope input[type=search], .jm-scope input[type=date], .jm-scope input[type=datetime-local], .jm-scope input[type=number], .jm-scope input[type=email], .jm-scope input[type=tel], .jm-scope select, .jm-scope textarea {
	width: 100%; max-width: 100%; min-height: 2.4em; padding: .45em .65em;
	border: 1px solid var(--jm-line-strong); border-radius: var(--jm-radius-sm);
	background: var(--jm-surface, transparent); color: inherit; margin: 0; box-shadow: none;
}
.jm-root select option, .jm-scope select option { color: initial; background: initial; }
.jm-root input[type=color], .jm-scope input[type=color] { width: 3.2em; height: 2.4em; padding: 2px; border: 1px solid var(--jm-line-strong); border-radius: var(--jm-radius-sm); background: none; }
.jm-root input[type=checkbox], .jm-root input[type=radio], .jm-scope input[type=checkbox], .jm-scope input[type=radio] { accent-color: var(--jm-accent); width: 1.05em; height: 1.05em; margin: 0; vertical-align: -.15em; }
.jm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.jm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jm-field > label { font-weight: 600; font-size: .9em; }
.jm-span-2 { grid-column: 1 / -1; }
.jm-field[hidden], .jm-recur[hidden] { display: none !important; }
.jm-form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.jm-form-inline > input, .jm-form-inline > select { flex: 1 1 180px; width: auto; }
.jm-check { display: inline-flex; align-items: center; gap: .45em; font-weight: normal !important; cursor: pointer; }
.jm-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 190px; overflow: auto; padding: 8px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius-sm); }
.jm-radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.jm-inline { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.jm-inline input { width: auto !important; }
.jm-cl-row, .jm-fu-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.jm-fu-row input[type=text] { flex: 2 1 200px; }
.jm-fu-row select, .jm-fu-row input[type=date] { flex: 1 1 130px; width: auto; }
.jm-quick-add { display: flex; gap: 6px; margin-top: 10px; }
.jm-quick-add input, .jm-quick-add select { flex: 1; }
.jm-upload { cursor: pointer; margin-top: 8px; }
.jm-upload.is-busy { opacity: .6; pointer-events: none; }

/* ---------- toolbar & filter ---------- */
.jm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.jm-toolbar-actions, .jm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-soft); }
.jm-filters > input[type=search] { flex: 2 1 220px; width: auto; }
.jm-filters > select { flex: 1 1 150px; width: auto; }
.jm-row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- navigasi aplikasi ---------- */
.jm-app { display: flex; flex-direction: column; gap: var(--jm-gap); width: 100%; }
.jm-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--jm-line); padding-bottom: 0; -webkit-overflow-scrolling: touch; }
.jm-nav-btn { flex: none; display: inline-flex; align-items: center; gap: .45em; padding: .65em 1em; border: 0; border-bottom: 3px solid transparent; background: none; color: inherit; cursor: pointer; white-space: nowrap; border-radius: var(--jm-radius-sm) var(--jm-radius-sm) 0 0; position: relative; }
.jm-nav-btn:hover { background: var(--jm-soft-2); color: inherit; }
.jm-nav-btn.is-active { border-bottom-color: var(--jm-accent); font-weight: 600; }
.jm-view { min-width: 0; }
.jm-count { display: inline-flex; min-width: 1.5em; height: 1.5em; padding: 0 .4em; align-items: center; justify-content: center; border-radius: 99px; background: var(--jm-soft-2); font-size: .75em; font-weight: 600; }
.jm-count[hidden] { display: none; }
.jm-count-alert { background: var(--jm-danger); color: #fff; }

/* ---------- tab ---------- */
.jm-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--jm-line); margin-top: .5em; }
.jm-tab { flex: none; padding: .55em .9em; background: none; border: 0; border-bottom: 2px solid transparent; color: inherit; cursor: pointer; white-space: nowrap; }
.jm-tab:hover { background: var(--jm-soft); color: inherit; }
.jm-tab.is-active { border-bottom-color: var(--jm-accent); font-weight: 600; }
.jm-tab-panel { padding-top: var(--jm-gap); min-width: 0; }

/* ---------- kartu & grid ---------- */
.jm-card { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); padding: clamp(12px, 1.8vw, 20px); background: var(--jm-surface); box-shadow: var(--jm-shadow); min-width: 0; }
.jm-card > h3, .jm-card > h4, .jm-card-head h3 { margin-top: 0; }
.jm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: .6em; }
.jm-card-head h3 { margin: 0; font-size: 1.05em; }
.jm-card-title { font-weight: 600; font-size: 1.05em; text-decoration: none; }
.jm-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; align-items: center; }
.jm-card.is-danger, .jm-stat.is-danger { border-color: color-mix(in srgb, var(--jm-danger) 45%, transparent); }
.jm-grid { display: grid; gap: var(--jm-gap); }
.jm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.jm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.jm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.jm-grid-kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.jm-grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.jm-grid-dash { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.jm-grid-dash > .jm-span-2 { grid-column: span 2; }
.jm-stat { display: flex; flex-direction: column; gap: 4px; }
.jm-stat > span { font-size: .85em; color: var(--jm-muted); }
.jm-stat > strong { font-size: 1.7em; line-height: 1.1; }
.jm-stat.is-danger > strong { color: var(--jm-danger); }

/* ---------- badge ---------- */
.jm-badge { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 99px; font-size: .78em; font-weight: 600; line-height: 1.5; background: var(--jm-soft-2); white-space: nowrap; border: 0; color: inherit; }
button.jm-badge { cursor: pointer; }
.jm-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jm-status-todo { background: var(--jm-soft-2); }
.jm-status-in_progress, .jm-project_status-active { background: color-mix(in srgb, var(--jm-info) 16%, transparent); color: var(--jm-info); }
.jm-status-on_hold, .jm-project_status-on_hold { background: color-mix(in srgb, var(--jm-warn) 18%, transparent); color: var(--jm-warn); }
.jm-status-review { background: color-mix(in srgb, var(--jm-purple) 16%, transparent); color: var(--jm-purple); }
.jm-status-done, .jm-project_status-completed { background: color-mix(in srgb, var(--jm-ok) 16%, transparent); color: var(--jm-ok); }
.jm-project_status-cancelled { text-decoration: line-through; }
.jm-project_status-planning { background: var(--jm-accent-soft); }
.jm-priority-low { background: var(--jm-soft-2); }
.jm-priority-medium { background: color-mix(in srgb, var(--jm-info) 12%, transparent); }
.jm-priority-high { background: color-mix(in srgb, var(--jm-warn) 20%, transparent); color: var(--jm-warn); }
.jm-priority-urgent, .jm-badge-late, .jm-severity-high { background: color-mix(in srgb, var(--jm-danger) 15%, transparent); color: var(--jm-danger); }
.jm-severity-medium { background: color-mix(in srgb, var(--jm-warn) 18%, transparent); }
.jm-log_status-closed, .jm-log_status-mitigated { background: color-mix(in srgb, var(--jm-ok) 14%, transparent); }
.jm-ns.is-ok { background: color-mix(in srgb, var(--jm-ok) 16%, transparent); color: var(--jm-ok); }
.jm-ns.is-fail { background: color-mix(in srgb, var(--jm-danger) 15%, transparent); color: var(--jm-danger); }
.jm-ns.is-wait { background: color-mix(in srgb, var(--jm-warn) 18%, transparent); color: var(--jm-warn); }

/* ---------- progress ---------- */
.jm-progress-wrap { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.jm-progress { flex: 1; height: 8px; border-radius: 99px; background: var(--jm-soft-2); overflow: hidden; }
.jm-progress > span { display: block; height: 100%; background: var(--jm-accent); border-radius: inherit; transition: width .3s; }
.jm-progress-label { white-space: nowrap; color: var(--jm-muted); }

/* ---------- tabel responsif ---------- */
.jm-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); }
.jm-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: .95em; background: none; }
.jm-table th, .jm-table td { padding: .6em .75em; border: 0; border-bottom: 1px solid var(--jm-line); text-align: left; vertical-align: middle; background: none; }
.jm-table thead th { font-weight: 600; font-size: .85em; background: var(--jm-soft); white-space: nowrap; }
.jm-table tbody tr:last-child td { border-bottom: 0; }
.jm-table tbody tr:hover td { background: var(--jm-soft); }
.jm-col-check { width: 2.4em; }
.jm-col-actions { width: 1%; white-space: nowrap; text-align: right !important; }
.jm-task-row.is-done .jm-task-title { text-decoration: line-through; opacity: .65; }
.jm-task-row.is-late td:first-child { box-shadow: inset 3px 0 0 var(--jm-danger); }
.jm-task-title { font-weight: 600; text-decoration: none; }
.jm-meta { font-size: .82em; color: var(--jm-muted); margin-top: 2px; }
.jm-due-late { color: var(--jm-danger); font-weight: 600; }
.jm-due-today { color: var(--jm-warn); font-weight: 600; }
.jm-person { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.jm-table-matrix td:not(:first-child), .jm-table-matrix th:not(:first-child) { text-align: center; }

/* ---------- daftar umum ---------- */
.jm-plain { list-style: none; padding: 0; margin: 0; }
.jm-plain > li { padding: .5em 0; border-bottom: 1px solid var(--jm-line); }
.jm-plain > li:last-child { border-bottom: 0; }
.jm-dl { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.jm-dl dt { color: var(--jm-muted); font-weight: 600; font-size: .9em; }
.jm-dl dd { margin: 0; min-width: 0; }
.jm-prose { line-height: 1.6; overflow-wrap: anywhere; }
.jm-pre { white-space: pre-wrap; word-break: break-word; font: inherit; background: var(--jm-soft); padding: .7em; border-radius: var(--jm-radius-sm); margin: .5em 0; max-height: 320px; overflow: auto; }
.jm-alert { padding: .8em 1em; border-radius: var(--jm-radius-sm); border: 1px solid var(--jm-line); background: var(--jm-soft); }
.jm-alert ul { margin: .3em 0 .3em 1.2em; padding: 0; }
.jm-alert-error { border-color: color-mix(in srgb, var(--jm-danger) 40%, transparent); background: color-mix(in srgb, var(--jm-danger) 8%, transparent); }
.jm-alert-warn { border-color: color-mix(in srgb, var(--jm-warn) 50%, transparent); background: color-mix(in srgb, var(--jm-warn) 10%, transparent); }
.jm-alert-info { border-color: var(--jm-accent-soft); background: var(--jm-accent-soft); }
.jm-files, .jm-comments, .jm-history, .jm-checklist { list-style: none; margin: 0 0 .6em; padding: 0; }
.jm-files li, .jm-history li { padding: .35em 0; border-bottom: 1px solid var(--jm-line); }
.jm-history li { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px; }
.jm-comment { display: flex; gap: 10px; padding: .6em 0; border-bottom: 1px solid var(--jm-line); }
.jm-comment-body { flex: 1; min-width: 0; }
.jm-comment-text { margin-top: 2px; overflow-wrap: anywhere; }
.jm-comment-form { display: flex; gap: 8px; align-items: flex-end; }
.jm-comment-form textarea { flex: 1; }
.jm-checklist li { padding: .3em 0; }
.jm-checklist .is-done { text-decoration: line-through; opacity: .6; }
.jm-dropdown { position: relative; display: inline-block; }
.jm-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 170px; display: flex; flex-direction: column; padding: 4px; background: var(--jm-surface, #fff); border: 1px solid var(--jm-line-strong); border-radius: var(--jm-radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.jm-menu[hidden] { display: none; }
.jm-menu button { text-align: left; background: none; border: 0; padding: .5em .7em; color: inherit; cursor: pointer; border-radius: 4px; }
.jm-menu button:hover { background: var(--jm-soft-2); color: inherit; }

/* ---------- dashboard ---------- */
.jm-morning { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; background: linear-gradient(135deg, var(--jm-accent-soft), transparent 70%), var(--jm-surface); }
.jm-morning-text p { margin: .3em 0; }
.jm-quick { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; justify-content: flex-end; }
.jm-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.jm-stats .jm-stat { padding: 10px 12px; border-radius: var(--jm-radius-sm); background: var(--jm-surface); border: 1px solid var(--jm-line); }
.jm-dash-list > li { display: flex; gap: 10px; align-items: flex-start; }
.jm-dash-list > li > input { margin-top: .25em; }
.jm-dash-task.is-late .jm-link { color: var(--jm-danger); }
.jm-dash-task.is-done .jm-link { text-decoration: line-through; opacity: .6; }
.jm-dash-time { flex: none; min-width: 92px; font-size: .85em; font-weight: 600; color: var(--jm-muted); }
.jm-dash-event.is-conflict .jm-link { color: var(--jm-warn); }
.jm-dash-projects > li { display: flex; flex-direction: column; gap: 6px; }
.jm-notif-mini.is-unread strong::before { content: "● "; color: var(--jm-accent); }
.jm-notif-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; align-items: center; }

/* ---------- kalender ---------- */
.jm-cal-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.jm-cal-label { font-size: 1.1em; text-transform: capitalize; flex: 1 1 auto; text-align: center; }
.jm-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8em; color: var(--jm-muted); }
.jm-cal-legend span::before { content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin-right: .35em; vertical-align: -.05em; background: var(--jm-chip, var(--jm-accent)); }
.jm-cal-legend .jm-conflict-key::before { background: var(--jm-warn); }
.jm-t-meeting { --jm-chip: var(--jm-accent); }
.jm-t-activity { --jm-chip: var(--jm-ok); }
.jm-t-event { --jm-chip: var(--jm-purple); }
.jm-t-deadline { --jm-chip: var(--jm-danger); }
.jm-chip { display: block; width: 100%; text-align: left; font-size: .8em; line-height: 1.35; padding: .2em .45em; margin: 2px 0; border: 0; border-left: 3px solid var(--jm-chip, var(--jm-accent)); border-radius: 4px; background: color-mix(in srgb, var(--jm-chip, var(--jm-accent)) 13%, transparent); color: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-chip:hover { background: color-mix(in srgb, var(--jm-chip, var(--jm-accent)) 24%, transparent); color: inherit; }
.jm-chip.is-conflict { outline: 1px dashed var(--jm-warn); }
.jm-chip.is-done { opacity: .55; text-decoration: line-through; }
.jm-chip.is-personal { border-left-style: dotted; }
.jm-chip.jm-src-task, .jm-chip.jm-src-milestone { background: transparent; border: 1px solid color-mix(in srgb, var(--jm-chip) 45%, transparent); border-left-width: 3px; }
.jm-month { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); overflow: hidden; }
.jm-month-head, .jm-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.jm-month-head > div { padding: .4em; font-size: .8em; font-weight: 600; text-align: center; background: var(--jm-soft); border-bottom: 1px solid var(--jm-line); }
.jm-day { min-height: 108px; padding: 4px; border-right: 1px solid var(--jm-line); border-bottom: 1px solid var(--jm-line); min-width: 0; cursor: cell; }
.jm-day:nth-child(7n) { border-right: 0; }
.jm-day.is-other { background: var(--jm-soft); }
.jm-day.is-other .jm-day-num { opacity: .5; }
.jm-day.is-today { background: var(--jm-accent-soft); }
.jm-day-num { background: none; border: 0; padding: 0 .3em; font-size: .85em; font-weight: 600; cursor: pointer; color: inherit; border-radius: 4px; }
.jm-day.is-today .jm-day-num { background: var(--jm-accent); color: var(--jm-accent-contrast); }
.jm-more { background: none; border: 0; padding: 0 .3em; font-size: .75em; color: var(--jm-muted); cursor: pointer; }
.jm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jm-week-col { border: 1px solid var(--jm-line); border-radius: var(--jm-radius-sm); padding: 6px; min-height: 240px; min-width: 0; }
.jm-week-col.is-today { border-color: var(--jm-accent); background: var(--jm-accent-soft); }
.jm-week-head { font-weight: 600; font-size: .85em; margin-bottom: 4px; }
.jm-dayview { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); overflow: hidden; }
.jm-hour { display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--jm-line); min-height: 44px; }
.jm-hour:last-child { border-bottom: 0; }
.jm-hour-label { padding: 6px 8px; font-size: .8em; color: var(--jm-muted); border-right: 1px solid var(--jm-line); }
.jm-hour-slot { padding: 4px 6px; cursor: cell; min-width: 0; }
.jm-hour-slot .jm-chip { display: inline-block; width: auto; max-width: 100%; margin-right: 4px; }
.jm-agenda-day { margin-bottom: 1em; }
.jm-agenda-day h4 { margin: 0 0 .4em; font-size: 1em; text-transform: capitalize; }
.jm-agenda-day.is-today h4 { color: var(--jm-accent); }
.jm-agenda-day ul { list-style: none; margin: 0; padding: 0; }
.jm-agenda-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--jm-line); }
.jm-agenda-time { font-size: .85em; font-weight: 600; color: var(--jm-muted); }
.jm-agenda-item .jm-chip { font-size: .9em; }

/* ---------- proyek ---------- */
.jm-project-card { border-top: 4px solid var(--jm-proj, var(--jm-accent)); display: flex; flex-direction: column; gap: 8px; }
.jm-project-info summary { cursor: pointer; font-weight: 600; }
.jm-project-info[open] summary { margin-bottom: .6em; }
.jm-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.jm-kcol { background: var(--jm-soft); border: 1px solid var(--jm-line); border-radius: var(--jm-radius); padding: 8px; display: flex; flex-direction: column; min-height: 200px; }
.jm-kcol > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 8px; }
.jm-kcards { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: var(--jm-radius-sm); transition: background .15s; }
.jm-kcards.is-over { background: var(--jm-accent-soft); outline: 2px dashed var(--jm-accent); }
.jm-kcard { background: var(--jm-surface); border: 1px solid var(--jm-line); border-radius: var(--jm-radius-sm); padding: 8px 10px; cursor: grab; box-shadow: var(--jm-shadow); }
.jm-kcard.is-late { border-left: 3px solid var(--jm-danger); }
.jm-kcard.is-dragging { opacity: .5; }
.jm-kcard-title { font-weight: 600; text-decoration: none; display: block; }
.jm-kmeta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 4px; }
.jm-kfoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.jm-kfoot .jm-kmove { width: auto !important; min-height: 1.9em !important; padding: .1em .3em !important; font-size: .8em; }
.jm-timeline { list-style: none; margin: 0; padding: 0 0 0 1.4em; border-left: 2px solid var(--jm-line-strong); }
.jm-timeline li { position: relative; padding: .4em 0 .8em .6em; }
.jm-timeline li::before { content: ""; position: absolute; left: -1.4em; margin-left: -6px; top: .8em; width: 10px; height: 10px; border-radius: 50%; background: var(--jm-surface); border: 2px solid var(--jm-accent); }
.jm-timeline li.jm-tl-ms::before { border-radius: 2px; transform: rotate(45deg); background: var(--jm-accent); }
.jm-timeline li.jm-tl-log::before { border-color: var(--jm-purple); }
.jm-timeline li.jm-tl-mark::before { background: var(--jm-ok); border-color: var(--jm-ok); }
.jm-timeline li.jm-tl-today::before { background: var(--jm-danger); border-color: var(--jm-danger); }
.jm-timeline li.jm-tl-today span { font-weight: 700; color: var(--jm-danger); }
.jm-timeline time { display: block; font-size: .8em; color: var(--jm-muted); }
.jm-gantt { position: relative; overflow-x: auto; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); }
.jm-gantt-row { display: grid; grid-template-columns: minmax(160px, 260px) minmax(var(--jm-gantt-min, 640px), 1fr); border-bottom: 1px solid var(--jm-line); min-height: 36px; }
.jm-gantt-row:last-of-type { border-bottom: 0; }
.jm-gantt-name { position: sticky; left: 0; z-index: 2; padding: 6px 10px; background: var(--jm-surface); border-right: 1px solid var(--jm-line); font-size: .88em; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.jm-gantt-row.is-sub .jm-gantt-name { padding-left: 24px; }
.jm-gantt-scale { background: var(--jm-soft); font-size: .75em; font-weight: 600; }
.jm-gantt-track { position: relative; }
.jm-gantt-scale .jm-gantt-track span { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; padding-left: 3px; border-left: 1px solid var(--jm-line); color: var(--jm-muted); }
.jm-gantt-bar { position: absolute; top: 9px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--jm-accent) 30%, transparent); overflow: hidden; min-width: 6px; }
.jm-gantt-bar i { display: block; height: 100%; background: var(--jm-accent); }
.jm-gb-done { background: color-mix(in srgb, var(--jm-ok) 35%, transparent); }
.jm-gb-done i { background: var(--jm-ok); }
.jm-gb-on_hold { background: color-mix(in srgb, var(--jm-warn) 35%, transparent); }
.jm-gantt-bar.is-late { outline: 2px solid var(--jm-danger); }
.jm-gantt-diamond { position: absolute; top: 11px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: var(--jm-purple); }
.jm-gantt-diamond.is-done { background: var(--jm-ok); }
.jm-gantt-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--jm-danger); pointer-events: none; z-index: 1; }
.jm-logs li { display: flex; flex-direction: column; gap: 3px; }
.jm-logs select { width: auto !important; font-size: .85em; min-height: 1.9em !important; padding: .1em .3em !important; }
.jm-report-out section ul { margin: 0 0 0 1.1em; padding: 0; }
.jm-report-out h5 { margin: .8em 0 .3em; }

/* ---------- notifikasi ---------- */
.jm-notif-list > li.jm-notif { display: flex; gap: 12px; padding: .9em .6em; }
.jm-notif.is-unread { background: var(--jm-accent-soft); border-radius: var(--jm-radius-sm); }
.jm-notif-icon { font-size: 1.4em; line-height: 1; flex: none; }
.jm-notif-body { flex: 1; min-width: 0; }

/* ---------- pesan ---------- */
.jm-preview { margin-bottom: 10px; }
.jm-send-results li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.jm-avatars { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }

/* ---------- grafik ---------- */
.jm-chart { margin: 0; }
.jm-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.jm-chart .jm-gridline { stroke: var(--jm-line); stroke-width: 1; }
.jm-chart .jm-axis { fill: var(--jm-muted); font-size: 11px; }
.jm-chart .jm-line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.jm-series-0 { stroke: color-mix(in srgb, currentColor 45%, transparent); fill: color-mix(in srgb, currentColor 45%, transparent); }
.jm-line.jm-series-0 { stroke-dasharray: 6 4; fill: none; }
.jm-series-1 { stroke: var(--jm-accent); fill: var(--jm-accent); }
.jm-line.jm-series-1 { fill: none; }
.jm-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85em; margin-top: 6px; }
.jm-key { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; }
.jm-key.jm-series-0 { background: color-mix(in srgb, currentColor 45%, transparent); }
.jm-key.jm-series-1 { background: var(--jm-accent); }
.jm-bars { display: flex; flex-direction: column; gap: 8px; }
.jm-bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 2.5em; gap: 8px; align-items: center; font-size: .9em; }
.jm-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-bar { height: 12px; background: var(--jm-soft-2); border-radius: 99px; overflow: hidden; }
.jm-bar > span { display: block; height: 100%; background: var(--jm-accent); border-radius: inherit; }
.jm-bar > span.is-danger { background: var(--jm-danger); }
.jm-bar-value { text-align: right; font-weight: 600; }

/* ---------- modal & toast ---------- */
html.jm-modal-open { overflow: hidden; }
.jm-modal-wrap { position: fixed; inset: 0; z-index: 999990; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(0, 0, 0, .45); overflow-y: auto; }
.jm-modal { width: 100%; max-width: 640px; background: var(--jm-surface, #fff); border-radius: var(--jm-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; max-height: none; animation: jm-pop .15s ease-out; }
.jm-modal-lg { max-width: 920px; }
.jm-modal-sm { max-width: 420px; }
@keyframes jm-pop { from { transform: translateY(8px); opacity: 0; } }
.jm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--jm-line); position: sticky; top: 0; background: inherit; border-radius: var(--jm-radius) var(--jm-radius) 0 0; z-index: 3; }
.jm-modal-title { margin: 0 !important; font-size: 1.15em; overflow-wrap: anywhere; }
.jm-modal-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.jm-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--jm-line); position: sticky; bottom: 0; background: inherit; border-radius: 0 0 var(--jm-radius) var(--jm-radius); }
.jm-detail { display: flex; flex-direction: column; gap: 12px; }
.jm-toasts { position: fixed; z-index: 999999; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.jm-toast { padding: .75em 1em; border-radius: var(--jm-radius-sm); background: var(--jm-surface, #fff); border: 1px solid var(--jm-line-strong); border-left: 4px solid var(--jm-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: opacity .4s, transform .4s; }
.jm-toast-success { border-left-color: var(--jm-ok); }
.jm-toast-error { border-left-color: var(--jm-danger); }
.jm-toast-warn { border-left-color: var(--jm-warn); }
.jm-toast.jm-hide { opacity: 0; transform: translateY(8px); }

/* ---------- login ---------- */
.jm-login .jm-card { max-width: 440px; margin: 0 auto; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
	.jm-grid-dash > .jm-span-2 { grid-column: auto; }
}
@media (max-width: 900px) {
	.jm-week { grid-template-columns: 1fr; }
	.jm-week-col { min-height: 0; }
	.jm-morning { grid-template-columns: 1fr; }
	.jm-quick { justify-content: flex-start; }
}
@media (max-width: 782px) {
	.jm-form { grid-template-columns: 1fr; }
	.jm-nav-btn { padding: .55em .7em; }
	.jm-nav-txt { font-size: .9em; }
	.jm-day { min-height: 64px; padding: 2px; }
	.jm-day .jm-chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--jm-chip, var(--jm-accent)); margin: 1px 0; }
	.jm-day .jm-more { font-size: .7em; }
	.jm-agenda-item { grid-template-columns: 1fr; gap: 2px; }
	.jm-cal-label { order: -1; flex-basis: 100%; text-align: left; }
	.jm-filters > * { flex: 1 1 100% !important; }
	.jm-inline { justify-content: space-between; }
	.jm-inline input { flex: 1; }

	/* tabel → kartu */
	.jm-table-wrap { border: 0; overflow: visible; }
	.jm-table thead { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
	.jm-table, .jm-table tbody, .jm-table tr, .jm-table td { display: block; width: 100%; }
	.jm-table tr { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); padding: 8px 10px; margin-bottom: 10px; background: var(--jm-surface); }
	.jm-table td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 38% 1fr; gap: 8px; align-items: center; text-align: left !important; }
	.jm-table td::before { content: attr(data-label); font-size: .8em; font-weight: 600; color: var(--jm-muted); }
	.jm-table td:not([data-label])::before { content: none; }
	.jm-table td > * { justify-self: start; }
	.jm-table td > .jm-meta, .jm-table td > div:not(.jm-progress-wrap) + * { grid-column: 2; }
	.jm-table td > .jm-progress-wrap { justify-self: stretch; }
	.jm-table td:not([data-label]) { grid-template-columns: 1fr; }
	.jm-col-check, .jm-col-actions { width: 100%; }
	.jm-task-row.is-late td:first-child { box-shadow: none; }
	.jm-task-row.is-late { border-left: 3px solid var(--jm-danger) !important; }
	.jm-table tbody tr:hover td { background: none; }

	.jm-modal-wrap { padding: 0; }
	.jm-modal, .jm-modal-lg { max-width: none; min-height: 100%; border-radius: 0; }
	.jm-modal-head, .jm-modal-foot { border-radius: 0; }
	.jm-dl { grid-template-columns: 1fr; gap: 2px; }
	.jm-dl dd { margin-bottom: 8px; }
	.jm-history li { grid-template-columns: 1fr; gap: 0; }
	.jm-hour { grid-template-columns: 62px 1fr; }
	.jm-bar-row { grid-template-columns: minmax(70px, 40%) 1fr 2em; }
}
@media (max-width: 480px) {
	.jm-nav-txt { display: none; }
	.jm-nav-btn.is-active .jm-nav-txt { display: inline; }
	.jm-actions .jm-btn, .jm-toolbar-actions .jm-btn { flex: 1 1 auto; }
	.jm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- cetak ---------- */
@media print {
	.jm-nav, .jm-filters, .jm-toolbar-actions, .jm-actions, .jm-tabs, .jm-toasts { display: none !important; }
	.jm-card { box-shadow: none; break-inside: avoid; }
}
.jm-print-body { padding: 24px; font-family: system-ui, sans-serif; color: #111; }
.jm-print-body .jm-printable { border: 0; box-shadow: none; }

/* ---------- akses: layar masuk ---------- */
.jm-login-wrap { display: flex; justify-content: center; align-items: flex-start; padding: clamp(16px, 6vw, 64px) 0; width: 100%; }
.jm-login-card { width: 100%; max-width: 420px; text-align: center; padding: clamp(22px, 4vw, 36px); border-top: 4px solid var(--jm-accent); }
.jm-login-card .jm-form { text-align: left; grid-template-columns: 1fr; margin-top: 12px; }
.jm-login-icon { font-size: 2.6em; line-height: 1; margin-bottom: .3em; }
.jm-login-alt { margin: 1em 0 0; font-size: .9em; }
.jm-login-help { margin: .8em 0 0; }
.jm-btn-block { width: 100%; }
.jm-pass { display: flex; gap: 6px; align-items: center; }
.jm-pass input { flex: 1; }
.jm-noaccess { text-align: center; max-width: 520px; margin: 24px auto; }

/* ---------- akses: bar pengguna ---------- */
.jm-app { position: relative; }
.jm-userbar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: -6px; font-size: .9em; }
.jm-userbar-name { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.jm-userbar-name small { font-size: .8em; }

/* ---------- akses: pengguna, matriks, riwayat ---------- */
.jm-grow { flex: 1 1 520px; }
.jm-center { text-align: center; margin-top: 12px; }
.jm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-badge.jm-mute { opacity: .55; }
.jm-badge-admin { background: color-mix(in srgb, var(--jm-warn) 20%, transparent); }
.jm-badge-op { background: color-mix(in srgb, var(--jm-info) 15%, transparent); color: var(--jm-info); }
.jm-type-app { background: color-mix(in srgb, var(--jm-purple) 15%, transparent); color: var(--jm-purple); }
.jm-type-wp { background: color-mix(in srgb, var(--jm-info) 13%, transparent); color: var(--jm-info); }
.jm-users tr.is-inactive td { opacity: .6; }
.jm-users .jm-role, .jm-users .jm-phone { min-width: 140px; }
.jm-menu-right { left: auto; right: 0; }
.jm-menu button.jm-danger { color: var(--jm-danger); }
.jm-mx-wrap { max-height: 70vh; overflow: auto; }
.jm-matrix thead th { position: sticky; top: 0; z-index: 2; vertical-align: bottom; white-space: normal; min-width: 120px; }
.jm-matrix thead th:first-child { min-width: 240px; }
.jm-matrix .jm-mx-role small { display: block; font-weight: 400; color: var(--jm-muted); }
.jm-matrix .jm-role-name { font-weight: 600; min-height: 2em !important; padding: .2em .4em !important; }
.jm-matrix .jm-mx-cell { text-align: center; }
.jm-matrix .jm-mx-group td { background: var(--jm-soft-2); font-weight: 700; font-size: .82em; text-transform: uppercase; letter-spacing: .04em; }
.jm-matrix .jm-mx-perm { font-size: .92em; }
.jm-yes { color: var(--jm-ok); font-weight: 700; }
.jm-no { color: var(--jm-muted); }
.jm-logs-table tr.is-bad td { background: color-mix(in srgb, var(--jm-danger) 5%, transparent); }
.jm-ev-login { background: color-mix(in srgb, var(--jm-ok) 15%, transparent); color: var(--jm-ok); }
.jm-ev-login_failed, .jm-ev-user_deleted, .jm-ev-deactivated { background: color-mix(in srgb, var(--jm-danger) 13%, transparent); color: var(--jm-danger); }
.jm-ev-password_reset, .jm-ev-role_changed, .jm-ev-access_matrix { background: color-mix(in srgb, var(--jm-warn) 18%, transparent); color: var(--jm-warn); }
.jm-pass-result p { margin: 0 0 .6em; }
.jm-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .5em .7em; border: 1px solid var(--jm-line); border-radius: var(--jm-radius-sm); margin-bottom: 8px; }
.jm-kv code { font-size: 1.05em; font-weight: 700; letter-spacing: .04em; background: none; }
.jm-kv-big code { font-size: 1.35em; color: var(--jm-accent); }
@media (max-width: 782px) {
	.jm-userbar { justify-content: space-between; margin-top: 0; }
	.jm-userbar-name { text-align: left; flex: 1; }
	.jm-mx-wrap { max-height: none; }
	.jm-matrix .jm-mx-group td { display: block; }
	.jm-matrix .jm-mx-cell { text-align: left; }
}

/* ---------- kartu detail kalender (lightbox) ---------- */
.jm-lightbox { background: rgba(10, 12, 20, .62); backdrop-filter: blur(3px); align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.jm-lightbox .jm-modal { margin: auto; flex: 0 0 auto; height: auto; max-height: none; }
.jm-modal-bare { position: relative; overflow: hidden; padding: 0; border-radius: 18px; }
.jm-modal-bare .jm-modal-body { padding: 0; gap: 0; }
.jm-lb-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-size: 1.4em; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.jm-lb-close:hover { background: #fff; color: #111; transform: scale(1.06); }
.jm-evc { display: flex; flex-direction: column; }
.jm-evc-hero { display: flex; gap: 18px; align-items: center; padding: 26px 60px 22px 24px; color: #fff; background: linear-gradient(135deg, var(--jm-chip), color-mix(in srgb, var(--jm-chip) 55%, #000)); }
.jm-evc-hero h3 { color: #fff; margin: .35em 0 .2em !important; font-size: clamp(1.2em, 2.6vw, 1.6em); overflow-wrap: anywhere; }
.jm-evc-hero p { margin: 0; opacity: .95; font-size: .95em; }
.jm-evc-hero .jm-badge { background: rgba(255, 255, 255, .22); color: #fff; }
.jm-evc-hero .jm-badge-late { background: #fff; color: var(--jm-danger); }
.jm-evc-hero small.jm-muted { color: rgba(255, 255, 255, .8); }
.jm-evc-date { flex: none; width: 78px; text-align: center; background: #fff; color: #1f2430; border-radius: 14px; padding: 8px 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); display: flex; flex-direction: column; line-height: 1.15; }
.jm-evc-date span { font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.jm-evc-date b { font-size: 1.9em; color: var(--jm-chip); }
.jm-evc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--jm-line); background: var(--jm-soft); }
.jm-evc-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.jm-evc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.jm-evc-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--jm-line); border-radius: 12px; background: var(--jm-surface); min-width: 0; }
.jm-evc-tile.is-wide { grid-column: 1 / -1; }
.jm-evc-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--jm-chip) 14%, transparent); font-size: 1.05em; }
.jm-evc-tile small { display: block; color: var(--jm-muted); font-size: .78em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.jm-evc-val { overflow-wrap: anywhere; margin-top: 2px; }
.jm-evc-people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.jm-evc-sec h4 { margin: 0 0 .5em !important; font-size: 1em; padding-left: 10px; border-left: 3px solid var(--jm-chip); }
.jm-evc-foot { padding: 12px 24px; font-size: .82em; color: var(--jm-muted); border-top: 1px solid var(--jm-line); }
@media (max-width: 782px) {
	.jm-lightbox { padding: 0; display: block; backdrop-filter: none; }
	.jm-lightbox .jm-modal { margin: 0; min-height: 100%; border-radius: 0; }
	.jm-lb-close { position: fixed; top: 10px; right: 10px; }
	.jm-evc-hero { padding: 22px 56px 18px 16px; gap: 12px; }
	.jm-evc-date { width: 64px; }
	.jm-evc-actions, .jm-evc-body, .jm-evc-foot { padding-left: 16px; padding-right: 16px; }
	.jm-evc-actions .jm-btn { flex: 1 1 auto; }
}

/* ---------- dashboard: kartu yang bisa digeser ---------- */
.jm-dash-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: .85em; color: var(--jm-muted); }
.jm-dash-card { position: relative; transition: box-shadow .15s, transform .15s, opacity .15s; }
.jm-dash-card .jm-card-head { align-items: center; }
.jm-dash-card .jm-card-head h3 { flex: 1; }
.jm-drag { flex: none; width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px dashed var(--jm-line-strong); border-radius: 8px; background: transparent; color: var(--jm-muted); cursor: grab; touch-action: none; user-select: none; font-size: 1.05em; line-height: 1; padding: 0; }
.jm-drag:hover, .jm-drag:focus-visible { color: var(--jm-accent); border-color: var(--jm-accent); background: var(--jm-accent-soft); }
.jm-grid-dash.is-sorting { user-select: none; }
.jm-grid-dash.is-sorting .jm-dash-card:not(.is-dragging) { opacity: .85; }
.jm-dash-card.is-dragging { outline: 2px dashed var(--jm-accent); outline-offset: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); transform: scale(1.01); z-index: 3; }
.jm-dash-card.is-dragging .jm-drag { cursor: grabbing; }
.jm-stat.is-accent > strong { color: var(--jm-accent); }
.jm-stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.jm-evc-tile .jm-evc-val small { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .85em; }

.jm-org-mail { padding: 10px 12px; border: 1px dashed var(--jm-line-strong); border-radius: var(--jm-radius-sm); background: var(--jm-soft); }

/* ---------- peserta eksternal ---------- */
.jm-contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: center; }
.jm-contact-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border: 1px solid var(--jm-line-strong); border-radius: 12px; background: var(--jm-surface); max-width: 100%; min-width: 0; }
.jm-contact-chip > span:not(.jm-contact-ava) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.jm-contact-chip strong { overflow-wrap: anywhere; }
.jm-contact-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85em; background: var(--jm-accent-soft); color: var(--jm-accent); }
.jm-contact-meta { color: var(--jm-muted); font-size: .78em; overflow-wrap: anywhere; }
.jm-contact-chip .jm-icon-btn { width: 1.6em; height: 1.6em; font-size: 1em; }
.jm-guest-box textarea { margin-top: 8px; }
.jm-pick-list > li { padding: 4px 0; }
.jm-pick-row { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 4px; border-radius: 10px; }
.jm-pick-row:hover { background: var(--jm-soft); }
.jm-pick-row .jm-contact-chip { flex: 1; border-color: var(--jm-line); }
.jm-modal-foot [data-count] { margin-right: auto; align-self: center; }

/* ---------- template sistem & aturan ---------- */
.jm-sub-tabs { margin-bottom: 14px; }
.jm-sys-filter { margin-bottom: 12px; }
.jm-grid-sys { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.jm-sys-card { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--jm-accent); }
.jm-sys-card.is-off { opacity: .7; border-top-color: var(--jm-line-strong); }
.jm-sys-head { display: flex; flex-direction: column; gap: 6px; }
.jm-sys-rules { display: grid; grid-template-columns: 88px 1fr; gap: 6px 10px; margin: 0; font-size: .9em; }
.jm-sys-rules dt { color: var(--jm-muted); font-weight: 600; font-size: .92em; }
.jm-sys-rules dd { margin: 0; min-width: 0; }
.jm-sys-sample { padding: 8px 10px; border-radius: var(--jm-radius-sm); background: var(--jm-soft); font-size: .9em; overflow-wrap: anywhere; }
.jm-sys-card .jm-actions { margin-top: auto; }
.jm-badge-custom { background: color-mix(in srgb, var(--jm-purple) 15%, transparent); color: var(--jm-purple); }
.jm-mode-auto { background: color-mix(in srgb, var(--jm-info) 14%, transparent); color: var(--jm-info); }
.jm-mode-manual { background: color-mix(in srgb, var(--jm-warn) 18%, transparent); color: var(--jm-warn); }
.jm-ch-email { background: color-mix(in srgb, var(--jm-info) 12%, transparent); }
.jm-ch-whatsapp { background: color-mix(in srgb, #25d366 18%, transparent); }
.jm-sys-group { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); padding: 12px 14px 14px; margin: 0; min-width: 0; }
.jm-sys-group legend { font-weight: 700; padding: 0 6px; font-size: .92em; }
.jm-ph-list { display: flex; flex-wrap: wrap; gap: 4px; }
.jm-sys-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.jm-pv { border: 1px solid var(--jm-line); border-radius: 12px; padding: 12px; background: var(--jm-surface); min-width: 0; overflow-wrap: anywhere; }
.jm-pv-label { font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--jm-muted); margin-bottom: 6px; }
.jm-pv-subject { font-weight: 700; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--jm-line); }
.jm-pv-body { font-size: .92em; line-height: 1.55; }
.jm-pv-auto { margin-top: 8px; font-size: .8em; color: var(--jm-muted); font-style: italic; }
.jm-pv-wa { background: color-mix(in srgb, #25d366 6%, var(--jm-surface)); }
.jm-pv-bubble { background: #dcf8c6; color: #111; border-radius: 10px 10px 10px 2px; padding: 8px 10px; font-size: .92em; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
@media (max-width: 782px) {
	.jm-sys-rules { grid-template-columns: 1fr; gap: 2px; }
	.jm-sys-rules dd { margin-bottom: 6px; }
	.jm-sub-tabs .jm-btn { flex: 1 1 auto; }
}
.jm-sub-tabs, .jm-sys-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-sub-tabs .jm-btn, .jm-sys-filter .jm-btn { border-radius: 99px !important; margin-left: 0 !important; }

/* ---------- akses menu & tab ---------- */
.jm-matrix .jm-mx-modrow td { font-weight: 600; background: var(--jm-soft); }
.jm-matrix .jm-mx-tabrow .jm-mx-perm { padding-left: 1.6em; color: color-mix(in srgb, currentColor 85%, transparent); font-size: .88em; }
.jm-mx-indent { color: var(--jm-muted); }
.jm-ua-mode { align-items: center; padding: 10px 12px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-soft); }
.jm-ua-tools { margin-left: auto; font-size: .85em; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jm-ua-tools select { width: auto !important; min-height: 2em !important; padding: .1em .4em !important; }
.jm-ua-access { margin: 12px 0 0; }
.jm-ua-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.jm-ua-mod { border: 1px solid var(--jm-line); border-radius: var(--jm-radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.jm-ua-modcb { font-weight: 700; }
.jm-ua-tabs { display: flex; flex-direction: column; gap: 3px; padding-left: 22px; border-left: 2px solid var(--jm-line); margin-left: 7px; }
.jm-ua-tab { font-size: .9em; }
.jm-ua.is-role .jm-ua-grid, .jm-ua.is-role .jm-ua-access { opacity: .6; }

/* ---------- Template per penerima (internal / peserta eksternal) ---------- */
.jm-app .jm-aud-badge.jm-aud-internal { background: color-mix(in srgb, #2563eb 14%, transparent); color: #1d4ed8; }
.jm-app .jm-aud-badge.jm-aud-external { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
.jm-app .jm-aud-badge.jm-aud-all { background: color-mix(in srgb, currentColor 8%, transparent); }
.jm-app .jm-tpl-card.jm-aud-external { border-left: 4px solid #d97706; }
.jm-app .jm-tpl-card.jm-aud-internal { border-left: 4px solid #2563eb; }
.jm-app .jm-sys-card[data-sys^="guest_"] { border-top-color: #d97706; }
.jm-app .jm-guest-notify { margin-top: .6em; font-weight: 600; }
