/* Genel Stil Resetleri ve Temel Ayarlar */
:root {
    --primary-red: #C70000;
    --dark-red: #A30000;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #343a40;
    --border-color: #dee2e6;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --success-green: #28a745;
    --info-blue: #17a2b8;
    --warning-orange: #fd7e14; /* Finansal Takip butonu için renk */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    font-weight: 600;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; margin: 0 0 20px 0; }
h3 { font-size: 1.2em; }
h4 { color: var(--primary-red); border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-top: 20px; margin-bottom: 15px;}


/* Giriş Alanı Stilleri */
#auth-section {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#auth-section h1 {
    color: var(--primary-red);
    margin-bottom: 0;
}
#auth-section .tagline {
    color: var(--dark-gray);
    margin-top: 5px;
    margin-bottom: 30px;
}
#auth-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
}
.auth-options {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
}
.auth-options input {
    width: auto;
    margin: 0 10px 0 0;
}
#auth-message {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: center;
}
#auth-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
#auth-message.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

#auth-section button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color: 0.3s;
}
#auth-section button:hover { background-color: var(--dark-red); }

/* Uygulama Genel Yapısı */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}
.app-header .logo-title h1 { margin: 0; color: var(--primary-red); }
.app-header .main-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.app-header .nav-button {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    border-radius: 6px;
    transition: background-color: 0.2s, color: 0.2s;
}
.app-header .nav-button:hover { background-color: var(--light-gray); color: var(--text-color); }
.app-header .nav-button.active { background-color: var(--primary-red); color: white; }
.app-header .header-actions { display: flex; align-items: center; gap: 15px; }
.app-header #user-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.app-header .logout-button {
    background-color: var(--medium-gray);
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.app-header .logout-button:hover { background-color: #d3d6d8; }

#app-main-content .tab-content { display: none; }
#app-main-content .tab-content.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Stilleri */
form {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.form-header h2 { margin: 0; font-size: 1.6em; }
.form-header-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.form-action-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color: 0.3s;
}
.form-action-btn.save { background-color: var(--text-color); color: white; }
.form-action-btn.save:hover { background-color: #555; }
.form-action-btn.close { background-color: var(--primary-red); color: white; }
.form-action-btn.reopen { background-color: var(--success-green); color: white; }
#generate-contract-btn { background-color: #6f42c1; color: white; }
#generate-contract-btn:hover { background-color: #5a379e; }


.form-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px 30px;
}
.form-group { margin-bottom: 15px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
}
.form-group .required { color: var(--primary-red); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.20);
    outline: none;
    background-color: #fffde7;
}

input[readonly] {
    background-color: var(--medium-gray) !important;
    cursor: not-allowed;
    color: var(--dark-gray);
}
#quote-no[readonly] {
    background-color: #fff !important;
    cursor: default;
    color: var(--text-color);
}

textarea { resize: vertical; min-height: 80px; }
.date-fields-group {
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}
.image-upload-container { text-align: center; }
.image-preview {
    width: 100%;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--light-gray);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    transition: border-color: 0.2s;
}
.image-preview:hover { border-color: var(--primary-red); }
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-preview.has-image { background-image: none; }
.image-preview.has-image .preview-text { display: none; }
.file-hint { font-size: 0.8em; color: #999; margin-top: 8px; }
.file-upload-group input[type="file"] { font-size: 0.9em; }

/* Görev Listesi Stilleri */
#tasks-container {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#tasks-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    max-height: 120px;
}
.task-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}
.task-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}
.task-item span {
    flex-grow: 1;
}
.task-item.completed span {
    text-decoration: line-through;
    color: var(--dark-gray);
}
.task-item .delete-task-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
    visibility: hidden;
}
.task-item:hover .delete-task-btn {
    visibility: visible;
}
.add-task-wrapper {
    display: flex;
    gap: 5px;
}
#new-task-input {
    flex-grow: 1;
}
#add-task-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background-color: var(--success-green);
    border: none;
    color: white;
    font-size: 1.5em;
    border-radius: 6px;
    cursor: pointer;
}


