/* Krediet style sheet */

/* reset */
input {
width:auto;
font-weight:normal
}
table {
width:auto
}

#es-financing {
border:1px solid #d8e6ee;
border-radius:10px;
border-collapse:collapse;
overflow:hidden;
margin-bottom: 20px;
box-shadow:0 2px 10px rgba(20,60,90,0.08);
max-width:480px;
}
#es-financing th, #es-financing td {
padding:10px 16px;
border-bottom:1px solid #eef3f6;
text-align:left;
}
#es-financing tr:last-child th,
#es-financing tr:last-child td {
border-bottom:none;
}
#es-financing th {
background:#f3f9fc;
color:#3b6b82;
font-weight:600;
white-space:nowrap;
}
#es-financing td {
color:#222;
}
#es-wrapper {
position:relative;
text-align:left;
white-space:normal;
font-size:1.2em;
/* het artikel wrapt deze module in een <span style="color:#770088">, dus
   zonder deze regel erven alle teksten (labels, uitleg, "Opgelet!"...) die
   paarse kleur. Hier expliciet terug op zwart zetten. */
color:#000;
}
#es-footer {
position:relative;
height:40px;
padding-top:10px;
padding-bottom:10px
}

/* keuzelijst */
#es-form {
padding:0;
position:relative
}
#es-form .es-label {
width:150px;
}
.es-description {
margin-bottom:30px;
}
.es-label {
display:inline-block;
vertical-align:top;
margin-right:15px;
font-weight:bold
}
.es-value-wrapper {
display:inline-block;
vertical-align:top
}
.es-value {}

/* resultaat */
#es-content {
position:relative;
display:flex;
flex-wrap:wrap;
gap:24px;
align-items:flex-start;
}
/* de sitebrede artikelkolom is smaller dan wat deze tabellen nodig hebben;
   laat de rekenmodule bewust breder uitgroeien dan de omringende tekst.
   left:50% + translateX(-50%) centreert altijd correct op het midden van de
   artikelkolom, ook wanneer max-width de breedte begrenst (in tegenstelling
   tot de margin-calc aanpak, die op brede schermen naar links uitschoot).
   Pas op écht brede schermen naast elkaar zetten: de restwaardetabel heeft
   4 kolommen + knop en heeft minstens ~1350px nodig om niet af te snijden -
   daaronder blijven de tabellen onder elkaar staan (zie mobiel-blok). */
@media (min-width: 1450px) {
#es-content {
left:50%;
transform:translateX(-50%);
width:calc(100vw - 64px);
max-width:1400px;
box-sizing:border-box;
}
}
.es-description,
.es-click,
.es-attention,
.es-error {
flex:1 1 100%;
}

.es-normal,
.es-residual {
flex:1 1 0;
min-width:380px;
max-width:100%;
box-sizing:border-box;
display:block;
margin-right:0;
border:1px solid #d8e6ee;
border-radius:10px;
padding:0;
background:#fff;
box-shadow:0 2px 10px rgba(20,60,90,0.08);
overflow-x:auto;
overflow-y:hidden;
-webkit-overflow-scrolling:touch;
}
.c .es-normal,
.c .es-residual {
border:1px solid #d8e6ee;
}

.es-normal .es-title,
.es-residual .es-title {
margin:0;
padding:14px 16px;
background:#27aadf;
color:#fff;
font-weight:bold;
font-size:1.05em;
}

.es-normal table,
.es-residual table {
border-collapse:collapse;
width:100%;
min-width:100%;
/* achtergrond op de table zelf (i.p.v. enkel thead) zodat de lichtblauwe
   koprij ook doorloopt tot achter de knop-kolom, die geen eigen <th> heeft */
background:#f3f9fc;
}
.es-normal table thead,
.es-residual table thead {
/* lijn op thead zelf i.p.v. op elke th: zo loopt de lijn door tot het
   einde van de kaart, ook onder de knop-kolom zonder eigen <th> */
border-bottom:2px solid #d8e6ee;
}
.es-normal table th,
.es-residual table th {
text-align:center;
padding:10px 14px;
font-size:0.9em;
text-transform:uppercase;
letter-spacing:.03em;
color:#3b6b82;
white-space:nowrap;
}
.es-normal table td,
.es-residual table td {
padding:14px;
border-bottom:1px solid #eef3f6;
white-space:nowrap;
text-align:center;
/* witte achtergrond op elke databcel: overschrijft de lichtblauwe table-achtergrond
   overal waar wél een echte cel bestaat (dus overal behalve de koprij) */
background:#fff;
color:#222;
}
.es-normal table tr:last-child td,
.es-residual table tr:last-child td {
border-bottom:none;
}
.es-normal table td.es-value,
.es-residual table td.es-value,
.es-residual table td.es-residualvalue {
font-variant-numeric: tabular-nums;
}

.es-normal tbody tr:hover td,
.es-residual tbody tr:hover td {
background-color: #eaf6fd;
color:#000;
cursor:pointer;
}
.c .es-normal tbody tr:hover td,
.c .es-residual tbody tr:hover td {
background-color: #eaf6fd;
color:#000;
}

/* aanvraagformulier */

