/**
 * 지급명령·독촉 비용 계산기
 * @package Zipper
 */

.podc-hidden {
    display: none !important;
}

.podc-main-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.podc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.podc-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.podc-section,
.podc-result-summary,
.podc-chart-section,
.podc-table-section {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-section:hover,
.podc-result-summary:hover,
.podc-chart-section:hover,
.podc-table-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.podc-section-title,
.podc-block-title {
    margin: 0 0 12px;
    color: #2d2a26;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.podc-section-title i,
.podc-block-title i {
    color: #d4af37;
}

.podc-input-group {
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-input-group:last-child {
    margin-bottom: 0;
}

.podc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-label {
    display: block;
    margin-bottom: 6px;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.podc-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fbfaf8;
    color: #2d2a26;
    font-size: 13px;
    padding: 10px 12px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.podc-input:hover {
    border-color: #d4c67a;
}

.podc-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.podc-input::placeholder {
    color: #b7b1a8;
}

.podc-input[type="number"] {
    -moz-appearance: textfield;
}

.podc-input[type="number"]::-webkit-outer-spin-button,
.podc-input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

.podc-amount-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    overflow: hidden;
    background: #fbfaf8;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.podc-amount-wrap:hover {
    border-color: #d4c67a;
}

.podc-amount-wrap:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.podc-amount-wrap .podc-input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.podc-amount-wrap .podc-input:hover,
.podc-amount-wrap .podc-input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.podc-unit {
    min-width: 62px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b7467;
    font-size: 12px;
    border-left: 1px solid #e4ddd0;
    background: linear-gradient(180deg, #fcfbf8 0%, #f3efe8 100%);
    box-sizing: border-box;
    user-select: none;
}

.podc-korean-amount {
    margin: 6px 0 0;
    min-height: 16px;
    color: #8a6f27;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.podc-hint {
    margin: 6px 0 0;
    color: #8f887d;
    font-size: 11px;
    line-height: 1.5;
}

.podc-btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.podc-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
}

.podc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.podc-btn-primary {
    flex: 1;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #c59a23 100%);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.podc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.podc-btn-ghost {
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
}

.podc-btn-ghost:hover {
    transform: translateY(-1px);
}

.podc-waiting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a704f;
    background: #fcfaf4;
}

.podc-waiting i {
    color: #d4af37;
    font-size: 18px;
    flex-shrink: 0;
}

.podc-waiting p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.podc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.podc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3ead3;
    color: #7a6120;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.podc-summary-title {
    margin: 0;
    color: #2d2a26;
    font-size: 20px;
    line-height: 1.35;
}

.podc-main-value {
    margin-top: 10px;
    color: #2d2a26;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-all;
}

.podc-summary-note {
    margin: 8px 0 0;
    color: #6f6758;
    font-size: 12px;
    line-height: 1.5;
}

.podc-summary-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-summary-item {
    border: 1px solid #eadfcd;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    min-width: 0;
    box-sizing: border-box;
}

.podc-summary-item.is-kpi {
    border-color: #d4c67a;
    background: #fffef9;
}

.podc-summary-label {
    display: block;
    color: #7a756d;
    font-size: 11px;
    line-height: 1.35;
}

.podc-summary-value {
    display: block;
    margin-top: 4px;
    color: #2d2a26;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-all;
}

.podc-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.podc-block-sub {
    margin: 0 0 12px;
    color: #7a756d;
    font-size: 12px;
    line-height: 1.45;
}

.podc-download-btn {
    flex-shrink: 0;
}

.podc-download-btn.tool-btn.tool-btn-excel {
    background: #59ab79;
    border: 1px solid #59ab79;
    color: #fff;
    box-shadow: 0 2px 8px rgba(89, 171, 121, 0.22);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.podc-download-btn.tool-btn.tool-btn-excel:hover,
.podc-download-btn.tool-btn.tool-btn-excel:focus,
.podc-download-btn.tool-btn.tool-btn-excel:focus-visible {
    background: #4f9f70;
    border-color: #4f9f70;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 159, 112, 0.3);
}

.podc-chart-wrap {
    border: 1px solid #ece7dd;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    min-height: 240px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-chart-wrap canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
}

.podc-chart-fallback {
    margin: 10px 0;
    color: #8a6f27;
    font-size: 12px;
    line-height: 1.45;
}

.podc-fallback-table-wrap,
.podc-table-wrap {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.podc-fallback-table,
.podc-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: auto;
}

.podc-fallback-table th,
.podc-fallback-table td,
.podc-table th,
.podc-table td {
    border-bottom: 1px solid #f1ece2;
    padding: 10px 8px;
    text-align: left;
    color: #463f35;
    font-size: 12px;
    vertical-align: top;
    line-height: 1.45;
}

.podc-fallback-table th,
.podc-table th {
    color: #6d6353;
    background: #fcfaf6;
    font-weight: 700;
}

.podc-empty-row td {
    text-align: center;
    color: #9b9488;
    padding: 16px 8px;
}

.podc-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-notice-item {
    border: 1px solid #e8e1d6;
    border-radius: 10px;
    background: #fcfaf6;
    padding: 10px;
    min-width: 0;
    box-sizing: border-box;
}

.podc-notice-label {
    display: block;
    color: #7b7468;
    font-size: 11px;
    line-height: 1.35;
}

.podc-notice-value {
    display: block;
    margin-top: 4px;
    color: #2d2a26;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.podc-disclaimer {
    border: 1px solid #f0e6cf;
    border-radius: 10px;
    background: #fffaf0;
    padding: 12px;
    display: flex;
    gap: 8px;
    color: #7a704f;
    font-size: 12px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.podc-disclaimer i {
    color: #d4af37;
    margin-top: 1px;
    flex-shrink: 0;
}

.podc-date-notice {
    color: #6f6758;
}

@media (max-width: 900px) {
    .podc-main-layout {
        grid-template-columns: 1fr;
    }

    .podc-input-col {
        position: static;
    }

    .podc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .podc-notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .podc-input-row,
    .podc-summary-grid,
    .podc-notice-grid {
        grid-template-columns: 1fr;
    }

    .podc-main-value {
        font-size: 30px;
    }

    .podc-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .podc-table,
    .podc-fallback-table {
        min-width: 560px;
    }
}

@media (max-width: 480px) {
    .podc-section,
    .podc-result-summary,
    .podc-chart-section,
    .podc-table-section {
        padding: 14px;
    }

    .podc-btn-group {
        flex-direction: column;
    }

    .podc-main-value {
        font-size: 26px;
    }

    .podc-summary-value {
        font-size: 15px;
    }

    .podc-table,
    .podc-fallback-table {
        min-width: 520px;
    }
}