/* Arama yapılabilir Dropdown Stilleri */
.searchable-dropdown-container {
    position: relative;
}
.searchable-list {
    display: none;
    position: absolute;
    border: 1px solid var(--primary-red);
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fcf8e3;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.searchable-list div {
    padding: 10px;
    cursor: pointer;
}
.searchable-list div:hover {
    background-color: #fffde7;
    color: var(--primary-red);
}

/* Tablo Stilleri */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.table-title { display: flex; align-items: center; gap: 15px; }
.table-title h2 { margin: 0; }
.item-count {
    background-color: var(--medium-gray);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--dark-gray);
}
.action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.action-buttons button {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: filter 0.2s;
}
.action-buttons button:hover { filter: brightness(0.9); }
.list-btn { background-color: #1a73e8; color: white; }
.export-btn { background-color: #1e8e3e; color: white; }
.columns-btn { background-color: var(--dark-gray); color: white; }
.table-responsive { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}
table th, table td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid var(--medium-gray);
    text-align: left;
}
table th {
    background-color: #f2f2f2;
    font-size: 0.85em;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}
table tbody tr:hover { background-color: var(--light-gray); }
table .actions-cell { text-align: center; }
table .actions-cell button, .actions-cell a {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.85em;
    color: white;
    text-decoration: none;
    display: inline-block;
}
.edit-btn { background-color: #17a2b8; }
.delete-btn { background-color: #dc3545; }
.action-send-email { background-color: #007bff; }
.action-view-pdf { background-color: #6f42c1; }
.details-btn { background-color: #6c757d; }
.financial-btn { background-color: var(--warning-orange); }
.action-add-design { background-color: #6f42c1; }
.action-view-design { background-color: #17a2b8; }
.action-delete-design { background-color: #dc3545; }

.action-btn-sm.readable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 2px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: #334155;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.action-btn-sm.readable.action-convert-card-lead {
    background: #0f766e;
}

.action-btn-sm.readable.danger {
    background: #b91c1c;
}

.action-upload-revision {
    background: #7c3aed !important;
    color: #fff !important;
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
}

.card-lead-toolbar,
.customer-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.customer-toolbar input {
    width: min(420px, 100%);
}

.customer-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.customer-admin-actions button {
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    padding: 6px 10px;
    cursor: pointer;
}

.customer-admin-actions .customer-delete-btn {
    border-color: #fecaca;
    color: #b91c1c;
}

.card-lead-detail-image {
    width: 100%;
    min-height: 120px;
    margin: 0 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #667085;
}

.card-lead-detail-image img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
    background: #fff;
}


/* Sözleşmeler Tablosu Sütun Genişlikleri */
/* ESKİ: #created-contracts-table .actions-cell { text-align: right; white-space: nowrap; } */
#created-contracts-table .actions-cell { 
    text-align: right; 
    white-space: normal; /* YENİ: Butonların sarmalanmasına izin verir */
    min-width: 180px;
}

/* Filtre Dropdown Stilleri */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-dropdown-container {
    position: relative;
    flex-grow: 1;
    min-width: 200px;
}
.filter-dropdown-container input {
    width: 100%;
    padding-right: 30px; 
}
.filter-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2em;
    color: #999;
    cursor: pointer;
    display: none; 
}
.filter-dropdown-list {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.filter-dropdown-list .list-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.95em;
}
.filter-dropdown-list .list-item:hover {
    background-color: var(--light-gray);
}
.filter-dropdown-list .list-item.empty {
    color: var(--dark-gray);
    cursor: default;
}


/* Durum Etiketleri */
.stage-tag, .status-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.status-default { background-color: #6c757d; color: white; }
.status-gorusme-yapiliyor { background-color: #fd7e14; color: white; }
.status-cevap-bekleniyor { background-color: #17a2b8; color: white; }
.status-tasarim-asamasinda { background-color: #6f42c1; color: white; }
.status-teklif-gonderildi { background-color: #007bff; color: white; }
.status-teklif-gondermeyi-bekliyor { background-color: #6c757d; color: white; }
.status-revizyon-gerekiyor { background-color: #ffc107; color: var(--text-color); }
.status-teklif-kabul-edildi { background-color: var(--success-green); color: white; }
.status-teklif-reddedildi { background-color: #dc3545; color: white; }
.status-uretimde { background-color: #6610f2; color: white; }
.status-operasyon-asamasinda { background-color: #e83e8c; color: white; }
.status-tamamlandi-ve-faturalandirildi { background-color: #343a40; color: white; }
.status-onaylandi { background-color: #20c997; color: white; }
.status-taslak { background-color: #ffc107; color: #343a40; }
.status-hazir { background-color: #17a2b8; color: white; }
.status-gonderildi { background-color: var(--success-green); color: white; }

/* Yönetim Paneli Stilleri */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}
.admin-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.admin-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 10px;
}
.admin-card form {
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}
.admin-card form .form-group {
    flex-grow: 1;
    margin-bottom: 0;
}
.admin-card form button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    height: 40px;
}
#form-add-person, #form-add-user, #form-add-company {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}
#form-add-person input, #form-add-person select,
#form-add-user input, #form-add-user select,
#form-add-company input, #form-add-company textarea {
    width: 100%;
}
.admin-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}
.admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--medium-gray);
    word-break: break-all;
}
.admin-list li:last-child { border-bottom: none; }
.admin-list .item-actions {
    display: flex;
    gap: 5px;
}
.admin-list li button {
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 5px;
    color: white;
}
.admin-list .delete-item-btn { background-color: #dc3545; }
.admin-list .edit-item-btn { background-color: #17a2b8; font-size: 12px; }

/* Form İçi Buton Stilleri */
.input-with-button {
    display: flex;
    gap: 5px;
    align-items: center;
}
.input-with-button select, .input-with-button input { flex-grow: 1; }
.add-new-btn {
    flex-shrink: 0;
    background-color: var(--dark-gray);
    color: white;
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 38px;
}

/* === MODERN MODAL STİLLERİ BAŞLANGIÇ === */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: #ffffff;
    margin: 8% auto;
    padding: 30px 35px;
    border: 1px solid #f0f0f0;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content .close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ccc;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.modal-content .close-button:hover {
    color: #888;
    transform: rotate(90deg);
}

.modal-content h3 {
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 25px;
}

.modal-content form { 
    padding: 0; 
    box-shadow: none; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content form input,
.modal-content form textarea,
.modal-content form select {
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 14px;
    font-size: 1em;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
}

.modal-content form input::placeholder,
.modal-content form textarea::placeholder {
    color: #999;
}

.modal-content form input:focus,
.modal-content form textarea:focus,
.modal-content form select:focus {
    background-color: #ffffff;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.15);
}

.modal-content form button[type="submit"] {
    background-image: linear-gradient(to right, #D31027 0%, #EA384D  51%, #D31027  100%);
    margin-top: 15px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    box-shadow: 0 4px 15px 0 rgba(211, 16, 39, 0.45);
    border-radius: 10px;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

.modal-content form button[type="submit"]:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px 0 rgba(211, 16, 39, 0.55);
}

#contract-details-modal .modal-content {
    max-width: 800px;
}

#project-details-modal .modal-content {
    max-width: 1040px;
    width: min(1040px, 94vw);
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #f8fafc;
}

#project-details-modal .close-button {
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 26px;
}

#project-details-modal #project-modal-title {
    margin: 0;
    padding: 22px 78px 18px 28px;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.35em;
    line-height: 1.25;
}

#project-details-modal .details-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 18px;
    padding: 18px 24px 24px;
    max-height: calc(90vh - 76px);
    overflow-y: auto;
}

#project-details-modal .details-grid,
#project-details-modal .details-grid * {
    box-sizing: border-box;
    max-width: 100%;
}

#project-details-modal .details-col-1,
#project-details-modal .details-col-2 {
    min-width: 0;
}

#project-details-modal h4 {
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #b32017;
    font-size: 0.9em;
    font-weight: 800;
}

#project-details-modal .details-col-1 > div,
#project-details-modal .details-col-1 > ul,
#project-details-modal .details-col-2 > div,
#project-details-modal .details-col-2 > ul {
    margin-bottom: 16px;
}

#project-details-modal .detail-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 7px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

#project-details-modal .detail-item strong {
    color: #334155;
}

#project-details-modal .detail-item span {
    min-width: 0;
    word-break: break-word;
}

#project-details-modal .detail-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    margin: 0 0 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#project-details-modal .detail-panel-emphasis {
    border-color: rgba(199, 0, 0, 0.25);
    background: #fff7f7;
}

#project-details-modal .detail-panel-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

#project-details-modal .detail-kv-list {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px 12px;
    font-size: 0.9em;
}

#project-details-modal .detail-kv-list span,
#project-details-modal .detail-muted {
    color: #64748b;
}

#project-details-modal .detail-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#project-details-modal .detail-actions-row .form-action-btn {
    width: auto;
    padding: 9px 14px;
}

