* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: #161b22;
    color: #ffffff;
    font-family: "Segoe UI", sans-serif;
    display: flex;
}


/* =====================================================
SIDEBAR
===================================================== */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0d1117;
    border-right: 1px solid #30363d;
    padding: 25px;
    position: fixed;
    left: 0;
    top: 0;
}


.sidebar h2 {
    color: #58a6ff;
    margin-bottom: 30px;
    font-size: 26px;
}


.sidebar ul {
    list-style: none;
}


.sidebar li {
    margin-bottom: 10px;
}


.sidebar a {
    display: block;
    text-decoration: none;
    color: #c9d1d9;
    padding: 14px 18px;
    border-radius: 10px;
    transition: 0.25s;
    font-size: 16px;
}


.sidebar a:hover {
    background: #21262d;
    color: #58a6ff;
    transform: translateX(6px);
}


/* =====================================================
CANLI ARAMA
===================================================== */

#live-search {
    width: 100%;
    height: 48px;
    background: #161b22;
    color: #ffffff;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Segoe UI", sans-serif;
    outline: none;
    transition: 0.25s;
}


#live-search::placeholder {
    color: #7d8590;
}


#live-search:hover {
    border-color: #484f58;
    background: #1c2128;
}


#live-search:focus {
    background: #1c2128;
    border-color: #58a6ff;
    box-shadow:
        0 0 0 3px rgba(88, 166, 255, 0.15);
}


/* =====================================================
ANA ALAN
===================================================== */

.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 40px;
}


/* =====================================================
BAŞLIK
===================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}


.page-header h1 {
    font-size: 34px;
}


/* =====================================================
BUTONLAR
===================================================== */

.add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #238636;
    color: white;
    text-decoration: none;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}


.add-button:hover {
    background: #2ea043;
    transform: scale(1.03);
}


.edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f6feb;
    color: white;
    text-decoration: none;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}


.edit-button:hover {
    background: #388bfd;
    transform: scale(1.03);
}


.delete-button {
    background: #da3633;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}


.delete-button:hover {
    background: #f85149;
    transform: scale(1.04);
}


.small-action-button {
    background: transparent;
    color: #58a6ff;
    border: 1px solid #30363d;
    border-radius: 9px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}


.small-action-button:hover {
    background: #1f6feb;
    border-color: #1f6feb;
    color: white;
}


/* =====================================================
İŞ DETAY ÜST BUTONLARI
===================================================== */

.page-header > div:last-child > .edit-button,
.page-header > div:last-child > .add-button,
.page-header > div:last-child > form > .delete-button {
    width: 160px;
    height: 50px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.page-header > div:last-child > form {
    display: inline-block;
}


/* =====================================================
MÜŞTERİ / MAKİNE ÜST BUTONLARI
===================================================== */

.customer-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.customer-header-actions form {
    display: flex;
}


.customer-header-actions .edit-button,
.customer-header-actions .delete-button,
.customer-header-actions .add-button {
    width: 175px;
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
}


/* =====================================================
UYARI
===================================================== */

.error-message {
    background: rgba(218, 54, 51, 0.14);
    border: 1px solid #da3633;
    color: #ffb4b0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    font-weight: bold;
}


/* =====================================================
DASHBOARD KARTLARI
===================================================== */

.cards {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 35px;
}


.card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 18px;
    padding: 30px;
    transition: 0.25s;
}


.card:hover {
    transform: translateY(-6px);
    border-color: #58a6ff;
}


.card h2 {
    font-size: 36px;
    color: #58a6ff;
    word-break: break-word;
}


.card p {
    margin-top: 12px;
    color: #9ca3af;
}


/* =====================================================
GENEL KART
===================================================== */

.machine-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
    transition: 0.25s;
}


.machine-card:hover {
    border-color: #58a6ff;
}


.machine-card h2 {
    margin-bottom: 15px;
}


.machine-card a {
    text-decoration: none;
    color: #58a6ff;
    font-weight: bold;
}


.machine-card p {
    margin-top: 8px;
    color: #c9d1d9;
}


/* =====================================================
İŞ FİLTRELERİ
===================================================== */

.job-filter-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 20px;
}


.job-filter-grid label {
    display: block;
    color: #c9d1d9;
    font-weight: bold;
    margin-bottom: 8px;
}


.job-filter-grid input,
.job-filter-grid select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #161b22;
    color: white;
    border: 1px solid #30363d;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}


