﻿/* =========================================================
   WORK MANAGEMENT
   Digunakan oleh:
   - ManajemenPekerjaan.razor
   - TaskSaya.razor
   ========================================================= */

.wm-page {
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    overflow-x: hidden;
    background: #f6f8fc;
    color: #172033;
    font-family: Inter, Arial, sans-serif;
}

    .wm-page,
    .wm-page * {
        box-sizing: border-box;
    }

/* =========================================================
   HEADER
   ========================================================= */

.wm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

    .wm-header h1 {
        margin: 0 0 5px;
        color: #14213a;
        font-size: 27px;
        font-weight: 750;
        line-height: 1.25;
    }

    .wm-header p {
        margin: 0;
        color: #718096;
        font-size: 14px;
        line-height: 1.6;
    }

/* =========================================================
   BUTTON
   ========================================================= */

.wm-btn-primary,
.wm-btn-secondary,
.wm-btn-detail,
.wm-btn-update {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wm-btn-primary {
    border: 1px solid #1769e0;
    background: #1769e0;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(23, 105, 224, 0.16);
}

    .wm-btn-primary:hover {
        border-color: #105cc8;
        background: #105cc8;
        color: #ffffff;
        transform: translateY(-1px);
    }

    .wm-btn-primary:active {
        transform: translateY(0);
    }

    .wm-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.wm-btn-secondary {
    border: 1px solid #d8e0eb;
    background: #ffffff;
    color: #455268;
}

    .wm-btn-secondary:hover {
        border-color: #b9c7da;
        background: #f8fafc;
        color: #1f2d44;
    }

.wm-btn-detail {
    width: 100%;
    border: 1px solid #cfe0f8;
    background: #f4f8ff;
    color: #1769e0;
}

    .wm-btn-detail:hover {
        border-color: #9fc3f4;
        background: #eaf3ff;
    }

.wm-btn-update {
    width: 100%;
    min-height: 42px;
    border: 1px solid #1769e0;
    background: #1769e0;
    color: #ffffff;
}

    .wm-btn-update:hover {
        border-color: #105cc8;
        background: #105cc8;
    }

/* =========================================================
   ALERT
   ========================================================= */

.wm-alert {
    min-height: 46px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    line-height: 1.5;
}

    .wm-alert button {
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: inherit;
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
    }

        .wm-alert button:hover {
            background: rgba(15, 23, 42, 0.06);
        }

.wm-alert-danger {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b42318;
}

.wm-alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.wm-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.wm-summary-card {
    min-width: 0;
    min-height: 91px;
    padding: 15px;
    border: 1px solid #e1e7f0;
    border-radius: 11px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(31, 45, 68, 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .wm-summary-card:hover {
        border-color: #aac9f4;
        box-shadow: 0 8px 22px rgba(27, 53, 88, 0.08);
        transform: translateY(-2px);
    }

    .wm-summary-card > div:last-child {
        min-width: 0;
    }

    .wm-summary-card span {
        margin-bottom: 4px;
        display: block;
        overflow: hidden;
        color: #748197;
        font-size: 11px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wm-summary-card strong {
        display: block;
        color: #17243b;
        font-size: 25px;
        font-weight: 760;
        line-height: 1.1;
    }

.wm-summary-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

    .wm-summary-icon.blue {
        background: #eaf2ff;
        color: #1769e0;
    }

    .wm-summary-icon.gray {
        background: #eef1f5;
        color: #697589;
    }

    .wm-summary-icon.orange {
        background: #fff3df;
        color: #df7508;
    }

    .wm-summary-icon.green {
        background: #eaf8ef;
        color: #168c46;
    }

    .wm-summary-icon.red {
        background: #ffeded;
        color: #d93434;
    }

/* =========================================================
   TAB
   ========================================================= */

.wm-tabs {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wm-tab {
    min-height: 39px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #67758b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.18s ease;
}

    .wm-tab:hover {
        background: #f4f7fb;
        color: #334158;
    }

    .wm-tab.active {
        background: #eaf2ff;
        color: #1769e0;
        font-weight: 750;
    }

/* =========================================================
   PANEL
   ========================================================= */

.wm-panel {
    width: 100%;
    padding: 18px;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 48, 73, 0.035);
}

.wm-panel-header {
    margin-bottom: 17px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

    .wm-panel-header h2 {
        margin: 0 0 5px;
        color: #17243a;
        font-size: 18px;
        font-weight: 750;
    }

    .wm-panel-header p {
        margin: 0;
        color: #758298;
        font-size: 12px;
        line-height: 1.55;
    }

/* =========================================================
   FILTER
   ========================================================= */

.wm-filter-grid {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e4eaf2;
    border-radius: 9px;
    background: #fafbfd;
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(165px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.wm-filter-task {
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(150px, 0.8fr) auto;
}

.wm-filter-monitor {
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(145px, 0.8fr);
}

.wm-user-filter {
    grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
}

.wm-filter-button {
    min-width: 74px;
}

.wm-form-group {
    min-width: 0;
}

    .wm-form-group.full {
        width: 100%;
    }

    .wm-form-group label {
        margin-bottom: 6px;
        display: block;
        color: #354258;
        font-size: 11px;
        font-weight: 750;
    }

        .wm-form-group label b {
            color: #d92d20;
        }

    .wm-form-group input,
    .wm-form-group select,
    .wm-form-group textarea {
        width: 100%;
        min-height: 40px;
        padding: 8px 11px;
        border: 1px solid #d5dde8;
        border-radius: 7px;
        outline: none;
        background: #ffffff;
        color: #263348;
        font-family: inherit;
        font-size: 13px;
        line-height: 1.4;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .wm-form-group textarea {
        min-height: 96px;
        resize: vertical;
    }

        .wm-form-group input:focus,
        .wm-form-group select:focus,
        .wm-form-group textarea:focus {
            border-color: #4d92ef;
            box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
        }

        .wm-form-group input:disabled,
        .wm-form-group select:disabled,
        .wm-form-group textarea:disabled {
            background: #f1f4f8;
            color: #8b96a7;
            cursor: not-allowed;
        }

.wm-search {
    position: relative;
}

    .wm-search i {
        position: absolute;
        top: 50%;
        left: 12px;
        z-index: 2;
        color: #95a0b1;
        font-size: 12px;
        transform: translateY(-50%);
    }

    .wm-search input {
        padding-left: 35px;
    }

.validation-message {
    margin-top: 5px;
    display: block;
    color: #d92d20;
    font-size: 11px;
}

/* =========================================================
   TABLE
   ========================================================= */

.wm-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e7f0;
    border-radius: 9px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    .wm-table-wrapper::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    .wm-table-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .wm-table-wrapper::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #cbd5e1;
    }

.wm-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
}

.wm-task-table {
    min-width: 1150px;
}

.wm-history-table {
    min-width: 750px;
}

.wm-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #dfe6ef;
    background: #f6f8fb;
    color: #566276;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.wm-table td {
    padding: 12px;
    border-bottom: 1px solid #edf0f5;
    color: #3c495d;
    font-size: 12px;
    line-height: 1.45;
    vertical-align: middle;
}

.wm-table tbody tr:last-child td {
    border-bottom: 0;
}

.wm-table tbody tr {
    transition: background-color 0.15s ease;
}

    .wm-table tbody tr:hover {
        background: #fafcff;
    }

.wm-table .text-center {
    text-align: center;
}

.wm-main-cell {
    min-width: 210px;
}

    .wm-main-cell strong {
        margin-bottom: 3px;
        display: block;
        color: #1c293d;
        font-size: 13px;
        font-weight: 720;
    }

    .wm-main-cell span {
        max-width: 330px;
        display: block;
        overflow: hidden;
        color: #7b8799;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.wm-date-range {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .wm-date-range small {
        color: #9aa4b3;
        font-size: 10px;
    }

.wm-task-count {
    white-space: nowrap;
}

.wm-employee-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wm-avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #1769e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 780;
}

    .wm-avatar.large {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 13px;
    }

.wm-deadline-cell span,
.wm-deadline-cell small {
    display: block;
    white-space: nowrap;
}

.wm-deadline-cell small {
    margin-top: 2px;
    color: #8792a4;
    font-size: 10px;
}

.wm-late-row {
    background: #fffafb;
}

    .wm-late-row:hover {
        background: #fff5f6 !important;
    }

/* =========================================================
   STATUS & PRIORITY
   ========================================================= */

.wm-status,
.wm-priority {
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

    .wm-status.planned,
    .wm-status.todo {
        border-color: #d9e0e9;
        background: #f2f4f7;
        color: #667085;
    }

    .wm-status.progress {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d67c8;
    }

    .wm-status.done {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #15803d;
    }

    .wm-status.late {
        border-color: #fecaca;
        background: #fff1f2;
        color: #c62828;
    }

    .wm-status.cancelled {
        border-color: #e2e8f0;
        background: #f8fafc;
        color: #7c8797;
    }

    .wm-priority.high {
        border-color: #fecaca;
        background: #fff1f2;
        color: #c62828;
    }

    .wm-priority.normal {
        border-color: #fed7aa;
        background: #fff7ed;
        color: #c25b0a;
    }

    .wm-priority.low {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #168043;
    }

/* =========================================================
   PROGRESS
   ========================================================= */

.wm-progress-cell {
    min-width: 137px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .wm-progress-cell strong {
        min-width: 34px;
        color: #334155;
        font-size: 11px;
        font-weight: 750;
        text-align: right;
    }

.wm-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf3;
}

    .wm-progress-track.large {
        height: 9px;
    }

    .wm-progress-track.detail {
        height: 11px;
    }

.wm-progress-value {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient( 90deg, #1769e0 0%, #3d8bf2 100% );
    transition: width 0.25s ease;
}

/* =========================================================
   ACTION
   ========================================================= */

.wm-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .wm-action-group button,
    .wm-icon-button {
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid #dce3ec;
        border-radius: 7px;
        background: #ffffff;
        color: #667287;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.16s ease;
    }

        .wm-action-group button:hover,
        .wm-icon-button:hover {
            border-color: #a8c7f3;
            background: #edf5ff;
            color: #1769e0;
        }

/* =========================================================
   EMPTY & LOADING
   ========================================================= */

.wm-empty {
    min-height: 230px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b96a7;
    text-align: center;
}

    .wm-empty i {
        margin-bottom: 12px;
        color: #b4bdca;
        font-size: 34px;
    }

    .wm-empty strong {
        margin-bottom: 5px;
        color: #526074;
        font-size: 15px;
    }

    .wm-empty span {
        max-width: 430px;
        font-size: 12px;
        line-height: 1.6;
    }

.wm-loading {
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #6d788b;
    font-size: 13px;
}

/* =========================================================
   MONITORING CARD
   ========================================================= */

.wm-monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 14px;
}

.wm-monitor-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(30, 48, 73, 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .wm-monitor-card:hover {
        border-color: #bfd2ed;
        box-shadow: 0 9px 24px rgba(28, 53, 86, 0.08);
        transform: translateY(-2px);
    }

    .wm-monitor-card.late {
        border-color: #fecaca;
    }

.wm-monitor-header {
    margin-bottom: 15px;
}

.wm-monitor-labels {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wm-monitor-header h3 {
    margin: 0 0 3px;
    overflow: hidden;
    color: #1a273b;
    font-size: 15px;
    font-weight: 740;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-monitor-header p {
    margin: 0;
    overflow: hidden;
    color: #7e899a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-monitor-employee {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .wm-monitor-employee small,
    .wm-monitor-employee strong {
        display: block;
    }

    .wm-monitor-employee small {
        margin-bottom: 2px;
        color: #8b96a7;
        font-size: 9px;
    }

    .wm-monitor-employee strong {
        color: #3a4658;
        font-size: 12px;
    }

.wm-monitor-progress {
    margin-bottom: 15px;
}

    .wm-monitor-progress > div:first-child {
        margin-bottom: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #59667a;
        font-size: 11px;
    }

    .wm-monitor-progress strong {
        color: #1769e0;
        font-size: 12px;
    }

.wm-monitor-info {
    margin-bottom: 12px;
    padding: 11px;
    border-radius: 7px;
    background: #f7f9fc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .wm-monitor-info small,
    .wm-monitor-info strong {
        display: block;
    }

    .wm-monitor-info small {
        margin-bottom: 3px;
        color: #8b96a7;
        font-size: 9px;
    }

    .wm-monitor-info strong {
        overflow: hidden;
        color: #455267;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.wm-progress-note {
    margin-bottom: 13px;
    padding: 10px;
    border-left: 3px solid #92bdf5;
    border-radius: 4px;
    background: #f6faff;
}

    .wm-progress-note.detail {
        margin-top: 15px;
    }

    .wm-progress-note small {
        color: #748198;
        font-size: 9px;
        font-weight: 700;
    }

    .wm-progress-note p {
        margin: 4px 0 0;
        color: #4f5c70;
        font-size: 11px;
        line-height: 1.55;
    }

/* =========================================================
   MODAL
   ========================================================= */

.wm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-modal {
    width: 680px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
    animation: wmModalOpen 0.18s ease-out;
}

.wm-detail-modal {
    width: 850px;
}

.wm-progress-modal {
    width: 570px;
}

@keyframes wmModalOpen {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wm-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .wm-modal-header h3 {
        margin: 0 0 4px;
        color: #17243a;
        font-size: 18px;
        font-weight: 750;
    }

    .wm-modal-header p {
        margin: 0;
        color: #7d899b;
        font-size: 12px;
        line-height: 1.5;
    }

.wm-modal-close {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #758195;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

    .wm-modal-close:hover {
        background: #f2f4f7;
        color: #334155;
    }

.wm-modal-body {
    padding: 20px;
}

    .wm-modal-body > .wm-form-group {
        margin-bottom: 14px;
    }

.wm-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5eaf1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.wm-form-grid {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

/* =========================================================
   DETAIL TASK
   ========================================================= */

.wm-detail-title {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .wm-detail-title h2 {
        margin: 0 0 8px;
        color: #17243a;
        font-size: 21px;
        font-weight: 760;
        line-height: 1.35;
    }

.wm-detail-info {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e3e9f0;
    border-radius: 9px;
    background: #fafbfd;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wm-user-detail-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-detail-info small,
.wm-detail-info strong {
    display: block;
}

.wm-detail-info small {
    margin-bottom: 4px;
    color: #8994a5;
    font-size: 9px;
}

.wm-detail-info strong {
    overflow-wrap: anywhere;
    color: #3f4b5e;
    font-size: 11px;
    line-height: 1.45;
}

.wm-detail-description {
    margin-bottom: 17px;
}

    .wm-detail-description small {
        color: #8994a5;
        font-size: 10px;
        font-weight: 700;
    }

    .wm-detail-description p {
        margin: 6px 0 0;
        color: #4b586c;
        font-size: 12px;
        line-height: 1.7;
        white-space: pre-wrap;
    }

.wm-detail-progress {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fbfcfe;
}

    .wm-detail-progress > div:first-child {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #566276;
        font-size: 11px;
    }

    .wm-detail-progress strong {
        color: #1769e0;
        font-size: 15px;
    }

.wm-history-section {
    margin-top: 22px;
}

    .wm-history-section h4 {
        margin: 0 0 11px;
        color: #233149;
        font-size: 14px;
        font-weight: 750;
    }

/* =========================================================
   TASK SAYA
   ========================================================= */

.wm-my-task-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.wm-my-task-card {
    overflow: hidden;
    border: 1px solid #e0e7f0;
    border-radius: 11px;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .wm-my-task-card:hover {
        border-color: #bad0ee;
        box-shadow: 0 7px 20px rgba(27, 50, 82, 0.06);
    }

    .wm-my-task-card.late {
        border-color: #fecaca;
    }

.wm-task-content {
    min-width: 0;
    padding: 17px;
}

.wm-task-title-row {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 13px;
}

.wm-task-labels {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wm-task-title-row h3 {
    margin: 0 0 3px;
    color: #18263c;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

.wm-task-title-row p {
    margin: 0;
    color: #7d899b;
    font-size: 11px;
}

.wm-task-description {
    margin-bottom: 15px;
    color: #566276;
    font-size: 12px;
    line-height: 1.65;
}

.wm-task-progress {
    margin-bottom: 15px;
}

    .wm-task-progress > div:first-child {
        margin-bottom: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #5c687b;
        font-size: 11px;
    }

    .wm-task-progress strong {
        color: #1769e0;
        font-size: 12px;
    }

.wm-task-info-grid {
    padding: 11px;
    border-radius: 8px;
    background: #f7f9fc;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

    .wm-task-info-grid small,
    .wm-task-info-grid strong {
        display: block;
    }

    .wm-task-info-grid small {
        margin-bottom: 3px;
        color: #8b96a7;
        font-size: 9px;
    }

    .wm-task-info-grid strong {
        overflow-wrap: anywhere;
        color: #455267;
        font-size: 10px;
        line-height: 1.45;
    }

.wm-deadline-late {
    color: #c62828 !important;
}

.wm-task-action {
    padding: 16px;
    border-left: 1px solid #e6ebf2;
    background: #fafbfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-task-complete {
    width: 100%;
    padding: 13px;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    background: #f0fdf4;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .wm-task-complete > i {
        font-size: 20px;
    }

    .wm-task-complete strong,
    .wm-task-complete span {
        display: block;
    }

    .wm-task-complete strong {
        margin-bottom: 3px;
        font-size: 12px;
    }

    .wm-task-complete span {
        font-size: 9px;
    }

/* =========================================================
   UPDATE PROGRESS
   ========================================================= */

.wm-current-progress {
    margin-bottom: 17px;
    padding: 14px;
    border: 1px solid #dce8f7;
    border-radius: 9px;
    background: #f7fbff;
}

    .wm-current-progress > div:first-child {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #566276;
        font-size: 11px;
    }

    .wm-current-progress strong {
        color: #1769e0;
        font-size: 15px;
    }

.wm-range-label {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .wm-range-label label {
        margin: 0;
    }

    .wm-range-label strong {
        color: #1769e0;
        font-size: 14px;
    }

.wm-progress-range {
    width: 100%;
    height: 7px;
    min-height: 7px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    outline: none;
    background: #dfe7f2;
    cursor: pointer;
    accent-color: #1769e0;
    box-shadow: none !important;
}

    .wm-progress-range:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.wm-range-scale {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8792a4;
    font-size: 9px;
}

.wm-complete-info {
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .wm-complete-info > i {
        font-size: 20px;
    }

    .wm-complete-info strong,
    .wm-complete-info span {
        display: block;
    }

    .wm-complete-info strong {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .wm-complete-info span {
        font-size: 10px;
    }

/* =========================================================
   TIMELINE
   ========================================================= */

.wm-empty-history {
    padding: 20px;
    border: 1px dashed #d7dee8;
    border-radius: 8px;
    background: #fafbfd;
    color: #8490a2;
    font-size: 12px;
    text-align: center;
}

.wm-timeline {
    position: relative;
    padding-left: 21px;
}

    .wm-timeline::before {
        position: absolute;
        top: 5px;
        bottom: 5px;
        left: 6px;
        width: 2px;
        border-radius: 999px;
        background: #dce5f0;
        content: "";
    }

.wm-timeline-item {
    position: relative;
    margin-bottom: 14px;
}

    .wm-timeline-item:last-child {
        margin-bottom: 0;
    }

.wm-timeline-dot {
    position: absolute;
    top: 5px;
    left: -21px;
    z-index: 2;
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #1769e0;
    box-shadow: 0 0 0 1px #bcd2ef;
}

.wm-timeline-content {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.wm-timeline-header {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .wm-timeline-header strong {
        color: #1f2d44;
        font-size: 12px;
    }

    .wm-timeline-header span {
        color: #8b96a7;
        font-size: 9px;
        white-space: nowrap;
    }

.wm-timeline-content > .wm-status {
    margin-bottom: 7px;
}

.wm-timeline-content p {
    margin: 0 0 7px;
    color: #546176;
    font-size: 11px;
    line-height: 1.6;
}

.wm-timeline-content small {
    color: #8a95a6;
    font-size: 9px;
}

/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1200px) {
    .wm-summary-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .wm-monitor-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    .wm-filter-monitor {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .wm-page {
        padding: 18px;
    }

    .wm-filter-grid,
    .wm-filter-task,
    .wm-filter-monitor,
    .wm-user-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-filter-button {
        width: 100%;
    }

    .wm-detail-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-user-detail-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-my-task-card {
        grid-template-columns: 1fr;
    }

    .wm-task-action {
        border-top: 1px solid #e6ebf2;
        border-left: 0;
    }

        .wm-task-action .wm-btn-update {
            max-width: 260px;
        }
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .wm-page {
        padding: 13px;
    }

    .wm-header {
        align-items: stretch;
        flex-direction: column;
    }

        .wm-header h1 {
            font-size: 22px;
        }

        .wm-header p {
            font-size: 12px;
        }

        .wm-header > button {
            width: 100%;
        }

    .wm-summary-grid,
    .wm-user-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .wm-summary-card {
        min-height: 79px;
        padding: 12px;
        gap: 10px;
    }

    .wm-summary-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 15px;
    }

    .wm-summary-card strong {
        font-size: 21px;
    }

    .wm-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .wm-tab {
        width: 100%;
        justify-content: flex-start;
    }

    .wm-panel {
        padding: 13px;
        border-radius: 10px;
    }

    .wm-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

        .wm-panel-header > button {
            width: 100%;
        }

    .wm-filter-grid,
    .wm-filter-task,
    .wm-filter-monitor,
    .wm-user-filter {
        padding: 12px;
        grid-template-columns: 1fr;
    }

    .wm-form-grid {
        grid-template-columns: 1fr;
    }

    .wm-monitor-grid {
        grid-template-columns: 1fr;
    }

    .wm-modal-backdrop {
        padding: 10px;
        align-items: flex-start;
    }

    .wm-modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        margin: auto 0;
        border-radius: 11px;
    }

    .wm-modal-header {
        padding: 15px;
    }

    .wm-modal-body {
        padding: 15px;
    }

    .wm-modal-footer {
        padding: 12px 15px;
        flex-direction: column-reverse;
    }

        .wm-modal-footer button {
            width: 100%;
        }

    .wm-detail-title {
        flex-direction: column;
    }

    .wm-detail-info,
    .wm-user-detail-info {
        grid-template-columns: 1fr;
    }

    .wm-task-info-grid {
        grid-template-columns: 1fr;
    }

    .wm-task-action {
        padding: 13px;
    }

        .wm-task-action .wm-btn-update {
            width: 100%;
            max-width: none;
        }

    .wm-monitor-info {
        grid-template-columns: 1fr;
    }

    .wm-timeline-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

        .wm-timeline-header span {
            white-space: normal;
        }
}

/* =========================================================
   MOBILE KECIL
   ========================================================= */

@media (max-width: 430px) {
    .wm-page {
        padding: 10px;
    }

    .wm-summary-grid,
    .wm-user-summary {
        grid-template-columns: 1fr;
    }

    .wm-summary-card {
        min-height: 72px;
    }

        .wm-summary-card span {
            font-size: 11px;
        }

        .wm-summary-card strong {
            font-size: 22px;
        }

    .wm-panel {
        padding: 10px;
    }

    .wm-modal-header h3 {
        font-size: 16px;
    }

    .wm-detail-title h2 {
        font-size: 18px;
    }
}

/* =========================================================
   AUTO PROGRESS EXTENSION
   ========================================================= */

.wm-progress-mode {
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

    .wm-progress-mode.auto {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1769e0;
    }

    .wm-progress-mode.manual {
        border-color: #d9e0e9;
        background: #f5f7fa;
        color: #667085;
    }

.wm-progress-number {
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

    .wm-progress-number small {
        color: #8792a4;
        font-size: 9px;
        white-space: nowrap;
    }

.wm-field-help {
    margin-top: 5px;
    display: block;
    color: #7b8799;
    font-size: 10px;
    line-height: 1.5;
}

.wm-inline-link {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1769e0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .wm-inline-link:hover {
        color: #105cc8;
        text-decoration: underline;
    }

.wm-auto-config {
    margin-bottom: 15px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #f7fbff;
}

.wm-auto-info,
.wm-auto-message {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid #d7e8fd;
    border-radius: 7px;
    background: #ffffff;
    color: #4f6380;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.55;
}

    .wm-auto-info i,
    .wm-auto-message i {
        margin-top: 2px;
        color: #1769e0;
    }

.wm-auto-result {
    margin-bottom: 13px;
    padding: 11px;
    border: 1px solid #d9e8fb;
    border-radius: 8px;
    background: #f7fbff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: center;
}

.wm-auto-result-user {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-auto-result-detail {
    margin-top: 15px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wm-auto-result small,
.wm-auto-result strong {
    display: block;
}

.wm-auto-result small {
    margin-bottom: 3px;
    color: #8490a2;
    font-size: 9px;
}

.wm-auto-result strong {
    overflow: hidden;
    color: #2e4059;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-auto-action {
    width: 100%;
    padding: 11px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1769e0;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .wm-auto-action > i {
        font-size: 18px;
    }

    .wm-auto-action strong,
    .wm-auto-action span {
        display: block;
    }

    .wm-auto-action strong {
        margin-bottom: 2px;
        font-size: 11px;
    }

    .wm-auto-action span {
        color: #5d78a0;
        font-size: 9px;
        line-height: 1.4;
    }

@media (max-width: 760px) {
    .wm-auto-result,
    .wm-auto-result-user,
    .wm-auto-result-detail {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .wm-auto-result,
    .wm-auto-result-user,
    .wm-auto-result-detail {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   REFACTOR WORK MANAGEMENT
   Pekerjaan Umum + Target Marketing
   ========================================================= */

.wm-filter-task-simple {
    grid-template-columns: minmax(220px, 1.7fr) minmax(180px, 1fr) minmax(150px, .8fr) auto;
}

.wm-filter-monitor-simple {
    grid-template-columns: minmax(240px, 1.7fr) minmax(180px, 1fr) minmax(160px, .9fr);
}

.wm-work-type-selector {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.wm-work-type {
    position: relative;
    border: 2px solid #d9e3f0;
    border-radius: 12px;
    background: #fff;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: .25s;
    text-align: center;
}

    .wm-work-type i {
        font-size: 28px;
        color: #1769e0;
    }

    .wm-work-type strong {
        display: block;
        font-size: 22px;
        color: #1d3557;
        margin-bottom: 6px;
    }

    .wm-work-type span {
        color: #7b8794;
        font-size: 14px;
    }

    .wm-work-type:hover {
        border-color: #1769e0;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(23,105,224,.12);
    }

    .wm-work-type.active {
        background: #1769e0;
        border-color: #1769e0;
        color: #fff;
        box-shadow: 0 14px 35px rgba(23,105,224,.28);
    }

        .wm-work-type.active strong,
        .wm-work-type.active span,
        .wm-work-type.active i {
            color: #fff;
        }

        .wm-work-type.active::after {
            content: "✓ Dipilih";
            position: absolute;
            top: 10px;
            right: 12px;
            background: #fff;
            color: #1769e0;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: bold;
        }

    .wm-work-type-selector label {
        min-height: 86px;
        padding: 15px;
        border: 1px solid #dfe6f0;
        border-radius: 11px;
        background: #fff;
        display: flex;
        align-items: flex-start;
        gap: 11px;
        cursor: pointer;
        transition: .18s ease;
    }

        .wm-work-type-selector label:hover {
            border-color: #9fc3f4;
            background: #f8fbff;
        }

        .wm-work-type-selector label:has(input:checked) {
            border-color: #1769e0;
            background: #eef5ff;
            box-shadow: 0 0 0 3px rgba(23, 105, 224, .08);
        }

    .wm-work-type-selector input {
        margin-top: 3px;
    }

    .wm-work-type-selector strong,
    .wm-work-type-selector span {
        display: block;
    }

    .wm-work-type-selector strong {
        margin-bottom: 4px;
        color: #17243a;
        font-size: 14px;
    }

    .wm-work-type-selector span {
        color: #758298;
        font-size: 12px;
        line-height: 1.55;
    }

.wm-task-modal-refactor {
    width: min(760px, calc(100vw - 30px));
}

.wm-target-distribution-info {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d9e7fb;
    border-radius: 11px;
    background: #f7faff;
}

.wm-target-summary-head {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

    .wm-target-summary-head strong {
        color: #183153;
        font-size: 14px;
    }

    .wm-target-summary-head span {
        color: #61718a;
        font-size: 12px;
    }

.wm-target-summary-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.wm-target-summary-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0e8f3;
    border-radius: 9px;
    background: #fff;
}

    .wm-target-summary-card small,
    .wm-target-summary-card strong {
        display: block;
    }

    .wm-target-summary-card small {
        margin-bottom: 5px;
        color: #7a879b;
        font-size: 11px;
    }

    .wm-target-summary-card strong {
        overflow: hidden;
        color: #17243a;
        font-size: 18px;
        font-weight: 760;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.wm-warning-text {
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
    line-height: 1.5;
}

.wm-marketing-toolbar {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #fafcff;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

    .wm-marketing-toolbar .wm-form-group {
        min-width: 220px;
        margin: 0;
    }

.wm-marketing-funnel-grid {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

    .wm-marketing-funnel-grid .wm-target-summary-card {
        padding: 15px;
    }

        .wm-marketing-funnel-grid .wm-target-summary-card > div:first-child {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

            .wm-marketing-funnel-grid .wm-target-summary-card > div:first-child span {
                color: #6e7b90;
                font-size: 12px;
                font-weight: 650;
            }

            .wm-marketing-funnel-grid .wm-target-summary-card > div:first-child strong {
                font-size: 13px;
                color: #1769e0;
            }

    .wm-marketing-funnel-grid .wm-progress-track {
        margin-bottom: 9px;
    }

    .wm-marketing-funnel-grid .wm-cell-subtext {
        margin-top: 0;
    }

.wm-conversion-strip {
    margin-bottom: 17px;
    padding: 13px 14px;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .wm-conversion-strip > div {
        padding: 10px 12px;
        border-radius: 8px;
        background: #f7f9fc;
    }

    .wm-conversion-strip small,
    .wm-conversion-strip strong {
        display: block;
    }

    .wm-conversion-strip small {
        margin-bottom: 4px;
        color: #748197;
        font-size: 11px;
    }

    .wm-conversion-strip strong {
        color: #17243a;
        font-size: 18px;
    }

.wm-monitor-mode-tabs {
    margin-bottom: 15px;
    padding: 4px;
    border: 1px solid #e0e7f0;
    border-radius: 9px;
    background: #f8fafc;
    display: inline-flex;
    gap: 4px;
}

    .wm-monitor-mode-tabs button {
        min-height: 36px;
        padding: 0 13px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #67758b;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

        .wm-monitor-mode-tabs button:hover {
            background: #fff;
            color: #26364e;
        }

        .wm-monitor-mode-tabs button.active {
            background: #1769e0;
            color: #fff;
            box-shadow: 0 2px 7px rgba(23, 105, 224, .18);
        }

.wm-marketing-performance-table {
    min-width: 1120px;
}

.wm-cell-subtext {
    margin-top: 3px;
    display: block;
    color: #8490a2;
    font-size: 11px;
    line-height: 1.4;
}

.wm-progress-result-cell {
    min-width: 135px;
}

    .wm-progress-result-cell > strong {
        margin-bottom: 6px;
        display: block;
        color: #17243a;
        font-size: 13px;
    }

    .wm-progress-result-cell .wm-progress-track {
        width: 100%;
    }

.wm-auto-result-detail {
    margin-top: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .wm-target-summary-values,
    .wm-marketing-funnel-grid,
    .wm-auto-result-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-filter-task-simple,
    .wm-filter-monitor-simple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wm-work-type-selector,
    .wm-target-summary-values,
    .wm-marketing-funnel-grid,
    .wm-conversion-strip,
    .wm-auto-result-detail,
    .wm-filter-task-simple,
    .wm-filter-monitor-simple {
        grid-template-columns: 1fr;
    }

    .wm-marketing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

        .wm-marketing-toolbar .wm-form-group {
            min-width: 0;
            width: 100%;
        }

    .wm-monitor-mode-tabs {
        width: 100%;
        overflow-x: auto;
    }

        .wm-monitor-mode-tabs button {
            flex: 0 0 auto;
        }
}


/* =========================================================
   STEP 7D - TASK EVIDENCE / UPLOAD BUKTI
   ========================================================= */

.wm-upload-box {
    width: 100%;
    padding: 16px;
    border: 1px dashed #b9c7da;
    border-radius: 10px;
    background: #f8fafc;
}

.wm-upload-label-row {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .wm-upload-label-row label {
        margin: 0;
        color: #26354d;
        font-size: 13px;
        font-weight: 700;
    }

    .wm-upload-label-row small {
        color: #718096;
        font-size: 11px;
        line-height: 1.5;
        text-align: right;
    }

.wm-upload-box input[type="file"] {
    width: 100%;
    padding: 9px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #ffffff;
    color: #394860;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .wm-upload-box input[type="file"]::file-selector-button {
        margin-right: 10px;
        padding: 8px 12px;
        border: 0;
        border-radius: 6px;
        background: #1769e0;
        color: #ffffff;
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

        .wm-upload-box input[type="file"]::file-selector-button:hover {
            background: #105cc8;
        }

/* =========================================================
   FILE YANG BARU DIPILIH
   ========================================================= */

.wm-selected-file-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.wm-selected-file-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e0e7f0;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .wm-selected-file-item > div {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wm-selected-file-item i {
        flex: 0 0 auto;
        color: #1769e0;
        font-size: 18px;
    }

    .wm-selected-file-item span {
        min-width: 0;
        overflow: hidden;
        color: #334158;
        font-size: 12px;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wm-selected-file-item small {
        flex: 0 0 auto;
        color: #7b879a;
        font-size: 11px;
    }

    .wm-selected-file-item button {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        padding: 0;
        border: 1px solid #fecaca;
        border-radius: 7px;
        background: #fff1f2;
        color: #c62828;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .wm-selected-file-item button:hover {
            background: #ffe4e6;
        }

/* =========================================================
   INFORMASI BUKTI LAMA
   ========================================================= */

.wm-existing-evidence-info {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1d4f91;
    font-size: 12px;
    line-height: 1.55;
}

    .wm-existing-evidence-info i {
        margin-top: 2px;
        flex: 0 0 auto;
        color: #1769e0;
    }

/* =========================================================
   DAFTAR BUKTI PEKERJAAN
   ========================================================= */

.wm-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wm-evidence-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(31, 45, 68, 0.04);
}

    .wm-evidence-card:hover {
        border-color: #b9d2f4;
        box-shadow: 0 8px 20px rgba(31, 45, 68, 0.08);
    }

    .wm-evidence-card img {
        width: 100%;
        height: 150px;
        display: block;
        object-fit: cover;
        background: #edf1f6;
    }

.wm-evidence-file-icon {
    height: 150px;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d34a4a;
    font-size: 44px;
}

.wm-evidence-meta {
    min-width: 0;
    padding: 11px 12px;
}

    .wm-evidence-meta strong {
        display: block;
        overflow: hidden;
        color: #26354d;
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wm-evidence-meta span,
    .wm-evidence-meta small {
        margin-top: 4px;
        display: block;
        color: #78859a;
        font-size: 10px;
        line-height: 1.45;
    }

.wm-evidence-download {
    width: calc(100% - 24px);
    min-height: 35px;
    margin: 0 12px 12px;
    padding: 0 11px;
    border: 1px solid #cfe0f8;
    border-radius: 7px;
    background: #f4f8ff;
    color: #1769e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

    .wm-evidence-download:hover {
        border-color: #9fc3f4;
        background: #eaf3ff;
        color: #105cc8;
    }

/* =========================================================
   TASK OTOMATIS MARKETING
   ========================================================= */

.wm-auto-task-message {
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #1d4f91;
    font-size: 12px;
    line-height: 1.55;
}

    .wm-auto-task-message i {
        margin-top: 2px;
        color: #1769e0;
    }

.wm-auto-result-user {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-conversion-info {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid #e4eaf2;
    border-radius: 9px;
    background: #fafbfd;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .wm-conversion-info > div {
        min-width: 0;
        padding: 10px;
        border: 1px solid #e5eaf1;
        border-radius: 8px;
        background: #ffffff;
    }

    .wm-conversion-info small {
        margin-bottom: 4px;
        display: block;
        color: #7a879b;
        font-size: 10px;
    }

    .wm-conversion-info strong {
        display: block;
        color: #1f2d44;
        font-size: 14px;
        font-weight: 750;
    }

.wm-marketing-performance-detail {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #d9e7f8;
    border-radius: 10px;
    background: #f7faff;
}

/* =========================================================
   MODAL PROGRESS
   ========================================================= */

.wm-progress-modal {
    max-width: 650px;
}

.wm-current-progress {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

    .wm-current-progress > div:first-child {
        margin-bottom: 9px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .wm-current-progress span {
        color: #6f7d92;
        font-size: 12px;
    }

    .wm-current-progress strong {
        color: #17243b;
        font-size: 17px;
    }

.wm-field-help {
    margin-top: 6px;
    display: block;
    color: #7a879a;
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVE EVIDENCE
   ========================================================= */

@media (max-width: 992px) {
    .wm-evidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-conversion-info,
    .wm-auto-result-user {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wm-upload-label-row {
        flex-direction: column;
        gap: 5px;
    }

        .wm-upload-label-row small {
            text-align: left;
        }

    .wm-evidence-grid {
        grid-template-columns: 1fr;
    }

    .wm-evidence-card img,
    .wm-evidence-file-icon {
        height: 190px;
    }

    .wm-conversion-info,
    .wm-auto-result-user {
        grid-template-columns: 1fr;
    }

    .wm-selected-file-item {
        align-items: flex-start;
    }

        .wm-selected-file-item > div {
            align-items: flex-start;
        }
}

/* =========================================================
   MONITORING FINAL - PEKERJAAN UMUM & MARKETING
   ========================================================= */

.wm-monitor-section-block {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e3e9f1;
    border-radius: 12px;
    background: #ffffff;
}

.wm-monitor-section-header {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

    .wm-monitor-section-header h3 {
        margin: 0 0 4px;
        color: #1f2d44;
        font-size: 17px;
        font-weight: 750;
    }

    .wm-monitor-section-header p {
        margin: 0;
        color: #7a879a;
        font-size: 12px;
        line-height: 1.5;
    }

    .wm-monitor-section-header .wm-marketing-toolbar {
        margin: 0;
        min-width: 240px;
    }

.wm-empty-compact {
    min-height: 180px;
}

.wm-table-detail-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cfe0f8;
    border-radius: 8px;
    background: #f4f8ff;
    color: #1769e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .wm-table-detail-button:hover {
        border-color: #9fc3f4;
        background: #eaf3ff;
        color: #105cc8;
    }

.wm-marketing-performance-table .wm-progress-result-cell {
    min-width: 95px;
}

    .wm-marketing-performance-table .wm-progress-result-cell strong {
        display: block;
        margin-bottom: 6px;
    }

.wm-marketing-detail-panel {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #d9e7f8;
    border-radius: 11px;
    background: #f7faff;
}

.wm-conversion-detail-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .wm-conversion-detail-grid > div {
        min-width: 0;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #ffffff;
    }

    .wm-conversion-detail-grid small {
        display: block;
        margin-bottom: 5px;
        color: #7a879a;
        font-size: 10px;
        font-weight: 650;
    }

    .wm-conversion-detail-grid strong {
        display: block;
        margin-bottom: 5px;
        color: #1f2d44;
        font-size: 18px;
        font-weight: 800;
    }

    .wm-conversion-detail-grid span {
        display: block;
        color: #78859a;
        font-size: 10px;
        line-height: 1.5;
    }

@media (max-width: 992px) {
    .wm-monitor-section-header {
        align-items: stretch;
        flex-direction: column;
    }

        .wm-monitor-section-header .wm-marketing-toolbar {
            width: 100%;
            min-width: 0;
        }

    .wm-conversion-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wm-monitor-section-block {
        padding: 13px;
    }
}