/* ====================================
   Rendelési naptár Widget – or-style.css
   ==================================== */

:root {
    --or-bg:          #ffffff;
    --or-surface:     #f4f7fb;
    --or-border:      #e0e7ef;
    --or-primary:     #1a3a5c;
    --or-accent:      #2d7dd2;
    --or-accent2:     #27ae60;
    --or-today-bg:    #eaf4ff;
    --or-today-border:#2d7dd2;
    --or-active-bg:   #edfaf2;
    --or-active-text: #1a7a44;
    --or-free-text:   #b0bec5;
    --or-text:        #1a2533;
    --or-muted:       #6b7c93;
    --or-radius:      12px;
    --or-shadow:      0 4px 24px rgba(30,60,100,.10);
    --or-font:        'Segoe UI', 'Arial', sans-serif;
}

.or-widget {
    font-family: var(--or-font);
    background:  var(--or-bg);
    border-radius: var(--or-radius);
    box-shadow:  var(--or-shadow);
    border:      1px solid var(--or-border);
    overflow:    hidden;
    max-width:   100%;
    margin:      2rem auto;
}

/* ── RENDELŐ FEJLÉC ── */
.or-clinic-header {
    display:    flex;
    flex-wrap:  wrap;
    align-items:center;
    gap:        14px;
    padding:    14px 20px;
    background: var(--or-surface);
    border-bottom: 1px solid var(--or-border);
}
.or-clinic-name {
    font-weight: 700;
    font-size:   1rem;
    color:       var(--or-primary);
    flex-shrink: 0;
}
.or-clinic-meta {
    font-size:  .82rem;
    color:      var(--or-muted);
}

.or-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.or-brand-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 140px;
}

.or-clinic-meta a { color: var(--or-accent); text-decoration: none; }
.or-clinic-meta a:hover { text-decoration: underline; }

/* ── NAV ── */
.or-nav {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    background:      var(--or-primary);
    padding:         14px 20px;
    gap:             12px;
}

.or-nav-btn {
    background:    rgba(255,255,255,.12);
    border:        none;
    color:         #fff;
    font-size:     18px;
    width:         36px;
    height:        36px;
    border-radius: 50%;
    cursor:        pointer;
    transition:    background .2s;
    display:       flex;
    align-items:   center;
    justify-content:center;
    flex-shrink:   0;
}
.or-nav-btn:hover { background: rgba(255,255,255,.25); }

