.trendyol-page {
    padding: 0 20px 34px;
    color: #e5edf7;
}

.ty-shell {
    display: grid;
    gap: 16px;
}

.ty-hero,
.ty-panel,
.ty-card,
.ty-modal-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.28);
    border-radius: 10px;
}

.ty-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
}

.ty-kicker {
    color: #fb923c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ty-hero h1 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 46px);
    letter-spacing: 0;
}

.ty-hero p,
.ty-muted {
    color: #94a3b8;
}

.ty-actions,
.ty-filters,
.ty-card-actions,
.ty-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ty-btn {
    border: 1px solid rgba(251, 146, 60, 0.42);
    background: rgba(251, 146, 60, 0.12);
    color: #fed7aa;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ty-btn.primary {
    color: #0f172a;
    border-color: transparent;
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.ty-btn.soft {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.09);
}

.ty-btn.success {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(22, 163, 74, 0.14);
}

.ty-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ty-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ty-kpi {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.42);
}

.ty-kpi-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.ty-kpi-button em {
    display: inline-block;
    margin-top: 6px;
    color: #67e8f9;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.ty-kpi span {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 8px;
}

.ty-kpi strong {
    display: block;
    font-size: 26px;
    color: #fff;
}

.ty-panel {
    padding: 16px;
}

.ty-filters input,
.ty-filters select {
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(2, 6, 23, 0.36);
    color: #e5edf7;
    border-radius: 8px;
    padding: 9px 12px;
}

.ty-list {
    display: grid;
    gap: 12px;
}

.ty-section-head,
.ty-prepared-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.ty-section-head h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
}

.ty-section-head p {
    margin: 0;
    color: #94a3b8;
}

.ty-prepared-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ty-prepared-row {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.34);
    padding: 12px;
}

.ty-prepared-row strong,
.ty-prepared-row span {
    display: block;
}

.ty-prepared-row strong {
    color: #f8fafc;
}

.ty-prepared-row span {
    color: #94a3b8;
    margin-top: 4px;
}

.ty-card {
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) minmax(220px, 0.8fr);
    gap: 14px;
    align-items: center;
}

.ty-card.is-invoiced {
    border-color: rgba(34, 197, 94, 0.32);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(20, 83, 45, 0.16));
}

.ty-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
}

.ty-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ty-badge {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.ty-badge.ready {
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.12);
}

.ty-badge.warn {
    border-color: rgba(251, 146, 60, 0.38);
    color: #fed7aa;
    background: rgba(251, 146, 60, 0.12);
}

.ty-invoice-note,
.ty-prepared-invoice {
    margin-top: 10px;
    color: #bbf7d0 !important;
    font-size: 13px;
    font-weight: 800;
}

.ty-invoice-note i {
    color: #22c55e;
    margin-right: 6px;
}

.ty-invoice-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ty-invoice-list button {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(34, 197, 94, 0.26);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.42);
    color: #e5edf7;
    padding: 13px;
    cursor: pointer;
    text-align: left;
}

.ty-invoice-list strong {
    color: #fff;
}

.ty-invoice-list span {
    color: #cbd5e1;
}

.ty-invoice-list em {
    color: #86efac;
    font-style: normal;
    font-weight: 900;
}

.ty-money {
    color: #f8fafc;
    font-size: 21px;
    font-weight: 900;
}

.ty-empty,
.ty-error {
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #94a3b8;
    text-align: center;
}

.ty-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.12);
}

.ty-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.ty-modal-card {
    width: min(980px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: 22px;
}

.ty-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.ty-detail-box {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 14px;
    background: rgba(2, 6, 23, 0.35);
}

.ty-detail-box h4 {
    margin: 0 0 10px;
    color: #fb923c;
}

.ty-info-note {
    margin: 16px 0;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 8px;
    background: rgba(251, 146, 60, 0.1);
    color: #fed7aa;
    padding: 12px 14px;
    line-height: 1.45;
}

.ty-operation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ty-operation-grid button {
    min-height: 170px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.45);
    color: #e5edf7;
    cursor: pointer;
    padding: 18px;
    text-align: left;
}

.ty-operation-grid i {
    color: #fb923c;
    font-size: 30px;
}

.ty-operation-grid strong,
.ty-operation-grid span {
    display: block;
}

.ty-operation-grid strong {
    color: #fff;
    font-size: 20px;
    margin: 12px 0 8px;
}

.ty-operation-grid span {
    color: #94a3b8;
    line-height: 1.45;
}

.ty-label-preview {
    overflow-x: auto;
    margin-top: 16px;
}

.ty-label-sheet {
    background: #fff;
    color: #111827;
    border: 2px solid #111827;
    border-radius: 10px;
    padding: 22px;
    min-width: 680px;
}

.ty-label-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #111827;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.ty-label-top span,
.ty-label-sheet small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ty-label-top strong {
    display: block;
    color: #111827;
    font-size: 28px;
    margin-top: 4px;
}

.ty-label-top em {
    color: #111827;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
}

.ty-label-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ty-label-grid div,
.ty-label-address {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
}

.ty-label-grid b,
.ty-label-address b {
    display: block;
    color: #111827;
    font-size: 18px;
    word-break: break-word;
}

.ty-label-address p {
    margin: 8px 0 0;
    color: #374151;
    line-height: 1.45;
}

.ty-label-sheet .ty-lines th,
.ty-label-sheet .ty-lines td {
    color: #111827;
    border-bottom-color: #d1d5db;
}

.ty-label-barcode {
    margin-top: 18px;
    border: 2px dashed #111827;
    padding: 18px;
    text-align: center;
    color: #111827;
    font-family: monospace;
    font-size: 28px;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.ty-check {
    display: grid;
    gap: 8px;
}

.ty-check span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #cbd5e1;
}

.ty-lines {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ty-lines th,
.ty-lines td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding: 9px;
    text-align: left;
}

.ty-lines th {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .ty-hero,
    .ty-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ty-kpis,
    .ty-detail-grid,
    .ty-operation-grid {
        grid-template-columns: 1fr;
    }

    .ty-section-head,
    .ty-prepared-row {
        align-items: stretch;
        flex-direction: column;
    }

    .trendyol-page {
        padding: 0 12px 28px;
    }

    .ty-filters input,
    .ty-filters select,
    .ty-btn {
        width: 100%;
        justify-content: center;
    }

    .ty-invoice-list button {
        grid-template-columns: 1fr;
    }
}