#project-details-modal #revision-note {
    width: 100%;
    min-height: 90px;
}

#project-details-modal #detail-files-list,
#project-details-modal #detail-history-list,
#project-details-modal #detail-erp-timeline {
    padding-left: 0;
    list-style: none;
}

#project-details-modal #detail-files-list li,
#project-details-modal #detail-history-list li,
#project-details-modal #detail-erp-timeline li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 900px) {
    #project-details-modal .details-grid {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    #project-details-modal .detail-item,
    #project-details-modal .detail-kv-list {
        grid-template-columns: 1fr;
    }
}

/* === MODERN MODAL STİLLERİ SONU === */


/* === SWEETALERT ÖZEL STİLLERİ BAŞLANGIÇ === */
.swal-custom-container .swal2-select,
.swal-custom-container .swal-custom-select {
    display: block !important;
    width: 90% !important;
    margin: 1em auto 0 auto !important;
    padding: 12px;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 1em !important;
}

.swal-custom-container .swal2-textarea,
.swal-custom-container .swal-custom-textarea {
    display: block !important;
    width: 90% !important;
    margin: 1em auto 0 auto !important;
    padding: 12px;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    min-height: 80px;
}

.swal-custom-container .swal2-select:focus,
.swal-custom-container .swal2-textarea:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.15) !important;
}

.swal-custom-container .swal2-confirm {
    background-color: var(--primary-red) !important;
}

/* === SWEETALERT ÖZEL STİLLERİ SONU === */



/* Raporlama Sayfası Stilleri */
.reporting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.reporting-filters {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.reporting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    align-items: center;
}

.chart-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.chart-card h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--dark-gray);
}

.financial-summary-container {
    margin-top: 30px;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.financial-summary-container h3 {
    margin-top: 0;
}
#financial-summary-table .balance-due {
    color: var(--primary-red);
    font-weight: bold;
}
#financial-summary-table .balance-paid {
    color: var(--success-green);
    font-weight: bold;
}
#financial-summary-table .summary-total-row td {
    border-top: 2px solid var(--text-color);
    padding-top: 10px;
    font-size: 1.1em;
}


/* Dashboard Stilleri */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Temel olarak 3 sütun */
    gap: 25px;
}

/* Yapısal Düzeltme: Listeleri KPI'ların altına yeni bir satırda başlat */
#widget-design-pending {
    grid-column: 1 / span 1; 
}
#widget-offers-sent {
    grid-column: 2 / span 2; 
}


