.cron-page { min-width:0; }
.cron-page form,.cron-dialog form { max-width:none; width:100%; }
body:has(.cron-page.active) main { max-width:none; }
.cron-page.panel { border:0; border-radius:0; box-shadow:none; background:transparent; padding:0; }
.cron-page [hidden],.cron-dialog [hidden] { display:none !important; }
.cron-page h2 { font-size:22px; margin:0; }
.cron-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.cron-tools { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.cron-tools button,.cron-page button,.cron-dialog button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; border-radius:5px; }
.cron-page svg,.cron-dialog svg { width:18px; height:18px; flex-shrink:0; }
.cron-icon { width:34px; height:34px; min-height:34px !important; padding:6px !important; flex-shrink:0; }
.cron-icon.danger { color:#b13232; background:#fff2f2; }
.cron-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 16px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cron-meta label,.cron-dialog label,.cron-filters label { display:grid; gap:5px; min-width:0; font-size:13px; font-weight:600; }
.cron-meta input,.cron-meta select,.cron-dialog input,.cron-dialog select,.cron-dialog textarea,.cron-filters input,.cron-filters select { width:100%; min-width:0; font:inherit; font-weight:400; min-height:38px; margin:0; }
.cron-meta .wide { grid-column:span 2; }
.cron-calendar-options { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; }
.cron-weekdays { border:0; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.cron-weekdays legend { float:left; font-size:13px; font-weight:600; margin-right:12px; padding:8px 0; }
.cron-weekdays label { display:inline-flex; align-items:center; gap:5px; padding:7px 9px; border:1px solid #cbd6dc; border-radius:4px; background:white; font-size:13px; }
.cron-weekdays input[type=checkbox],.cron-dialog input[type=checkbox] { width:16px; min-height:16px; height:16px; padding:0; margin:0; accent-color:var(--primary); }
.cron-summary { color:#52636b; font-size:13px; }
.cron-gantt { overflow:auto; max-height:70vh; border:1px solid #cbd6dc; background:white; }
.cron-gantt table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; margin:0; }
.cron-gantt th,.cron-gantt td { border-right:1px solid #e1e6ea; border-bottom:1px solid #d8e0e6; padding:0; white-space:normal; vertical-align:middle; }
.cron-gantt thead th { height:54px; position:sticky; top:0; z-index:3; background:#edf3f6; color:#243d4a; font-size:11px; text-align:center; }
.cron-gantt .cron-task-col { width:310px; min-width:310px; max-width:310px; position:sticky; left:0; z-index:2; background:#fff; padding:10px 12px; text-align:left; }
.cron-gantt thead .cron-task-col { z-index:4; background:#153954; color:white; }
.cron-gantt .cron-detail-col { width:180px; min-width:180px; max-width:180px; padding:10px; font-size:12px; color:#52636b; }
.cron-gantt .cron-day { width:34px; min-width:34px; max-width:34px; text-align:center; height:64px; font-size:10px; }
.cron-gantt .cron-day small { display:block; font-size:10px; font-weight:400; padding-top:4px; }
.cron-gantt .cron-off { background:#f0f2f4; }
.cron-gantt .cron-bar { display:block; height:20px; width:100%; border-top:1px solid rgba(0,0,0,.06); border-bottom:1px solid rgba(0,0,0,.06); }
.cron-gantt .cron-track { position:relative; height:20px; overflow:hidden; }
.cron-gantt .cron-track .cron-bar { position:absolute; top:0; }
.cron-gantt .cron-bar-progress { position:absolute; bottom:0; height:6px; background:#153e32; box-shadow:0 -1px 0 rgba(255,255,255,.65); }
.cron-progress-meter { display:block; appearance:none; width:100%; height:6px; margin:7px 0 0; border:0; border-radius:3px; overflow:hidden; background:#d9e3e6; accent-color:#187149; }
.cron-progress-meter::-webkit-progress-bar { background:#d9e3e6; }
.cron-progress-meter::-webkit-progress-value { background:#187149; }
.cron-progress-meter::-moz-progress-bar { background:#187149; }
.cron-progress-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:0 0 14px; font-size:13px; }
.cron-progress-summary .cron-progress-meter { width:180px; max-width:100%; margin:0; }
.cron-progress-fields { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:18px; }
.cron-dialog input[type=range] { accent-color:#187149; padding:0; }
@media(max-width:480px) { .cron-progress-fields { grid-template-columns:1fr; gap:4px; } }
.cron-gantt .cron-hourly .cron-day { width:52px; min-width:52px; max-width:52px; }
.cron-view-tools { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:0 0 14px; }
.cron-view-tools label { display:flex; align-items:center; gap:8px; font-size:13px; }
.cron-view-tools input,.cron-view-tools select { width:auto; min-width:0; max-width:100%; margin:0; min-height:36px; }
.cron-dialog output { display:flex; align-items:center; min-height:38px; font-weight:600; }
.cron-task-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.cron-task-head>div { min-width:0; }
.cron-task-head>.cron-icon { flex:0 0 34px; }
.cron-page button[data-cron-action^="menu-"] { color:#153954; background:#edf3f6; }
.cron-page button[data-cron-action^="menu-"]:hover,.cron-page button[data-cron-action^="menu-"][aria-expanded="true"] { color:#153954; background:#dbe7ee; }
.cron-action-menu { position:fixed; inset:auto; margin:0; padding:6px; width:270px; max-width:calc(100vw - 20px); overflow:auto; border:1px solid #bccbd2; border-radius:6px; background:#fff; color:var(--text); box-shadow:0 6px 22px rgba(20,35,30,.18); z-index:1500; }
.cron-action-menu[hidden] { display:none !important; }
.cron-action-menu:popover-open,.cron-action-menu.is-open { display:grid; gap:2px; }
.cron-action-menu button { display:flex; align-items:center; justify-content:flex-start; gap:9px; min-height:38px; width:100%; padding:8px 10px; text-align:left; border:0; border-radius:4px; background:#fff; color:#243d4a; font-size:13px; font-weight:500; }
.cron-action-menu button:hover,.cron-action-menu button:focus-visible { background:#edf3f6; }
.cron-action-menu button:disabled { opacity:.45; cursor:default; }
.cron-action-menu button.danger { color:#a12b2b; }
.cron-action-menu svg { width:18px; height:18px; flex:0 0 18px; }
.cron-action-menu button span { min-width:0; overflow-wrap:anywhere; }
.cron-action-menu hr { border:0; border-top:1px solid #d8e0e6; width:100%; margin:4px 0; }
.cron-transfer-source { display:grid; gap:5px; padding-bottom:12px; border-bottom:1px solid var(--line); min-width:0; overflow-wrap:anywhere; }
.cron-transfer-source span { color:#52636b; font-size:13px; }
.cron-task-name { margin:0; font-size:13px; font-weight:600; overflow-wrap:anywhere; line-height:1.5; }
.cron-task-sub { font-size:11px; color:#52636b; margin-top:4px; overflow-wrap:anywhere; }
.cron-task-sub svg { width:12px; height:12px; vertical-align:middle; margin-right:4px; }
.cron-row-actions { display:flex; gap:3px; flex-shrink:0; }
.cron-category td { background:#dde9f0; height:47px; }
.cron-category .cron-task-col { background:#dde9f0; }
.cron-category .cron-task-head { align-items:center; }
.cron-category .cron-task-name { color:#153954; }
.cron-category .cron-summary { padding:8px 12px; }
.cron-status { font-size:11px; font-weight:600; color:#52636b; }
.cron-status.DONE { color:#187149; }
.cron-status.ACTIVE { color:#93621a; }
.cron-status.PAUSED { color:#a43131; }
.cron-footer { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:14px 0; flex-wrap:wrap; }
.cron-notes { padding:15px 0; border-top:1px solid var(--line); }
.cron-notes label { display:grid; gap:7px; font-size:13px; font-weight:600; }
.cron-notes textarea { width:100%; min-height:100px; font:inherit; font-weight:400; }
.cron-feedback { margin:8px 0; min-height:20px; font-size:14px; overflow-wrap:anywhere; color:#245c46; }
.cron-feedback.error { color:#a12b2b; }
.cron-empty { padding:35px 18px; text-align:center; color:#52636b; }
.cron-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.cron-filters label { flex:1; min-width:180px; }
.cron-archive { overflow-x:auto; background:white; border:1px solid var(--line); }
.cron-archive table { width:100%; min-width:1000px; border-collapse:collapse; }
.cron-archive th,.cron-archive td { padding:12px; font-size:13px; border-bottom:1px solid var(--line); white-space:normal; overflow-wrap:anywhere; text-align:left; }
.cron-archive td:first-child { max-width:320px; }
.cron-dialog { width:min(780px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:0; border:1px solid #cbd6dc; border-radius:8px; color:var(--text); }
.cron-dialog::backdrop { background:rgba(20,30,25,.5); }
.cron-dialog-head,.cron-dialog-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; background:#f7f9fa; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:1; }
.cron-dialog-head h3 { margin:0; font-size:18px; }
.cron-dialog-foot { border-top:1px solid var(--line); border-bottom:0; top:auto; bottom:0; justify-content:flex-end; }
.cron-dialog-body { padding:18px; display:grid; gap:14px; }
.cron-dialog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cron-dialog textarea { min-height:110px; resize:vertical; line-height:1.5; }
.cron-dialog .cron-check { display:flex; align-items:center; gap:8px; }
.cron-dialog input[type=color] { width:64px; min-height:38px; padding:3px; }
.cron-dialog .cron-preview-frame { display:block; width:100%; height:72dvh; border:0; }
.cron-dialog.cron-pdf-dialog { width:calc(100vw - 40px); }
.cron-saving { opacity:.6; pointer-events:none; }
.cron-archive-actions { flex-wrap:wrap; width:145px; }
.cron-mail-document { display:grid; gap:6px; padding-bottom:14px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.cron-mail-document span { font-size:13px; color:#52636b; }
.cron-mail-document svg { vertical-align:middle; margin-right:5px; }
.cron-mail-referents { margin:0; padding:0; border:0; display:grid; gap:8px; max-height:180px; overflow:auto; }
.cron-mail-referents legend { font-size:13px; font-weight:600; margin-bottom:8px; }
.cron-mail-referents label { display:flex; gap:10px; align-items:flex-start; padding:6px 0; }
.cron-mail-referents span { min-width:0; overflow-wrap:anywhere; }
.cron-mail-referents small { display:block; color:#52636b; font-weight:400; }
.cron-mail-group { min-width:0; }
.cron-mail-group>div:first-child { display:flex; gap:10px; align-items:center; justify-content:space-between; font-size:13px; margin-bottom:6px; }
.cron-mail-address { display:flex; align-items:center; gap:8px; margin-bottom:7px; }
.cron-mail-address input { flex:1; min-width:0; }
.cron-mail-history { border-top:1px solid var(--line); padding-top:12px; }
.cron-mail-history summary { cursor:pointer; font-size:13px; font-weight:600; padding-bottom:10px; }
.cron-mail-history article { display:grid; gap:4px; font-size:12px; overflow-wrap:anywhere; padding:10px 0; border-bottom:1px solid var(--line); }
.cron-mail-history article>span { color:#52636b; }
@media(max-width:760px) {
 .cron-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }.cron-meta .wide { grid-column:1/-1; }
 .cron-head { align-items:flex-start; }.cron-gantt .cron-task-col { width:230px; min-width:230px; max-width:230px; }
 .cron-row-actions { gap:1px; }.cron-gantt .cron-detail-col { width:160px; min-width:160px; max-width:160px; }
 .cron-dialog { width:100vw; max-height:100dvh; height:auto; border-radius:0; max-width:100vw; }.cron-dialog-grid { grid-template-columns:1fr; }
 .cron-dialog-head,.cron-dialog-foot { padding:12px; }.cron-dialog-body { padding:12px; }
 .cron-dialog.cron-pdf-dialog { width:100vw; }.cron-weekdays legend { float:none; width:100%; margin:0; }
}
