[x-cloak] { display: none !important; }

/* Browser surfaces themed to the İş Emri Fişi (work-order ticket) world: warm kraft neutrals, carbon-ink violet accent. */
* { scrollbar-width: thin; scrollbar-color: #d3c4a3 transparent; }
.dark * { scrollbar-color: #4d4436 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3c4a3; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #4d4436; }

::selection { background: #cdb8e8; color: #281940; }
.dark ::selection { background: #492e72; color: #f4f0fa; }

:focus-visible { outline: 2px solid #6d43ab; outline-offset: 2px; }

body { text-underline-offset: 3px; }

/* Tabular numerals for money, quantities, plate numbers, ticket numbers. */
.ticket-num, table td { font-variant-numeric: tabular-nums; }

/* A stamped, perforated ticket edge: torn-stub feel without a hard neobrutalist shadow. */
.ticket-card {
    position: relative;
    background-image: radial-gradient(circle at 0 50%, transparent 6px, currentColor 6.5px, transparent 7px),
                       radial-gradient(circle at 100% 50%, transparent 6px, currentColor 6.5px, transparent 7px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: inherit;
}

/* Ink-stamp status badge: outlined, slightly rotated, tracked caps — a rubber stamp, not a filled pill. */
.stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 0.15em 0.6em;
    font-family: "Courier Prime", ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
    line-height: 1.6;
}

.perforated {
    background-image: repeating-linear-gradient(to right, currentColor 0, currentColor 4px, transparent 4px, transparent 10px);
    background-size: 100% 1.5px;
    background-position: top;
    background-repeat: no-repeat;
    color: #d3c4a3;
}
.dark .perforated { color: #4d4436; }

.kanban-col { min-width: 260px; }
.kanban-card { cursor: grab; }
.kanban-card.dragging { opacity: 0.4; }

table.data-table th { position: sticky; top: 0; }

@media (max-width: 768px) {
    .responsive-table thead { display: none; }
    .responsive-table tr { display: block; margin-bottom: 0.75rem; border-radius: 0.75rem; }
    .responsive-table td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .responsive-table td::before { content: attr(data-label); font-weight: 600; text-align: left; color: #64748b; }
}