.job-filter-grid input:focus,
.job-filter-grid select:focus {
    border-color: #58a6ff;
    box-shadow:
        0 0 0 3px rgba(88, 166, 255, 0.12);
}


.job-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}


#job-result-count {
    color: #9ca3af;
    font-weight: bold;
}


/* =====================================================
İŞ LİSTESİ
===================================================== */

.job-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.job-list-card {
    cursor: pointer;
}


.job-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.job-list-path {
    color: #8b949e !important;
    font-size: 14px;
}


.job-list-info-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 5px 20px;
    margin-top: 15px;
}


.job-status-badge {
    flex-shrink: 0;
    min-width: 125px;
    padding: 9px 14px;
    border-radius: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}


.status-active {
    background: rgba(35, 134, 54, 0.18);
    color: #56d364;
    border: 1px solid #238636;
}


.status-completed {
    background: rgba(31, 111, 235, 0.18);
    color: #79c0ff;
    border: 1px solid #1f6feb;
}


.status-waiting {
    background: rgba(210, 153, 34, 0.16);
    color: #e3b341;
    border: 1px solid #9e6a03;
}


.status-cancelled {
    background: rgba(218, 54, 51, 0.15);
    color: #ff7b72;
    border: 1px solid #da3633;
}


/* =====================================================
KLASÖRLER
===================================================== */

.folder-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}


.folder-card {
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: 0.25s;
}


.folder-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    background: #252c35;
}


.folder-card h2 {
    color: #ffffff;
    margin-bottom: 7px;
}


.folder-card p {
    color: #9ca3af;
}


.folder-icon {
    font-size: 48px;
}


/* =====================================================
KLASÖR YÖNETİMİ
===================================================== */

.folder-manage-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.25s;
}


.folder-manage-card:hover {
    border-color: #58a6ff;
    transform: translateY(-4px);
}


.folder-main-link {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    color: white;
    text-decoration: none;
}


.folder-main-link h2 {
    color: white;
    margin-bottom: 7px;
}


.folder-main-link p {
    color: #9ca3af;
}


.folder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 18px 18px;
}


.folder-actions form {
    display: flex;
}


.folder-actions button {
    width: 100%;
}


.folder-edit-box {
    border-top: 1px solid #30363d;
    padding: 18px;
    background: #161b22;
}


/* =====================================================
İŞ NOTLARI
===================================================== */

.note-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 18px;
    transition: 0.25s;
}


.note-item:hover {
    border-color: #58a6ff;
}


.note-content {
    flex: 1;
}


.note-content p {
    margin: 0;
    color: #ffffff;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}


.note-date {
    display: block;
    margin-top: 10px;
    color: #7d8590;
    font-size: 13px;
}


.note-item form {
    flex-shrink: 0;
}


/* =====================================================
DOSYA SATIRLARI
===================================================== */

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
}


.file-row a {
    word-break: break-word;
}


.file-row form {
    flex-shrink: 0;
}


/* =====================================================
FORM
===================================================== */

form input,
form select,
form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #30363d;
    border-radius: 10px;
    margin-top: 8px;
    background: #2d3442;
    color: white;
    font-size: 15px;
}


form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #58a6ff;
}


form label {
    font-weight: bold;
}


.field-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


.quick-create-box {
    margin-top: 14px;
    padding: 18px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}


.quick-create-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
}


.quick-create-row .add-button {
    height: 48px;
    white-space: nowrap;
}


.form-message {
    min-height: 20px;
    margin-top: 10px;
    color: #58a6ff;
}


/* =====================================================
TARİH SEÇİMİ
===================================================== */

.date-select-row {
    display: grid;
    grid-template-columns:
        minmax(90px, 0.7fr)
        minmax(160px, 1.5fr)
        minmax(120px, 1fr);
    gap: 12px;
    margin-top: 8px;
}


.date-select-row select {
    margin-top: 0;
    cursor: pointer;
}


/* =====================================================
FOTOĞRAF GALERİSİ
===================================================== */

.photo-gallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}


.photo-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    overflow: hidden;
}


.photo-gallery a {
    display: block;
}


.job-photo {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.25s;
}


.job-photo:hover {
    transform: scale(1.03);
}


.photo-delete-button {
    width: calc(100% - 20px);
    margin: 10px;
}