#es-requestform {
width:1200px;
}

#es-requestform input {
margin:0;
position:relative;
z-index: 1;
}
/* modernere invoervelden: afgeronde hoeken, rustige rand, duidelijke focusstaat */
#es-requestform input[type="text"],
#es-requestform input[type="number"],
#es-requestform input[type="email"],
#es-requestform input[type="tel"],
#es-requestform select,
#es-requestform textarea {
border:1px solid #d8e6ee;
border-radius:8px;
padding:8px 10px;
font-size:0.95em;
background:#fff;
transition: border-color .15s ease, box-shadow .15s ease;
}
#es-requestform input[type="text"]:focus,
#es-requestform input[type="number"]:focus,
#es-requestform input[type="email"]:focus,
#es-requestform input[type="tel"]:focus,
#es-requestform select:focus,
#es-requestform textarea:focus {
outline:none;
border-color:#27aadf;
box-shadow:0 0 0 3px rgba(39,170,223,0.15);
}
#es-requestform .es-label {
font-size:1em;
}
#es-requestform .es-group {
margin-bottom:24px;
}
#es-requestform .es-group-title {
margin-bottom:5px;
display:inline-block;
width:365px;
margin-top:10px;
color:#3b6b82;
font-size:1.1em;
}
#es-requestform .es-field {
margin-bottom:16px;
}
#es-requestform .es-field .es-label {
margin-left:10px;
width:400px;
}
#es-requestform .es-col {
width: 335px;
display:inline-block;
}
#es-requestform .es-value {
position:relative;
display:inline-block;
/* sommige velden (Tel./GSM, IBAN/BIC, straat/nr/postcode/gemeente...)
   staan als losse .es-value-blokjes onder elkaar met enkel een <br>
   ertussen - zonder marge plakken die invulvakjes tegen elkaar */
margin-bottom:8px;
}
#es-requestform .es-second {
display:none;
}

#es-requestform .es-nr {
display:inline-block;
}
#es-requestform .es-bus {
display:inline-block;
margin-left:42px;
}
#es-requestform .es-before {
position:absolute;
width:100px;
display:inline-block;
left:-105px;
text-align:right;
top:6px;
}

#es-requestform select {
font-size:0.9em;
width:166px;
}
#es-requestform textarea {
width:150px;
height:150px;
}
/* velden */

#es-loan {
width:100px
}
#es-duration {
width:30px
}

/* algemene velden */

.es-info {
color:grey
}
.es-submit, button {
display:inline-block;
color:white;
background-color: #27aadf;
border-radius:8px;
border: none;
padding:12px 20px;
font-weight:600;
cursor:pointer;
transition: background-color .15s ease;
}
.es-submit:hover, button:hover {
background-color: #1c8fbd;
}
.c .es-submit {
background-color: #27aadf;
}
.c .es-submit:hover {
background-color: #1c8fbd;
}
.es-button {
vertical-align:middle;
display:inline-block;
}
.es-button a {
color:white
}
.es-error {
display:inline-block;
color:red;
margin-left:20px;
vertical-align:middle;
}
.es-attention {
margin-top:10px
}
#es-mandatory-msg {
display:none;
color:red;
margin-bottom:5px;
}
.es-mandatory {
background-color:#eaf6fd!important;
border-color: #a9dcf3;
border-radius: 8px;
}
.c .es-mandatory {
background-color:#eaf6fd!important;
}
.es-click {
font-size:1.2em;
font-weight:bold;
margin-bottom:10px;
}
.es-request {
display:inline-block;
color:white;
background-color: #27aadf;
border-radius:20px;
border: none;
padding:8px 16px;
font-weight:600;
transition: background-color .15s ease;
}
.c .es-request {
background-color:#27aadf;
}
.es-normal tbody tr .es-request:hover,
.es-residual tbody tr .es-request:hover {
background-color: #1c8fbd;
}
.c .es-normal tbody tr .es-request:hover,
.c .es-residual tbody tr .es-request:hover {
background-color: #1c8fbd;
}

/* onder de 1450px: tabellen onder elkaar, exact dezelfde (volle) breedte
   voor beide - dit geldt dus ook voor tablets en de meeste laptopschermen,
   niet enkel telefoons, zodat de restwaardetabel nooit hoeft af te snijden */
@media (max-width: 1449px) {
#es-content {
flex-direction:column;
gap:16px;
}
.es-normal,
.es-residual {
flex:1 1 100%;
width:100%;
min-width:0;
}
#es-requestform {
width:100%;
}
}

/* enkel op echt smalle schermen (telefoons) tekst/padding verkleinen: bij
   volle breedte op tablet/laptop is er al genoeg ruimte voor de normale
   maat, maar op een telefoon past de 4-koloms restwaardetabel + knop anders
   niet zonder dat "Aanvragen" buiten beeld valt */
@media (max-width: 480px) {
.es-normal table th,
.es-residual table th {
padding:6px 4px;
font-size:0.65em;
letter-spacing:0;
}
.es-normal table td,
.es-residual table td {
padding:6px 4px;
font-size:0.78em;
}
.es-request {
padding:5px 8px;
font-size:0.72em;
border-radius:14px;
}
}