.inputcontent, .inputselect
, input[type="text"]
, input[type="select"]
, input[type="number"]
, textarea
, input[type="date"]
, input[type="datetime-local"]{
  border-top: solid 1px #aaaaaa;
  border-left: solid 1px #aaaaaa;
  border-bottom: solid 1px #cccccc;
  border-right: solid 1px #cccccc;
  border-radius: 3pt; 
  padding: 3pt 4pt;
  max-width: inherit;
  width: inherit;
  box-sizing: border-box;
}

input[type="submit"]{
    border-top: solid 1px #d3c5a2;
    border-left: solid 1px #d3c5a2;
    border-bottom: solid 1px #998d72;
    border-right: solid 1px #998d72;
    border-radius: 4pt;
    padding: 5pt 10pt;
    max-width: inherit;
    width: inherit;
    box-sizing: border-box;
    background-color: #F9F6EF;
    color: #2b2922;

    cursor: pointer;
}

input[type="submit"]:hover{

    background-color: #efeade;
    color: #684900;
    color: #7c5700;
}


.inputcontent:hover, .inputselect:hover{
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}




/* ============================================================
   CSS pro NOVOU VERZI FILTRAČNÍHO FORMULÁŘE!!!!!!!!!
   ============================================================ */
.filter-form {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* ============================================================
   HLAVNÍ LAYOUT (grid filtrů vlevo + akce vpravo)
   ============================================================ */

.filter-layout {
    display: flex;
    align-items: center;        /* vertikální centrování Vyhledat + X */
    gap: 2rem;                  /* mezera mezi gridem a tlačítky */
    width: 100%;
}

/* ============================================================
    Vizuální překrývání v případě odeslání filtr formu
   ============================================================ */
.filter-wrapper {
    position: relative;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

/* ============================================================
   GRID FILTRŮ (multi-row, flex slot systém)
   ============================================================ */

.filter-grid {
    flex: 1 1 auto;
    width: 100%;
}

/* řádek – necháme flex, ale použijeme „gutter“ přes margin/padding */
.filter-row {
    display: flex;
    flex-wrap: wrap;                 /* kdyby bylo víc položek */
    margin: 0 -0.5rem 0.8rem;        /* záporné okraje pro vyrovnání paddingu itemů */
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* ============================================================
   POLOŽKA FILTRU (label + input)
   ============================================================ */

.filter-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0 1rem;               /* mezera mezi buňkami horizontálně */
    box-sizing: border-box;
}

.micro-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.filter-input {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

/* ============================================================
   SLOT SYSTEM (col-span)
   Funkční s flexboxem, krásné škálování
   ============================================================ */

.col-span-1 { flex: 1 1 0; }
.col-span-2 { flex: 2 1 0; }
.col-span-3 { flex: 3 1 0; }
.col-span-4 { flex: 4 1 0; }

/* ============================================================
   AKCE VPRAVO (Vyhledat + ikona reset)
   ============================================================ */

.filter-actions {
    display: flex;
    flex-direction: row;        /* inline layout */
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.btn-search {
    white-space: nowrap;
}

.btn-reset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #333 !important;          /* ← ikonka viditelná */
    line-height: 1 !important;       /* ← aby SVG nebylo stlačené */
    flex: 0 0 auto !important;
}

.btn-reset-icon svg {
    width: 18px;       /* velikost ikonky */
    height: 18px;
}

.btn-reset-icon:hover {
    opacity: 0.6;
}

.is-submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet – dvě položky na řádek, col-span stále funguje */
@media (max-width: 1100px) {

    .filter-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .filter-actions {
        justify-content: flex-start;
    }
}

/* Mobil – 1 položka na řádek */
@media (max-width: 768px) {

    .filter-row {
        flex-direction: column;
        margin: 0 0 0.75rem 0;       /* pro mobil stačí klasický spacing */
    }

    .filter-item {
        padding: 0;                  /* ať tam nejsou zbytečné vnitřní mezery */
    }

    .filter-actions {
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}