.or-week-info {
    text-align: center;
    flex:       1;
}
.or-week-label {
    display:     block;
    color:       #fff;
    font-size:   .95rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.or-week-num {
    display:   block;
    color:     rgba(255,255,255,.65);
    font-size: .78rem;
    margin-top: 2px;
}

/* ── TABLE WRAPPER ── */
.or-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── TABLE ── */
.or-table {
    width:           100%;
    border-collapse: collapse;
    min-width:       680px;
}

.or-table th,
.or-table td {
    padding:      10px 8px;
    text-align:   center;
    border-bottom: 1px solid var(--or-border);
    border-right:  1px solid var(--or-border);
    font-size:    .82rem;
}
.or-table th:last-child,
.or-table td:last-child { border-right: none; }

/* Header */
.or-table thead th {
    background:   var(--or-surface);
    color:        var(--or-primary);
    font-weight:  700;
    font-size:    .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space:  nowrap;
    padding:      12px 8px;
}
.or-table thead th.or-today {
    background:        var(--or-today-bg);
    border-bottom:     2px solid var(--or-today-border);
    color:             var(--or-accent);
}

.or-day-name { display: block; }
.or-day-date { display: block; font-weight: 400; color: var(--or-muted); margin-top: 2px; }
.or-col-orvos { text-align: left !important; min-width: 180px; }

/* Doctor info cell */
.or-doc-info {
    display:    flex;
    align-items:center;
    gap:        10px;
    text-align: left !important;
    padding:    10px 12px !important;
    background: var(--or-surface);
    white-space: nowrap;
}

.or-avatar {
    width:         40px;
    height:        40px;
    border-radius: 50%;
    overflow:      hidden;
    background:    var(--or-primary);
    flex-shrink:   0;
    display:       flex;
    align-items:   center;
    justify-content:center;
}
.or-avatar img { width: 100%; height: 100%; object-fit: cover; }
.or-initials {
    color:       #fff;
    font-size:   .85rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.or-doc-text strong {
    display:     block;
    font-size:   .83rem;
    color:       var(--or-text);
    font-weight: 700;
}
.or-doc-text small {
    display:   block;
    font-size: .72rem;
    color:     var(--or-muted);
    margin-top:2px;
}

/* Slots */
.or-slot { vertical-align: middle; }
.or-slot.or-today { background: var(--or-today-bg); }

.or-slot.or-active {
    background: var(--or-active-bg);
}
.or-check {
    display:     block;
    color:       var(--or-accent2);
    font-size:   1rem;
    font-weight: 700;
    line-height: 1.2;
}
.or-time {
    display:   block;
    font-size: .88rem;
    color:     var(--or-active-text);
    margin-top:1px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.25;
    white-space: nowrap;
}

.or-slot.or-free .or-dash {
    color:     var(--or-free-text);
    font-size: 1.1rem;
}

/* Row hover */
.or-row:hover .or-slot,
.or-row:hover .or-doc-info {
    filter: brightness(.96);
}

/* ── LEGEND ── */
.or-legend {
    display:     flex;
    gap:         20px;
    padding:     12px 20px;
    background:  var(--or-surface);
    border-top:  1px solid var(--or-border);
    font-size:   .78rem;
    color:       var(--or-muted);
}
.or-legend-item { display: flex; align-items: center; gap: 6px; }
.or-legend-dot {
    width:        10px;
    height:       10px;
    border-radius:50%;
    display:      inline-block;
}
.or-legend-active { background: var(--or-accent2); }
.or-legend-free   { background: var(--or-border); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .or-clinic-header { gap: 10px; padding: 12px 14px; }
    .or-brand-logo img { height: 28px; max-width: 118px; }
    .or-nav { padding: 10px 12px; }
    .or-week-label { font-size: .85rem; }
    .or-doc-info { padding: 8px !important; }
    .or-avatar { width: 32px; height: 32px; }
    .or-initials { font-size: .75rem; }
    .or-doc-text strong { font-size: .76rem; }
    .or-time { font-size: .84rem; }
}


/* ── MAI RENDELŐK SHORTCODE ── */
.or-today-widget {
    padding: 0;
}
.or-today-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 20px;
    background: var(--or-primary);
    color: #fff;
}

.or-today-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.or-brand-logo-light {
    background: #fff;
    border-radius: 10px;
    padding: 4px 8px;
}
.or-today-header .or-brand-logo img {
    height: 30px;
}

.or-today-title {
    font-size: 1rem;
    font-weight: 700;
}
.or-today-date {
    font-size: .82rem;
    color: rgba(255,255,255,.78);
}
.or-today-clinics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}
.or-today-clinic {
    padding: 16px 20px;
    border-right: 1px solid var(--or-border);
}
.or-today-clinic:last-child {
    border-right: none;
}
.or-today-clinic-head strong {
    display: block;
    color: var(--or-primary);
    font-size: .95rem;
    margin-bottom: 4px;
}
.or-today-clinic-head span {
    display: block;
    color: var(--or-muted);
    font-size: .78rem;
    line-height: 1.4;
}
.or-today-clinic-head a {
    color: var(--or-accent);
    text-decoration: none;
}
.or-today-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.or-today-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--or-active-bg);
    border: 1px solid rgba(39,174,96,.18);
    border-radius: 10px;
}
.or-today-doc {
    color: var(--or-text);
    font-size: .9rem;
    font-weight: 700;
}
.or-today-time {
    color: var(--or-active-text);
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.25;
    white-space: nowrap;
}
.or-today-empty {
    margin: 14px 0 0;
    color: var(--or-muted);
    font-size: .84rem;
}

@media (max-width: 700px) {
    .or-today-clinics {
        grid-template-columns: 1fr;
    }
    .or-today-clinic {
        border-right: none;
        border-bottom: 1px solid var(--or-border);
    }
    .or-today-clinic:last-child {
        border-bottom: none;
    }
    .or-today-header { align-items: flex-start; }
    .or-today-brand { gap: 10px; }
    .or-today-header .or-brand-logo img { height: 26px; }
    .or-today-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .or-today-time { font-size: .9rem; }
}
