:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #5f6b7a;
    --line: #dce3ea;
    --paper: #ffffff;
    --soft: #f4f7f8;
    --brand: #0f766e;
    --brand-dark: #123f3c;
    --accent: #d99f2b;
    --shadow: 0 18px 45px rgba(20, 42, 56, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}

img, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); max-width: 980px; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
h3 { font-size: 1.18rem; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(220,227,234,.8);
    backdrop-filter: blur(16px);
}
.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}
.brand strong { display: block; font-size: 1rem; color: var(--ink); }
.brand small { display: block; color: var(--brand); font-weight: 700; font-size: .78rem; }
.main-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.main-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: 6px;
    color: #334155;
    font-weight: 700;
    font-size: .92rem;
}
.main-menu a:hover { background: var(--soft); color: var(--brand); }
.main-menu .admin-nav-link {
    background: var(--brand);
    color: #fff;
}
.main-menu .admin-nav-link:hover {
    background: var(--brand-dark);
    color: #fff;
}
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 5px auto;
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../assets/images/hero.png') center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(9,28,37,.92), rgba(16,62,65,.72) 48%, rgba(16,62,65,.25));
}
.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 70px;
    color: #fff;
}
.hero-copy {
    color: #dbe7e8;
    max-width: 710px;
    margin-top: 22px;
    font-size: 1.15rem;
}
.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 6px;
    font-weight: 800;
    border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #1f2933; }
.btn.secondary { color: #fff; border-color: rgba(255,255,255,.42); }
.btn.danger { background: #dc2626; color: #fff; }
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    gap: 1px;
    padding: 0;
    margin: 54px 0 0;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    overflow: hidden;
}
.trust-strip div { padding: 18px; background: rgba(255,255,255,.08); }
.trust-strip dt { font-weight: 900; font-size: 1.35rem; }
.trust-strip dd { margin: 4px 0 0; color: #d6e1e1; }

.section, .split-section, .contact-section, .quote-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0;
}
.muted {
    width: 100%;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: var(--soft);
}
.section-head {
    max-width: 780px;
    margin-bottom: 34px;
}
.section-head p:last-child { margin-top: 12px; font-size: 1.05rem; }
.service-grid, .values-grid, .video-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.service-card, .values-grid article, .video-card, .contact-grid > * {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.service-card { padding: 26px; }
.service-card i {
    color: var(--brand);
    font-size: 2rem;
    margin-bottom: 18px;
}
.service-card p, .values-grid p { margin-top: 12px; }

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 44px;
}
.split-section > div > p:not(.eyebrow) { margin-top: 16px; font-size: 1.05rem; }
.split-section img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    color: #334155;
    font-weight: 700;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 900;
}
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.values-grid h3, .values-grid p { padding-left: 22px; padding-right: 22px; }
.values-grid h3 { padding-top: 22px; }
.values-grid p { padding-bottom: 24px; }

.quote-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.quote-band h2 { max-width: 780px; }
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 14px;
}
.reference-grid img {
    width: 100%;
    height: 94px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}
.more-references { margin-top: 22px; }
.more-references summary {
    cursor: pointer;
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-weight: 800;
}
.more-references .reference-grid { margin-top: 18px; }

