/* Tokens */
:root{
  --u-ink:#10243E;
  --u-muted:#5B6B82;
  --u-bg:#ffffff;
  --u-surface:#ffffff;
  --u-surface-2:#F5F8FF;
  --u-border:#DCE7FB;
  --u-blue:#1795F1;
  --u-blue-2:#0B63D1;
  --u-ring:rgba(23,149,241,.28);
}

/* Base */
.ucw-card{position:relative;margin:24px auto;max-width:980px;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif}
.ucw-card input,
.ucw-card select{font:inherit}
.ucw-required{color:#e11d48;font-weight:600}

/* MODERN (light) */
.ucw-modern{
  color:var(--u-ink);
  background:
    radial-gradient(1200px 300px at 50% -120px, rgba(23,149,241,.12), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
  border-radius:18px;
  padding:24px;
  border:1px solid var(--u-border);
  box-shadow:0 8px 28px rgba(11,99,209,.08);
}
.ucw-modern .ucw-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:16px}
.ucw-modern .ucw-field label{display:block;margin-bottom:8px;font-weight:600;color:var(--u-muted)}
.ucw-modern .ucw-field input,
.ucw-modern .ucw-field select,
.ucw-modern .ucw-ex-input,
.ucw-modern .ucw-svalue input,
.ucw-modern .ucw-pp-input,
.ucw-modern .ucw-list-row input{
  width:100%; background:var(--u-surface-2);
  color:var(--u-ink); border:1px solid var(--u-border); border-radius:12px; padding:12px 14px;
  transition:border-color .15s ease, box-shadow .15s ease; outline:none;
}
.ucw-modern select{appearance:none; background-image:linear-gradient(45deg, transparent 50%, var(--u-muted) 50%), linear-gradient(135deg, var(--u-muted) 50%, transparent 50%); background-position:calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size:6px 6px, 6px 6px; background-repeat:no-repeat; padding-right:32px;}
.ucw-modern input:focus,
.ucw-modern select:focus{border-color:var(--u-blue); box-shadow:0 0 0 6px var(--u-ring); background:#fff}

.ucw-modern .ucw-title{font-weight:700;color:var(--u-ink);margin:10px 0 6px 0;padding:6px 2px}
.ucw-modern .ucw-payments{border:1px solid var(--u-border);border-radius:14px;overflow:hidden;background:#fff}
.ucw-modern .ucw-row{display:grid;grid-template-columns:60px 1fr 220px;border-top:1px solid var(--u-border);align-items:center}
.ucw-modern .ucw-row:first-child{border-top:0}
.ucw-modern .ucw-cell{padding:10px 12px}
.ucw-modern .ucw-idx{font-weight:700;color:var(--u-muted)}
.ucw-modern .ucw-item{border:0;background:transparent}
.ucw-modern .ucw-amt{border:0;background:transparent;text-align:right}
.ucw-modern .ucw-exchanger{display:flex;align-items:center;gap:12px;justify-content:center;margin:16px 0}
.ucw-modern .ucw-ex-title{font-size:28px;font-weight:800;color:var(--u-blue-2)}
.ucw-modern .ucw-ex-input{max-width:260px;text-align:right;background:#fff}
.ucw-modern .ucw-summary{display:grid;grid-template-columns:1fr;max-width:680px;margin:14px auto;border:1px solid var(--u-border);border-radius:14px;overflow:hidden;background:#fff}
.ucw-modern .ucw-srow{display:grid;grid-template-columns:1.1fr 1fr;border-top:1px solid var(--u-border);align-items:center}
.ucw-modern .ucw-srow:first-child{border-top:0}
.ucw-modern .ucw-slabel{font-weight:700;text-align:center;padding:14px;border-right:1px solid var(--u-border);color:var(--u-ink)}
.ucw-modern .ucw-svalue{padding:10px}
.ucw-modern .ucw-svalue input{border-radius:10px;text-align:right;background:#fff}
.ucw-modern .ucw-bottom{margin-top:20px}
.ucw-modern .ucw-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ucw-modern .ucw-subtitle{font-weight:800;border:1px solid var(--u-border);padding:12px 14px;border-radius:12px;background:#fff}
.ucw-modern .ucw-pp-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ucw-modern .ucw-pp-input{max-width:240px;text-align:right;background:#fff}
.ucw-modern .ucw-list{border:1px solid var(--u-border);border-radius:14px;overflow:hidden;background:#fff}
.ucw-modern .ucw-list-row{display:grid;grid-template-columns:60px 1fr;border-top:1px solid var(--u-border);align-items:center}
.ucw-modern .ucw-list-row:first-child{border-top:0}
.ucw-modern .ucw-actions{display:flex;align-items:center;gap:12px;margin-top:18px}
.ucw-modern .ucw-btn-primary,
.ucw-btn-secondary{
  appearance:none;border:0;border-radius:12px;padding:10px 16px;
  background:linear-gradient(180deg, var(--u-blue), var(--u-blue-2));
  color:#fff;font-weight:700;letter-spacing:.2px;cursor:pointer;
  box-shadow:0 10px 24px rgba(11,99,209,.20);
  transition:transform .08s ease, box-shadow .2s ease, filter .15s ease;
}
.ucw-btn-secondary{
  background:linear-gradient(180deg,#e3edff,#c4dafb);
  color:var(--u-blue-2);
  box-shadow:0 6px 18px rgba(23,149,241,.20);
}
.ucw-modern .ucw-btn-primary:hover,
.ucw-btn-secondary:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(11,99,209,.24)}
.ucw-modern .ucw-btn-primary:active,
.ucw-btn-secondary:active{transform:translateY(0)}
.ucw-modern .ucw-status{min-height:24px;color:var(--u-muted)}
.ucw-modern .ucw-response{background:#f7faff;color:#1b283f;border:1px solid var(--u-border);padding:10px;border-radius:10px;margin-top:10px;max-height:360px;overflow:auto}

/* CLASSIC – az eredeti táblázatos (fallback) */
.ucw-classic{
  background:#fff;border:2px solid #222;padding:16px;color:#111;
}
.ucw-classic .ucw-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-bottom:12px}
.ucw-classic .ucw-field label{display:block;font-weight:700;margin-bottom:4px}
.ucw-classic .ucw-field input,
.ucw-classic .ucw-field select{width:100%;padding:8px;border:1px solid #aaa;border-radius:4px}
.ucw-classic .ucw-title{font-weight:800;text-align:center;border:2px solid #222;padding:6px;margin:8px 0 4px 0}
.ucw-classic .ucw-payments{border:2px solid #222}
.ucw-classic .ucw-row{display:grid;grid-template-columns:56px 1fr 220px;border-top:1px solid #ccc;align-items:center}
.ucw-classic .ucw-row:first-child{border-top:none}
.ucw-classic .ucw-cell{padding:8px}
.ucw-classic .ucw-idx{font-weight:700}
.ucw-classic .ucw-item{border:0;border-left:1px solid #ccc;border-right:1px solid #ccc}
.ucw-classic .ucw-amt{border:0;text-align:right}
.ucw-classic .ucw-exchanger{display:flex;align-items:center;gap:12px;justify-content:center;margin:12px 0}
.ucw-classic .ucw-ex-title{font-size:28px;font-weight:900}
.ucw-classic .ucw-ex-input{max-width:240px;padding:8px;border:2px solid #222;border-radius:6px;text-align:right}
.ucw-classic .ucw-summary{display:grid;grid-template-columns:1fr;max-width:640px;margin:10px auto;border:2px solid #222}
.ucw-classic .ucw-srow{display:grid;grid-template-columns:1.2fr 1fr;border-top:1px solid #ccc;align-items:center}
.ucw-classic .ucw-srow:first-child{border-top:none}
.ucw-classic .ucw-slabel{font-weight:800;text-align:center;padding:10px;border-right:1px solid #ccc}
.ucw-classic .ucw-svalue{padding:6px}
.ucw-classic .ucw-svalue input{width:100%;padding:8px;border:0;border-left:1px solid #ccc;text-align:right}
.ucw-classic .ucw-bottom{margin-top:18px}
.ucw-classic .ucw-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ucw-classic .ucw-subtitle{font-weight:900;border:2px solid #222;padding:8px}
.ucw-classic .ucw-pp-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ucw-classic .ucw-pp-input{max-width:220px;border:2px solid #222;border-radius:4px;padding:6px;text-align:right}
.ucw-classic .ucw-list{border:2px solid #222}
.ucw-classic .ucw-list-row{display:grid;grid-template-columns:56px 1fr;border-top:1px solid #ccc;align-items:center}
.ucw-classic .ucw-list-row:first-child{border-top:none}
.ucw-classic .ucw-list-row input{border:0;padding:8px}
.ucw-classic .ucw-actions{display:flex;align-items:center;gap:12px;margin-top:16px}
.ucw-classic .ucw-status{min-height:24px}
.ucw-classic .ucw-response{background:#0b1220;color:#e6edf3;padding:12px;border-radius:6px;margin-top:10px;max-height:360px;overflow:auto}

/* === Előzmény nézet (history) === */

.ucw-history{
  margin:32px auto;
  max-width:1040px;
  background:
    radial-gradient(1400px 320px at 50% -140px, rgba(23,149,241,.12), transparent 60%),
    #ffffff;
  border-radius:20px;
  border:1px solid var(--u-border);
  box-shadow:0 10px 32px rgba(11,99,209,.12);
  padding:22px 22px 24px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
}
.ucw-h-headline h2{
  margin:0 0 4px 0;
  font-size:1.35rem;
  color:var(--u-ink);
}
.ucw-h-headline p{
  margin:0;
  font-size:.9rem;
  color:var(--u-muted);
}

.ucw-h-filters{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr auto;
  gap:12px;
  align-items:flex-end;
  margin-top:16px;
}
.ucw-h-filter label{
  display:block;
  font-size:.8rem;
  font-weight:600;
  color:var(--u-muted);
  margin-bottom:6px;
}
.ucw-h-filter select,
.ucw-h-filter input{
  width:100%;
  border-radius:10px;
  border:1px solid var(--u-border);
  background:var(--u-surface-2);
  padding:8px 10px;
  font-size:.9rem;
  color:var(--u-ink);
}
.ucw-h-filter-btnwrap{
  display:flex;
  justify-content:flex-end;
}
.ucw-h-filter-btnwrap .ucw-btn-secondary{width:100%; white-space:nowrap;}

.ucw-h-status-row{
  margin-top:10px;
  min-height:20px;
}
.ucw-h-status{
  font-size:.85rem;
  color:var(--u-muted);
}

/* Cards */

.ucw-h-list{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ucw-h-card{
  border-radius:14px;
  border:1px solid var(--u-border);
  background:#ffffff;
  box-shadow:0 4px 14px rgba(15,23,42,.06);
  overflow:hidden;
}
.ucw-h-card-header{
  width:100%;
  text-align:left;
  padding:10px 14px;
  background:#f3f7ff;
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.ucw-h-card-main{
  display:flex;
  gap:10px;
  align-items:baseline;
}
.ucw-h-pill{
  font-size:.75rem;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(23,149,241,.08);
  color:var(--u-blue-2);
  font-weight:600;
}
.ucw-h-titleline{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  font-size:.9rem;
  color:var(--u-ink);
}
.ucw-h-titleline span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.ucw-h-day{
  font-size:.8rem;
  color:var(--u-muted);
}
.ucw-h-toggle-icon{
  font-size:1rem;
  color:var(--u-muted);
  transform:rotate(0deg);
  transition:transform .18s ease;
}
.ucw-h-card.ucw-h-open .ucw-h-toggle-icon{transform:rotate(90deg);}

.ucw-h-card-body{
  display:none;
  padding:12px 14px 14px;
}
.ucw-h-card.ucw-h-open .ucw-h-card-body{display:block;}

/* Detail layout */

.ucw-h-detail-head{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:10px;
}
.ucw-h-detail-head span{
  display:block;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--u-muted);
  margin-bottom:2px;
}
.ucw-h-detail-head strong{
  font-size:.95rem;
  color:var(--u-ink);
}

.ucw-h-detail-section{
  margin-top:10px;
}
.ucw-h-detail-section h4{
  margin:0 0 6px;
  font-size:.9rem;
  color:var(--u-ink);
}

.ucw-h-table{
  border-radius:10px;
  border:1px solid var(--u-border);
  overflow:hidden;
  font-size:.86rem;
}
.ucw-h-trow{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 120px;
  border-top:1px solid var(--u-border);
  padding:6px 8px;
  align-items:center;
}
.ucw-h-trow:first-child{border-top:0}
.ucw-h-trow-head{
  background:#f3f7ff;
  font-weight:600;
  color:var(--u-muted);
}
.ucw-h-trow div:first-child{text-align:center;}
.ucw-h-num{text-align:right;font-variant-numeric:tabular-nums;}

.ucw-h-detail-inline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ucw-h-stat{
  flex:1 1 140px;
  min-width:140px;
  border-radius:10px;
  border:1px solid var(--u-border);
  background:#f9fbff;
  padding:8px 10px;
}
.ucw-h-stat span{
  display:block;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--u-muted);
  margin-bottom:2px;
}
.ucw-h-stat strong{
  font-size:.95rem;
  font-variant-numeric:tabular-nums;
  color:var(--u-ink);
}

.ucw-h-detail-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.ucw-h-list{
  margin:0;
  padding-left:18px;
  font-size:.86rem;
  color:var(--u-ink);
}
.ucw-h-list li{
  margin-bottom:3px;
}

/* Responsive */
@media (max-width:800px){
  .ucw-modern .ucw-head, .ucw-classic .ucw-head{grid-template-columns:1fr}
  .ucw-modern .ucw-row{grid-template-columns:46px 1fr 160px}
  .ucw-classic .ucw-row{grid-template-columns:42px 1fr 160px}
  .ucw-modern .ucw-two-col, .ucw-classic .ucw-two-col{grid-template-columns:1fr}

  .ucw-history{padding:18px 14px;}
  .ucw-h-filters{grid-template-columns:1fr 1fr;grid-auto-rows:auto;}
  .ucw-h-filter-btnwrap{grid-column:1 / -1;}
  .ucw-h-detail-head{grid-template-columns:1fr;}
  .ucw-h-detail-two{grid-template-columns:1fr;}
}


/* ==========================================================
   History cards – redesigned (kék-fehér, modern)
   ========================================================== */

.ucw-h-card{
  border-radius:16px;
  border:1px solid #d4dbe7;
  background:#ffffff;
  box-shadow:0 10px 28px rgba(15,23,42,0.06);
  overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.ucw-h-card-header{
  width:100%;
  text-align:left;
  padding:12px 18px;
  background:linear-gradient(90deg, rgba(23,149,241,0.14), #ffffff);
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}

.ucw-h-card-main{
  display:flex;
  align-items:center;
  gap:12px;
}

.ucw-h-pill{
  min-width:36px;
  height:36px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #d4dbe7;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.85rem;
  font-weight:600;
  color:#1795F1;
}

.ucw-h-titleline{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.ucw-h-titleline strong{
  font-size:1.02rem;
  color:#0b1220;
}

.ucw-h-titleline span:last-child{
  font-size:.9rem;
  color:#4b5563;
}

.ucw-h-day{
  font-size:.9rem;
  font-weight:500;
  color:#111827;
}

.ucw-h-toggle-icon{
  font-size:.9rem;
  color:#6b7280;
  transition:transform .18s ease, color .18s ease;
}

.ucw-h-card:hover{
  border-color:#1795F1;
  box-shadow:0 16px 40px rgba(23,149,241,0.22);
  transform:translateY(-2px);
}

.ucw-h-card.ucw-h-open .ucw-h-card-header{
  background:linear-gradient(90deg, rgba(23,149,241,0.2), #ffffff);
}

.ucw-h-card.ucw-h-open .ucw-h-toggle-icon{
  transform:rotate(90deg);
  color:#1795F1;
}

.ucw-h-card-body{
  background:#f9fafb;
  padding:18px 18px 20px;
}

/* ==========================================================
   History detail sheet – papír alapú forgalmi lap layout
   ========================================================== */

.ucw-h-sheet{
  margin-top:8px;
  background:#ffffff;
  border:2px solid #111111;
  border-radius:12px;
  padding:8px 8px 10px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#111827;
}

.ucw-h-top-table,
.ucw-h-main-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.ucw-h-top-table th,
.ucw-h-top-table td{
  border:1px solid #111111;
  padding:4px 8px;
  font-size:.9rem;
}

.ucw-h-top-table th{
  font-weight:600;
  text-align:left;
  background:#f3f4f6;
}

.ucw-h-top-table td{
  height:30px;
}

/* Központi cím: Kifizetések a forgalomból */

.ucw-h-section-title{
  margin-top:10px;
  margin-bottom:4px;
  text-align:center;
  font-size:1rem;
  font-weight:700;
}

/* Fő táblák */

.ucw-h-main-table th,
.ucw-h-main-table td{
  border:1px solid #111111;
  padding:3px 6px;
  font-size:.9rem;
}

.ucw-h-main-table td.ucw-h-index{
  width:40px;
  text-align:left;
}

.ucw-h-main-table td.ucw-h-value{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* Váltó blokk */

.ucw-h-valto-label{
  margin-top:6px;
  margin-bottom:4px;
  text-align:center;
  font-size:1.05rem;
  font-weight:700;
}

.ucw-h-valto-label .ucw-h-valto-amount{
  display:block;
  font-size:.9rem;
  font-weight:500;
}

/* Összegző tábla */

.ucw-h-summary-table th{
  text-align:left;
  width:55%;
}

/* Alsó, kétoszlopos blokkok: Beszerzések & PP */

.ucw-h-bottom-wrap{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
}

.ucw-h-bottom-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.ucw-h-bottom-table th{
  border:1px solid #111111;
  padding:3px 6px;
  font-size:1rem;
  text-align:left;
  background:#f3f4f6;
}

.ucw-h-bottom-table td{
  border:1px solid #111111;
  padding:3px 6px;
  font-size:.9rem;
}

.ucw-h-bottom-table td.ucw-h-index{
  width:40px;
}

/* Reszponzív */

@media (max-width:800px){
  .ucw-h-bottom-wrap{
    grid-template-columns:1fr;
  }
}



/* ===== Költségrögzítő shortcode ===== */
.ucw-expense {
  max-width: 540px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.4rem 1.4rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
  border: 1px solid rgba(148,163,184,0.4);
}

.ucw-expense-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0.9rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.ucw-expense-grid .ucw-field-full {
  grid-column: 1 / -1;
}

.ucw-expense .ucw-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.8);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}

.ucw-expense .ucw-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: rgba(15,23,42,0.75);
}

.ucw-expense .ucw-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ucw-expense .js-exp-submit {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg,#1795F1,#0B63D1);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(23,149,241,0.35);
}

.ucw-expense .ucw-status {
  font-size: 0.82rem;
  color: rgba(15,23,42,0.8);
}

@media (max-width: 640px){
  .ucw-expense-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================
   History – kompakt, letisztult találati kártyák
   ========================================= */

.ucw-history .ucw-h-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Alapkártya */

.ucw-history .ucw-h-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

/* régi bal oldali sáv és egyéb pseudo-elemek kikapcsolása */
.ucw-history .ucw-h-card::before,
.ucw-history .ucw-h-card::after {
  content: none !important;
}

/* Kártya header – kompakt elrendezés */

.ucw-history .ucw-h-card-header {
  width: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ucw-history .ucw-h-card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sorszám badge */

.ucw-history .ucw-h-pill {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1f5f9;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1795F1;
}

/* Név + dátum blokk */

.ucw-history .ucw-h-titleline {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ucw-history .ucw-h-titleline strong {
  font-size: 1rem;
  font-weight: 600;
  color: #0b1220;
}

.ucw-history .ucw-h-titleline span:last-child {
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.65);
}

/* Nap pill jobb oldalt */

.ucw-history .ucw-h-day {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 149, 241, 0.08);
  color: #0b1220;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.ucw-history .ucw-h-toggle-icon {
  margin-left: 0.35rem;
  font-size: 0.9rem;
  opacity: 0.55;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

/* Hover / fókusz állapot */

.ucw-history .ucw-h-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 149, 241, 0.5);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  background: linear-gradient(
    90deg,
    rgba(23, 149, 241, 0.03),
    #ffffff
  );
}

.ucw-history .ucw-h-card:hover .ucw-h-toggle-icon {
  opacity: 0.9;
}

/* Nyitott állapot */

.ucw-history .ucw-h-card.ucw-open {
  border-color: rgba(23, 149, 241, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.ucw-history .ucw-h-card.ucw-open .ucw-h-toggle-icon {
  transform: rotate(90deg);
  opacity: 1;
}

/* Lenyitott tartalom háttér */

.ucw-history .ucw-h-card-body {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #f9fafb;
}

/* Mobil finomhangolás */

@media (max-width: 700px) {
  .ucw-history .ucw-h-card-header {
    align-items: flex-start;
  }

  .ucw-history .ucw-h-day {
    margin-left: auto;
  }
}