/* =====================================================
TABLOLAR
===================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}


th {
    background: #21262d;
    padding: 15px;
    text-align: left;
}


td {
    padding: 15px;
    border-bottom: 1px solid #30363d;
}


tr:hover {
    background: #21262d;
}


/* =====================================================
AYIRICI
===================================================== */

hr {
    border: none;
    border-top: 1px solid #30363d;
}


/* =====================================================
SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 20px;
}


::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}


/* =====================================================
MOBİL
===================================================== */

@media (max-width: 800px) {

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }


    body {
        display: block;
    }


    .main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }


    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .customer-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }


    .customer-header-actions form {
        width: 100%;
    }


    .customer-header-actions .edit-button,
    .customer-header-actions .delete-button,
    .customer-header-actions .add-button {
        width: 100%;
    }


    .cards {
        grid-template-columns: 1fr;
    }


    .job-filter-grid {
        grid-template-columns: 1fr;
    }


    .job-filter-footer {
        align-items: stretch;
        flex-direction: column;
    }


    .job-filter-footer .small-action-button {
        width: 100%;
    }


    .job-list-header {
        flex-direction: column;
    }


    .job-status-badge {
        width: 100%;
    }


    .job-list-info-grid {
        grid-template-columns: 1fr;
    }


    .folder-grid {
        grid-template-columns: 1fr;
    }


    .date-select-row {
        grid-template-columns: 1fr;
    }


    .quick-create-row {
        grid-template-columns: 1fr;
    }


    .quick-create-row .add-button {
        width: 100%;
    }


    .note-item {
        align-items: flex-start;
        flex-direction: column;
    }


    .note-item form {
        width: 100%;
    }


    .note-item .delete-button {
        width: 100%;
    }


    .photo-gallery {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }


    .file-row form {
        width: 100%;
    }


    .file-row .delete-button {
        width: 100%;
    }


    .folder-actions {
        grid-template-columns: 1fr;
    }


    .edit-button {
        margin-right: 0;
        margin-bottom: 10px;
    }


    .page-header > div:last-child > .edit-button,
    .page-header > div:last-child > .add-button,
    .page-header > div:last-child > form,
    .page-header > div:last-child > form > .delete-button {
        width: 100%;
    }

}

/* =====================================================
2026 INDUSTRIAL UI REFRESH
===================================================== */

:root {
    --bg: #090d12;
    --surface: #111820;
    --surface-raised: #17212b;
    --surface-soft: #1d2935;
    --line: #2a3947;
    --line-strong: #3a4b5a;
    --text: #f3f6f8;
    --muted: #91a0ae;
    --accent: #ff8a1f;
    --accent-strong: #ff9f43;
    --blue: #54a7ff;
    --green: #39c878;
    --danger: #ef5b5b;
    --radius: 16px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

html { color-scheme: dark; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 138, 31, .08), transparent 26rem),
        linear-gradient(135deg, rgba(255,255,255,.018) 25%, transparent 25%) 0 0 / 28px 28px,
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    letter-spacing: .01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px) 0 0 / 80px 80px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.sidebar {
    width: 278px;
    padding: 28px 20px 22px;
    background: rgba(11, 16, 22, .96);
    border-right: 1px solid var(--line);
    box-shadow: 14px 0 40px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
    z-index: 10;
}

.sidebar h2 {
    position: relative;
    color: var(--text);
    margin: 2px 6px 26px;
    padding-bottom: 20px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: .025em;
}

.sidebar h2::after {
    content: "PRODUCTION CONTROL";
    position: absolute;
    left: 0;
    bottom: 0;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .22em;
}

#live-search {
    height: 46px;
    background: #10171e;
    border-color: var(--line);
    border-radius: 10px;
}

#live-search:focus {
    background: #131c25;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 138, 31, .13);
}

.sidebar li { margin-bottom: 5px; }

.sidebar a {
    position: relative;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #b5c0ca;
    font-size: 14px;
    font-weight: 650;
}

.sidebar a:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,138,31,.13), rgba(255,138,31,.035));
    border-color: rgba(255,138,31,.28);
    transform: translateX(3px);
}

.sidebar a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,138,31,.2), rgba(255,138,31,.045));
    border-color: rgba(255,138,31,.38);
}

.sidebar a.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(255,138,31,.55);
}