.dashboard-list-card {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}
.dashboard-list-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
    flex-shrink: 0;
    color: var(--primary-red);
    font-weight: 700;
}
.dashboard-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    flex-grow: 1;
}
.dashboard-list-card li {
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}
.dashboard-list-card li:last-child {
    border-bottom: none;
}
.dashboard-list-card .item-main { font-weight: 500; }
.dashboard-list-card .item-sub { color: #6c757d; font-size: 0.9em; display: block; }
.dashboard-list-card .item-extra, .dashboard-list-card .item-actions { 
    white-space: nowrap; 
    margin-left: 10px; 
    text-align: right; 
}
.dashboard-list-card .item-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* YENİ BUTON STİLİ (Dashboard ve Onaylanan Projeler için ortak) */
.dashboard-list-card .action-btn-sm,
.fair-card-actions .edit-btn, 
.fair-card-actions .action-view-design {
    font-size: 0.8em;
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white !important;
}


/* Dashboard buton renkleri */
.dashboard-list-card .action-add-design {
    background-color: #6f42c1;
}
.dashboard-list-card .action-upload-approved-design {
    background-color: var(--success-green);
}
.dashboard-list-card .action-reject-offer {
    background-color: var(--primary-red);
}

.dashboard-list-card .empty-message { color: #999; text-align: center; padding-top: 20px; }

#leads-for-offer-send-table .offer-send-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

#leads-for-offer-send-table .offer-send-actions button,
#leads-for-offer-send-table .offer-send-actions a {
    margin: 0;
    min-width: 96px;
    min-height: 28px;
    padding: 6px 10px;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
}

#widget-fairs-overview .fair-overview-item {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.55fr) minmax(220px, 0.7fr);
    column-gap: 28px;
    align-items: center;
}

#widget-fairs-overview .fair-overview-meta {
    justify-self: start;
    text-align: left;
    margin-left: 0;
}

#widget-fairs-overview .fair-overview-meta:last-child {
    min-width: 220px;
}

.perf-table {
    width: 100%;
    table-layout: fixed;
}

.perf-table th:nth-child(2),
.perf-table td:nth-child(2) {
    width: 110px;
    text-align: center;
    vertical-align: middle;
}

.perf-table td:nth-child(2) b {
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

/* Finansal Takip Stilleri */
.financial-tracking {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
#add-payment-form, #modal-add-payment-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 15px;
    padding: 0;
    box-shadow: none;
}
#payments-list, #modal-payments-list {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}
#payments-list li, #modal-payments-list li {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--medium-gray);
}
#payments-list li:last-child, #modal-payments-list li:last-child {
    border-bottom: none;
}
.payment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.payment-actions button {
    padding: 2px 8px;
    font-size: 0.8em;
}
.payment-amount { font-weight: 600; }
.payment-date { color: var(--dark-gray); font-size: 0.9em; margin-left: 10px; }
.financial-summary {
    text-align: right;
    font-size: 1.1em;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.financial-summary p { margin: 5px 0; }
.financial-summary .balance { font-weight: bold; color: var(--primary-red); }
.financial-summary .total { font-weight: bold; color: var(--text-color); }


/* Yükleme Göstergesi (Spinner) Stilleri */
.loader-container {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid var(--primary-red);
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Proje detay penceresi modern kuralları yukarıdaki tek bloktan yönetilir. */


/* === MOBİL UYUMLULUK KURALLARI === */
@media (max-width: 1200px) {
    .dashboard-list-card {
        grid-column: 1 / -1; 
    }
}

@media (max-width: 992px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .app-header .main-nav {
        display: none; 
    }
    .hamburger-menu {
        display: flex; 
    }
    .dashboard-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .dashboard-list-card,
    #widget-design-pending,
    #widget-offers-sent {
        grid-column: 1 / -1;
    }
    .chart-grid {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.3em; }

    .form-grid-container {
        grid-template-columns: 1fr;
    }
    .app-header .main-nav {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .app-header .main-nav::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .app-header .nav-button {
        flex: 0 0 auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr; 
    }
    
    .filters {
        flex-direction: column;
    }
    
    /* === MOBİL UYUMLULUK - YENİ KART TASARIMI === */
    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
        padding: 15px;
        background-color: #ffffff;
    }

    table td {
        padding: 5px 0;
        text-align: left;
        border: none;
        white-space: normal;
        word-break: break-word;
    }

    table td.cell-primary {
        font-size: 1.1em;
        font-weight: 600;
        color: var(--primary-red);
        margin-bottom: 10px;
    }
    
    table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 500;
        font-size: 0.8em;
        color: var(--dark-gray);
        margin-bottom: 2px;
    }

    table td.cell-primary::before,
    table td.actions-cell::before {
        display: none;
    }
    
    table .actions-cell {
        text-align: right;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--medium-gray);
    }
    
    /* Sözleşmeler tablosu mobil aksiyon düzeltmesi */
    #created-contracts-table .actions-cell { 
        text-align: left; 
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        min-width: 100%;
    }
    
    table .actions-cell button, table .actions-cell a {
        margin: 0; /* Butonlar arasındaki mobil marjini sıfırla */
    }
}

