*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.form-card,
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    width: 100%;
    padding: 12px 20px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #4338ca;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-success {
    background: #059669;
    color: #fff;
}

.btn-success:hover {
    background: #047857;
}

.btn-logout {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    background: #ef4444;
}

.btn-logout:hover {
    background: #dc2626;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alt-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.alt-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.alt-link a:hover {
    text-decoration: underline;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-header h1 {
    margin-bottom: 0;
    font-size: 20px;
}

.dashboard-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* İstatistik kartları */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
}

.stat-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.stat-card-link {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.stat-card-link:hover {
    box-shadow: 0 4px 12px rgba(79,70,229,0.12);
    transform: translateY(-2px);
}

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.info-box strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.info-box table {
    width: 100%;
    font-size: 14px;
}

.info-box td {
    padding: 4px 0;
    color: #4b5563;
}

.info-box td:first-child {
    font-weight: 500;
    width: 130px;
    color: #374151;
}

/* ─── İki Adımlı Giriş ─── */

.form-step {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-step.hidden {
    display: none;
}

/* Slide-out (email adımı kaybolurken) */
.form-step.slide-out {
    opacity: 0;
    transform: translateX(-20px);
}

/* Slide-in (şifre adımı görünürken) */
.form-step.slide-in {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reverse slide-out (şifre adımı kaybolurken) */
.form-step.slide-out-reverse {
    opacity: 0;
    transform: translateX(20px);
}

/* Reverse slide-in (email adımı geri dönerken) */
.form-step.slide-in-reverse {
    animation: slideInReverse 0.3s ease forwards;
}

@keyframes slideInReverse {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Email görüntüleme alanı */
.email-display {
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #166534;
    word-break: break-all;
}

/* Geri butonu */
.btn-back {
    margin-top: 10px;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border: 1.5px solid #d1d5db;
}

.btn-back:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Devam Et butonu yüklenme durumu */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Admin Panel ─── */

.container-wide {
    max-width: 900px;
}

.admin-section {
    margin-top: 10px;
}

.admin-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-card-header h2 {
    font-size: 17px;
    color: #1f2937;
    font-weight: 600;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.empty-state {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.admin-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #d1d5db;
}

.admin-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f3f4f6;
}

.admin-table tfoot th {
    padding: 10px 12px;
    border-top: 2px solid #d1d5db;
    background: #f9fafb;
    font-size: 13px;
    color: #1f2937;
}

.admin-table .actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    width: auto;
    display: inline-block;
}

.btn-activate {
    background: #059669;
}

.btn-activate:hover {
    background: #047857;
}

.btn-delete {
    background: #ef4444;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-deactivate {
    background: #f59e0b;
}

.btn-deactivate:hover {
    background: #d97706;
}

.btn-kick {
    background: #7c3aed;
}

.btn-kick:hover {
    background: #6d28d9;
}

.badge-online {
    background: #d1fae5;
    color: #065f46;
}

.admin-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
    margin-left: 4px;
}

.text-muted {
    color: #9ca3af;
    font-size: 13px;
}

code {
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #6b7280;
}

/* ─── Menü Sayfası ─── */

.body-menu {
    align-items: flex-start;
    padding-top: 0;
}

.menu-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-brand {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.topbar-brand::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    margin-right: 10px;
    vertical-align: middle;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    padding: 6px 14px;
    background: #f9fafb;
    border-radius: 8px;
    margin-right: 6px;
}

.admin-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #4f46e5;
    color: #fff;
    margin-left: 6px;
}

/* Topbar ara bağlantılar */
.topbar-link {
    padding: 6px 12px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.topbar-link:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Topbar butonları */
.topbar-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s;
}

.topbar-btn:hover {
    opacity: 0.9;
}

.topbar-right .btn-logout {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px;
    width: auto;
}

/* Ayırıcı */
.topbar-sep {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 4px;
}

/* İçerik */
.menu-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.menu-header {
    margin-bottom: 32px;
}

.menu-header h1 {
    font-size: 28px;
    text-align: left;
    margin-bottom: 8px;
}

.menu-header p {
    color: #6b7280;
    font-size: 15px;
}

/* Bölüm Grupları */
.menu-section {
    margin-bottom: 32px;
}

.menu-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.menu-section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.menu-section-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Kart Grid */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.menu-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.menu-card-admin {
    border-left: 4px solid #4f46e5;
}

.menu-card-disabled {
    opacity: 0.5;
    cursor: default;
}

.menu-card-disabled:hover {
    box-shadow: none;
    transform: none;
}

.menu-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.menu-card-body {
    flex: 1;
    min-width: 0;
}

.menu-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.menu-card-body p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.menu-card-arrow {
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.menu-card:hover .menu-card-arrow {
    transform: translateX(4px);
    color: #4f46e5;
}

/* ─── Kayıt Formu ─── */

.form-page {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 20px;
}

.form-card-wide {
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.form-row .form-group-grow {
    flex: 1;
}

.form-row-two .form-group {
    flex: 1;
}

.form-row-four .form-group {
    flex: 1;
    min-width: 0;
}

textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-readonly {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    cursor: default;
}

.rate-box {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.rate-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    font-weight: 600;
}

.rate-loading {
    background: #fefce8;
    border-color: #fde68a;
    color: #92400e;
}

.rate-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Dosya Yükleme Alanı */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-area:hover {
    border-color: #4f46e5;
    background: #f9fafb;
}

.file-upload-area.drag-over {
    border-color: #4f46e5;
    background: #eef2ff;
}

.file-upload-placeholder {
    color: #9ca3af;
}

.file-upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.file-upload-placeholder p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.file-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.file-item-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.file-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    min-width: 0;
}

.file-item-original {
    display: block;
    color: #374151;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-meta {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.file-item-error-text {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    flex-shrink: 0;
}

/* ─── Mobil (640px) ─── */
@media (max-width: 640px) {

    .container-wide {
        max-width: 100%;
    }

    .topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 14px;
        gap: 6px;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-brand {
        font-size: 15px;
    }

    .topbar-brand::before {
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }

    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .topbar-user {
        padding: 4px 10px;
        font-size: 12px;
        margin-right: 0;
        order: -1;
    }

    .topbar-right .btn-logout,
    .topbar-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .topbar-link {
        padding: 4px 8px;
        font-size: 13px;
    }

    /* Menü sayfası */
    .menu-content {
        margin: 16px auto;
        padding: 0 12px;
    }

    .menu-header {
        margin-bottom: 20px;
    }

    .menu-header h1 {
        font-size: 22px;
    }

    .menu-section {
        margin-bottom: 20px;
    }

    .menu-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-card {
        padding: 14px;
    }

    /* Formlar */
    .form-page {
        padding: 0 12px;
        margin: 12px auto;
    }

    .form-card,
    .dashboard-card,
    .list-card,
    .report-card,
    .files-card {
        padding: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row-four .form-group {
        flex: 1 1 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        max-width: 100%;
    }

    /* Dashboard */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .dashboard-header h1 {
        font-size: 17px;
    }

    .dashboard-content p {
        font-size: 14px;
    }

    /* Admin panel */
    .admin-section {
        margin-top: 0;
    }

    .admin-card {
        padding: 14px;
    }

    .admin-card-header h2 {
        font-size: 15px;
    }

    .admin-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 6px 8px;
    }

    .admin-table .actions {
        flex-direction: column;
        gap: 4px;
    }

    /* Kayıt listesi */
    .page-wrap {
        padding: 0 12px;
        margin: 12px auto;
    }

    .list-card {
        padding: 16px;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-date-group {
        flex-wrap: wrap;
    }

    .search-date-group input {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .search-field-actions {
        flex-direction: row;
    }

    .search-field-actions .btn {
        flex: 1;
    }

    .list-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .record-table {
        font-size: 12px;
    }

    .record-table tbody td {
        padding: 8px 6px;
    }

    .cell-title-main {
        max-width: 120px;
    }

    /* Rapor sayfası */
    .report-wrap {
        padding: 0 12px;
        margin: 12px auto;
    }

    .report-card {
        padding: 16px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-date {
        flex-wrap: wrap;
    }

    .filter-date input {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .filter-actions {
        flex-direction: row;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .report-header {
        flex-direction: column;
        gap: 4px;
    }

    .report-table {
        font-size: 11px;
    }

    .report-table tbody td {
        padding: 6px 6px;
    }

    .col-files {
        min-width: 100px;
    }

    .file-link {
        display: block;
        margin: 2px 0;
        max-width: 100%;
    }

    /* Dosya sayfası */
    .files-wrap {
        padding: 0 12px;
        margin: 12px auto;
    }

    .files-card {
        padding: 16px;
    }

    .files-filter-row {
        flex-direction: column;
    }

    .files-filter-btn {
        flex-direction: row;
    }

    .files-filter-btn .btn-sm {
        flex: 1;
    }

    .files-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .file-card {
        padding: 12px;
    }

    .file-card-preview {
        width: 40px;
        height: 40px;
    }

    .file-card-preview span {
        font-size: 24px !important;
    }

    .file-card-name {
        font-size: 13px;
    }

    /* Tablo kaydırma */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Sayfalama */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }

    /* Genel */
    .empty-state {
        padding: 40px 0 !important;
    }
}

/* ─── Kayıt Listesi ─── */

.page-wrap {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 20px;
}

.list-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Arama */
.search-bar {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.search-field input,
.search-field select {
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    background: #fff;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.search-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-date-group input {
    width: 140px;
}

.search-date-sep {
    color: #9ca3af;
    font-size: 13px;
}

.search-field-grow {
    flex: 1;
    min-width: 160px;
}

.search-field-grow input {
    width: 100%;
}

.search-field-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.search-field-actions label {
    display: block;
}

.search-field-actions .btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    height: 38px;
    white-space: nowrap;
}

/* Bilgi satırı */
.list-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.list-count {
    font-size: 12px;
    color: #9ca3af;
}

/* Tablo */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.record-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.record-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.record-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.record-table tbody tr:last-child td {
    border-bottom: none;
}

.record-table tbody tr:hover {
    background: #f9fafb;
}

.col-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.col-center {
    text-align: center;
}

.col-date {
    white-space: nowrap;
    font-weight: 500;
}

.col-amount {
    font-weight: 600;
    color: #1f2937;
}

.cell-title-main {
    font-weight: 500;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.cell-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.unit-label {
    color: #9ca3af;
    font-size: 12px;
}

.user-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
}

.file-badge {
    display: inline-block;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

/* İşlem butonları */
.action-group {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.btn-icon-edit {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.btn-icon-edit:hover {
    background: #d1fae5;
}

.btn-icon-delete {
    background: #fef2f2;
    border-color: #fecaca;
}

.btn-icon-delete:hover {
    background: #fecaca;
}

/* Buton eylem grubu (düzenle sayfası) */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.form-actions .btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    flex: 1;
    max-width: 200px;
}

.form-actions .btn-secondary {
    flex: 0 0 auto;
    max-width: 120px;
}

/* Sayfalama */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s;
}

.page-link:hover {
    background: #f3f4f6;
}

.page-active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.page-active:hover {
    background: #4338ca;
}

.page-prev,
.page-next {
    font-weight: 500;
}

/* ─── Rapor Sayfası ─── */

.report-page {
    background: #f3f4f6;
}

.report-wrap {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.report-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Filtreler */
.report-filters {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}

.filter-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-date input {
    width: 140px;
}

.filter-grow {
    flex: 1;
    min-width: 160px;
}

.filter-grow input {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.filter-actions .btn {
    white-space: nowrap;
}

/* Rapor başlığı */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.report-header h2 {
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
}

.report-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.report-date {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

/* Tablo */
.report-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.report-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.report-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.report-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.report-table tbody tr:hover {
    background: #f9fafb;
}

.row-num {
    color: #9ca3af;
    font-size: 12px;
    width: 36px;
    text-align: center;
}

.col-date-report {
    white-space: nowrap;
    font-weight: 500;
}

.col-amount-report {
    font-weight: 600;
    color: #1f2937;
}

.report-title {
    font-weight: 500;
    color: #1f2937;
}

.report-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Başlık ve açıklama sütunları */
.col-title-report {
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.col-desc-report {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.no-desc {
    color: #d1d5db;
    font-size: 12px;
}

.user-tag-report {
    display: inline-block;
    padding: 2px 10px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 12px;
    color: #6b7280;
}

/* Dosya linkleri */
.col-files {
    min-width: 180px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 12px;
    color: #166534;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-link:hover {
    background: #d1fae5;
}

.no-file {
    color: #d1d5db;
    font-size: 13px;
}

/* Yazdırma / PDF */
@media print {
    body {
        background: #fff;
        padding: 0.5cm;
        margin: 0;
        font-size: 10pt;
    }

    .no-print {
        display: none !important;
    }

    .menu-wrapper {
        min-height: auto;
        background: #fff;
    }

    .report-wrap {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .report-card {
        box-shadow: none;
        padding: 0;
    }

    .report-filters {
        display: none !important;
    }

    .report-header {
        break-after: avoid;
        margin-bottom: 12px;
    }

    .report-header h2 {
        font-size: 16pt;
    }

    .report-meta {
        font-size: 9pt;
        color: #555;
    }

    .report-date {
        font-size: 9pt;
    }

    .report-table-wrap {
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .report-table {
        font-size: 8pt;
        width: 100%;
        border-collapse: collapse;
    }

    .report-table thead {
        display: table-header-group;
    }

    .report-table thead th {
        background: #e5e7eb !important;
        font-weight: bold;
        padding: 5px 6px;
        font-size: 7pt;
        text-transform: uppercase;
        letter-spacing: normal;
        border: 1px solid #bbb;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-table tbody td {
        padding: 4px 6px;
        border: 1px solid #ddd;
        word-break: break-word;
        vertical-align: top;
    }

    .report-table tbody tr {
        break-inside: auto;
        page-break-inside: auto;
    }

    .report-table tbody tr:hover {
        background: inherit;
    }

    /* Sütun stilleri - içeriğe göre otomatik genişlik */
    .report-table .row-num { text-align: center; color: #999; }
    .col-date-report { white-space: nowrap; }
    .col-num { text-align: right; white-space: nowrap; }
    .col-amount-report { font-weight: bold; }

    .file-link {
        display: inline;
        border: none;
        background: none;
        color: #1a56db;
        padding: 0;
        margin: 0;
        font-size: 8pt;
        text-decoration: underline;
    }

    .file-link:after {
        content: ', ';
    }

    .file-link:last-child:after {
        content: '';
    }

    .no-file {
        color: #ccc;
    }

    .pagination {
        display: none !important;
    }

    .topbar {
        display: none !important;
    }

    .unit-label {
        font-size: 7pt;
    }

    .no-desc {
        color: #ccc;
    }

    @page {
        size: A4 landscape;
        margin: 0.8cm;
    }
}

/* ─── Dosya Sayfası ─── */

.files-page {
    background: #f3f4f6;
}

.files-wrap {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 20px;
}

.files-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Filtreler */
.files-filters {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.files-filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.files-filter-field label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.files-filter-field input,
.files-filter-field select {
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    background: #fff;
}

.files-filter-field input:focus,
.files-filter-field select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}

.files-filter-grow {
    flex: 1;
    min-width: 200px;
}

.files-filter-grow input {
    width: 100%;
}

.files-filter-btn {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.files-filter-btn .btn-sm {
    height: 36px;
}

/* Başlık */
.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.files-header h2 {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.files-page-info {
    font-size: 13px;
    color: #9ca3af;
}

/* Kart Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.file-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.file-card-preview {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.file-card-body {
    flex: 1;
    min-width: 0;
}

.file-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.file-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.file-card-record {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card-user {
    color: #9ca3af;
}

.file-card-action {
    flex-shrink: 0;
}

.file-dl-btn {
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.file-card:hover .file-dl-btn {
    opacity: 1;
}
