/**
 * Turnike sıra listesi — eczacı takip sayfası
 */

.tourniquet-queue-page {
    padding: 0 0 2.5rem;
}

.tourniquet-queue-panel {
    background: #fff;
    border: 1px solid rgba(26, 111, 163, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(19, 69, 89, 0.08);
    overflow: hidden;
}

.tourniquet-queue-panel__head {
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(165deg, rgba(26, 111, 163, 0.08) 0%, rgba(26, 111, 163, 0.02) 100%);
    border-bottom: 1px solid rgba(26, 111, 163, 0.1);
}

.tourniquet-queue-panel__head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.tourniquet-queue-panel__head-main {
    min-width: 0;
    flex: 1 1 auto;
}

.tourniquet-queue-panel__head-active {
    flex: 0 0 auto;
    min-width: 240px;
    max-width: 340px;
}

.tourniquet-queue-panel__head-active-card {
    position: relative;
    padding: 1rem 1.15rem 1rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #134559 0%, #1a6fa3 58%, #2b8fc7 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 10px 28px rgba(19, 69, 89, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.tourniquet-queue-panel__head-active-card::before {
    content: '';
    position: absolute;
    top: -28px;
    right: -28px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.tourniquet-queue-panel__head-active-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.tourniquet-queue-panel__head-active-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.tourniquet-queue-panel__head-active-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.tourniquet-queue-panel__head-active-name {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    word-break: break-word;
    letter-spacing: 0.01em;
}

.tourniquet-queue-panel__head-active-name--empty {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

.tourniquet-queue-panel__head-active-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tourniquet-queue-panel__head-active-item {
    margin: 0;
}

.tourniquet-queue-panel__head-active-item .tourniquet-queue-panel__head-active-name {
    font-size: 1rem;
}

.tourniquet-queue-panel__head-active-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tourniquet-queue-panel__head-active-status--muted {
    background: rgba(0, 0, 0, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.tourniquet-queue-panel__head-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7dffb2;
    box-shadow: 0 0 0 3px rgba(125, 255, 178, 0.22);
    flex-shrink: 0;
}

.tourniquet-queue-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
}

.tourniquet-queue-toolbar__search {
    flex: 1 1 280px;
    max-width: 420px;
    margin: 0;
}

.tourniquet-queue-toolbar__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.tourniquet-queue-toolbar__search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tourniquet-queue-toolbar__input {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #0f172a;
    background: #fff;
}

.tourniquet-queue-toolbar__input:focus {
    outline: none;
    border-color: var(--brand-blue, #1a6fa3);
    box-shadow: 0 0 0 3px rgba(26, 111, 163, 0.15);
}

.tourniquet-queue-toolbar__clear {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-blue, #1a6fa3);
    text-decoration: none;
    white-space: nowrap;
}

.tourniquet-queue-toolbar__clear:hover {
    text-decoration: underline;
}

.tourniquet-queue-toolbar__count {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    white-space: nowrap;
}

.tourniquet-queue-toolbar__filter-note {
    color: var(--brand-blue, #1a6fa3);
    font-weight: 600;
}

.tourniquet-queue-pagination {
    padding: 1rem 1.75rem 1.5rem;
}

.tourniquet-queue-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tourniquet-queue-pagination__item a,
.tourniquet-queue-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.65rem;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.tourniquet-queue-pagination__item a:hover {
    border-color: rgba(26, 111, 163, 0.35);
    color: var(--brand-blue, #1a6fa3);
    background: rgba(26, 111, 163, 0.05);
}

.tourniquet-queue-pagination__item.is-active span {
    background: var(--brand-blue, #1a6fa3);
    border-color: var(--brand-blue, #1a6fa3);
    color: #fff;
}

.tourniquet-queue-pagination__item.is-disabled span {
    opacity: 0.45;
    cursor: not-allowed;
}

.tourniquet-queue-panel__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-blue, #1a6fa3);
}

.tourniquet-queue-panel__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--brand-navy, #134559);
    line-height: 1.25;
}

.tourniquet-queue-panel__meta {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.tourniquet-queue-panel__empty {
    padding: 2rem 1.75rem;
    margin: 0;
    text-align: center;
    color: #64748b;
}

.tourniquet-queue-table-wrap {
    overflow-x: auto;
}

.tourniquet-queue-table {
    width: 100%;
    border-collapse: collapse;
}

.tourniquet-queue-table thead th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tourniquet-queue-table tbody tr {
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s ease;
}

.tourniquet-queue-table tbody tr:nth-child(even) {
    background: #fcfdfe;
}

.tourniquet-queue-table tbody tr.is-active {
    background: rgba(26, 111, 163, 0.1);
}

.tourniquet-queue-table tbody tr.is-active .tourniquet-queue-table__order {
    color: var(--brand-blue, #1a6fa3);
}

.tourniquet-queue-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.tourniquet-queue-table__order {
    width: 88px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
}

.tourniquet-queue-table__name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.tourniquet-queue-table__badge {
    display: inline-block;
    margin-left: 0.65rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-blue, #1a6fa3);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

@media (max-width: 575px) {
    .tourniquet-queue-panel__head--split {
        flex-direction: column;
    }

    .tourniquet-queue-panel__head-active {
        width: 100%;
        max-width: none;
    }

    .tourniquet-queue-panel__head-active-card {
        padding: 0.95rem 1rem;
    }

    .tourniquet-queue-toolbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tourniquet-queue-panel__head,
    .tourniquet-queue-table td,
    .tourniquet-queue-table thead th {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tourniquet-queue-table__order {
        width: 64px;
    }
}

/* Turnike seçim hub */
.tourniquet-hub-page {
    padding: 0 0 2.5rem;
}

.tourniquet-hub-panel .tourniquet-queue-panel__head {
    margin-bottom: 0;
}

.tourniquet-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.25rem 1.75rem 1.75rem;
}

.tourniquet-hub-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(26, 111, 163, 0.14);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tourniquet-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 111, 163, 0.35);
    box-shadow: 0 10px 28px rgba(19, 69, 89, 0.1);
    background: rgba(26, 111, 163, 0.03);
    color: inherit;
    text-decoration: none;
}

.tourniquet-hub-card__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(26, 111, 163, 0.12);
    color: var(--brand-blue, #1a6fa3);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tourniquet-hub-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tourniquet-hub-card__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy, #134559);
    line-height: 1.35;
    word-break: break-word;
}

.tourniquet-hub-card__meta {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
    word-break: break-word;
}

.tourniquet-hub-card__action {
    color: var(--brand-blue, #1a6fa3);
    font-size: 0.85rem;
    opacity: 0.75;
}

.tourniquet-hub-card:hover .tourniquet-hub-card__action {
    opacity: 1;
}

@media (max-width: 767px) {
    .tourniquet-hub-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