.kpi-card {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}
.kpi-card h3 {
    margin-top: 0;
    font-size: 1em;
    color: var(--dark-gray);
    font-weight: 500;
}
.kpi-card .kpi-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-color);
    margin: 10px 0;
}
.kpi-card .kpi-description {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-bottom: 0;
}
.kpi-card .kpi-value span {
    display: block;
    font-size: 0.6em;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .table-responsive table {
        table-layout: fixed;
    }

    #active-leads-table th:nth-child(1), #active-leads-table td:nth-child(1) { width: 40px; }
    #active-leads-table th:nth-child(2), #active-leads-table td:nth-child(2) { width: 100px; }
    #active-leads-table th:nth-child(3), #active-leads-table td:nth-child(3) { width: 100px; }
    #active-leads-table th:nth-child(4), #active-leads-table td:nth-child(4) { width: 150px; }
    #active-leads-table th:nth-child(5), #active-leads-table td:nth-child(5) { width: 80px; } 
    #active-leads-table th:nth-child(6), #active-leads-table td:nth-child(6) { width: 80px; } 
    #active-leads-table th:nth-child(7), #active-leads-table td:nth-child(7) { width: 100px; }
    #active-leads-table th:nth-child(8), #active-leads-table td:nth-child(8) { width: 120px; }
    #active-leads-table th:nth-child(9), #active-leads-table td:nth-child(9) { width: 150px; }
    #active-leads-table th:nth-child(10), #active-leads-table td:nth-child(10) { width: 160px; }
    #active-leads-table th:nth-child(11), #active-leads-table td:nth-child(11) { width: 200px; }
    #active-leads-table th:nth-child(12), #active-leads-table td:nth-child(12) { width: 200px; }
    
    #created-contracts-table th:nth-child(1), #created-contracts-table td:nth-child(1) { width: 20%; }
    #created-contracts-table th:nth-child(2), #created-contracts-table td:nth-child(2) { width: 20%; }
    #created-contracts-table th:nth-child(3), #created-contracts-table td:nth-child(3) { width: 15%; }
    #created-contracts-table th:nth-child(4), #created-contracts-table td:nth-child(4) { width: 10%; }
    #created-contracts-table th:nth-child(5), #created-contracts-table td:nth-child(5) { width: 10%; }
    #created-contracts-table th:nth-child(6), #created-contracts-table td:nth-child(6) { width: auto; }
}
/* === HAMBURGER MENÜ VE MOBİL NAVİGASYON STİLLERİ === */

.hamburger-menu {
    display: none; /* Varsayılan olarak gizli */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Menünün üstünde kalması için */
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}


.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Üstten başlasın */
    align-items: flex-start; /* Linkler soldan başlasın */
    background: #ffffff;
    height: 100vh;
    text-align: left;
    padding: 6rem 2rem 2rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%); /* Başlangıçta gizli */
    width: 280px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav .nav-button {
    width: 100%;
    font-size: 1.2rem;
    padding: 1rem 0;
    font-weight: bold;
    letter-spacing: 0.1rem;
    color: var(--text-color);
    text-decoration: none;
    text-align: left;
}

