/* --- Základné resetovanie a kontajner --- */
.hypo-kalkulacka-wrapper {
margin: 30px auto;
padding: 0 20px;
background-color: transparent;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
}
/* --- Vstupný Form (Ohraňme ho pre pekný vzhľad) --- */
/* Tieto štýly platia pre PC / väčšie obrazovky */
#hypoInputForm {
max-width: 1200px;
margin: 0 auto 30px auto;
padding: 30px;
border-radius: 12px;
background-color: #ffffff;
box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15); /* Toto vytvára rámik/tieň na PC */
}
/* Štýly pre Input Group (sekcie) - PC verzia s rámikom */
.hypo-kalkulacka-wrapper .vstupny-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
.hypo-kalkulacka-wrapper .vstupny-skupina {
padding: 20px;
border: 1px solid #dcdcdc;
border-radius: 8px;
}
.hypo-kalkulacka-wrapper h3 {
color: #007bff;
margin-top: 0;
margin-bottom: 25px;
border-bottom: 2px solid #007bff;
padding-bottom: 10px;
font-size: 1.3em;
}
/* Inputy - Správne zarovnanie v jednom riadku */
.hypo-kalkulacka-wrapper .formular-riadok {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.hypo-kalkulacka-wrapper label {
font-weight: 600;
color: #333;
flex-shrink: 0;
margin-right: 15px;
max-width: 65%;
}
.hypo-kalkulacka-wrapper .jednotka {
width: 20px;
text-align: right;
flex-shrink: 0;
font-weight: 600;
}
/* Splatnosť roky/mesiace v jednom riadku */
.hypo-kalkulacka-wrapper .splatnost-inputy {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: auto;
}
.hypo-kalkulacka-wrapper .splatnost-inputy input[type="number"] {
width: 50px !important;
padding: 5px !important;
text-align: center !important;
margin: 0 0 0 5px !important;
font-size: 1em;
}
.hypo-kalkulacka-wrapper .jednotka-mala {
font-size: 0.9em;
margin: 0 5px;
flex-shrink: 0;
font-weight: normal;
}
/* Ostatné vstupné polia - primárne PC šírka */
.hypo-kalkulacka-wrapper input[type="number"],
.hypo-kalkulacka-wrapper input[type="date"],
.hypo-kalkulacka-wrapper select {
width: 100px;
padding: 10px;
border: 1px solid #a9a9a9;
border-radius: 6px;
font-size: 1em;
text-align: right;
box-sizing: border-box;
flex-shrink: 0;
margin-left: auto;
transition: border-color 0.3s;
}
.hypo-kalkulacka-wrapper input[type="number"]:focus,
.hypo-kalkulacka-wrapper input[type="date"]:focus,
.hypo-kalkulacka-wrapper select:focus {
border-color: #007bff;
outline: none;
}
/* --- TLAČIDLÁ --- */
/* Spoločné štýly pre tlačidlá */
.kalkulacne-tlacidlo, #tlacidloCtaHypo { /* Pridal som CTA ID sem */
display: block;
width: 100%;
padding: 14px;
margin-top: 30px;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1.1em;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-decoration: none; /* Pre CTA odkaz */
text-align: center; /* Pre CTA odkaz */
}
/* Tlačidlo na výpočet */
.kalkulacne-tlacidlo {
background-color: #007bff;
}
.kalkulacne-tlacidlo:hover {
background-color: #0056b3;
box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
}
/* CTA TLAČIDLO - ZELENÉ */
#tlacidloCtaHypo {
background-color: #28a745 !important; /* Povinná zelená farba pre CTA */
max-width: 1200px;
margin: 30px auto;
}
#tlacidloCtaHypo:hover {
background-color: #1e7e34 !important;
box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}
/* Odstránené staré #tlacidloPdfHypo pravidlá */
.tlacidlo-spat {
background: #6c757d;
color: white;
border: none;
padding: 10px 15px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
margin-bottom: 20px;
display: inline-block;
width: auto;
text-align: center;
transition: background 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-left: 20px;
}
.tlacidlo-spat:hover {
background: #5a6268;
}
/* --- VÝSLEDKY SUMÁR --- */
.vysledky-hypo {
max-width: 1200px;
margin: 30px auto;
padding: 30px;
border-radius: 12px;
background-color: #f7f9fc;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.sumar-riadok {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #e0e0e0;
font-size: 1.1em;
}
.sumar-riadok:last-child {
border-bottom: none;
font-size: 1.2em;
font-weight: bold;
color: #007bff;
padding-top: 15px;
}
.sumar-riadok span:first-child {
font-weight: 500;
color: #555;
}
.sumar-riadok strong#hypoVysledokRMPN {
font-size: 1.3em;
}
/* --- Navigácia kalendára --- */
.kalendar-navigacia {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 15px 30px;
background-color: #f7f9fc;
border-radius: 8px;
font-weight: bold;
font-size: 1.1em;
max-width: 900px;
margin-left: auto;
margin-right: auto;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.kalendar-navigacia > span {
flex-grow: 1;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
font-size: 1.1em;
}
.kalendar-navigacia button {
padding: 10px 25px;
background-color: #007bff;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
line-height: 1.2;
}
.kalendar-navigacia button:hover:not(:disabled) {
background-color: #0056b3;
}
.kalendar-navigacia button:disabled {
background-color: #ccc;
cursor: not-allowed;
box-shadow: none;
}
.kalendar-navigacia input[type="number"] {
width: 60px;
text-align: center;
font-size: 1.1em;
border: 1px solid #ccc;
padding: 4px 6px;
border-radius: 4px;
align-self: center;
margin: 0;
}
/* --- SPLÁTKOVÝ KALENDÁR (Tabuľka) --- */
.splatkovy-kalendar-wrapper {
margin-top: 40px;
overflow-x: auto;
}
.kalendar-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9em;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.kalendar-table th, .kalendar-table td {
border: 1px solid #e9ecef;
padding: 8px 6px;
text-align: right;
line-height: 1.4;
white-space: normal;
vertical-align: middle;
}
.kalendar-table th {
background-color: #343a40;
color: white;
font-weight: 700;
text-align: center;
font-size: 0.9em;
}
.kalendar-table tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
.kalendar-table tbody tr:hover {
background-color: #e0f7ff !important;
cursor: pointer;
box-shadow: inset 0 0 0 1px #a5d8ff;
}
/* Ročný súhrn */
.kalendar-table .data-yearly-summary td {
font-weight: bold;
background-color: #fff3cd !important;
border-top: 2px solid #ffc107;
border-bottom: 2px solid #ffc107;
font-size: 1em;
padding: 12px 10px !important;
text-align: left;
}
/* Celkový súhrn (tfoot) */
.kalendar-table tfoot .data-total td {
background-color: #e2f0fb !important;
border-top: 3px solid #007bff;
font-size: 1.1em;
color: #007bff;
font-weight: 700;
}
/* --- Pätička (neviditeľná) --- */
#pdfHypoFooterText {
display: none !important;
}
/* ================================================= */
/* === RESPONSÍVNY DIZAJN (MOBILNÁ VERZIA) === */
/* ================================================= */
@media (max-width: 768px) {
/* KĽÚČOVÁ ZMENA: Odstránenie rámika (box-shadow) hlavného kontajnera formulára */
#hypoInputForm {
box-shadow: none; /* Odstráni tieň, ktorý vytváral "rámik" */
border-radius: 0; /* Odstráni zaoblenie rohov */
padding: 10px 15px; /* Upraví padding, aby nebol príliš veľký */
}
/* 1. Hlavné sekcie pod sebou */
.hypo-kalkulacka-wrapper .vstupny-grid {
grid-template-columns: 1fr;
gap: 0;
border-bottom: none;
padding-bottom: 0;
}
/* Odstránenie rámika vnútorných skupín */
.hypo-kalkulacka-wrapper .vstupny-skupina {
padding: 0 0 20px 0;
border: none;
border-radius: 0;
margin-bottom: 20px;
}
/* 2. Formulár a sumár na plnú šírku */
.vysledky-hypo {
padding: 15px;
border-radius: 8px;
}
/* 3. Vstupný riadok - zmena správania inputov */
.hypo-kalkulacka-wrapper .formular-riadok {
align-items: flex-start;
}
.hypo-kalkulacka-wrapper label {
max-width: 50%;
line-height: 1.3;
}
/* Roztiahnutie inputov na max. dostupnú šírku */
.hypo-kalkulacka-wrapper input[type="number"],
.hypo-kalkulacka-wrapper input[type="date"],
.hypo-kalkulacka-wrapper select {
width: 100%;
max-width: 120px;
padding: 8px;
font-size: 0.95em;
}
/* Špecifická úprava pre dátum */
#hypoDatumSplátky {
max-width: 150px !important;
}
/* 4. Úprava Splatnosť roky/mesiace pre mobil - Inputy vedľa seba, menšie */
.hypo-kalkulacka-wrapper .splatnost-inputy {
flex-wrap: nowrap;
max-width: 48%;
}
.hypo-kalkulacka-wrapper .splatnost-inputy input[type="number"] {
width: 40px !important;
padding: 3px !important;
font-size: 0.9em;
}
.hypo-kalkulacka-wrapper .jednotka-mala {
margin: 0 3px;
}
/* Kalendár navigácia */
.kalendar-navigacia {
flex-wrap: wrap;
padding: 10px;
}
.kalendar-navigacia button {
flex-grow: 1;
padding: 8px 10px;
font-size: 0.9em;
}
.kalendar-navigacia > span {
width: 100%;
margin: 10px 0;
order: -1;
font-size: 1em;
}
.kalendar-navigacia input[type="number"] {
width: 50px;
padding: 3px;
font-size: 1em;
}
/* Tabuľka - Scroll je riešený pomocou overflow-x: auto vo wrapperi */
.kalendar-table {
font-size: 0.8em;
min-width: 700px;
}
}
