.hp-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 24px;
    font-family: Arial, sans-serif;
}

.hp-login-box {
    max-width: 420px;
    margin: 70px auto;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hp-login-box h2 {
    text-align: center;
    margin-top: 0;
}

.hp-login-box p {
    text-align: center;
    color: #666;
}

.hp-login-box label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.hp-login-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.hp-login-box button {
    width: 100%;
    margin-top: 20px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.hp-error {
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
}

.hp-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    padding: 24px;
    background: #f3f4f6;
    border-radius: 16px;
}

.hp-header h1 {
    margin: 0 0 8px 0;
}

.hp-header p {
    margin: 0;
    color: #555;
}

.hp-logout {
    padding: 9px 14px;
    border-radius: 8px;
    background: #991b1b;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hp-card {
    display: block;
    min-height: 110px;
    padding: 25px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-decoration: none;
    color: #111827;
    box-sizing: border-box;
}

.hp-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.hp-card span {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.hp-card:hover {
    background: #f9fafb;
}

.hp-placeholder {
    padding: 24px;
    border: 1px dashed #bbb;
    border-radius: 14px;
    background: #fff;
}

.hp-back {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #1f2937;
    color: white;
    text-decoration: none;
}

@media (max-width: 900px) {
    .hp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hp-grid {
        grid-template-columns: 1fr;
    }

    .hp-header {
        display: block;
    }

    .hp-logout {
        display: inline-block;
        margin-top: 15px;
    }
}
.hp-bottom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 30px;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .hp-movement-print,
    .hp-movement-print * {
        visibility: visible !important;
    }

    .hp-movement-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .hp-print-title {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .no-print {
        display: none !important;
        visibility: hidden !important;
    }

    .hp-table th,
    .hp-table td {
        border: 1px solid #ddd;
    }
}
.hp-action-card {
    display: block;
    flex: 1;
    min-width: 240px;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    color: #111827;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.hp-action-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 7px;
}

.hp-action-card span {
    display: block;
    color: #666;
    font-size: 13px;
}

.hp-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.09);
}

.hp-action-income {
    border-left: 6px solid #16a34a;
}

.hp-action-expense {
    border-left: 6px solid #111827;
}
.hp-form-grid select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}
.hp-notice {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-weight: bold;
}

.hp-notice-success {
    background: #dcfce7;
    color: #166534;
}

.hp-notice-error {
    background: #fee2e2;
    color: #991b1b;
}

.hp-button-light {
    background: #6b7280;
}

.hp-type {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.hp-type-income {
    background: #dcfce7;
    color: #166534;
}

.hp-type-expense {
    background: #e5e7eb;
    color: #111827;
}

.hp-muted {
    color: #777;
    font-size: 12px;
}
.hp-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hp-small-button {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.hp-small-button:hover {
    background: #374151;
    color: #fff;
}

.hp-small-button-danger {
    background: #991b1b;
}

.hp-small-button-danger:hover {
    background: #7f1d1d;
/* Ödemeler renk sistemi */
}
.hp-table.hp-payment-table tbody tr.hp-payment-overdue td {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    font-weight: bold !important;
}

.hp-table.hp-payment-table tbody tr.hp-payment-week td {
    background-color: #ffedd5 !important;
    color: #9a3412 !important;
    font-weight: bold !important;
}

.hp-table.hp-payment-table tbody tr.hp-payment-month td {
    background-color: #fef9c3 !important;
    color: #854d0e !important;
    font-weight: bold !important;
}

.hp-table.hp-payment-table tbody tr.hp-payment-normal td {
    background-color: #ffffff !important;
    color: #111827 !important;
}

.hp-payment-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.75) !important;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.08);
}

.hp-button-whatsapp {
    background: #16a34a;
}

.hp-button-whatsapp:hover {
    background: #15803d;
    color: #fff;
}
  
.hp-button-whatsapp:hover {
    background: #15803d;
    color: #fff;
}
.hp-small-button-success {
    background: #15803d;
}

.hp-small-button-success:hover {
    background: #166534;
    color: #fff;
}
.hp-small-button-warning {
    background: #f97316;
}

.hp-small-button-warning:hover {
    background: #ea580c;
    color: #fff;
}
.hp-summary-row-three {
    grid-template-columns: repeat(3, 1fr);
}

.hp-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.hp-report-card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.hp-report-card h2 {
    margin-top: 0;
}

.hp-pie-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

.hp-pie-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hp-chart-legend {
    margin-top: 15px;
}

.hp-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13px;
}

.hp-legend-color {
    width: 13px;
    height: 13px;
    border-radius: 4px;
    flex: 0 0 auto;
}

.hp-bar-list {
    margin-top: 15px;
}

.hp-bar-item {
    margin-bottom: 15px;
}

.hp-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

.hp-bar-bg {
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.hp-bar-fill {
    height: 14px;
    border-radius: 999px;
}

@media (max-width: 800px) {
    .hp-report-grid,
    .hp-summary-row-three {
        grid-template-columns: 1fr;
    }
}
.hp-print-summary {
    display: none;
}

@media print {
    .hp-print-summary {
        display: block;
    }
}
.hp-print-summary {
    display: none;
}

.hp-summary-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media print {
    .hp-print-summary {
        display: block;
    }
}

@media (max-width: 700px) {
    .hp-summary-row {
        grid-template-columns: 1fr;
    }
}
.hp-password-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hp-password-wrap input {
    flex: 1;
}

.hp-password-toggle {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
}