/* ------------------------------------------------------------
   WRAPPER GENERALE
------------------------------------------------------------ */
.keoc-wrapper {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------------------------------------
   TITOLO PAGINA
------------------------------------------------------------ */
.keoc-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
}

/* ------------------------------------------------------------
   CARD ORDINI
------------------------------------------------------------ */
.keoc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid #f3f3f3;
    transition: transform .2s ease, box-shadow .2s ease;
}

.keoc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   HEADER CARD (APPARTAMENTO + DATE)
------------------------------------------------------------ */
.keoc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keoc-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.keoc-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #555;
}

/* ------------------------------------------------------------
   BOTTONI CARD
------------------------------------------------------------ */
.keoc-actions {
    display: flex;
    gap: 10px;
}

.keoc-btn-edit,
.keoc-btn-delete {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.keoc-btn-edit {
    background: #fde68a;
    color: #7c2d12;
}

.keoc-btn-edit:hover {
    background: #fcd34d;
}

.keoc-btn-delete {
    background: #fecaca;
    color: #7f1d1d;
}

.keoc-btn-delete:hover {
    background: #fca5a5;
}

.keoc-locked {
    background: #e5e7eb;
    padding: 8px 14px;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

/* ------------------------------------------------------------
   CORPO CARD
------------------------------------------------------------ */
.keoc-body {
    margin-top: 18px;
}

.keoc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 15px;
}

.keoc-divider {
    border-bottom: 1px dashed #e5e7eb;
    margin: 14px 0;
}

/* ------------------------------------------------------------
   TOTALI
------------------------------------------------------------ */
.keoc-total {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

/* ------------------------------------------------------------
   DETTAGLI (BIANCHERIA / KIT / CORTESIA / LAVASTOVIGLIE)
------------------------------------------------------------ */
.keoc-details summary {
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 4px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keoc-summary-icon {
    transition: transform .25s ease;
    opacity: .7;
}

.keoc-details[open] .keoc-summary-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* ------------------------------------------------------------
   FILTRO DATE – LAYOUT PREMIUM
------------------------------------------------------------ */
.keoc-filter {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    border: 1px solid #f1f1f1;
}

.kfo-section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #333;
}

.kfo-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
}

.kfo-field label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.kfo-field input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* ------------------------------------------------------------
   BOTTONI FILTRA / RESET
------------------------------------------------------------ */
.keoc-btn-filter {
    padding: 10px 22px;
    background: #ffb34d;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: #000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin-right: 6px;
}

.keoc-btn-filter:hover {
    background: #ffa526;
}

.keoc-btn-reset {
    padding: 10px 16px;
    background: #e5e5e5;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #444;
}

.keoc-btn-reset:hover {
    background: #d4d4d4;
}

/* ------------------------------------------------------------
   LOAD MORE BUTTON
------------------------------------------------------------ */
.keoc-load-more-wrap {
    text-align: center;
    margin-top: 15px;
}

.keoc-load-more-wrap button {
    padding: 10px 20px;
    border-radius: 8px;
    background: #e0e7ff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: #3730a3;
}

.keoc-load-more-wrap button:hover {
    background: #c7d2fe;
}

/* ------------------------------------------------------------
   MODIFICA ORDINE (form interno)
------------------------------------------------------------ */
.keoc-edit-form {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.keoc-edit-inner input,
.keoc-edit-inner textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 12px;
    font-size: 15px;
}

.keoc-edit-inner label {
    font-size: 14px;
    font-weight: 600;
}

.keoc-totale {
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
    text-align: right;
}

