.potong-plano-page {
    --pp-ink: #14213d;
    --pp-muted: #7d8ba8;
    --pp-soft-muted: #a3afc6;
    --pp-line: #d8e2ef;
    --pp-line-soft: #edf2f8;
    --pp-surface: #ffffff;
    --pp-soft: #f7f9fc;
    --pp-blue: #4f46e5;
    --pp-blue-soft: #eef2ff;
    --pp-pink: #f43f5e;
    --pp-pink-soft: #fff1f2;
    --pp-orange: #f59e0b;
    padding: 18px 0 28px;
    color: var(--pp-ink);
}

.potong-plano-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.potong-plano-page .pp-card,
.potong-plano-page .pp-stat-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

.potong-plano-page .pp-card {
    padding: 24px;
    margin-bottom: 22px;
}

.potong-plano-page .pp-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--pp-ink);
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.potong-plano-page .pp-title-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--pp-blue-soft);
    color: var(--pp-blue);
    font-size: 13px;
}

.potong-plano-page .pp-divider {
    height: 1px;
    background: var(--pp-line-soft);
    margin: 20px 0;
}

.potong-plano-page .pp-form-block + .pp-form-block {
    margin-top: 18px;
}

.potong-plano-page .pp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--pp-soft-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.potong-plano-page .pp-block-head small {
    color: var(--pp-blue);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.potong-plano-page .pp-soft-badge {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--pp-pink-soft);
    color: var(--pp-pink) !important;
}

.potong-plano-page .pp-preset-grid,
.potong-plano-page .pp-input-grid,
.potong-plano-page .pp-mode-grid {
    display: grid;
    gap: 10px;
}

.potong-plano-page .pp-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.potong-plano-page .pp-preset-btn:nth-child(5) {
    grid-column: span 1;
}