.main {
    margin-left: 278px;
    width: calc(100% - 278px);
    max-width: 1700px;
    padding: 42px 52px 70px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.page-header p { color: var(--muted) !important; }

.cards {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.card,
.machine-card,
.folder-card,
.folder-manage-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(28, 39, 50, .96), rgba(15, 22, 29, .96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card::before,
.machine-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--accent), rgba(255,138,31,.1));
    opacity: .85;
}

.card { min-height: 145px; padding: 26px; }
.card h2 { color: var(--text); font-size: 42px; letter-spacing: -.045em; }
.card p { color: var(--muted); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.card:hover, .machine-card:hover, .folder-card:hover, .folder-manage-card:hover {
    border-color: rgba(255, 138, 31, .65);
    transform: translateY(-3px);
}

.machine-card { padding: 26px 28px; }
.machine-card a { color: var(--accent-strong); }
.machine-card p { color: #b4c0ca; line-height: 1.55; }

.add-button, .edit-button, .delete-button, .small-action-button {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 800;
    letter-spacing: .015em;
    box-shadow: none;
}

.add-button {
    background: linear-gradient(135deg, var(--accent-strong), #ec7110);
    color: #15100b;
}
.add-button:hover { background: linear-gradient(135deg, #ffb05f, var(--accent)); transform: translateY(-2px); }

/* Kart içindeki genel bağlantı rengi aksiyon düğmelerini ezmesin. */
.machine-card a.add-button,
.machine-card a.add-button:hover,
.machine-card a.add-button:focus,
.machine-card a.add-button:visited {
    color: #15100b;
}

.machine-card a.edit-button,
.machine-card a.edit-button:hover,
.machine-card a.edit-button:focus,
.machine-card a.edit-button:visited {
    color: #ffffff;
}
.edit-button { background: #276eae; }
.delete-button { background: #a83d3d; }
.small-action-button { color: var(--accent-strong); border-color: var(--line-strong); }
.small-action-button:hover { background: var(--accent); border-color: var(--accent); color: #17110b; }

form input, form select, form textarea,
.job-filter-grid input, .job-filter-grid select {
    background: #101820;
    border-color: var(--line);
    border-radius: 9px;
}

form input:focus, form select:focus, form textarea:focus,
.job-filter-grid input:focus, .job-filter-grid select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,138,31,.12);
}

table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
th { background: var(--surface-raised); color: #dce3e9; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
td { border-color: var(--line); }
tr:hover { background: rgba(255,138,31,.045); }

.job-status-badge, .creator-badge { border-radius: 7px !important; }
.creator-badge { background: var(--surface) !important; border-color: var(--line) !important; }

/* Login screen */
.login-shell { max-width: 480px !important; }
.login-brand { margin-bottom: 30px !important; }
.login-brand h1 { font-size: 34px; letter-spacing: -.035em; }
.login-brand p { color: var(--muted) !important; letter-spacing: .07em; text-transform: uppercase; font-size: 12px; }
.login-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(24,34,44,.98), rgba(11,16,22,.98)) !important;
    border-color: var(--line) !important;
    border-radius: 18px !important;
    padding: 38px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.login-card h2 { font-size: 22px; }
.login-card label { color: #c9d2da; font-size: 13px; }
.login-card input { height: 50px; }
.login-button { height: 50px; margin-top: 8px; }

@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .main { padding: 36px 32px 60px; }
}

@media (max-width: 800px) {
    .sidebar { width: 100%; padding: 20px; position: relative; }
    .sidebar h2 { margin-bottom: 18px; }
    .sidebar ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .main { margin-left: 0; width: 100%; padding: 26px 18px 50px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card { min-height: 125px; padding: 20px; }
    .card h2 { font-size: 34px; }
    .login-card { padding: 26px !important; }
}

@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
    .sidebar ul { grid-template-columns: 1fr; }
}

/* Arama sonucu iş fotoğrafı */
.search-job-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.search-job-photo {
    min-height: 180px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0c1218;
}

.search-job-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform .3s ease;
}

a:hover .search-job-photo img {
    transform: scale(1.04);
}

.search-job-photo-placeholder {
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    background: linear-gradient(145deg, #121b24, #0b1117);
}

.search-job-photo-placeholder span {
    font-size: 34px;
    filter: grayscale(1);
    opacity: .55;
}

.search-job-photo-placeholder small {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.search-job-content {
    min-width: 0;
    align-self: center;
}

@media (max-width: 650px) {
    .search-job-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .search-job-photo,
    .search-job-photo img,
    .search-job-photo-placeholder {
        min-height: 210px;
        max-height: 260px;
    }
}

/* Fatura dosyaları */
.invoice-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.invoice-upload-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.invoice-upload-icon {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 28px;
}

.invoice-upload-card > div > p {
    color: var(--muted);
}

.invoice-upload-card > form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.invoice-file-picker {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px dashed var(--line-strong);
    border-radius: 9px;
    background: #101820;
    color: #cbd4dc;
    cursor: pointer;
}

.invoice-file-picker:hover {
    border-color: var(--accent);
}

.invoice-file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.invoice-file-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.invoice-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0e151c;
}

.invoice-file-row > a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.invoice-file-row > a span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.invoice-image-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #0e151c;
}

.invoice-image-item > a {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.invoice-image-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.invoice-image-item > a span {
    display: block;
    padding: 10px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-image-item form {
    padding: 0 10px 10px;
}

.invoice-image-item .delete-button {
    width: 100%;
}

.invoice-empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted) !important;
    text-align: center;
}

@media (max-width: 1000px) {
    .invoice-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .invoice-upload-card > form { grid-template-columns: 1fr; }
    .invoice-upload-card > form .add-button { width: 100%; }
    .invoice-image-grid { grid-template-columns: 1fr; }
}

/* =====================================================
MOBILE-FIRST POLISH
===================================================== */

.auth-disabled-button,
.auth-disabled-button:hover {
    background: #26313d;
    color: #9eacb8;
    cursor: not-allowed;
    transform: none;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(255, 138, 31, .22);
}

@media (max-width: 800px) {
    body {
        overflow-x: hidden;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 14px 14px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
    }

    .sidebar h2 {
        margin: 0 0 12px;
        padding-bottom: 13px;
        font-size: 17px;
    }

    .sidebar h2::after {
        font-size: 8px;
        letter-spacing: .16em;
    }

    .sidebar > div:first-of-type {
        margin-bottom: 10px !important;
    }

    #live-search {
        height: 44px;
        font-size: 16px;
    }

    .sidebar ul {
        display: flex;
        gap: 8px;
        margin: 0 -14px;
        padding: 0 14px 4px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .sidebar ul::-webkit-scrollbar {
        display: none;
    }

    .sidebar li {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .sidebar a {
        min-height: 42px;
        padding: 10px 13px;
        white-space: nowrap;
        font-size: 13px;
        background: rgba(255,255,255,.025);
        border-color: rgba(255,255,255,.055);
    }

    .sidebar a:hover {
        transform: none;
    }

    .sidebar a.active::before {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: -4px;
        width: auto;
        height: 3px;
    }

    .sidebar > div:last-child {
        display: none;
    }

    .main {
        padding: 20px 14px 42px;
    }

    .page-header {
        gap: 14px;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .page-header > div:last-child,
    .customer-header-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 9px;
    }

    .page-header > div:last-child > .edit-button,
    .page-header > div:last-child > .add-button,
    .page-header > div:last-child > form > .delete-button,
    .add-button,
    .edit-button,
    .delete-button,
    .small-action-button {
        min-height: 48px;
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }

    .machine-card,
    .folder-card,
    .folder-manage-card,
    .card {
        border-radius: 14px;
    }

    .machine-card {
        padding: 20px 18px;
        margin-bottom: 14px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .card {
        min-height: 112px;
        padding: 17px;
    }

    .card h2 {
        font-size: 29px;
    }

    .card p {
        font-size: 11px;
    }

    .folder-card,
    .folder-main-link {
        min-height: 96px;
        padding: 18px;
        gap: 14px;
    }

    .folder-icon {
        font-size: 36px;
    }

    form input,
    form select,
    form textarea,
    .job-filter-grid input,
    .job-filter-grid select {
        min-height: 48px;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    .job-filter-grid {
        gap: 11px;
    }

    .job-list-header,
    .note-item,
    .file-row,
    .invoice-file-row {
        gap: 12px;
    }

    .job-status-badge {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .job-photo {
        height: 150px;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .search-job-photo,
    .search-job-photo img,
    .search-job-photo-placeholder {
        min-height: 185px;
        max-height: 230px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .job-photo {
        height: 220px;
    }

    .date-select-row,
    .quick-create-row,
    .invoice-upload-card > form,
    .folder-actions {
        grid-template-columns: 1fr;
    }
}
