/* ПромАгроМікс — спільні стилі для всіх калькуляторів */
.pam-calc * { box-sizing: border-box; }
.pam-calc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 0.5rem 1.5rem;
    color: #111;
}
.pam-brand { text-align: center; margin-bottom: 1.25rem; }
.pam-brand-title { font-size: 24px; font-weight: 500; color: #111; margin: 0 0 4px; }
.pam-brand-sub { font-size: 15px; color: #555; margin: 0; font-weight: 500; }

.pam-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.pam-section-title {
    font-size: 13px;
    color: #555;
    margin: 0 0 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}
.pam-field { margin-bottom: 0.75rem; }
.pam-field:last-child { margin-bottom: 0; }
.pam-field label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.pam-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.pam-field input[type=number],
.pam-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #111;
    -moz-appearance: textfield;
}
.pam-field input[type=number]::-webkit-inner-spin-button,
.pam-field input[type=number]::-webkit-outer-spin-button { opacity: 1; }

.pam-calc-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
    background: #1B5E20;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: background 0.15s;
}
.pam-calc-btn:hover { background: #2E7D32; }
.pam-calc-btn:active { background: #145014; }

/* Результати */
.pam-results { display: none; margin-top: 1rem; }
.pam-results.show { display: block; }
.pam-results-title {
    font-size: 13px;
    color: #555;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.pam-period-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 0.75rem; }
.pam-tab-btn {
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.pam-tab-btn.pam-active { background: #1B5E20; color: #fff; border-color: #1B5E20; }

.pam-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0.75rem; }
.pam-stat { background: #f7f7f7; border-radius: 8px; padding: 10px 12px; }
.pam-stat-label { font-size: 12px; color: #888; margin-bottom: 3px; font-weight: 500; }
.pam-stat-val { font-size: 17px; font-weight: 500; color: #111; }

.pam-phase-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.625rem;
}
.pam-phase-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.pam-phase-name { font-size: 18px; font-weight: 500; color: #111; }
.pam-phase-days { font-size: 14px; color: #555; font-weight: 500; }
.pam-phase-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.pam-dot-start  { background: #1565C0; }
.pam-dot-grower { background: #558B2F; }
.pam-dot-finish { background: #E65100; }

.pam-total-card {
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.pam-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #e5e5e5;
    gap: 8px;
}
.pam-total-row:last-child { border-bottom: none; }
.pam-total-label { font-size: 14px; color: #555; font-weight: 500; flex: 1; }
.pam-total-val { font-size: 17px; font-weight: 500; color: #111; white-space: nowrap; }
.pam-profit-pos { color: #2E7D32 !important; }
.pam-profit-neg { color: #C62828 !important; }

.pam-disclaimer {
    font-size: 13px;
    color: #555;
    background: #f7f7f7;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    line-height: 1.6;
    border-left: 3px solid #ccc;
}

/* Заголовок калькулятора */
.pam-calc-heading {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #1B5E20 !important;
    text-align: center;
    margin: 0 0 1.25rem !important;
    padding: 0.75rem 0 0.75rem !important;
    border-bottom: 2px solid #1B5E20;
    letter-spacing: 0.01em;
}

/* Дисклеймер перерахунку */
.pam-recalc-tip {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Навігаційний блок */
.pam-nav {
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}
.pam-nav-title {
    font-size: 15px;
    color: #555;
    text-align: center;
    margin: 0 0 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pam-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pam-nav-btn {
    display: block !important;
    padding: 14px 10px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    background: #1B5E20 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
    line-height: 1.4 !important;
}
.pam-nav-btn:hover { background: #2E7D32 !important; color: #fff !important; }
.pam-nav-btn:active { background: #145014 !important; }
.pam-nav-btn span { display: block; font-size: 22px; margin-bottom: 4px; }