.mobile-nav .nav-button.active {
    color: var(--primary-red);
    background: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.open {
    display: block;
}


/* === Medya Sorgusu Güncellemesi === */
/* Hamburger menüyü göstermek ve masaüstü menüyü gizlemek için */
@media (max-width: 992px) {
    .app-header .main-nav {
        display: none; /* Masaüstü menüyü gizle */
    }

    .hamburger-menu {
        display: flex; /* Hamburger menüyü göster */
    }
}

/* --- Timeline --- */
#lead-timeline-card { margin-top: 20px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.timeline-form { display: grid; grid-template-columns: 140px 200px 1fr auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.timeline-form textarea { grid-column: 1 / -2; min-height: 60px; }
.timeline-form button { grid-column: -2 / -1; height: 40px; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 260px; overflow: auto; }
.timeline-item { border-left: 4px solid #ccc; padding: 8px 10px; background: #fafafa; border-radius: 8px; }
.timeline-item .meta { font-size: 12px; color: #666; margin-bottom: 4px; }
.timeline-item.call { border-left-color: #2b8a3e; }
.timeline-item.email { border-left-color: #1c7ed6; }
.timeline-item.meeting { border-left-color: #e8590c; }
.timeline-item.note { border-left-color: #5f3dc4; }

/* --- Calendar --- */
.calendar-controls { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-cell { background: #fff; border-radius: 10px; padding: 8px; min-height: 90px; box-shadow: 0 1px 3px rgba(0,0,0,.05); position: relative; }
.calendar-cell .date { position: absolute; top: 6px; right: 8px; font-size: 12px; color: #777; }
.calendar-event { font-size: 12px; padding: 4px 6px; border-radius: 6px; margin-top: 18px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.fair { background: rgba(28,126,214,0.12); }
.calendar-event.payment { background: rgba(43,138,62,0.12); }
.calendar-event.deadline { background: rgba(232,89,12,0.12); }
.calendar-legend { margin-top: 8px; display: flex; gap: 12px; align-items: center; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.legend-fair { background: #1c7ed6; }
.legend-payment { background: #2b8a3e; }
.legend-deadline { background: #e8590c; }

/* --- Draggable dashboard widgets --- */
.dashboard-grid .kpi-card, .dashboard-grid .dashboard-list-card { cursor: move; user-select: none; }
.drag-over { outline: 2px dashed #1c7ed6; outline-offset: 2px; }

/* === ONAYLANAN PROJELER KARTLARI STİLLERİ === */

.accepted-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.fair-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.fair-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
    color: var(--success-green);
}

.fair-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.fair-card li {
    padding: 10px 0;
    font-size: 0.95em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.fair-card li:last-child {
    border-bottom: none;
}

.fair-card .company-name {
    font-weight: 500;
}

.fair-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.fair-card-actions .edit-btn, .fair-card-actions .action-view-design {
    font-size: 0.8em;
    padding: 5px 8px;
    color: white !important;
}


.fair-countdown {
    background-color: #f0f8ff;
    border: 1px solid #cce5ff;
    color: #004085;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
}

/* --- KAPSAMLI BUTON TIKLAMA EFEKTİ --- */

/* Yumuşak geçiş için hedeflenen tüm buton, link ve tıklanabilir elementler */
button,
.actions-cell a, /* Tablolardaki link butonlar */
.form-action-btn,
.add-new-btn,
.pagination-controls button,
.date-range-filter button,
.hamburger-menu {
    /* Hızlı ve net bir geri bildirim için kısa animasyon süresi */
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out, filter 0.1s ease-in-out;
}

/* Tıklanma anı (:active) için hedeflenen tüm elementler */
button:active,
.actions-cell a:active,
.form-action-btn:active,
.add-new-btn:active,
.pagination-controls button:active,
.date-range-filter button:active,
.hamburger-menu:active {
    transform: translateY(2px) scale(0.98); /* Butonu hafifçe aşağı indirir ve küçültür */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset; /* İçeri doğru daha belirgin bir gölge */
    filter: brightness(0.9); /* Rengi biraz daha koyulaştırarak geri bildirimi güçlendirir */
    /* Odaklanma halkasını tıklama anında kaldırarak daha temiz bir görünüm sağlar */
    outline: none;
}

/* === KANBAN PANOSU STİLLERİ (YENİ EKLENDİ) === */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    height: calc(100vh - 200px);
}

.kanban-column {
    background-color: #f4f5f7;
    border-radius: 8px;
    min-width: 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kanban-header {
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    color: var(--text-color);
}

#kanban-design .kanban-header { border-bottom-color: #6f42c1; }
#kanban-sent .kanban-header { border-bottom-color: #007bff; }
#kanban-approved .kanban-header { border-bottom-color: var(--success-green); }

.kanban-cards {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
}

.kanban-card {
    background-color: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.kanban-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#kanban-design .kanban-card { border-left-color: #6f42c1; }
#kanban-sent .kanban-card { border-left-color: #007bff; }
#kanban-approved .kanban-card { border-left-color: var(--success-green); }

.kanban-card h5 { margin: 0 0 5px 0; font-size: 1em; color: var(--text-color); }
.kanban-card p { margin: 0; font-size: 0.85em; color: var(--dark-gray); }
.kanban-card .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8em; color: #999; }

.kanban-card.dragging { opacity: 0.5; }


/* Firma / Fuar seçim modalları */
.selection-modal-search {
    width: 100%;
    padding: 8px 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.selection-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 5px;
    max-height: 320px;
    overflow-y: auto;
}

.selection-modal-list li.selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid var(--light-gray);
}

.selection-modal-list li.selection-item .item-text {
    flex: 1;
    margin-right: 10px;
}

.selection-modal-list li.selection-item .item-actions button {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.selection-modal-list li.empty {
    padding: 8px 4px;
    color: var(--dark-gray);
}

/* Sözleşmeler sekmesi ekran taşmasını engelle */
#contracts-tab-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; 
    box-sizing: border-box !important;
    /* Dış .container'ın dikey padding'iyle uyum sağlamak için: */
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Tablo dışındaki iç elementlere (başlıklar, filtreler, pagination) kenar boşluğu (padding) ekle. */
.contracts-section,
.pagination-controls {
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobil cihazlar için daha dar padding ayarı */
@media (max-width: 768px) {
    .contracts-section,
    .pagination-controls {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Kurulum fotoğrafları modalindeki grid */
.contract-photos-list {
    margin-top: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.contract-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.contract-photo-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contract-photo-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.contract-photo-meta {
    padding: 6px 8px 8px;
    font-size: 12px;
}

.contract-photo-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.contract-photo-note {
    color: #555;
    font-size: 11px;
}

.detail-photo-section {
    list-style: none;
    margin-top: 10px;
}

.detail-photo-title {
    font-weight: 700;
    margin: 8px 0;
    color: var(--primary-red);
}

.detail-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.detail-photo-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.detail-photo-card img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.detail-photo-meta {
    display: grid;
    gap: 3px;
    padding: 7px;
    font-size: 11px;
    line-height: 1.25;
}

.detail-photo-meta span,
.detail-photo-note {
    color: #667085;
}

.badge{display:inline-block;padding:6px 10px;border:1px solid #ccc;border-radius:999px;text-decoration:none;font-size:12px;}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:14px;}
.card{border:1px solid #e2e2e2;border-radius:10px;padding:12px;background:#fff;}

.customer-job-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.customer-job-badge.expired {
    background: #fff1f2;
    color: #b91c1c;
}

.customer-job-badge.done {
    background: #ecfdf3;
    color: #047857;
}

.customer-photo-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.customer-photo-strip a {
    display: block;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f1f5f9;
}

.customer-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- ERP Paket 2: Üretim Board + ERP Timeline --- */
.production-board{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
.prod-col{background:rgba(255,255,255,.6);border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:10px;min-height:260px}
.prod-col h3{margin:0 0 8px 0;font-size:14px}
.prod-list{display:flex;flex-direction:column;gap:8px}
.prod-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.prod-card .title{font-weight:700}
.prod-card .meta{font-size:12px;opacity:.85;margin-top:4px;display:flex;gap:8px;flex-wrap:wrap}
.prod-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.prod-actions button{padding:6px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.12);background:#f6f6f6;cursor:pointer}
.prod-actions button.primary{background:#C70000;color:#fff;border-color:#C70000}
.erp-timeline{list-style:none;padding:0;margin:0}
.erp-timeline li{border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px;margin-bottom:8px;background:#fff}
.erp-timeline .small{font-size:12px;opacity:.8}
.erp-workflow-panel{border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px;background:#fff}
.erp-workflow-panel select,.erp-workflow-panel textarea{width:100%;margin-top:6px}
.erp-workflow-panel button{margin-top:8px}
@media(max-width:1100px){.production-board{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.production-board{grid-template-columns:1fr}}


/* ERP Üretim Kanban */
.prod-board{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}
.prod-col{background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.04);min-height:220px;display:flex;flex-direction:column}
.prod-col-header{padding:10px 12px;border-bottom:1px solid #f1f1f1;font-weight:700}
.prod-col-body{padding:10px 12px;display:flex;flex-direction:column;gap:10px}
.prod-card{border:1px solid #f0f0f0;border-radius:12px;padding:10px 10px;background:#fafafa}
.prod-card h4{margin:0 0 6px 0;font-size:14px}
.prod-card .meta{font-size:12px;opacity:.8;margin-bottom:8px}
.prod-card .actions{display:flex;gap:8px;flex-wrap:wrap}
.prod-card button{padding:6px 10px;border-radius:10px;border:1px solid #ddd;background:#fff;cursor:pointer}
@media (max-width:1100px){.prod-board{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.prod-board{grid-template-columns:1fr}}


/* --- ERP Paket 7: Dashboard Charts --- */
.dashboard-charts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin: 16px 0 10px 0;
}
.chart-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.chart-title{
  font-weight:700;
  margin-bottom:8px;
}
@media (max-width: 900px){
  .dashboard-charts{ grid-template-columns: 1fr; }
}

.filter-select{
  padding:8px 10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  background:#fff;
}

/* Windows PWA yükleme butonu */
.install-button {
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #C70000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(199, 0, 0, 0.18);
    white-space: nowrap;
}
.install-button:hover { filter: brightness(0.95); }
@media (display-mode: standalone), (display-mode: window-controls-overlay) {
    #install-pwa-btn { display: none !important; }
}

.install-button-auth { max-width: 360px; margin-left: auto; margin-right: auto; }

/* Modern musteri ve modal duzenlemeleri */
#completed-tab-content {
    background: linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%);
    padding: 22px;
    border-radius: 18px;
}

#customer-search {
    width: min(460px, 100%);
    height: 44px;
    border: 1px solid #d8dde6;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
}

#completed-tab-content #completed-list {
    width: 100%;
}

#completed-tab-content #completed-list.cards {
    display: block !important;
    margin-top: 18px;
}

#completed-tab-content #completed-list > .cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    align-items: stretch;
}

#completed-tab-content #completed-list > .cards > .card {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

#completed-list.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

#completed-list .card {
    min-height: 142px;
    border: 1px solid #e0e5ee;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

#completed-list .card:hover {
    transform: translateY(-2px);
    border-color: #c8d2df;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
}

#completed-list .card h4 {
    color: #9b1414;
    line-height: 1.35;
    letter-spacing: 0;
}

.customer-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.customer-admin-actions button,
.customer-merge-btn,
.customer-delete-btn {
    height: 34px;
    border-radius: 9px;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}

.customer-merge-btn {
    border: 1px solid #cfd8e3;
    color: #152238;
    background: #f8fafc;
}

.customer-delete-btn {
    border: 1px solid #efc2c2;
    color: #a11212;
    background: #fff5f5;
}

.swal2-popup {
    border-radius: 18px !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28) !important;
}

.swal2-title {
    color: #1f2937 !important;
    letter-spacing: 0 !important;
}

.swal2-select,
.swal2-input,
.swal2-textarea {
    border-radius: 12px !important;
    border-color: #d7dde7 !important;
    min-height: 42px !important;
}

.swal2-confirm {
    border-radius: 10px !important;
    background: #c70000 !important;
}

.swal2-cancel {
    border-radius: 10px !important;
}

/* Milli Projeler */
.national-projects-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.national-projects-shell,
.national-projects-shell * {
    box-sizing: border-box;
}

.national-projects-header,
.national-detail-header,
.national-participant-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.national-projects-header h2,
.national-projects-header p,
.national-detail-header h3,
.national-detail-header p {
    margin: 0;
}

.national-projects-header p,
.national-detail-header p {
    color: #64748b;
    margin-top: 6px;
}

.national-projects-actions,
.national-participant-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.national-projects-actions input,
.national-participant-toolbar input,
.national-participant-toolbar select {
    min-height: 38px;
}

.national-project-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.national-panel {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
    border: 1px solid #e5e7eb;
}

.national-panel h3 {
    margin: 0 0 14px;
    color: #b51d16;
    font-weight: 800;
}

.national-project-form-panel form,
.national-participant-form {
    display: grid;
    gap: 10px;
}

.national-project-form-panel form {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    align-items: end;
}

.national-project-form-panel .national-two-col {
    display: contents;
}

.national-project-form-panel .national-date-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
    grid-column: 1 / span 2;
}

.national-project-form-panel .national-subform,
.national-project-form-panel label:has(#national-project-notes),
.national-project-form-panel button[type="submit"] {
    grid-column: 1 / -1;
}

.national-project-form-panel input,
.national-project-form-panel select,
.national-project-form-panel textarea,
.national-participant-form input,
.national-participant-form select,
.national-participant-form textarea {
    width: 100%;
    min-width: 0;
}

.national-project-form-panel label,
.national-participant-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
}

.national-project-form-panel label span,
.national-participant-form label span {
    color: #b51d16;
    line-height: 1.2;
}

.national-project-form-panel label input,
.national-project-form-panel label select,
.national-project-form-panel label textarea,
.national-participant-form label input,
.national-participant-form label select,
.national-participant-form label textarea {
    font-weight: 400;
    color: #111827;
}

.national-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.national-four-col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.national-subform {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
    display: grid;
    gap: 8px;
}

.national-subform h4,
.national-phase-tools h4,
.national-general-info-card h4 {
    margin: 0;
    color: #b51d16;
    font-weight: 800;
}

.national-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}

.national-checkline input {
    width: auto;
}

.national-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.national-project-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.national-project-card:hover,
.national-project-card.active {
    border-color: #c70000;
    box-shadow: 0 8px 22px rgba(199, 0, 0, .12);
}

.national-project-card h4 {
    margin: 0;
    color: #111827;
}

.national-project-card p {
    margin: 8px 0 0;
}

.national-project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.national-progress {
    height: 8px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
    margin: 12px 0;
}

.national-progress span {
    display: block;
    height: 100%;
    background: #35a853;
}

.national-card-stats,
.national-kpi-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.national-output-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.national-general-info-card,
.national-phase-tools {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    background: #fff;
}

.national-general-info-card ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.national-general-info-card p,
.national-phase-tools p {
    color: #64748b;
    margin: 6px 0 0;
}

.national-card-stats span,
.national-kpi-row div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
}

.national-danger-stat {
    color: #b51d16;
    border-color: #fecaca !important;
    background: #fff1f2 !important;
    font-weight: 800;
}

.national-helper-note {
    margin: 6px 0 10px;
    color: #475569;
    font-size: 12px;
}

.national-kpi-row div {
    min-width: 92px;
    text-align: center;
}

.national-kpi-row b {
    display: block;
    font-size: 20px;
    color: #111827;
}

.national-kpi-row span {
    color: #64748b;
}

.national-participant-form {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    margin-bottom: 14px;
}

.national-participant-form .national-wide-field {
    grid-column: span 4;
}

.national-participant-form button {
    grid-column: span 2;
}

.national-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.national-badge.is-ready,
.national-badge.is-done {
    background: #e7f7ed;
    color: #19703a;
}

.national-badge.is-missing {
    background: #fff2e5;
    color: #a84a00;
}

.national-badge.is-review,
.national-badge.is-progress {
    background: #edf4ff;
    color: #245bb3;
}

.national-files-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.national-files-cell a {
    font-size: 12px;
}

.national-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 240px;
}

.national-media-board {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fbfdff;
}

.national-phase-output {
    margin-top: 10px;
}

.national-phase-output textarea {
    width: 100%;
    resize: vertical;
}

.national-reminder-summary,
.national-reminder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.national-reminder-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.national-reminder-choice {
    border: 1px solid #dc2626;
    background: #fff;
    color: #b51d16;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.national-reminder-choice.active {
    background: #b51d16;
    color: #fff;
}

.national-send-reminder {
    border: 0;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.national-current-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #475569;
}

.national-current-files a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    padding: 4px 8px;
    background: #f0fdfa;
}

.national-reminder-summary span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
}

.national-reminder-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.national-reminder-list span {
    color: #64748b;
    font-size: 12px;
}

.national-archive-row {
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
}

.national-archive-row span {
    color: #64748b;
    margin-left: 8px;
    font-size: 12px;
}

.national-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.national-report-grid span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.national-media-board-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.national-media-board-head h4,
.national-media-board-head p {
    margin: 0;
}

.national-media-board-head h4 {
    color: #b51d16;
}

.national-media-board-head p {
    color: #64748b;
    margin-top: 4px;
}

.national-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.national-media-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.national-media-card h5,
.national-media-card p {
    margin: 0;
}

.national-media-card h5 {
    color: #111827;
}

.national-media-card p {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.national-media-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.national-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.national-media-thumb {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 112px;
    text-decoration: none;
    color: #111827;
    font-size: 11px;
}

.national-media-thumb img {
    width: 112px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.national-media-thumb span,
.national-media-file {
    overflow-wrap: anywhere;
    font-size: 11px;
}

.national-empty-note {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .national-project-form-panel form {
        grid-template-columns: 1fr 1fr;
    }
    .national-participant-form {
        grid-template-columns: 1fr 1fr;
    }
    .national-four-col {
        grid-template-columns: 1fr 1fr;
    }
    .national-participant-form textarea,
    .national-participant-form .national-wide-field,
    .national-participant-form button {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .national-two-col,
    .national-four-col,
    .national-project-form-panel form,
    .national-participant-form {
        grid-template-columns: 1fr;
    }
    .national-participant-form textarea,
    .national-participant-form .national-wide-field,
    .national-participant-form button {
        grid-column: span 1;
    }
}
