/* Cronjob Modern V1 - scoped to /cronjob */
.cron-modern-page{background:#f5f9ff;border-top:1px solid #edf3fb;padding:88px 0 36px;color:#0f172a;font-family:Roboto,Arial,sans-serif}
.cron-modern-container{max-width:1180px}
.cron-modern-breadcrumb{height:48px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce7f4;border-radius:14px;padding:0 16px;margin-bottom:22px;font-size:12px;font-weight:600;color:#64748b}
.cron-modern-breadcrumb a{color:#334155;text-decoration:none}.cron-modern-breadcrumb a:hover{color:#1677ff}.cron-modern-breadcrumb svg{width:14px;height:14px;color:#94a3b8}.cron-modern-breadcrumb span{color:#64748b}
.cron-modern-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.cron-modern-kicker{display:inline-flex;align-items:center;gap:7px;color:#1677ff;font-size:10px;font-weight:800;letter-spacing:.07em;margin-bottom:7px}.cron-modern-kicker svg{width:14px;height:14px}.cron-modern-heading h1{font-size:27px;line-height:1.15;margin:0 0 7px;font-weight:800;letter-spacing:-.025em}.cron-modern-heading p{margin:0;color:#64748b;font-size:13px;line-height:1.6;max-width:650px}.cron-modern-server-badge{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;background:#fff;border:1px solid #dce7f4;border-radius:10px;color:#475569;font-size:11px;font-weight:700;white-space:nowrap}.cron-modern-server-badge span{width:7px;height:7px;background:#22c55e;border-radius:50%;box-shadow:0 0 0 4px #dcfce7}
.cron-modern-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:18px;align-items:start}.cron-modern-card{background:#fff;border:1px solid #dce7f4;border-radius:18px}.cron-modern-form-card{padding:22px}.cron-modern-note-card{padding:22px;position:sticky;top:86px}.cron-modern-card-head{display:flex;gap:12px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #e8eef7;margin-bottom:20px}.cron-modern-card-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#eff6ff;color:#1677ff;flex:0 0 auto}.cron-modern-card-icon svg{width:18px;height:18px}.cron-modern-card-icon-warning{background:#fff7ed;color:#f97316}.cron-modern-card-head h2{font-size:16px;line-height:1.3;margin:1px 0 4px;font-weight:800;color:#0f172a}.cron-modern-card-head p{font-size:11px;color:#94a3b8;margin:0;line-height:1.45}
.cron-modern-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cron-modern-field-full{grid-column:1/-1}.cron-modern-field{display:flex;flex-direction:column;min-width:0}.cron-modern-field label{font-size:12px;line-height:1.35;font-weight:700;color:#334155;margin:0 0 7px}.cron-modern-field label span{color:#ef4444}.cron-modern-field label em{font-style:normal;color:#94a3b8;font-weight:600;margin-left:4px}.cron-modern-field input,.cron-modern-field select,.cron-modern-field textarea{width:100%;border:1px solid #d7e2ef;background:#fff;border-radius:10px;color:#0f172a;font:500 12px/1.4 Roboto,Arial,sans-serif;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.cron-modern-field input,.cron-modern-field select{height:42px;padding:0 12px}.cron-modern-field textarea{padding:11px 12px;resize:vertical;min-height:82px}.cron-modern-field input:focus,.cron-modern-field select:focus,.cron-modern-field textarea:focus{border-color:#82b5ff;box-shadow:0 0 0 3px rgba(22,119,255,.09)}.cron-modern-field small{font-size:10px;color:#94a3b8;margin-top:6px;line-height:1.45}.cron-modern-input-wrap{position:relative}.cron-modern-input-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#94a3b8;pointer-events:none}.cron-modern-input-wrap input{padding-left:36px}.cron-modern-divider{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin:2px 0}.cron-modern-divider::before,.cron-modern-divider::after{content:"";height:1px;flex:1;background:#e8eef7}.cron-modern-is-muted{opacity:.62}.cron-modern-is-muted textarea{background:#f8fafc}
.cron-modern-actions{display:flex;align-items:center;gap:15px;margin-top:20px;padding-top:18px;border-top:1px solid #e8eef7}.cron-modern-submit{height:42px;border:0;border-radius:10px;background:#1677ff;color:#fff;font-size:12px;font-weight:800;padding:0 18px;display:inline-flex;align-items:center;gap:8px;box-shadow:none;transition:background .18s ease,transform .18s ease}.cron-modern-submit:hover{background:#0868ea;transform:translateY(-1px)}.cron-modern-submit:disabled{opacity:.65;cursor:not-allowed;transform:none}.cron-modern-submit svg{width:15px;height:15px}.cron-modern-history{color:#64748b;font-size:11px;font-weight:700;text-decoration:none}.cron-modern-history:hover{color:#1677ff}
.cron-modern-note-content{font-size:12px;line-height:1.65;color:#475569}.cron-modern-note-content h1,.cron-modern-note-content h2,.cron-modern-note-content h3,.cron-modern-note-content h4,.cron-modern-note-content h5,.cron-modern-note-content h6{font-size:13px!important;color:#0f172a!important;font-weight:800!important;margin:0 0 8px!important}.cron-modern-note-content p{margin:0 0 9px}.cron-modern-note-content strong{color:#334155}.cron-modern-note-content ul,.cron-modern-note-content ol{padding-left:18px;margin:7px 0 10px}.cron-modern-note-content a{color:#1677ff}.cron-modern-note-tip{margin-top:18px;padding:12px;border-radius:12px;background:#f8fbff;border:1px solid #e1ebf6;display:flex;align-items:flex-start;gap:9px;color:#64748b;font-size:10px;line-height:1.5}.cron-modern-note-tip svg{width:16px;height:16px;flex:0 0 auto;color:#1677ff;margin-top:1px}
@media (max-width:1399px){.cron-modern-page{padding-top:80px}.cron-modern-note-card{top:76px}}
@media (max-width:991px){.cron-modern-page{padding:24px 0 24px}.cron-modern-layout{grid-template-columns:1fr}.cron-modern-note-card{position:static}.cron-modern-heading{align-items:flex-start}.cron-modern-server-badge{display:none}}
@media (max-width:599px){.cron-modern-page{padding:14px 0 18px}.cron-modern-breadcrumb{height:42px;margin-bottom:16px;padding:0 12px;border-radius:12px}.cron-modern-heading{margin-bottom:16px}.cron-modern-heading h1{font-size:22px}.cron-modern-heading p{font-size:12px}.cron-modern-card{border-radius:15px}.cron-modern-form-card,.cron-modern-note-card{padding:15px}.cron-modern-card-head{padding-bottom:14px;margin-bottom:15px}.cron-modern-form{grid-template-columns:1fr;gap:13px}.cron-modern-field-full{grid-column:auto}.cron-modern-actions{flex-direction:column;align-items:stretch}.cron-modern-submit{width:100%;justify-content:center}.cron-modern-history{text-align:center}}

/* =========================================================
   Cronjob Modern V1.1 — custom dropdown + history redesign
   ========================================================= */
.cron-modern-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.cron-modern-select {
    position: relative;
    width: 100%;
    z-index: 10;
}
.cron-modern-select.is-open { z-index: 100; }
.cron-modern-select-trigger {
    width: 100%;
    height: 46px;
    padding: 0 13px 0 14px;
    border: 1px solid #d7e2ef;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font: 600 13px/1.2 Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    text-align: left;
}
.cron-modern-select-trigger:hover { border-color: #b9cce2; }
.cron-modern-select.is-open .cron-modern-select-trigger,
.cron-modern-select-trigger:focus-visible {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22,119,255,.10);
}
.cron-modern-select-trigger svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #64748b;
    transition: transform .18s ease, color .18s ease;
}
.cron-modern-select.is-open .cron-modern-select-trigger svg {
    transform: rotate(180deg);
    color: #1677ff;
}
.cron-modern-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    display: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 13px;
    box-shadow: 0 14px 38px rgba(15,23,42,.12);
}
.cron-modern-select.is-open .cron-modern-select-menu { display: block; }
.cron-modern-select-option {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    padding: 8px 10px;
    background: transparent;
    color: #334155;
    font: 500 12.5px/1.35 Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}
.cron-modern-select-option:hover { background: #f4f8fd; color: #0f172a; }
.cron-modern-select-option.is-selected { background: #edf5ff; color: #1677ff; font-weight: 700; }
.cron-modern-select-option small { font-size: 11px; color: #64748b; font-weight: 600; white-space: nowrap; }
.cron-modern-select-option.is-selected small { color: #1677ff; }

/* History */
.cron-history-page {
    background: #f5f9ff;
    border-top: 1px solid #edf2f7;
    min-height: 0;
    padding: 88px 0 46px;
    font-family: Roboto, Arial, sans-serif;
    color: #0f172a;
}
.cron-history-container { max-width: 1180px; }
.cron-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin: 22px 0 20px;
}
.cron-history-heading h1 { margin: 6px 0 5px; font-size: 28px; line-height: 1.15; font-weight: 800; color: #0f172a; }
.cron-history-heading p { margin: 0; color: #64748b; font-size: 13px; }
.cron-history-add {
    height: 42px;
    padding: 0 15px;
    border-radius: 11px;
    background: #1677ff;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(22,119,255,.15);
}
.cron-history-add svg { width: 16px; height: 16px; }
.cron-history-add:hover { background: #0869e8; color: #fff !important; }

.cron-history-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 15px;
}
.cron-history-stat {
    min-height: 92px;
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 15px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 4px 14px rgba(15,23,42,.025);
}
.cron-history-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.cron-history-stat-icon svg { width: 21px; height: 21px; }
.cron-history-stat-icon.stat-all { background:#edf5ff; color:#1677ff; }
.cron-history-stat-icon.stat-active { background:#ecfdf3; color:#16a34a; }
.cron-history-stat-icon.stat-paused { background:#fff7e8; color:#d97706; }
.cron-history-stat-icon.stat-expired { background:#fff1f2; color:#e11d48; }
.cron-history-stat strong { display:block; font-size:24px; line-height:1; font-weight:800; color:#0f172a; margin-bottom:6px; }
.cron-history-stat span:not(.cron-history-stat-icon) { font-size:12px; font-weight:600; color:#64748b; }

.cron-history-card {
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 17px;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(15,23,42,.025);
}
.cron-history-card-head { padding: 17px 18px 13px; border-bottom: 1px solid #edf2f7; }
.cron-history-card-head h2 { margin:0 0 3px; font-size:17px; font-weight:800; color:#0f172a; }
.cron-history-card-head p { margin:0; font-size:11.5px; color:#94a3b8; }
.cron-history-filters {
    padding: 13px 15px;
    display: grid;
    grid-template-columns: minmax(210px,1.25fr) minmax(170px,.85fr) minmax(200px,1fr) auto auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}
.cron-history-search-field,
.cron-history-date-field {
    height: 42px;
    border: 1px solid #d7e2ef;
    border-radius: 11px;
    background: #fff;
    display:flex;
    align-items:center;
    gap:8px;
    padding: 0 11px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cron-history-search-field:focus-within,
.cron-history-date-field:focus-within { border-color:#1677ff; box-shadow:0 0 0 3px rgba(22,119,255,.08); }
.cron-history-search-field svg,
.cron-history-date-field svg { width:16px; height:16px; color:#94a3b8; flex:0 0 auto; }
.cron-history-search-field input,
.cron-history-date-field input { border:0 !important; outline:0 !important; box-shadow:none !important; width:100%; min-width:0; padding:0 !important; background:transparent !important; font:500 12px/1 Roboto,Arial,sans-serif; color:#334155; }
.cron-history-filters .cron-modern-select-trigger { height:42px; border-radius:11px; font-size:12px; }
.cron-history-filter-btn,
.cron-history-reset-btn {
    height: 42px;
    border-radius: 11px;
    padding: 0 13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
    font:700 11.5px/1 Roboto,Arial,sans-serif;
    text-decoration:none !important;
}
.cron-history-filter-btn { border:1px solid #1677ff; background:#1677ff; color:#fff; }
.cron-history-filter-btn:hover { background:#0869e8; }
.cron-history-reset-btn { border:1px solid #d7e2ef; background:#fff; color:#475569 !important; }
.cron-history-reset-btn:hover { background:#f8fafc; color:#0f172a !important; }
.cron-history-filter-btn svg,
.cron-history-reset-btn svg { width:15px; height:15px; }

.cron-history-bulk { display:flex; gap:7px; padding:10px 15px 0; }
.cron-history-bulk-btn { border:0; border-radius:8px; padding:7px 10px; font:700 10.5px/1 Roboto,Arial,sans-serif; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.cron-history-bulk-btn.is-pause { background:#fff1f2; color:#e11d48; }
.cron-history-bulk-btn.is-active { background:#ecfdf3; color:#16a34a; }
.cron-history-table-wrap { overflow-x:auto; padding:10px 15px 15px; }
.cron-history-table { width:100%; min-width:1020px; border-collapse:separate; border-spacing:0; font-size:11.5px; color:#334155; }
.cron-history-table thead th { padding:11px 10px; background:#f6f9fd; color:#475569; font-weight:700; border-top:1px solid #e5edf6; border-bottom:1px solid #e5edf6; text-align:left; }
.cron-history-table thead th:first-child { border-left:1px solid #e5edf6; border-radius:10px 0 0 10px; }
.cron-history-table thead th:last-child { border-right:1px solid #e5edf6; border-radius:0 10px 10px 0; }
.cron-history-table tbody td { padding:13px 10px; border-bottom:1px solid #edf2f7; vertical-align:middle; }
.cron-history-table tbody tr:hover td { background:#fbfdff; }
.cron-history-index { color:#94a3b8; font-weight:700; }
.cron-history-url { display:block; max-width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#1677ff !important; font-weight:600; text-decoration:none !important; }
.cron-history-config,.cron-history-time,.cron-history-last-run { display:flex; flex-direction:column; gap:4px; line-height:1.35; }
.cron-history-config b,.cron-history-time b { color:#64748b; font-weight:600; }
.cron-history-status { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 8px; font-weight:700; font-size:10px; white-space:nowrap; }
.cron-history-status i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.cron-history-status.is-active { background:#ecfdf3; color:#15803d; }
.cron-history-status.is-paused { background:#fff7e8; color:#b45309; }
.cron-history-status.is-expired { background:#fff1f2; color:#be123c; }
.cron-history-last-run small { width:max-content; border-radius:6px; padding:3px 6px; font-size:9.5px; font-weight:700; }
.cron-history-last-run small.is-success { background:#ecfdf3; color:#15803d; }
.cron-history-last-run small.is-error { background:#fff1f2; color:#be123c; }
.cron-history-actions { display:flex; align-items:center; gap:5px; }
.cron-history-action { width:30px; height:30px; border:1px solid #dce6f2; border-radius:8px; background:#fff; color:#64748b; display:grid; place-items:center; cursor:pointer; transition:.15s ease; }
.cron-history-action:hover { transform:translateY(-1px); border-color:#b9cce2; }
.cron-history-action.is-pause:hover { color:#e11d48; background:#fff1f2; border-color:#fecdd3; }
.cron-history-action.is-play:hover,.cron-history-action.is-renew:hover { color:#16a34a; background:#ecfdf3; border-color:#bbf7d0; }
.cron-history-action.is-edit:hover { color:#1677ff; background:#edf5ff; border-color:#bfdbfe; }
.cron-history-empty { padding:48px 20px 52px; text-align:center; }
.cron-history-empty-icon { width:58px; height:58px; margin:0 auto 12px; border-radius:17px; display:grid; place-items:center; background:#f1f6fc; color:#94a3b8; }
.cron-history-empty-icon svg { width:29px; height:29px; }
.cron-history-empty h3 { margin:0 0 5px; font-size:15px; font-weight:800; color:#334155; }
.cron-history-empty p { margin:0 0 14px; font-size:12px; color:#94a3b8; }
.cron-history-empty a { display:inline-flex; height:35px; padding:0 12px; align-items:center; border-radius:9px; background:#1677ff; color:#fff !important; font-size:11px; font-weight:700; text-decoration:none !important; }
.cron-history-pagination { display:flex; justify-content:flex-end; padding:0 15px 15px; }

/* modal cleanup on history */
.cron-history-page ~ .modal .modal-content { border:1px solid #dce6f2; border-radius:16px; box-shadow:0 18px 55px rgba(15,23,42,.16); overflow:hidden; }
.cron-history-page ~ .modal .modal-header { padding:16px 18px !important; }
.cron-history-page ~ .modal .modal-header h3 { font-size:18px !important; }

@media (max-width: 1100px) {
    .cron-history-page { padding-top:78px; }
    .cron-history-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cron-history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cron-history-filter-btn,.cron-history-reset-btn { width:100%; }
}
@media (max-width: 767px) {
    .cron-history-page { padding:18px 0 88px; }
    .cron-history-container { padding-left:12px; padding-right:12px; }
    .cron-history-heading { align-items:flex-start; margin:16px 0; }
    .cron-history-heading h1 { font-size:22px; }
    .cron-history-heading p { font-size:12px; }
    .cron-history-add { height:38px; padding:0 10px; font-size:0; }
    .cron-history-add svg { width:18px; height:18px; }
    .cron-history-stats { gap:8px; }
    .cron-history-stat { min-height:76px; padding:11px; gap:9px; border-radius:13px; }
    .cron-history-stat-icon { width:34px; height:34px; border-radius:10px; }
    .cron-history-stat-icon svg { width:18px; height:18px; }
    .cron-history-stat strong { font-size:19px; margin-bottom:4px; }
    .cron-history-stat span:not(.cron-history-stat-icon) { font-size:10px; }
    .cron-history-card { border-radius:14px; }
    .cron-history-card-head { padding:14px 13px 11px; }
    .cron-history-card-head h2 { font-size:15px; }
    .cron-history-filters { grid-template-columns:1fr; padding:10px 12px; gap:8px; }
    .cron-history-search-field,.cron-history-date-field,.cron-history-filters .cron-modern-select-trigger { height:40px; }
    .cron-history-bulk { padding:9px 12px 0; }
    .cron-history-table-wrap { padding:9px 12px 12px; }
}
@media (max-width: 420px) {
    .cron-history-stats { grid-template-columns:1fr 1fr; }
    .cron-history-stat { align-items:flex-start; }
}

/* =========================================================
   Cronjob history table alignment V1
   ========================================================= */
html body .cron-history-table{
    font-variant-numeric:tabular-nums!important;
    font-feature-settings:"tnum" 1!important;
}
html body .cron-history-table thead th,
html body .cron-history-table tbody td{
    text-align:left!important;
    vertical-align:middle!important;
    line-height:1.35!important;
}
html body .cron-history-table thead th{
    height:44px!important;
    padding-top:0!important;
    padding-bottom:0!important;
}
html body .cron-history-table tbody td{
    min-height:58px!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
}
html body .cron-history-table .cron-history-index,
html body .cron-history-table .cron-history-status,
html body .cron-history-table .cron-history-last-run,
html body .cron-history-table .cron-history-time,
html body .cron-history-table .cron-history-actions{
    vertical-align:middle!important;
}

/* =========================================================
   Cronjob history table alignment V2 GLOBAL
   ========================================================= */
html body .stc-history-cron-table{
    table-layout:fixed!important;
    width:100%!important;
    min-width:1120px!important;
    font-variant-numeric:tabular-nums!important;
    font-feature-settings:"tnum" 1!important;
}
html body .stc-history-cron-table th,
html body .stc-history-cron-table td{vertical-align:middle!important;box-sizing:border-box!important}
html body .stc-history-cron-table th:nth-child(1),html body .stc-history-cron-table td:nth-child(1){width:4%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(2),html body .stc-history-cron-table td:nth-child(2){width:5%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(3),html body .stc-history-cron-table td:nth-child(3){width:21%;text-align:left!important}
html body .stc-history-cron-table th:nth-child(4),html body .stc-history-cron-table td:nth-child(4){width:19%;text-align:left!important}
html body .stc-history-cron-table th:nth-child(5),html body .stc-history-cron-table td:nth-child(5){width:12%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(6),html body .stc-history-cron-table td:nth-child(6){width:14%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(7),html body .stc-history-cron-table td:nth-child(7){width:16%;text-align:left!important}
html body .stc-history-cron-table th:nth-child(8),html body .stc-history-cron-table td:nth-child(8){width:9%;text-align:center!important}
html body .stc-history-cron-table td:nth-child(5) .cron-history-status,
html body .stc-history-cron-table td:nth-child(6) .cron-history-last-run,
html body .stc-history-cron-table td:nth-child(8) .cron-history-actions{margin-left:auto!important;margin-right:auto!important}
html body .stc-history-cron-table td:nth-child(6) .cron-history-last-run{align-items:center!important}
html body .stc-history-cron-table td:nth-child(8) .cron-history-actions{justify-content:center!important}

/* =========================================================
   Cronjob history V3 — center every column consistently.
   ========================================================= */
html body .stc-history-cron-table th,
html body .stc-history-cron-table td{
    text-align:center!important;
    vertical-align:middle!important;
}
html body .stc-history-cron-table .cron-history-url{
    display:block!important;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
html body .stc-history-cron-table .cron-history-config,
html body .stc-history-cron-table .cron-history-last-run,
html body .stc-history-cron-table .cron-history-time{
    align-items:center!important;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
html body .stc-history-cron-table .cron-history-status,
html body .stc-history-cron-table .cron-history-actions{
    margin-left:auto!important;
    margin-right:auto!important;
    justify-content:center!important;
}

/* =========================================================
   Cron purchase V2 - process style
   ========================================================= */
.cron-order-v2{padding-top:78px}
.cron-order-container{max-width:940px}
.cron-order-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px}
.cron-order-heading h1{margin:0 0 6px;font-size:27px;line-height:1.15;font-weight:800;letter-spacing:-.025em;color:#0f172a}
.cron-order-heading p{margin:0;font-size:13px;color:#64748b;line-height:1.55}
.cron-order-card{background:#fff;border:1px solid #dce7f4;border-radius:20px;overflow:hidden;box-shadow:0 8px 28px rgba(15,23,42,.035)}
.cron-order-section{padding:22px 24px;border-bottom:1px solid #e9eff6}
.cron-order-section:last-child{border-bottom:0}
.cron-order-section-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}
.cron-order-step{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border-radius:9px;background:#edf5ff;color:#1677ff;font-size:12px;font-weight:800}
.cron-order-section-title h2{margin:1px 0 3px;font-size:15px;line-height:1.25;font-weight:800;color:#0f172a}
.cron-order-section-title p{margin:0;font-size:11.5px;line-height:1.45;color:#94a3b8}
.cron-order-field{display:flex;flex-direction:column;min-width:0}
.cron-order-field-full{grid-column:1/-1}
.cron-order-field label{font-size:12px;font-weight:700;color:#334155;margin:0 0 7px}
.cron-order-field label span{color:#ef4444}
.cron-order-field input,.cron-order-field select{width:100%;height:46px;border:1px solid #d7e2ef;border-radius:11px;background:#fff;color:#0f172a;padding:0 13px;font:500 13px/1 Roboto,Arial,sans-serif;outline:0;transition:.18s ease}
.cron-order-field input:focus,.cron-order-field select:focus{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}
.cron-order-field small{margin-top:6px;color:#94a3b8;font-size:10.5px;line-height:1.45}
.cron-order-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.cron-target-list{display:flex;flex-direction:column;gap:9px}
.cron-target-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px}
.cron-target-input-wrap{height:45px;border:1px solid #d7e2ef;border-radius:11px;display:flex;align-items:center;gap:9px;padding:0 12px;background:#fff;transition:.18s ease}
.cron-target-input-wrap:focus-within{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}
.cron-target-input-wrap i{color:#94a3b8;font-size:12px}
.cron-target-input{border:0!important;box-shadow:none!important;outline:0!important;padding:0!important;width:100%;height:auto!important;font:500 13px/1 Roboto,Arial,sans-serif!important;color:#0f172a;background:transparent!important}
.cron-target-remove{height:42px;border:1px solid #e3eaf3;border-radius:10px;background:#fff;color:#94a3b8;cursor:pointer;transition:.15s ease}
.cron-target-remove:hover{border-color:#fecaca;background:#fff5f5;color:#ef4444}
.cron-target-add{width:100%;height:39px;margin-top:9px;border:1px dashed #cbd8e7;border-radius:10px;background:#fff;color:#64748b;font:700 11.5px/1 Roboto,Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.cron-target-add:hover{border-color:#9fc5f8;color:#1677ff;background:#f8fbff}
.cron-hosting-sync{min-height:64px;border:1px solid #dfe8f2;border-radius:13px;background:#f8fbff;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.cron-hosting-sync strong{display:block;font-size:12.5px;color:#1e293b;margin-bottom:4px}
.cron-hosting-sync span{display:block;font-size:10.5px;color:#7c8ca0;line-height:1.45}
.cron-switch{position:relative;display:inline-flex;width:42px;height:24px;flex:0 0 auto;cursor:pointer}.cron-switch input{position:absolute;opacity:0;pointer-events:none}.cron-switch>span{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.18s ease}.cron-switch>span:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(15,23,42,.18);transition:.18s ease}.cron-switch input:checked+span{background:#1677ff}.cron-switch input:checked+span:after{transform:translateX(18px)}
.cron-hosting-select-wrap{margin-top:12px}.cron-hosting-select-wrap[hidden]{display:none!important}
.cron-coupon-row{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:9px;align-items:end}
.cron-coupon-input{height:46px;border:1px solid #d7e2ef;border-radius:11px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 12px}.cron-coupon-input:focus-within{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}.cron-coupon-input i{color:#94a3b8}.cron-coupon-input input{border:0!important;height:auto!important;padding:0!important;box-shadow:none!important;background:transparent!important}
.cron-coupon-btn{height:46px;border:0;border-radius:11px;background:#8b8b8b;color:#fff;font:800 11.5px/1 Roboto,Arial,sans-serif;cursor:pointer}.cron-coupon-btn:hover{background:#717171}
.cron-order-summary{margin-top:17px;padding-top:16px;border-top:1px solid #edf2f7;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 14px}.cron-order-summary>div:first-child span{display:block;font-size:11px;color:#7c8ca0;margin-bottom:4px}.cron-order-summary>div:first-child strong{font-size:24px;line-height:1;color:#1677ff;font-weight:800}.cron-discount-info{font-size:10.5px;color:#16a34a;min-height:15px;grid-column:1}.cron-checkout-btn{grid-column:2;grid-row:1/3;height:48px;border:0;border-radius:11px;padding:0 18px;background:#1677ff;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;font:800 12px/1 Roboto,Arial,sans-serif;box-shadow:0 8px 18px rgba(22,119,255,.18);cursor:pointer}.cron-checkout-btn:hover{background:#0869e8}.cron-checkout-btn:disabled{opacity:.65;cursor:not-allowed}
.cron-order-footer-link{text-align:center;padding:14px 0 0}.cron-order-footer-link a{font-size:11px;font-weight:700;color:#64748b;text-decoration:none}.cron-order-footer-link a:hover{color:#1677ff}
@media(max-width:767px){.cron-order-v2{padding:18px 0 92px}.cron-order-container{padding-left:12px;padding-right:12px}.cron-order-heading{align-items:flex-start}.cron-order-heading h1{font-size:22px}.cron-order-heading .cron-modern-server-badge{display:none}.cron-order-section{padding:17px 14px}.cron-order-grid.two{grid-template-columns:1fr}.cron-order-field-full{grid-column:auto}.cron-coupon-row{grid-template-columns:1fr}.cron-coupon-btn{width:100%}.cron-order-summary{grid-template-columns:1fr}.cron-checkout-btn{grid-column:1;grid-row:auto;width:100%;margin-top:7px}.cron-discount-info{grid-column:1}.cron-hosting-sync{align-items:flex-start}}
.cron-history-process{display:block;max-width:230px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-size:11.5px;font-weight:800}

/* =========================================================
   Cron purchase V3 — balanced form + usage note
   ========================================================= */
.cron-order-container-wide{max-width:1180px!important}
.cron-order-layout{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(300px,.86fr);gap:18px;align-items:start}
.cron-order-note-card{position:sticky;top:88px;background:#fff;border:1px solid #dce7f4;border-radius:18px;padding:20px;box-shadow:0 8px 28px rgba(15,23,42,.035)}
.cron-order-note-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid #e9eff6}
.cron-order-note-head>span{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:#fff6eb;color:#ff7a18;font-size:17px}
.cron-order-note-head h2{margin:1px 0 4px;font-size:17px;font-weight:800;color:#0f172a;line-height:1.25}
.cron-order-note-head p{margin:0;font-size:11.5px;color:#94a3b8;line-height:1.45}
.cron-order-note-body{padding:17px 0 2px;color:#334155;font-size:12px;line-height:1.65}
.cron-order-note-body>strong{display:block;margin-bottom:8px;color:#0f172a;font-size:12.5px}
.cron-order-note-body ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.cron-order-note-body li{position:relative;padding-left:13px}
.cron-order-note-body li:before{content:"";position:absolute;left:0;top:.72em;width:4px;height:4px;border-radius:50%;background:#1677ff}
.cron-order-note-body b{color:#0f172a}.cron-order-note-body code{font:600 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#1677ff;background:#f4f8fd;border-radius:5px;padding:2px 4px}
.cron-order-note-tip{margin-top:16px;border:1px solid #dce7f4;background:#f8fbff;border-radius:12px;padding:11px 12px;display:flex;align-items:flex-start;gap:9px;color:#64748b;font-size:10.5px;line-height:1.5}
.cron-order-note-tip i{color:#1677ff;margin-top:2px}
.cron-order-schedule-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}
.cron-order-v3 .cron-order-card{width:100%;min-width:0}
.cron-order-v3 .cron-order-section{padding:21px 22px}
.cron-order-v3 .cron-order-field input,.cron-order-v3 .cron-order-field select{font-size:12.5px;font-weight:600}
.cron-order-v3 .cron-target-input{font-size:12.5px!important;font-weight:600!important}
.cron-order-v3 .cron-target-remove{height:45px}
@media(max-width:991px){.cron-order-layout{grid-template-columns:1fr}.cron-order-note-card{position:static}.cron-order-container-wide{max-width:820px!important}}
@media(max-width:767px){.cron-order-schedule-grid{grid-template-columns:1fr}.cron-order-v3 .cron-order-section{padding:17px 14px}.cron-order-note-card{padding:16px;border-radius:14px}}

/* =========================================================
   Cron history V4 — restore logical alignment
   ========================================================= */
html body .stc-history-cron-table{table-layout:fixed!important;min-width:1110px!important}
html body .stc-history-cron-table th,html body .stc-history-cron-table td{vertical-align:middle!important}
html body .stc-history-cron-table th:nth-child(1),html body .stc-history-cron-table td:nth-child(1){width:4%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(2),html body .stc-history-cron-table td:nth-child(2){width:5%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(3),html body .stc-history-cron-table td:nth-child(3){width:23%;text-align:left!important}
html body .stc-history-cron-table th:nth-child(4),html body .stc-history-cron-table td:nth-child(4){width:13%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(5),html body .stc-history-cron-table td:nth-child(5){width:12%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(6),html body .stc-history-cron-table td:nth-child(6){width:14%;text-align:center!important}
html body .stc-history-cron-table th:nth-child(7),html body .stc-history-cron-table td:nth-child(7){width:19%;text-align:left!important}
html body .stc-history-cron-table th:nth-child(8),html body .stc-history-cron-table td:nth-child(8){width:10%;text-align:center!important}
html body .stc-history-cron-table td:nth-child(3) .cron-history-process,html body .stc-history-cron-table td:nth-child(3) .cron-history-url{margin-left:0!important;margin-right:0!important;text-align:left!important;max-width:100%!important}
html body .stc-history-cron-table td:nth-child(4) .cron-history-config{align-items:center!important;text-align:center!important}
html body .stc-history-cron-table td:nth-child(7) .cron-history-time{align-items:flex-start!important;text-align:left!important}
html body .stc-history-cron-table td:nth-child(5) .cron-history-status,html body .stc-history-cron-table td:nth-child(6) .cron-history-last-run,html body .stc-history-cron-table td:nth-child(8) .cron-history-actions{margin-left:auto!important;margin-right:auto!important;justify-content:center!important}
.cron-history-process{font-size:12px!important;line-height:1.35!important;margin-bottom:5px!important}
.cron-history-url{font-size:11.5px!important;line-height:1.4!important}
.cron-history-config{font-size:11px!important;color:#475569}.cron-history-config b{display:block;font-size:10px;color:#94a3b8;margin-bottom:2px}
.cron-history-card{box-shadow:0 8px 26px rgba(15,23,42,.035)}
.cron-history-table-wrap{border-top:1px solid #edf2f7;margin-top:10px}
.cron-history-config strong{font-size:11.5px;color:#334155;font-weight:800}
.cron-history-runner-badge{display:inline-flex!important;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:#ecfdf3;color:#15803d;font-size:9.5px;font-weight:700;white-space:nowrap}

/* =========================================================
   Cron V63 — custom selects, cleaner coupon, aligned history
   ========================================================= */
.cron-order-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important}
.cron-order-custom-select{position:relative;width:100%}
.cron-order-custom-trigger{width:100%;height:46px;border:1px solid #d7e2ef;border-radius:11px;background:#fff;color:#0f172a;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 12.5px/1.2 Roboto,Arial,sans-serif;cursor:pointer;transition:.18s ease;text-align:left}
.cron-order-custom-trigger:hover{border-color:#bfd2e8;background:#fbfdff}
.cron-order-custom-trigger:focus,.cron-order-custom-select.is-open .cron-order-custom-trigger{outline:0;border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}
.cron-order-custom-trigger i{color:#718198;font-size:11px;transition:transform .18s ease}
.cron-order-custom-select.is-open .cron-order-custom-trigger i{transform:rotate(180deg)}
.cron-order-custom-menu{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);display:none;max-height:260px;overflow:auto;padding:6px;border:1px solid #d7e2ef;border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.12)}
.cron-order-custom-select.is-open .cron-order-custom-menu{display:block}
.cron-order-custom-option{width:100%;min-height:38px;border:0;border-radius:8px;background:transparent;color:#334155;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font:650 12px/1.25 Roboto,Arial,sans-serif;cursor:pointer}
.cron-order-custom-option small{margin:0!important;color:#94a3b8!important;font-size:10.5px!important;font-weight:600!important;white-space:nowrap}
.cron-order-custom-option:hover{background:#f4f8fd;color:#1677ff}
.cron-order-custom-option.is-selected{background:#edf5ff;color:#0f6de0}
.cron-order-v3 .cron-order-field>input{height:46px;border-radius:11px}
.cron-order-v3 .cron-order-schedule-grid{align-items:start}
.cron-order-v3 .cron-order-field-full{margin-top:1px}
.cron-coupon-row{align-items:end!important}
.cron-coupon-input{border-color:#d7e2ef!important;background:#fff!important}
.cron-coupon-input i{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#edf5ff;color:#1677ff!important;font-size:10px}
.cron-coupon-btn{height:46px!important;border:1px solid #b9d6ff!important;background:#edf5ff!important;color:#126fe3!important;box-shadow:none!important;font-weight:800!important}
.cron-coupon-btn:hover{border-color:#83b7ff!important;background:#e3f0ff!important;color:#075fcf!important}
.cron-coupon-btn:active{transform:translateY(1px)}
.cron-history-cycle-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:42px;text-align:center}
.cron-history-cycle-stack strong{font-size:11.8px;line-height:1.25;color:#334155;font-weight:800;white-space:nowrap}
.cron-history-cycle-stack small{font-size:9.7px;line-height:1.25;color:#94a3b8;font-weight:600;white-space:nowrap}
html body .stc-history-cron-table td:nth-child(3){vertical-align:middle!important}
html body .stc-history-cron-table td:nth-child(3)>strong.cron-history-process{margin-bottom:5px!important}
html body .stc-history-cron-table td:nth-child(4){vertical-align:middle!important}
.cron-history-last-run{align-items:center!important;text-align:center!important;min-height:42px;justify-content:center}
.cron-history-last-run>span{font-size:10.8px;color:#475569;white-space:nowrap}
@media(max-width:767px){.cron-order-custom-menu{position:fixed;left:14px;right:14px;top:auto;bottom:18px;max-height:48vh;border-radius:15px}.cron-order-custom-option{min-height:44px}.cron-coupon-btn{width:100%}}


/* =========================================================
   Cron V64 — balanced purchase/history + reliable custom UI
   ========================================================= */
.cron-order-v4 .cron-order-heading{align-items:center;gap:16px}
.cron-order-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.cron-order-history-btn{height:36px;padding:0 12px;border:1px solid #d7e2ef;border-radius:10px;background:#fff;color:#475569;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font:700 11px/1 Roboto,Arial,sans-serif;transition:.18s ease}
.cron-order-history-btn:hover{border-color:#b9d6ff;background:#f4f8ff;color:#1677ff}
.cron-order-v4 .cron-order-field>small{display:none!important}
.cron-order-v4 .cron-order-schedule-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px}
.cron-order-v4 .cron-order-custom-trigger,.cron-order-v4 .cron-order-field>input{height:46px!important;border-color:#d7e2ef!important;border-radius:11px!important;background:#fff!important;font:700 12.5px/1.2 Roboto,Arial,sans-serif!important}
.cron-order-v4 .cron-order-custom-trigger i{width:24px;height:24px;border-radius:7px;background:#f3f7fb;display:grid;place-items:center;color:#64748b!important}
.cron-order-v4 #applyCoupon{height:46px!important;border:1px solid #9cc8ff!important;border-radius:11px!important;background:#edf5ff!important;color:#126fe3!important;box-shadow:none!important;font:800 12px/1 Roboto,Arial,sans-serif!important}
.cron-order-v4 #applyCoupon:hover{background:#deedff!important;border-color:#6eafff!important;color:#075fcf!important}
.cron-order-v4 .cron-coupon-input{height:46px!important;border-radius:11px!important}
.cron-order-v4 .cron-coupon-input input{font-weight:650!important;color:#334155!important}
.cron-order-v4 .cron-order-footer-link{display:none!important}

.cron-history-card-v5 .cron-history-table-wrap{padding:8px 12px 14px!important;overflow-x:auto}
html body .cron-history-card-v5 .stc-history-cron-table{min-width:980px!important;table-layout:fixed!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(1),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(1){width:4%!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(2),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(2){width:5%!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(3),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(3){width:25%!important;text-align:left!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(4),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(4){width:12%!important;text-align:center!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(5),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(5){width:12%!important;text-align:center!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(6),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(6){width:16%!important;text-align:center!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(7),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(7){width:18%!important;text-align:left!important}
html body .cron-history-card-v5 .stc-history-cron-table th:nth-child(8),html body .cron-history-card-v5 .stc-history-cron-table td:nth-child(8){width:8%!important;text-align:center!important}
.cron-history-card-v5 .cron-history-process{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
.cron-history-card-v5 .cron-history-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block}
.cron-history-card-v5 .cron-history-cycle-stack{gap:1px!important}
.cron-history-card-v5 .cron-history-cycle-stack small{display:none!important}
.cron-history-card-v5 .cron-history-last-run>span{white-space:normal!important;line-height:1.35!important}
.cron-history-card-v5 .cron-history-time{gap:3px!important;font-size:10.5px!important}
@media(max-width:991px){.cron-order-heading-actions{width:100%;justify-content:flex-start}.cron-order-v4 .cron-order-heading{align-items:flex-start}.cron-order-history-btn{order:2}}
@media(max-width:767px){.cron-order-v4 .cron-order-schedule-grid{grid-template-columns:1fr}.cron-order-heading-actions{gap:8px}.cron-order-history-btn{height:34px}.cron-history-card-v5 .cron-history-table-wrap{padding-left:8px!important;padding-right:8px!important}}

/* =========================================================
   Cron V65 — action modals + clean action/select arrows
   ========================================================= */
/* Rent form: keep only the chevron, no small square behind it. */
html body .cron-order-v4 .cron-order-custom-trigger i{
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    border-radius:0!important;
    background:transparent!important;
    display:inline-block!important;
    place-items:initial!important;
    color:#64748b!important;
    font-size:11px!important;
    line-height:1!important;
    box-shadow:none!important;
}
html body .cron-order-v4 .cron-order-custom-select.is-open .cron-order-custom-trigger i{
    color:#1677ff!important;
}

/* History action buttons: renew is an arrow-only action. */
html body .cron-history-actions{gap:4px!important;justify-content:center!important}
html body .cron-history-action{
    width:29px!important;
    height:29px!important;
    border-radius:7px!important;
    font-size:11px!important;
    box-shadow:none!important;
}
html body .cron-history-action.is-renew{
    border-color:transparent!important;
    background:transparent!important;
    color:#64748b!important;
}
html body .cron-history-action.is-renew:hover{
    border-color:transparent!important;
    background:transparent!important;
    color:#1677ff!important;
    transform:none!important;
}

/* Modern history action modal shell. */
html body .cron-history-modal .modal-dialog{max-width:650px!important;padding:12px!important}
html body .cron-history-modal #modalEdit + *{}
html body .cron-history-modal .modal-content{
    border:1px solid #dce7f4!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 24px 70px rgba(15,23,42,.20)!important;
    overflow:hidden!important;
    font-family:Roboto,Arial,sans-serif!important;
}
html body #modalEdit.cron-history-modal .modal-dialog{max-width:720px!important}
.cron-history-modal-head{
    min-height:72px;
    padding:15px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid #e8eef7;
    background:#fff;
}
.cron-history-modal-head span{
    display:block;
    margin:0 0 4px;
    color:#94a3b8;
    font:700 9.5px/1.2 Roboto,Arial,sans-serif;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.cron-history-modal-head h3{
    margin:0!important;
    color:#0f172a!important;
    font:800 17px/1.25 Roboto,Arial,sans-serif!important;
    letter-spacing:-.01em;
}
.cron-history-modal-close{
    width:34px;
    height:34px;
    border:1px solid #e3eaf3;
    border-radius:10px;
    background:#f8fafc;
    color:#64748b;
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:.15s ease;
}
.cron-history-modal-close:hover{background:#fff1f2;border-color:#fecdd3;color:#e11d48}
.cron-history-modal-close i{font-size:13px}
.cron-history-modal-body{padding:18px!important;background:#fff!important}

/* New action form shared by edit and renew. */
.cron-action-form{display:flex;flex-direction:column;gap:15px;color:#334155;font-family:Roboto,Arial,sans-serif}
.cron-action-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:10px;
    border:1px solid #e1e9f3;
    border-radius:13px;
    background:#f8fbff;
}
.cron-action-summary>div{
    min-width:0;
    padding:9px 10px;
    border-radius:9px;
    background:#fff;
    border:1px solid #edf2f7;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.cron-action-summary span{color:#94a3b8;font:650 9.5px/1.25 Roboto,Arial,sans-serif}
.cron-action-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334155;font:800 11.5px/1.3 Roboto,Arial,sans-serif}
.cron-action-field{display:flex;flex-direction:column;gap:7px}
.cron-action-field label{margin:0;color:#334155;font:750 11.5px/1.3 Roboto,Arial,sans-serif}
.cron-action-field label b{color:#ef4444}
.cron-action-field input,.cron-action-field select{
    width:100%;
    height:44px;
    border:1px solid #d7e2ef;
    border-radius:11px;
    background:#fff;
    color:#0f172a;
    padding:0 12px;
    outline:0;
    font:600 12px/1.2 Roboto,Arial,sans-serif;
    transition:.16s ease;
}
.cron-action-field input:focus,.cron-action-field select:focus{border-color:#82b5ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}
.cron-action-field small{margin:0;color:#94a3b8;font:500 9.8px/1.45 Roboto,Arial,sans-serif}
.cron-action-input-icon{position:relative}
.cron-action-input-icon>i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:11px;pointer-events:none}
.cron-action-input-icon input{padding-left:34px}
.cron-action-note{
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:10px 11px;
    border:1px solid #dce7f4;
    border-radius:11px;
    background:#f8fbff;
    color:#64748b;
    font:500 10px/1.5 Roboto,Arial,sans-serif;
}
.cron-action-note i{margin-top:2px;color:#1677ff;flex:0 0 auto}
.cron-action-footer{
    margin:2px -18px -18px;
    padding:13px 18px;
    border-top:1px solid #e8eef7;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    background:#fbfdff;
}
.cron-action-btn{
    height:38px;
    padding:0 13px;
    border-radius:9px;
    border:1px solid transparent;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    cursor:pointer;
    font:750 10.5px/1 Roboto,Arial,sans-serif;
    transition:.15s ease;
}
.cron-action-btn.is-secondary{border-color:#d7e2ef;background:#fff;color:#475569}
.cron-action-btn.is-secondary:hover{background:#f8fafc;color:#0f172a}
.cron-action-btn.is-primary{border-color:#1677ff;background:#1677ff;color:#fff}
.cron-action-btn.is-primary:hover{background:#0869e8;border-color:#0869e8}
.cron-action-btn:disabled{opacity:.65;cursor:not-allowed}
.cron-action-task-preview{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    padding:11px 12px;
    border:1px solid #e1e9f3;
    border-radius:12px;
    background:#fff;
}
.cron-action-task-icon{width:36px;height:36px;border-radius:10px;background:#edf5ff;color:#1677ff;display:grid;place-items:center;flex:0 0 36px}
.cron-action-task-preview>div:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.cron-action-task-preview strong{color:#0f172a;font:800 12px/1.3 Roboto,Arial,sans-serif}
.cron-action-task-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1677ff;font:600 10px/1.3 Roboto,Arial,sans-serif}
.cron-action-total{
    min-height:58px;
    padding:11px 13px;
    border-radius:12px;
    background:#f8fbff;
    border:1px solid #dce7f4;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.cron-action-total>span{color:#64748b;font:650 10.5px/1.3 Roboto,Arial,sans-serif}
.cron-action-total strong{color:#1677ff;font:850 18px/1 Roboto,Arial,sans-serif}

@media(max-width:767px){
    html body .cron-history-modal .modal-dialog{padding:8px!important;margin:0 auto!important}
    .cron-history-modal-head{min-height:64px;padding:13px 14px}
    .cron-history-modal-body{padding:14px!important}
    .cron-action-summary{grid-template-columns:1fr;gap:6px}
    .cron-action-footer{margin:2px -14px -14px;padding:12px 14px}
    .cron-action-btn{flex:1}
}

/* =========================================================
   Cron V66 — compact member edit modal
   ========================================================= */
.cron-history-modal-title{display:flex;align-items:center;gap:11px;min-width:0}
.cron-history-modal-title>div{min-width:0}
.cron-history-modal-head .cron-history-modal-title-icon{
    width:38px;height:38px;flex:0 0 38px;margin:0!important;border:1px solid #d8e6f7;border-radius:11px;
    background:#f1f7ff;color:#1677ff;display:grid!important;place-items:center;text-transform:none!important;letter-spacing:0!important
}
.cron-history-modal-head .cron-history-modal-title-icon i{font-size:14px;line-height:1}
.cron-action-edit-v3{gap:13px}
.cron-action-compact-meta{
    min-height:44px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border:1px solid #e2eaf3;
    border-radius:11px;background:#f8fbff
}
.cron-action-compact-meta span{
    min-height:28px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #e7edf5;border-radius:8px;
    background:#fff;color:#64748b;font:600 10.5px/1 Roboto,Arial,sans-serif
}
.cron-action-compact-meta i{color:#1677ff;font-size:10px}
.cron-action-compact-meta b{color:#334155;font-weight:750}
.cron-action-edit-v3 .cron-action-field small,.cron-action-edit-v3 .cron-action-note{display:none!important}

/* =========================================================
   Cron V67 — mobile layout cleanup + compact history cards
   ========================================================= */
@media (max-width: 767px) {
    html body .cron-history-page,
    html body .cron-order-v4 {
        overflow-x: hidden !important;
    }

    /* History header: no floating + button beside a wrapped title. */
    html body .cron-history-heading {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        margin: 15px 0 16px !important;
    }
    html body .cron-history-heading > div { min-width: 0 !important; width: 100% !important; }
    html body .cron-history-heading h1 { margin-top: 0 !important; font-size: 22px !important; line-height: 1.2 !important; }
    html body .cron-history-heading p { max-width: none !important; line-height: 1.55 !important; }
    html body .cron-history-add {
        width: 100% !important;
        height: 40px !important;
        padding: 0 13px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        font-size: 12px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
    html body .cron-history-add svg { width: 15px !important; height: 15px !important; }

    /* History becomes readable cards instead of a desktop table with a huge horizontal scroll. */
    html body .cron-history-card-v5 .cron-history-table-wrap {
        overflow: visible !important;
        padding: 10px !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table thead { display: none !important; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody { display: grid !important; gap: 10px !important; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody tr {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px 12px !important;
        width: 100% !important;
        padding: 13px !important;
        border: 1px solid #e2eaf4 !important;
        border-radius: 13px !important;
        background: #fff !important;
        box-shadow: 0 3px 12px rgba(15,23,42,.025) !important;
        box-sizing: border-box !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        vertical-align: top !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(1) {
        position: absolute !important;
        right: 12px !important;
        top: 12px !important;
        z-index: 1 !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(2) { display: none !important; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(3) {
        grid-column: 1 / -1 !important;
        padding-right: 32px !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(6),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(7),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(8) {
        grid-column: 1 / -1 !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(4)::before,
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(5)::before,
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(6)::before,
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(7)::before {
        display: block !important;
        margin-bottom: 4px !important;
        color: #94a3b8 !important;
        font: 700 9.5px/1.2 Roboto,Arial,sans-serif !important;
        text-transform: uppercase !important;
        letter-spacing: .025em !important;
    }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(4)::before { content: "Chu kỳ"; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(5)::before { content: "Trạng thái"; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(6)::before { content: "Chạy gần đây"; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(7)::before { content: "Thời gian"; }
    html body .cron-history-card-v5 .cron-history-cycle-stack,
    html body .cron-history-card-v5 .cron-history-last-run,
    html body .cron-history-card-v5 .cron-history-time {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        min-height: 0 !important;
    }
    html body .cron-history-card-v5 .cron-history-cycle-stack strong { font-size: 11.5px !important; }
    html body .cron-history-card-v5 .cron-history-process { font-size: 12px !important; margin-bottom: 4px !important; }
    html body .cron-history-card-v5 .cron-history-url {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        font-size: 10.8px !important;
    }
    html body .cron-history-card-v5 .cron-history-last-run > span { white-space: normal !important; font-size: 10.8px !important; }
    html body .cron-history-card-v5 .cron-history-actions {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        padding-top: 2px !important;
    }
    html body .cron-history-card-v5 .cron-history-action { width: 32px !important; height: 32px !important; }
    html body .cron-history-bulk { flex-wrap: wrap !important; padding: 10px 10px 0 !important; }
    html body .cron-history-bulk-btn { flex: 1 1 120px !important; justify-content: center !important; min-height: 36px !important; }
    html body .cron-history-pagination { padding: 0 10px 12px !important; justify-content: center !important; }

    /* Rent Cron page: title/actions stack naturally on narrow screens. */
    html body .cron-order-v4 .cron-order-heading {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 11px !important;
        margin-bottom: 15px !important;
    }
    html body .cron-order-v4 .cron-order-heading > div:first-child { width: 100% !important; min-width: 0 !important; }
    html body .cron-order-v4 .cron-order-heading h1 { margin: 0 0 5px !important; font-size: 22px !important; }
    html body .cron-order-v4 .cron-order-heading p { max-width: none !important; font-size: 12px !important; line-height: 1.5 !important; }
    html body .cron-order-v4 .cron-order-heading-actions {
        display: block !important;
        width: 100% !important;
    }
    html body .cron-order-v4 .cron-order-history-btn {
        width: 100% !important;
        height: 39px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 11.5px !important;
    }
    html body .cron-order-v4 .cron-order-layout,
    html body .cron-order-v4 .cron-order-card,
    html body .cron-order-v4 .cron-order-note-card,
    html body .cron-order-v4 .cron-order-section,
    html body .cron-order-v4 .cron-order-schedule-grid {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    html body .cron-order-v4 .cron-order-section-title { align-items: flex-start !important; gap: 10px !important; }
    html body .cron-order-v4 .cron-order-section-title h2 { font-size: 15px !important; line-height: 1.3 !important; }
    html body .cron-order-v4 .cron-order-section-title p { font-size: 10.5px !important; line-height: 1.45 !important; }
    html body .cron-order-v4 .cron-target-row { grid-template-columns: minmax(0,1fr) 38px !important; gap: 7px !important; }
    html body .cron-order-v4 .cron-coupon-row { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
    html body .cron-order-v4 .cron-coupon-btn { width: 100% !important; }
    html body .cron-order-v4 .cron-checkout-btn { width: 100% !important; justify-content: center !important; }
}

@media (max-width: 420px) {
    html body .cron-history-stats { grid-template-columns: 1fr 1fr !important; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody tr { grid-template-columns: 1fr !important; }
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(3),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(4),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(5),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(6),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(7),
    html body .cron-history-card-v5 .stc-history-cron-table tbody td:nth-child(8) { grid-column: 1 !important; }
}

/* =========================================================
   Cron V68 — stable mobile cards + visible server status
   ========================================================= */
.cron-history-mobile-list{display:none}

@media (max-width:767px){
    /* Rent page header: keep both actions visible and aligned. */
    html body .cron-order-v4 .cron-order-heading-actions{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
        width:100%!important;
    }
    html body .cron-order-v4 .cron-modern-server-badge{
        display:inline-flex!important;
        width:max-content!important;
        max-width:100%!important;
        min-height:34px!important;
        margin:0 auto!important;
        padding:0 12px!important;
        align-items:center!important;
        justify-content:center!important;
        gap:7px!important;
        border:1px solid #d8e8dc!important;
        border-radius:999px!important;
        background:#f2fbf5!important;
        color:#39734c!important;
        font:700 10.5px/1 Roboto,Arial,sans-serif!important;
        box-sizing:border-box!important;
    }
    html body .cron-order-v4 .cron-modern-server-badge>span{
        width:7px!important;height:7px!important;border-radius:50%!important;background:#22c55e!important;
        box-shadow:0 0 0 4px rgba(34,197,94,.10)!important;
    }
    html body .cron-order-v4 .cron-order-history-btn{
        min-height:40px!important;
        border-color:#d7e2ef!important;
        background:#fff!important;
        color:#42526b!important;
        box-shadow:none!important;
    }

    /* Coupon is a normal primary action, not a disabled-looking grey button. */
    html body .cron-order-v4 .cron-coupon-input{height:44px!important;border-radius:11px!important}
    html body .cron-order-v4 .cron-coupon-btn{
        min-height:44px!important;
        border:1px solid #9fc7ff!important;
        background:#eaf3ff!important;
        color:#126fe3!important;
        border-radius:11px!important;
        font-size:11.5px!important;
        box-shadow:none!important;
    }
    html body .cron-order-v4 .cron-coupon-btn:active{background:#dcecff!important}

    /* Do not transform the desktop table into TD-based cards. A dedicated
       mobile markup below is much more predictable on 320–430px screens. */
    html body .cron-history-card-v5 .cron-history-table-wrap{display:none!important}
    html body .cron-history-card-v5 .cron-history-bulk{display:none!important}
    html body .cron-history-mobile-list{
        display:grid!important;
        gap:10px!important;
        padding:10px 10px 12px!important;
    }
    html body .cron-history-mobile-item{
        min-width:0!important;
        padding:13px!important;
        border:1px solid #e0e9f4!important;
        border-radius:14px!important;
        background:#fff!important;
        box-shadow:0 3px 14px rgba(15,23,42,.025)!important;
        overflow:hidden!important;
    }
    html body .cron-history-mobile-top{
        display:grid!important;
        grid-template-columns:28px minmax(0,1fr)!important;
        gap:9px!important;
        align-items:start!important;
        min-width:0!important;
    }
    html body .cron-history-mobile-index{
        width:27px!important;height:27px!important;border-radius:8px!important;
        display:grid!important;place-items:center!important;background:#f1f6fd!important;
        color:#64748b!important;font:800 10px/1 Roboto,Arial,sans-serif!important;
    }
    html body .cron-history-mobile-main{min-width:0!important;padding-right:2px!important}
    html body .cron-history-mobile-main strong{
        display:block!important;margin:0 0 4px!important;color:#172033!important;
        font:800 12px/1.3 Roboto,Arial,sans-serif!important;
        white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    }
    html body .cron-history-mobile-main a{
        display:block!important;max-width:100%!important;color:#1677ff!important;
        font:650 10.5px/1.45 Roboto,Arial,sans-serif!important;
        text-decoration:none!important;overflow-wrap:anywhere!important;word-break:break-word!important;
    }
    html body .cron-history-mobile-top>.cron-history-status{
        grid-column:2!important;
        justify-self:start!important;
        margin-top:7px!important;
        min-height:25px!important;
        padding:0 9px!important;
        font-size:9.7px!important;
    }
    html body .cron-history-mobile-meta{
        display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:8px!important;
        margin-top:11px!important;
    }
    html body .cron-history-mobile-meta>div{
        min-width:0!important;padding:9px 10px!important;border:1px solid #edf1f6!important;
        border-radius:10px!important;background:#f9fbfd!important;
    }
    html body .cron-history-mobile-meta>div>span,
    html body .cron-history-mobile-run>.cron-mobile-label{
        display:block!important;margin-bottom:4px!important;color:#94a3b8!important;
        font:750 9px/1.2 Roboto,Arial,sans-serif!important;text-transform:uppercase!important;
    }
    html body .cron-history-mobile-meta strong{
        display:block!important;color:#334155!important;font:800 10.8px/1.35 Roboto,Arial,sans-serif!important;
        overflow-wrap:anywhere!important;
    }
    html body .cron-history-mobile-run small{
        display:inline-flex!important;margin-top:5px!important;padding:4px 7px!important;border-radius:999px!important;
        font:750 9px/1 Roboto,Arial,sans-serif!important;
    }
    html body .cron-history-mobile-run small.is-success{background:#eafaf0!important;color:#16803b!important}
    html body .cron-history-mobile-run small.is-error{background:#fff0f0!important;color:#dc2626!important}
    html body .cron-history-mobile-dates{
        display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:8px!important;
    }
    html body .cron-history-mobile-dates span{
        min-width:0!important;padding:8px 10px!important;border:1px solid #edf1f6!important;border-radius:10px!important;
        background:#fff!important;color:#64748b!important;font:650 9.7px/1.4 Roboto,Arial,sans-serif!important;
        overflow-wrap:anywhere!important;
    }
    html body .cron-history-mobile-dates b{
        display:block!important;margin-bottom:3px!important;color:#94a3b8!important;font-size:8.8px!important;text-transform:uppercase!important;
    }
    html body .cron-history-mobile-actions{
        display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;
        margin-top:10px!important;padding-top:10px!important;border-top:1px solid #edf2f7!important;
    }
    html body .cron-history-mobile-action{
        min-width:0!important;height:34px!important;padding:0 7px!important;border:1px solid #dce6f1!important;border-radius:9px!important;
        display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
        background:#fff!important;color:#52637a!important;font:750 9.5px/1 Roboto,Arial,sans-serif!important;
    }
    html body .cron-history-mobile-action i{font-size:10px!important}
    html body .cron-history-mobile-action.is-play{color:#138a45!important;border-color:#ccefd9!important;background:#f2fbf5!important}
    html body .cron-history-mobile-action.is-pause{color:#d34854!important;border-color:#ffd8dc!important;background:#fff7f7!important}
    html body .cron-history-mobile-action.is-edit{color:#126fe3!important;border-color:#d3e5ff!important;background:#f7fbff!important}
    html body .cron-history-mobile-action.is-renew{color:#7c5ad5!important;border-color:#e6dcff!important;background:#fbf9ff!important}

    /* The history filter/card itself must stay inside the viewport. */
    html body .cron-history-container,
    html body .cron-history-card,
    html body .cron-history-filters{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
    html body .cron-history-card{overflow:hidden!important}
}

@media (max-width:380px){
    html body .cron-history-mobile-meta,
    html body .cron-history-mobile-dates{grid-template-columns:1fr!important}
    html body .cron-history-mobile-actions{grid-template-columns:1fr!important}
}

/* =========================================================
   V72 - compact rent-cron mobile heading actions
   server availability + history stay on one row
   ========================================================= */
@media(max-width:767px){
  html body .cron-order-v4 .cron-order-heading-actions{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
  }
  html body .cron-order-v4 .cron-modern-server-badge{
    order:1!important;margin:0!important;width:max-content!important;max-width:100%!important;
    min-height:38px!important;padding:0 10px!important;font-size:10px!important;
  }
  html body .cron-order-v4 .cron-order-history-btn{
    order:2!important;width:100%!important;min-width:0!important;min-height:38px!important;height:38px!important;
    padding:0 10px!important;font-size:10.5px!important;white-space:nowrap!important;
  }
}
@media(max-width:360px){
  html body .cron-order-v4 .cron-order-heading-actions{gap:6px!important}
  html body .cron-order-v4 .cron-modern-server-badge{padding:0 8px!important;font-size:9.5px!important}
  html body .cron-order-v4 .cron-order-history-btn{padding:0 8px!important;font-size:10px!important}
}


/* =========================================================
   V73 — Cron history joins the shared account navigation shell
   - one Cron item in the account rail
   - desktop left rail / mobile swipe tabs, exactly like Hosting/Profile
   - cards + typography normalized to the account-page design system
   ========================================================= */
html body .stc-cron-history-account-page.cron-history-page{
    padding:0!important;
    background:#f6f9fe!important;
    min-height:70vh!important;
    font-family:Roboto,Arial,sans-serif!important;
}
html body .stc-cron-history-account-page .stc-account-section{
    padding:92px 0 70px!important;
}
html body .stc-cron-history-account-page .stc-account-container{
    max-width:none!important;
}
html body .stc-cron-history-account-page .stc-cron-history-head{
    align-items:flex-end!important;
}
html body .stc-cron-history-account-page .stc-cron-history-add{
    flex:0 0 auto!important;
    white-space:nowrap!important;
}
html body .stc-cron-history-account-page .cron-history-stats{
    margin:0 0 18px!important;
    gap:12px!important;
}
html body .stc-cron-history-account-page .cron-history-stat{
    min-height:94px!important;
    padding:16px 17px!important;
    border:1px solid #dce5f0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(15,23,42,.03)!important;
}
html body .stc-cron-history-account-page .cron-history-stat strong{
    color:#111827!important;
    font-size:19px!important;
    font-weight:800!important;
}
html body .stc-cron-history-account-page .cron-history-stat span{
    font-size:11.5px!important;
}
html body .stc-cron-history-account-page .cron-history-card{
    margin:0!important;
    border:1px solid #dce5f0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 10px 30px rgba(15,23,42,.04)!important;
}
html body .stc-cron-history-account-page .cron-history-card-head{
    padding:18px 20px 14px!important;
    border-bottom:1px solid #e7edf4!important;
}
html body .stc-cron-history-account-page .cron-history-card-head h2{
    color:#111827!important;
    font-size:16px!important;
    font-weight:800!important;
}
html body .stc-cron-history-account-page .cron-history-card-head p{
    color:#64748b!important;
    font-size:11.5px!important;
}
html body .stc-cron-history-account-page .cron-history-filters{
    margin:14px 16px 0!important;
    padding:14px!important;
    border:1px solid #e4ebf3!important;
    border-radius:14px!important;
    background:#f8fbff!important;
}
html body .stc-cron-history-account-page .cron-history-search-field,
html body .stc-cron-history-account-page .cron-history-date-field,
html body .stc-cron-history-account-page .cron-modern-select-trigger{
    min-height:44px!important;
    height:44px!important;
    border-radius:11px!important;
    border-color:#d8e1eb!important;
    background:#fff!important;
    box-shadow:none!important;
}
html body .stc-cron-history-account-page .cron-history-search-field input,
html body .stc-cron-history-account-page .cron-history-date-field input,
html body .stc-cron-history-account-page .cron-modern-select-trigger{
    font-size:12.5px!important;
    color:#334155!important;
}
html body .stc-cron-history-account-page .cron-history-filter-btn,
html body .stc-cron-history-account-page .cron-history-reset-btn{
    min-height:44px!important;
    border-radius:11px!important;
    font-size:12px!important;
    font-weight:800!important;
}
html body .stc-cron-history-account-page .cron-history-table-wrap{
    border-radius:0 0 18px 18px!important;
}
html body .stc-cron-history-account-page .cron-history-table thead th{
    background:#f8fbff!important;
    color:#64748b!important;
    font-size:10.8px!important;
    font-weight:800!important;
}
html body .stc-cron-history-account-page .cron-history-table tbody td{
    color:#334155!important;
    font-size:11.5px!important;
}

@media(min-width:992px){
    html body .stc-cron-history-account-page .stc-account-container{
        display:grid!important;
        grid-template-columns:228px minmax(0,1fr)!important;
        gap:18px!important;
        align-items:start!important;
    }
    html body .stc-cron-history-account-page .stc-account-container>.stc-account-nav-shell{
        grid-column:1!important;
        grid-row:1 / span 60!important;
        position:sticky!important;
        top:88px!important;
        width:228px!important;
        margin:0!important;
        align-self:start!important;
        z-index:30!important;
    }
    html body .stc-cron-history-account-page .stc-account-container>:not(.stc-account-nav-shell){
        grid-column:2!important;
        min-width:0!important;
    }
}

@media(max-width:991px){
    html body .stc-cron-history-account-page .stc-account-section{
        padding:18px 0 54px!important;
    }
    html body .stc-cron-history-account-page .stc-account-container{
        width:calc(100vw - 24px)!important;
        display:block!important;
    }
    html body .stc-cron-history-account-page .stc-account-nav-shell{
        margin-bottom:12px!important;
    }
}

@media(max-width:767px){
    html body .stc-cron-history-account-page .stc-cron-history-head{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) auto!important;
        align-items:center!important;
        gap:10px!important;
        margin-bottom:13px!important;
    }
    html body .stc-cron-history-account-page .stc-cron-history-head .stc-ap-kicker{
        margin-bottom:4px!important;
        font-size:10.5px!important;
    }
    html body .stc-cron-history-account-page .stc-cron-history-head h1{
        margin-bottom:3px!important;
        font-size:22px!important;
    }
    html body .stc-cron-history-account-page .stc-cron-history-head p{
        font-size:11px!important;
        line-height:1.45!important;
    }
    html body .stc-cron-history-account-page .stc-cron-history-add{
        min-height:38px!important;
        padding:0 11px!important;
        font-size:10.5px!important;
    }
    html body .stc-cron-history-account-page .cron-history-stats{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:8px!important;
    }
    html body .stc-cron-history-account-page .cron-history-stat{
        min-height:80px!important;
        padding:12px!important;
        border-radius:13px!important;
    }
    html body .stc-cron-history-account-page .cron-history-card{
        border-radius:15px!important;
    }
    html body .stc-cron-history-account-page .cron-history-card-head{
        padding:14px!important;
    }
    html body .stc-cron-history-account-page .cron-history-filters{
        margin:10px!important;
        padding:10px!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:8px!important;
    }
    html body .stc-cron-history-account-page .cron-history-filter-btn,
    html body .stc-cron-history-account-page .cron-history-reset-btn{
        width:100%!important;
        justify-content:center!important;
    }
}


/* Cron v6: self-contained icons + interval guidance */
.cron-interval-advice{display:block;min-height:18px;margin-top:6px;font-size:11px;line-height:1.45;color:#64748b;font-weight:500}
.cron-interval-advice.is-error{color:#dc2626}
.cron-history-action svg{width:14px;height:14px;display:block;pointer-events:none}
.cron-history-bulk-btn svg{width:13px;height:13px;display:block;flex:0 0 auto}
.cron-history-mobile-action svg{width:13px;height:13px;display:block;flex:0 0 auto}
.stc-cron-history-add{display:inline-flex!important;align-items:center!important;gap:7px!important}
.stc-cron-history-add>svg{width:15px;height:15px;display:block;flex:0 0 auto}
.cron-history-modal-close svg{width:16px;height:16px;display:block}
.cron-history-modal-title-icon svg{width:17px;height:17px;display:block}
.cron-action-task-icon svg,.cron-action-meta svg,.cron-action-url-wrap svg{width:15px;height:15px;display:block;flex:0 0 auto}
.cron-inline-spinner{display:inline-block;width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:cronInlineSpin .65s linear infinite}
@keyframes cronInlineSpin{to{transform:rotate(360deg)}}