.potong-plano-page .pp-preset-btn,
.potong-plano-page .pp-mode-btn,
.potong-plano-page input,
.potong-plano-page .pp-paper-select {
    min-height: 44px;
    border: 1px solid #cbd8ea;
    border-radius: 8px;
    background: var(--pp-soft);
    color: var(--pp-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.potong-plano-page .pp-preset-btn,
.potong-plano-page .pp-mode-btn {
    cursor: pointer;
}

.potong-plano-page .pp-preset-btn:hover,
.potong-plano-page .pp-mode-btn:hover {
    border-color: #aebde0;
    background: #fff;
}

.potong-plano-page .pp-preset-btn.is-active,
.potong-plano-page .pp-mode-btn.is-active {
    border-color: var(--pp-blue);
    background: var(--pp-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

.potong-plano-page .pp-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.potong-plano-page label {
    display: block;
    margin: 0;
}

.potong-plano-page label span {
    display: block;
    margin-bottom: 7px;
    color: #8797b6;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
}

.potong-plano-page input,
.potong-plano-page .pp-paper-select {
    width: 100%;
    padding: 0 14px;
}

.potong-plano-page input:focus,
.potong-plano-page .pp-paper-select:focus {
    border-color: var(--pp-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.potong-plano-page .pp-paper-select {
    height: 48px;
    text-transform: uppercase;
}

.potong-plano-page .pp-cut-size-list {
    display: grid;
    gap: 12px;
}

.potong-plano-page .pp-cut-size-item {
    padding: 12px;
    border: 1px solid var(--pp-line-soft);
    border-radius: 10px;
    background: #fbfdff;
}

.potong-plano-page .pp-cut-size-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--pp-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.potong-plano-page .pp-remove-cut-btn,
.potong-plano-page .pp-add-cut-btn {
    border: 1px solid #cbd8ea;
    border-radius: 8px;
    background: #fff;
    color: var(--pp-blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.potong-plano-page .pp-remove-cut-btn {
    width: 28px;
    height: 28px;
    color: var(--pp-pink);
}

.potong-plano-page .pp-add-cut-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
}

.potong-plano-page .pp-add-cut-btn:hover {
    border-color: var(--pp-blue);
    background: var(--pp-blue-soft);
}

.potong-plano-page .pp-cut-help {
    margin: 8px 0 0;
    color: #8797b6;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
}

.potong-plano-page .pp-cut-target-field {
    display: block;
    margin-top: 10px;
}

.potong-plano-page .pp-target-summary {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
}

.potong-plano-page .pp-target-summary span {
    color: #8797b6;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.potong-plano-page .pp-target-summary strong {
    color: var(--pp-blue);
    font-size: 16px;
}

.potong-plano-page .pp-option-card,
.potong-plano-page .pp-need-card {
    padding: 22px 24px;
}

.potong-plano-page .pp-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.potong-plano-page .pp-mode-btn {
    display: flex;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    font-size: 10px;
    text-transform: uppercase;
}

.potong-plano-page .pp-mode-icon {
    display: block;
    width: 16px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.potong-plano-page .pp-mode-icon.landscape {
    width: 26px;
    height: 17px;
}

.potong-plano-page .pp-hint-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--pp-soft);
    color: #62728f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.potong-plano-page .pp-hint-line i {
    color: #8da0bd;
    margin-top: 2px;
}

.potong-plano-page .pp-need-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
}

.potong-plano-page .pp-need-result {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--pp-pink-soft);
    color: var(--pp-pink);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.potong-plano-page .pp-micro-copy {
    margin: 12px 0 0;
    color: #7f8faa;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.55;
    text-transform: uppercase;
}

.potong-plano-page .pp-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.potong-plano-page .pp-stat-card {
    min-height: 116px;
    padding: 20px 22px;
}

.potong-plano-page .pp-stat-card span,
.potong-plano-page .pp-map-head span {
    display: block;
    color: var(--pp-soft-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.potong-plano-page .pp-stat-card .pp-stat-value {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    color: var(--pp-blue);
    background: transparent;
    border: 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.potong-plano-page .pp-stat-card .pp-tone-warning {
    color: var(--pp-orange);
}

.potong-plano-page .pp-stat-card .pp-tone-danger {
    color: var(--pp-pink);
}

.potong-plano-page .pp-stat-card small {
    display: block;
    margin-top: 8px;
    color: #7f8faa;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.potong-plano-page .pp-map-card {
    padding: 28px;
}

.potong-plano-page .pp-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.potong-plano-page .pp-map-head h3 {
    margin: 9px 0 0;
    color: #07152f;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.potong-plano-page .pp-map-head > div:first-child span {
    color: var(--pp-blue);
}

.potong-plano-page .pp-map-size {
    min-width: 150px;
    text-align: right;
}

.potong-plano-page .pp-map-size span {
    margin-bottom: 5px;
    color: #6f84a5;
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.potong-plano-page .pp-paper-stage {
    display: flex;
    min-height: 540px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px dashed #cbd8ea;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
}

.potong-plano-page .pp-paper-map {
    display: block;
    width: auto;
    max-width: 88%;
    height: 410px;
    filter: drop-shadow(0 20px 28px rgba(20, 33, 61, 0.14));
}

.potong-plano-page .pp-legend-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 14px 0 20px;
    padding: 0;
    color: #203152;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.potong-plano-page .pp-legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 3px;
    vertical-align: -2px;
}

.potong-plano-page .pp-legend-box.portrait {
    border: 2px solid var(--pp-blue);
}

.potong-plano-page .pp-legend-box.landscape {
    border: 2px solid var(--pp-pink);
}

.potong-plano-page .pp-legend-box.size-three {
    border: 2px solid #0ea5e9;
}

.potong-plano-page .pp-legend-box.size-four {
    border: 2px solid #10b981;
}

.potong-plano-page .pp-legend-box.waste {
    border: 2px dashed var(--pp-pink);
    background: rgba(244, 63, 94, 0.1);
}

.potong-plano-page .pp-info-box {
    display: flex;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--pp-line-soft);
    border-radius: 12px;
    background: #fff;
}

.potong-plano-page .pp-info-box i {
    color: var(--pp-blue);
    font-size: 16px;
    margin-top: 2px;
}

.potong-plano-page .pp-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--pp-blue);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.potong-plano-page .pp-info-box p {
    margin: 0;
    color: #233657;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 1199.98px) {
    .potong-plano-page .pp-stats-row {
        gap: 12px;
    }

    .potong-plano-page .pp-stat-card {
        padding: 18px;
    }

    .potong-plano-page .pp-stat-card .pp-stat-value {
        font-size: 30px;
    }
}

@media (max-width: 991.98px) {
    .potong-plano-page .pp-stats-row {
        margin-top: 4px;
    }
}

@media (max-width: 767.98px) {
    .potong-plano-shell {
        padding: 0 12px;
    }

    .potong-plano-page .pp-card,
    .potong-plano-page .pp-map-card {
        padding: 18px;
    }

    .potong-plano-page .pp-preset-grid,
    .potong-plano-page .pp-input-grid,
    .potong-plano-page .pp-mode-grid,
    .potong-plano-page .pp-stats-row,
    .potong-plano-page .pp-need-row {
        grid-template-columns: 1fr;
    }

    .potong-plano-page .pp-map-head {
        display: block;
    }

    .potong-plano-page .pp-map-size {
        margin-top: 12px;
        text-align: left;
    }

    .potong-plano-page .pp-paper-stage {
        min-height: 390px;
        padding: 18px;
    }

    .potong-plano-page .pp-paper-map {
        max-width: 92%;
        height: 310px;
    }
}