.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { padding: 18px; }
.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    margin-top: 14px;
    border-radius: 6px;
}
.contact-section { text-align: center; }
.contact-section .section-head { margin-left: auto; margin-right: auto; }
.contact-grid > * {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 170px;
    padding: 24px;
}
.contact-grid i { color: var(--brand); font-size: 2rem; }
.contact-grid span { color: var(--muted); }
.contact-grid strong {
    max-width: 100%;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.site-footer {
    background: #10201f;
    color: #fff;
    padding: 50px max(16px, calc((100vw - 1180px) / 2)) 28px;
}
.site-footer p, .site-footer a { color: #cad7d6; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr .7fr;
    gap: 30px;
}
.social-links a { font-size: 2rem; margin-right: 14px; }
.legal-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 22px;
}
.legal-line button {
    border: 0;
    background: transparent;
    color: #d99f2b;
    font-weight: 800;
    cursor: pointer;
}
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(4, 15, 18, .72);
    padding: 24px;
}
.legal-modal.open { display: grid; place-items: center; }
.legal-panel {
    width: min(720px, 100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    position: relative;
}
.legal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
}
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.offline-save-notice {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1000;
    max-width: min(520px, calc(100% - 28px));
    transform: translate(-50%, 20px);
    padding: 12px 16px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    box-shadow: var(--shadow);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.offline-save-notice.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.admin-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 58px 0;
}
.admin-hero h1 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 4rem);
}
.admin-hero p:not(.eyebrow) {
    max-width: 780px;
    margin-top: 16px;
    font-size: 1.08rem;
}
.admin-hero .btn.secondary {
    color: var(--brand-dark);
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.admin-workspace {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.upload-panel,
.comparison-stage,
.issue-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.upload-panel,
.issue-panel { padding: 18px; }
.upload-box {
    display: grid;
    gap: 8px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px dashed #9aa9b7;
    border-radius: 8px;
    background: #f8fafb;
    cursor: pointer;
}
.upload-box span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}
.upload-box strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}
.upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.control-group {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}
.control-group label,
.alignment-controls label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #334155;
    font-size: .92rem;
    font-weight: 800;
}
.control-group input,
.alignment-controls input { width: 100%; }
.alignment-controls {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin: 16px 0;
}
.alignment-controls summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 12px;
}
.alignment-controls label {
    display: grid;
    margin-top: 12px;
}
.admin-run,
.admin-clear { width: 100%; margin-top: 10px; }
.admin-clear {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}
.comparison-stage { overflow: hidden; }
.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.canvas-toolbar strong,
.canvas-toolbar span { display: block; }
.canvas-toolbar span {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 3px;
}
.canvas-toolbar button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}
#comparisonCanvas {
    display: block;
    width: 100%;
    min-height: 480px;
    background:
        linear-gradient(45deg, #eef2f4 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f4 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f4 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.issue-panel {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 116px);
    overflow: auto;
}
.issue-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
}
.issue-panel-head strong {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}
.issue-list {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}
.issue-item {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    padding: 12px;
    background: #fffdfa;
    font: inherit;
}
.issue-item.missing { border-left-color: #dc2626; }
.issue-item.extra { border-left-color: #2563eb; }
.issue-item.shift { border-left-color: #d99f2b; }
.issue-item strong {
    display: block;
    color: var(--ink);
}
.issue-item span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    margin-top: 5px;
}
.empty-state {
    padding: 18px;
    border-radius: 8px;
    background: var(--soft);
    text-align: center;
}

.workflow-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 54px 0;
}
.workflow-hero h1 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 4rem);
}
.workflow-hero p:not(.eyebrow) {
    max-width: 820px;
    margin-top: 16px;
    font-size: 1.08rem;
}
.workflow-hero .btn.secondary {
    color: var(--brand-dark);
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.workflow-alert {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid #f2c76e;
    border-radius: 8px;
    background: #fff8e6;
    color: #6f4d00;
    font-weight: 800;
}
.urgent-notification-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #fecaca;
    border-left: 6px solid #dc2626;
    border-radius: 8px;
    background: #fff1f2;
    box-shadow: var(--shadow);
}
.urgent-notification-panel div {
    display: grid;
    gap: 2px;
}
.urgent-notification-panel strong {
    color: #7f1d1d;
    font-size: .95rem;
}
.urgent-notification-panel span {
    color: #991b1b;
    font-size: .84rem;
    font-weight: 800;
}
.admin-menu {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 7px;
}
.admin-menu a {
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: var(--shadow);
}
.admin-menu a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.layout-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 190px;
    min-height: 34px;
    padding: 4px 8px 4px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 950;
    box-shadow: var(--shadow);
}
.layout-user-chip img,
.layout-user-chip b {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 999px;
}
.layout-user-chip img {
    object-fit: cover;
}
.layout-user-chip b {
    display: grid;
    place-items: center;
    background: #0f766e;
    color: #fff;
    font-size: .82rem;
}
.layout-user-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layout-user-chip .online-dot {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
}
.layout-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}
.import-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.import-sidebar,
.import-unified-panel,
.import-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
}
.import-machine-grid {
    display: grid;
    gap: 8px;
}
.import-machine-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
.import-machine-card strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.import-machine-card span,
.import-machine-card small {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 900;
}
.import-machine-card small {
    grid-column: 1 / -1;
}
.import-machine-card.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(24, 120, 105, .14);
}
.import-machine-card.import-done:not(.active) {
    opacity: .45;
}
.import-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.import-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.import-form {
    display: grid;
    gap: 10px;
}
.import-form textarea {
    width: 100%;
    min-width: 0;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    padding: 12px;
    font: 800 .88rem/1.45 Consolas, "Courier New", monospace;
    white-space: pre;
    overflow: auto;
}
.import-current-state {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 900;
}
.import-current-state b {
    color: var(--ink);
}
.deformed-photo-update-field {
    grid-column: span 2;
}
.login-split-page,
.profile-page,
.users-page,
.reports-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    gap: 18px;
    align-items: start;
}
.login-split-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 24px;
}
.login-panel,
.profile-card,
.profile-form,
.user-list-panel,
.reports-filter,
.report-clear-form,
.report-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
}
.login-panel,
.profile-form,
.reports-filter {
    display: grid;
    gap: 12px;
}
.login-panel label,
.profile-form label,
.reports-filter label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: .82rem;
    font-weight: 900;
}
.login-panel input,
.profile-form input,
.profile-form textarea,
.reports-filter input,
.reports-filter select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
}
.profile-page {
    grid-template-columns: 300px minmax(0, 1fr);
}
.profile-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}
.profile-card img,
.profile-placeholder {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}
.profile-placeholder {
    display: grid;
    place-items: center;
    background: #0f766e;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 950;
}
.online-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px #fff;
}
.online-dot.online {
    background: #16a34a;
}
.profile-card .online-dot {
    position: absolute;
    right: 22px;
    top: 22px;
}
.users-page {
    grid-template-columns: 360px minmax(0, 1fr);
}
.user-row,
.report-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    min-width: 0;
}
.user-row strong,
.user-row span,
.report-row * {
    min-width: 0;
    overflow-wrap: anywhere;
}
.reports-filter {
    grid-template-columns: 170px 220px minmax(180px, 1fr) auto auto;
    align-items: end;
}
.report-clear-form {
    display: flex;
    justify-content: flex-end;
}
.report-list {
    display: grid;
    gap: 10px;
}
.report-row {
    grid-template-columns: 150px 130px 90px 160px minmax(0, 1fr) auto;
}
.report-row p {
    margin: 0;
    color: var(--muted);
}
.panel-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    justify-items: end;
    gap: 8px;
}
.panel-chat-toggle {
    min-width: 132px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    padding: 8px 14px;
    font-weight: 950;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .25);
    cursor: pointer;
}
.panel-chat-toggle b {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
}
.panel-chat-box {
    width: min(360px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 110px));
    display: grid;
    grid-template-rows: auto minmax(170px, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .28);
}
.panel-chat-box[hidden] {
    display: none;
}
.panel-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}
.panel-chat-head button {
    border: 0;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    padding: 6px 9px;
    font-size: .72rem;
    font-weight: 950;
    cursor: pointer;
}
.panel-chat-messages {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding: 10px;
}
.panel-chat-message {
    display: grid;
    gap: 5px;
    max-width: 88%;
    justify-self: start;
    padding: 8px 9px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--ink);
}
.panel-chat-message.mine {
    justify-self: end;
    background: #dcfce7;
}
.panel-chat-message header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #334155;
    font-size: .72rem;
    font-weight: 950;
}
.panel-chat-message p {
    margin: 0;
    font-size: .86rem;
    overflow-wrap: anywhere;
}
.panel-chat-message img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 7px;
}
.panel-chat-message small {
    color: #64748b;
    font-size: .66rem;
    font-weight: 850;
}
.panel-chat-form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}
.panel-chat-form textarea,
.panel-chat-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    font: inherit;
}
.panel-chat-form label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 900;
}
.workflow-layout {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}
.manager-layout {
    grid-template-columns: 330px minmax(0, 1fr);
}
.personnel-page,
.single-panel-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    gap: 18px;
    align-items: start;
}
.personnel-page {
    grid-template-columns: 320px minmax(0, 1fr);
}
.single-panel-page {
    grid-template-columns: 1fr;
}
.workflow-create-panel,
.workflow-main,
.personnel-panel,
.task-board {
    min-width: 0;
}
.workflow-create-panel,
.task-board,
.personnel-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.workflow-create-panel,
.personnel-panel {
    padding: 18px;
}
.task-board { padding: 18px; }
.panel-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.panel-title span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.panel-title strong {
    color: var(--ink);
    text-align: right;
}
.task-form,
.person-switcher,
.person-task form {
    display: grid;
    gap: 14px;
}
.task-form label,
.person-switcher label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 800;
    font-size: .92rem;
}
.task-form input,
.task-form textarea,
.task-form select,
.person-switcher select,
.status-form select,
.person-task select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
}
.task-form textarea {
    resize: vertical;
}
.task-form small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}
.task-form fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.task-form legend {
    padding: 0 6px;
    color: #334155;
    font-weight: 900;
}
.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    font-weight: 700 !important;
}
.check-row input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px;
    accent-color: #16a34a;
}
.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.workflow-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.summary-card {
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}
.summary-card.active {
    outline: 3px solid rgba(17, 94, 89, .22);
    border-color: var(--brand);
}
.summary-card span {
    color: var(--muted);
    font-weight: 900;
}
.summary-card strong {
    font-size: 2.1rem;
    line-height: 1;
}
.task-list,
.person-task-list {
    display: grid;
    gap: 14px;
}
.task-card,
.person-task {
    min-width: 0;
    border: 1px solid var(--line);
    border-left: 8px solid #d99f2b;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}
.task-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}
.task-card h2 {
    font-size: 1.32rem;
    margin-top: 8px;
    overflow-wrap: anywhere;
}
.task-card p {
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}
.status-form {
    min-width: 160px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff4c2;
    color: #6a4b00;
    font-size: .8rem;
    font-weight: 900;
}
.task-photo {
    display: inline-block;
    margin: 4px 0 14px;
}
.task-photo img {
    width: 210px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.task-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.task-meta div {
    padding: 10px;
    border-radius: 6px;
    background: var(--soft);
}
.task-meta dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}
.task-meta dd {
    margin: 3px 0 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.person-task h3 {
    margin-top: 10px;
    overflow-wrap: anywhere;
}
.person-task p {
    margin: 8px 0 12px;
    overflow-wrap: anywhere;
}
.person-task button {
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    padding: 11px 12px;
    font-weight: 900;
    cursor: pointer;
}
.status-pending {
    border-left-color: #f2c94c;
    background: #fffdf0;
}
.status-urgent {
    border-left-color: #dc2626;
    background: #fff5f5;
}
.status-inprogress {
    border-left-color: #2563eb;
    background: #f4f8ff;
}
.status-completed {
    border-left-color: #16a34a;
    background: #f4fff7;
}
.status-onhold {
    border-left-color: #64748b;
    background: #f8fafc;
}
.status-urgent .status-pill {
    background: #fee2e2;
    color: #991b1b;
}
.status-inprogress .status-pill {
    background: #dbeafe;
    color: #1d4ed8;
}
.status-completed .status-pill {
    background: #dcfce7;
    color: #166534;
}
.status-onhold .status-pill {
    background: #e2e8f0;
    color: #334155;
}
.compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ledger-list {
    gap: 8px;
}
.ledger-task {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-left-width: 6px;
}
.ledger-main {
    display: grid;
    grid-template-columns: minmax(90px, auto) minmax(160px, 1.4fr) minmax(90px, .7fr) minmax(140px, 1fr) 92px 92px;
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.ledger-main strong,
.ledger-main span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ledger-task p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ledger-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.ledger-photo-strip,
.deformed-photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px;
}
.ledger-photo-link {
    color: var(--brand-dark);
    font-weight: 900;
}
.ledger-photo-preview {
    position: relative;
    display: inline-grid;
    width: 72px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0f172a;
    flex: 0 0 auto;
}
.ledger-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ledger-photo-preview span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    padding: 3px 4px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    text-align: center;
}
.postponed-note {
    display: block;
    margin-top: 2px;
    color: #b45309;
    font-size: .72rem;
    font-weight: 950;
    white-space: normal;
}
.ledger-edit-form {
    display: grid;
    grid-template-columns: minmax(120px, 1.1fr) minmax(170px, 1.6fr) repeat(4, minmax(104px, .9fr));
    gap: 8px;
    align-items: end;
}
.ledger-edit-form label,
.ledger-edit-form fieldset {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: .76rem;
    font-weight: 900;
}
.ledger-edit-form input,
.ledger-edit-form textarea,
.ledger-edit-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 8px 9px;
    font: inherit;
}
.ledger-edit-form textarea {
    resize: vertical;
}
.ledger-edit-form fieldset {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    padding: 8px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.ledger-edit-form legend {
    padding: 0 5px;
}
.ledger-description-field {
    grid-column: span 2;
}
.ledger-delete-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.deformed-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.deformed-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    margin-bottom: 16px;
}
.deformed-search input,
.deformed-record input,
.deformed-record select,
.deformed-record textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 10px 11px;
    font: inherit;
}
.deformed-record textarea {
    resize: vertical;
}
.deformed-record-list {
    display: grid;
    gap: 10px;
}
.deformed-record {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 6px solid #16a34a;
    border-radius: 8px;
    background: #fff;
}
.deformed-record label,
.deformed-record fieldset {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: .78rem;
    font-weight: 900;
}
.deformed-record fieldset {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    padding: 8px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.deformed-record legend {
    padding: 0 5px;
}
.deformed-note-field {
    grid-column: span 2;
}
.deformed-photo-strip {
    grid-column: span 2;
}
.deformed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.deformed-actions .btn {
    min-height: 42px;
    padding: 10px 14px;
}
.deformed-section {
    width: min(1480px, calc(100% - 32px));
    margin: -44px auto 80px;
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.deformed-create-panel,
.deformed-list-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.deformed-form {
    grid-template-columns: 1fr;
}
.deformed-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.deformed-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.deformed-table th,
.deformed-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.deformed-table th {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.deformed-table tr:last-child td {
    border-bottom: 0;
}
.deformed-status-worked td:first-child {
    border-left: 6px solid #16a34a;
}
.deformed-status-failed td:first-child {
    border-left: 6px solid #dc2626;
}
.deformed-record.deformed-status-failed {
    border-left-color: #dc2626;
    background: #fff8f8;
}
.deformed-record.deformed-arrived {
    border-left-color: #16a34a;
    background: #e8fbe8;
}
.admin-quick-actions {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.klise-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.klise-sidebar,
.klise-paste-panel,
.klise-list-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.machine-tabs {
    display: grid;
    gap: 8px;
}
.machine-tabs a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    min-width: 0;
    overflow-wrap: anywhere;
}
.machine-tab-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.machine-tabs strong {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
}
.machine-tabs a.active {
    border-color: var(--brand);
    background: #edfafa;
}
.machine-tabs span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}
.machine-count-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.machine-count-row b {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .68rem;
    font-weight: 950;
}
.machine-count-row .machine-count-delivered {
    background: #dcfce7;
    color: #166534;
}
.machine-count-row .machine-count-pending {
    background: #fef3c7;
    color: #b91c1c;
}
.machine-count-row .machine-count-unavailable {
    background: #7f1d1d;
    color: #fff;
}
.machine-count-row .machine-count-hold {
    background: #e0f2fe;
    color: #075985;
}
.machine-count-row .machine-count-warning {
    background: #ffedd5;
    color: #9a3412;
}
.machine-mini-progress {
    position: relative;
    width: 40px;
    min-height: 58px;
    align-self: stretch;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
}
.machine-mini-progress i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    min-height: 0;
    background: #16a34a;
}
.machine-mini-progress b {
    position: relative;
    z-index: 1;
    color: #0f172a;
    font-size: .68rem;
    font-weight: 950;
}
.klise-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.prep-print-link {
    width: 100%;
    min-height: 38px;
    margin: 0 0 12px;
}
.paste-collapsible {
    padding: 0;
    overflow: hidden;
}
.paste-collapsible summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.paste-collapsible summary::-webkit-details-marker {
    display: none;
}
.paste-collapsible summary::after {
    content: "Ac";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .76rem;
    font-weight: 950;
}
.paste-collapsible[open] summary {
    border-bottom: 1px solid var(--line);
}
.paste-collapsible[open] summary::after {
    content: "Kapat";
    background: #64748b;
}
.paste-collapsible summary span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.paste-collapsible summary strong {
    color: var(--ink);
    font-size: 1rem;
}
.paste-collapsible-body {
    padding: 16px 18px 18px;
}
.klise-paste-form {
    display: grid;
    gap: 12px;
}
.klise-paste-form textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: 0.9rem/1.45 Consolas, monospace;
}
.klise-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.klise-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}
.klise-table th,
.klise-table td {
    padding: 5px 5px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: .7rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.klise-table th {
    color: var(--muted);
    font-size: .63rem;
    font-weight: 900;
    text-transform: uppercase;
}
.klise-table th:nth-child(1),
.klise-table td:nth-child(1) { width: 48px; }
.klise-table th:nth-child(2),
.klise-table td:nth-child(2) { width: 38px; }
.klise-table th:nth-child(3),
.klise-table td:nth-child(3),
.klise-table th:nth-child(4),
.klise-table td:nth-child(4) { width: 66px; }
.klise-table th:nth-child(5),
.klise-table td:nth-child(5),
.klise-table th:nth-child(6),
.klise-table td:nth-child(6),
.klise-table th:nth-child(7),
.klise-table td:nth-child(7) { width: 74px; }
.klise-table th:nth-child(14),
.klise-table td:nth-child(14) { width: 92px; }
.klise-pending.klise-odd td {
    background: #fffbe8;
}
.klise-pending.klise-even td {
    background: #fde68a;
}
.klise-delivered.klise-odd td {
    background: #e8fbe8;
}
.klise-delivered.klise-even td {
    background: #d6f6d6;
}
.klise-time-near td {
    background: #ffe8e8;
}
.klise-mark-unavailable td {
    background: #fee2e2;
}
.klise-mark-hold td {
    background: #e0f2fe;
}
.klise-mark-warning td {
    background: #ffedd5;
}
.klise-mark-cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.klise-primary-mark-form {
    margin: 0;
}
.klise-check {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #64748b;
    border-radius: 6px;
    background: #fff;
    color: #166534;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}
.klise-delivered .klise-mark-button {
    border-color: #16a34a;
    background: #bbf7d0;
}
.klise-mark-unavailable .klise-mark-button {
    border-color: #7f1d1d;
    background: #fecaca;
    color: #7f1d1d;
}
.klise-mark-hold .klise-mark-button {
    border-color: #0284c7;
    background: #bae6fd;
    color: #075985;
}
.klise-mark-warning .klise-mark-button {
    border-color: #f97316;
    background: #fed7aa;
    color: #9a3412;
}
.klise-kasa-note-form {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    max-width: 132px;
    margin: 0;
}
.klise-kasa-note-form input {
    width: 78px;
    min-width: 0;
    height: 26px;
    border: 1px solid #94a3b8;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    padding: 2px 4px;
    font-size: .62rem;
    font-weight: 850;
}
.klise-kasa-note-form button {
    min-width: 28px;
    height: 26px;
    border: 0;
    border-radius: 5px;
    background: #334155;
    color: #fff;
    padding: 0 4px;
    font-size: .52rem;
    font-weight: 950;
    cursor: pointer;
}
.klise-mark-panel {
    position: absolute;
    left: 0;
    top: 34px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 5px;
    padding: 6px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
}
.klise-mark-panel[hidden] {
    display: none;
}
.klise-mark-panel form {
    margin: 0;
}
.klise-mark-panel button {
    min-width: 32px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 950;
    cursor: pointer;
}
.klise-mold-no {
    display: block;
    margin-top: 3px;
    color: #7c2d12;
    font-size: .72rem;
    font-weight: 950;
}
.klise-lak-location {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    padding: 2px 5px;
    border-radius: 6px;
    background: #0f172a;
    color: #fff;
    font-size: .62rem;
    font-weight: 950;
    line-height: 1.1;
}
.klise-print-no {
    color: #0f172a;
    font-size: .95rem;
    font-weight: 950;
    letter-spacing: 0;
}
.klise-repeat-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-top: 3px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: .62rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}
.klise-detail-lines {
    display: grid;
    gap: 5px;
    font-family: Consolas, monospace;
}
.klise-detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 5px 8px;
    align-items: center;
}
.klise-detail-row span {
    color: #475569;
    font-size: .78rem;
}
.klise-kasa-note-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.klise-location-line {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid #38bdf8;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0f172a !important;
    font-size: .92rem !important;
    font-weight: 950;
}
.klise-kasa-location-line {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid #64748b;
    border-radius: 6px;
    background: #f8fafc;
    color: #111827 !important;
    font-size: .88rem !important;
    font-weight: 950;
}
.klise-time {
    display: block;
    font-weight: 800;
}
.klise-time-warning {
    display: inline-flex;
    margin-top: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 950;
    white-space: nowrap;
}
.klise-warning-form {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}
.klise-warning-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}
.klise-warning-form select {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 9px;
    font-weight: 900;
}
.klise-table tr:target td {
    outline: 2px solid rgba(17, 94, 89, .3);
    outline-offset: -2px;
}
.klise-detail pre {
    margin: 0;
    white-space: pre-wrap;
    font: .8rem/1.45 Consolas, monospace;
    color: #475569;
}
.transfer-panel {
    display: grid;
    gap: 7px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-left-width: 5px;
    border-radius: 8px;
    background: #fffbeb;
}
.transfer-panel > strong {
    color: #92400e;
    font-size: .86rem;
    font-weight: 950;
}
.transfer-panel p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin: 0;
    color: #475569;
    font-size: .8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.transfer-panel b {
    color: #0f172a;
    font-weight: 950;
}
.transfer-print-no {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 950;
}
.transfer-extra {
    flex-basis: 100%;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 6px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 900;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ink-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.ink-sidebar,
.ink-paste-panel,
.ink-list-panel,
.ink-order {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.ink-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.ink-paste-form {
    display: grid;
    gap: 12px;
}
.ink-paste-form textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: 0.9rem/1.45 Consolas, monospace;
}
.ink-warning-form {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 12px;
}
.ink-warning-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}
.ink-warning-form select {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 9px;
    font-weight: 900;
}
.ink-order-list {
    display: grid;
    gap: 10px;
}
.ink-order {
    position: relative;
    padding: 10px;
}
.ink-repeat-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: min(52%, 420px);
}
.ink-repeat-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: .68rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}
.ink-pending {
    background: #fff9d8;
}
.ink-ready {
    background: #e8fbe8;
}
.ink-warning {
    background: #ffe8e8;
    border-color: #fca5a5;
}
.ink-order-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-bottom: 9px;
}
.ink-order-state {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #64748b;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: .68rem;
    font-weight: 900;
}
.ink-ready .ink-order-state {
    border-color: #16a34a;
    background: #bbf7d0;
    color: #166534;
}
.ink-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
}
.ink-order-meta span {
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ink-print-no,
.ink-color-code {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 950;
    letter-spacing: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ink-time {
    color: #0f172a !important;
}
.ink-time-warning {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 950;
    white-space: nowrap;
}
.ink-colors-form {
    display: grid;
    gap: 9px;
}
.ink-color-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.ink-color-box {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}
.ink-color-repeat {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #111827;
    color: #fff !important;
    font-size: .58rem !important;
    font-weight: 950;
    line-height: 1;
    text-transform: none !important;
    white-space: nowrap;
}
.ink-color-ready {
    border-color: #16a34a;
    background: #dcfce7;
}
.ink-color-empty {
    opacity: .55;
}
.ink-color-box span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 950;
    text-transform: uppercase;
}
.ink-color-box em {
    min-height: 16px;
    color: #475569;
    font-size: .76rem;
    font-style: normal;
    font-weight: 800;
}
.ink-color-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}
.ink-color-box input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 8px;
    background: #fff;
    font-weight: 900;
}
.ink-color-check {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: .76rem;
    font-weight: 900;
    white-space: nowrap;
}
.ink-color-check input {
    width: 16px;
    height: 16px;
    accent-color: #16a34a;
}
.ink-save-kg {
    justify-self: end;
    min-height: 32px;
    padding: 7px 10px;
    font-size: .78rem;
}
.ink-order:target {
    outline: 2px solid rgba(17, 94, 89, .3);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .nav-shell { height: 70px; }
    .menu-toggle { display: block; }
    .main-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 10px;
    }
    .main-menu.open { display: flex; }
    .main-menu a { padding: 12px; }
    .admin-nav-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .layout-user-chip {
        max-width: 100%;
        justify-content: flex-start;
    }
    .panel-chat-widget {
        right: 10px;
        bottom: 72px;
    }
    .panel-chat-toggle {
        min-width: 112px;
        min-height: 38px;
        padding: 7px 11px;
        font-size: .82rem;
    }
    .panel-chat-box {
        width: min(340px, calc(100vw - 20px));
        max-height: min(560px, calc(100vh - 120px));
    }
    .service-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-section { grid-template-columns: 1fr; }
    .video-grid, .values-grid, .footer-grid { grid-template-columns: 1fr; }
    .admin-workspace { grid-template-columns: 1fr; }
    .issue-panel { position: static; max-height: none; }
    .workflow-layout,
    .manager-layout,
    .personnel-page,
    .klise-page,
    .ink-page,
    .import-page,
    .login-split-page,
    .profile-page,
    .users-page { grid-template-columns: 1fr; }
    .import-split { grid-template-columns: 1fr; }
    .reports-filter,
    .report-row,
    .user-row { grid-template-columns: 1fr; }
    .ink-color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .deformed-section,
    .deformed-page { grid-template-columns: 1fr; }
    .workflow-create-panel,
    .personnel-panel {
        position: static;
        max-height: none;
    }
    .workflow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .task-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .task-card-head {
        display: grid;
        gap: 12px;
    }
    .status-form {
        min-width: 0;
        width: 100%;
    }
    .ledger-main,
    .ledger-edit-form,
    .deformed-record {
        grid-template-columns: 1fr;
    }
    .ledger-actions {
        justify-content: stretch;
    }
    .ledger-description-field,
    .deformed-note-field,
    .deformed-photo-update-field,
    .deformed-photo-strip {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .brand { min-width: 0; }
    .brand small { display: none; }
    .hero { min-height: 690px; }
    .hero::after { background: linear-gradient(180deg, rgba(9,28,37,.9), rgba(16,62,65,.76)); }
    .hero-content { padding: 58px 0 46px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .urgent-notification-panel {
        display: grid;
        align-items: stretch;
    }
    .trust-strip { grid-template-columns: 1fr; margin-top: 34px; }
    .section, .split-section, .contact-section, .quote-band { padding: 64px 0; }
    .quote-band { display: grid; }
    .service-grid, .contact-grid { grid-template-columns: 1fr; }
    .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.7rem; }
    .admin-hero {
        display: grid;
        min-height: auto;
        padding: 42px 0;
    }
    .canvas-toolbar { display: grid; }
    .workflow-hero {
        display: grid;
        min-height: auto;
        padding: 42px 0;
        width: min(100% - 20px, 100%);
    }
    .workflow-alert,
    .admin-menu,
    .workflow-layout,
    .personnel-page,
    .single-panel-page,
    .klise-page,
    .ink-page,
    .import-page,
    .login-split-page,
    .profile-page,
    .users-page,
    .reports-page,
    .deformed-section,
    .deformed-page {
        width: min(100% - 20px, 100%);
    }
    .admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .admin-menu a {
        min-height: 32px;
        padding: 6px;
        font-size: .72rem;
    }
    .workflow-create-panel,
    .task-board,
    .personnel-panel,
    .klise-sidebar,
    .klise-paste-panel,
    .klise-list-panel,
    .import-sidebar,
    .import-unified-panel,
    .import-panel,
    .deformed-create-panel,
    .deformed-list-panel {
        padding: 14px;
    }
    .paste-collapsible {
        padding: 0;
    }
    .paste-collapsible summary {
        min-height: 48px;
        padding: 12px 14px;
    }
    .paste-collapsible-body {
        padding: 14px;
    }
    .deformed-search {
        grid-template-columns: 1fr;
    }
    .ledger-task p,
    .ledger-main strong,
    .ledger-main span {
        white-space: normal;
    }
    .panel-title {
        display: grid;
        gap: 4px;
    }
    .panel-title strong {
        text-align: left;
    }
    .form-grid-two,
    .workflow-summary,
    .task-meta {
        grid-template-columns: 1fr;
    }
    .task-card-head {
        display: grid;
    }
    .status-form {
        min-width: 0;
        width: 100%;
    }
    .task-photo,
    .task-photo img {
        width: 100%;
        max-width: 280px;
    }
    .deformed-section {
        margin-top: -46px;
    }
    .deformed-table {
        min-width: 0;
    }
    .deformed-table thead {
        display: none;
    }
    .deformed-table,
    .deformed-table tbody,
    .deformed-table tr,
    .deformed-table td {
        display: block;
        width: 100%;
    }
    .deformed-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .deformed-table tr:last-child {
        border-bottom: 0;
    }
    .deformed-table td {
        display: grid;
        grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 0;
    }
    .deformed-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 900;
    }
    .klise-table-wrap {
        margin-inline: -12px;
        padding-inline: 0;
    }
    .klise-table {
        min-width: 560px;
        table-layout: fixed;
    }
    .klise-table thead {
        display: table-header-group;
    }
    .klise-table,
    .klise-table tbody {
        width: 100%;
    }
    .klise-table {
        display: table;
    }
    .klise-table tbody {
        display: table-row-group;
    }
    .klise-table tr {
        display: table-row;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }
    .klise-table td,
    .klise-table th {
        display: table-cell;
        width: auto;
        padding: 2px 1px;
        font-size: .46rem;
        line-height: 1.05;
        border-bottom: 1px solid var(--line);
        vertical-align: top;
    }
    .klise-table th {
        font-size: .43rem;
        line-height: 1.05;
    }
    .klise-table td::before {
        content: none;
    }
    .klise-table th:nth-child(1),
    .klise-table td:nth-child(1),
    .klise-table th:nth-child(2),
    .klise-table td:nth-child(2) { width: 21px; }
    .klise-table th:nth-child(3),
    .klise-table td:nth-child(3) { width: 19px; }
    .klise-table th:nth-child(4),
    .klise-table td:nth-child(4),
    .klise-table th:nth-child(5),
    .klise-table td:nth-child(5) { width: 39px; }
    .klise-table th:nth-child(6),
    .klise-table td:nth-child(6),
    .klise-table th:nth-child(7),
    .klise-table td:nth-child(7),
    .klise-table th:nth-child(8),
    .klise-table td:nth-child(8) { width: 45px; }
    .klise-table th:nth-child(14),
    .klise-table td:nth-child(14) { width: 48px; }
    .klise-check {
        width: 18px;
        height: 18px;
        border-width: 1px;
        border-radius: 4px;
        font-size: .46rem;
    }
    .klise-print-no {
        font-size: .54rem;
    }
    .klise-mold-no {
        margin-top: 1px;
        font-size: .46rem;
        line-height: 1;
    }
    .klise-lak-location {
        margin-top: 1px;
        padding: 1px 2px;
        border-radius: 4px;
        font-size: .42rem;
        line-height: 1;
    }
    .klise-time {
        font-size: .43rem;
        line-height: 1.05;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .klise-detail td:first-child {
        display: table-cell;
    }
    .klise-detail.klise-pending.klise-odd td { background: #fffbe8; }
    .klise-detail.klise-pending.klise-even td { background: #fde68a; }
    .klise-detail.klise-delivered.klise-odd td { background: #e8fbe8; }
    .klise-detail.klise-delivered.klise-even td { background: #d6f6d6; }
    .klise-detail.klise-time-near td { background: #ffe8e8; }
    .klise-detail-row {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 4px;
    }
    .klise-detail-row span {
        min-width: 0;
        font-size: .5rem;
    }
    .klise-location-line {
        min-height: 16px;
        padding: 1px 3px;
        font-size: .56rem !important;
        justify-content: flex-start;
        text-align: left;
    }
    .klise-kasa-note-wrap {
        gap: 2px;
        max-width: 100%;
    }
    .klise-kasa-location-line {
        min-height: 16px;
        padding: 1px 3px;
        font-size: .54rem !important;
    }
    .klise-kasa-note-form {
        gap: 2px;
        max-width: 96px;
    }
    .klise-kasa-note-form input {
        width: 54px;
        height: 20px;
        padding: 1px 3px;
        font-size: .5rem;
    }
    .klise-kasa-note-form button {
        min-width: 24px;
        height: 20px;
        padding: 0 3px;
        font-size: .42rem;
    }
    .klise-time-warning {
        padding: 1px 3px;
        font-size: .4rem;
        white-space: normal;
    }
    .klise-warning-form {
        justify-content: stretch;
    }
    .klise-warning-form label,
    .klise-warning-form select {
        width: 100%;
    }
    .klise-warning-form label {
        display: grid;
        gap: 6px;
    }
    .ink-sidebar,
    .ink-paste-panel,
    .ink-list-panel {
        padding: 14px;
    }
    .paste-collapsible {
        padding: 0;
    }
    .ink-warning-form {
        justify-content: stretch;
    }
    .ink-warning-form label,
    .ink-warning-form select {
        width: 100%;
    }
    .ink-warning-form label {
        display: grid;
        gap: 6px;
    }
    .ink-repeat-badges {
        position: static;
        justify-content: flex-start;
        max-width: none;
        margin-bottom: 7px;
    }
    .ink-repeat-badges span {
        font-size: .62rem;
    }
    .ink-order-head {
        grid-template-columns: 30px minmax(0, 1fr);
    }
    .ink-order-meta {
        gap: 5px 8px;
    }
    .ink-order-meta span,
    .ink-print-no,
    .ink-color-code,
    .ink-color-box em {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .ink-color-actions {
        grid-template-columns: 1fr;
    }
    .ink-color-check {
        justify-content: center;
        width: 100%;
    }
    .ink-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ink-save-kg {
        justify-self: stretch;
    }
    .deformed-status-worked td:first-child,
    .deformed-status-failed td:first-child {
        padding-left: 10px;
    }
}

@media print {
    body {
        background: #fff;
    }
    .site-header,
    .workflow-hero,
    .admin-menu,
    .workflow-create-panel,
    .no-print,
    .site-footer,
    .whatsapp-float,
    .ledger-actions,
    .workflow-summary {
        display: none !important;
    }
    .workflow-layout,
    .manager-layout,
    .personnel-page,
    .single-panel-page,
    .workflow-main,
    .task-board {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .task-card,
    .ledger-task {
        break-inside: avoid;
        border: 1px solid #999 !important;
        padding: 8px !important;
        box-shadow: none !important;
    }
    .ledger-main {
        grid-template-columns: 90px 1.4fr .8fr 1fr 90px 90px !important;
    }
}

.prep-print-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 60px;
    color: #111;
}
.prep-print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0;
}
.prep-print-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}
.prep-print-title strong {
    font-size: 1.35rem;
}
.prep-print-title span {
    font-weight: 800;
}
.prep-print-machine {
    margin: 0 0 18px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.prep-print-machine header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 9px;
    border: 2px solid #111;
    background: #f2f2f2;
    color: #111;
}
.prep-print-machine header strong {
    font-size: 1rem;
}
.prep-print-machine header span {
    font-weight: 900;
}
.prep-print-empty {
    margin: 0;
    padding: 8px;
    border: 1px solid #777;
    border-top: 0;
}
.prep-print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .68rem;
    line-height: 1.15;
}
.prep-print-table th,
.prep-print-table td {
    padding: 4px 4px;
    border: 1px solid #555;
    color: #111;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.prep-print-table th {
    background: #e6e6e6;
    font-size: .62rem;
    font-weight: 950;
    text-transform: uppercase;
}
.prep-print-table tbody tr:nth-child(even) td {
    background: #f7f7f7;
}
.prep-print-table strong {
    font-weight: 950;
}
.prep-print-klise th:nth-child(1),
.prep-print-klise td:nth-child(1) { width: 46px; }
.prep-print-klise th:nth-child(2),
.prep-print-klise td:nth-child(2) { width: 34px; }
.prep-print-klise th:nth-child(3),
.prep-print-klise td:nth-child(3),
.prep-print-klise th:nth-child(4),
.prep-print-klise td:nth-child(4) { width: 58px; }
.prep-print-klise th:nth-child(5),
.prep-print-klise td:nth-child(5),
.prep-print-klise th:nth-child(6),
.prep-print-klise td:nth-child(6),
.prep-print-klise th:nth-child(7),
.prep-print-klise td:nth-child(7) { width: 76px; }
.prep-print-klise th:nth-child(9),
.prep-print-klise td:nth-child(9) { width: 86px; }
.prep-print-ink th:nth-child(1),
.prep-print-ink td:nth-child(1) { width: 45px; }
.prep-print-ink th:nth-child(2),
.prep-print-ink td:nth-child(2) { width: 32px; }
.prep-print-ink th:nth-child(3),
.prep-print-ink td:nth-child(3),
.prep-print-ink th:nth-child(4),
.prep-print-ink td:nth-child(4),
.prep-print-ink th:nth-child(5),
.prep-print-ink td:nth-child(5) { width: 58px; }
.prep-print-ink th:nth-child(12),
.prep-print-ink td:nth-child(12) { width: 80px; }

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }
    * {
        color: #000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    body {
        background: #fff !important;
    }
    .prep-print-page {
        width: 100% !important;
        margin: 0 !important;
    }
    .prep-print-title {
        margin-top: 0;
    }
    .prep-print-machine {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .prep-print-machine header,
    .prep-print-table th,
    .prep-print-table tbody tr:nth-child(even) td {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
