/* style.css - KOMPAKTE Version */

/* --- Globale Stile --- */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    font-size: 13px; /* --- Reduziert --- */
}

/* --- Header / Logo --- */
.header {
    background-color: #ffffff;
    padding: 10px 20px; /* --- Reduziert --- */
    border-bottom: 3px solid #1D3E8E;
    text-align: center;.page-menu-column {
    /* Diese Spalte enthält das Menü */
}
}

.header img {
    max-width: 200px; /* Etwas kleiner */
    height: auto;
}

/* --- Navigation (Home/Zurück-Buttons) --- */
.navigation {
    padding: 10px 20px; /* --- Reduziert --- */
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.navigation a img {
    width: 28px; /* --- Reduziert --- */
    height: 28px; /* --- Reduziert --- */
    vertical-align: middle;
    margin-right: 8px;
}

/* --- Haupt-Container für den Inhalt --- */
.main-container {
    max-width: 700px; /* --- Reduziert (war 800px) --- */
    margin: 20px auto; /* --- Reduziert --- */
    padding: 15px;
}

/* --- Formular-Design ("Card") --- */
.form-card {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px 30px; /* --- Reduziert --- */
}

.form-card h2 {
    font-size: 20px; /* --- Reduziert --- */
    color: #333;
    margin-top: 0;
    margin-bottom: 20px; /* --- Reduziert --- */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* --- Formular-Gruppen (Label + Input) --- */
.form-group {
    margin-bottom: 15px; /* --- Reduziert --- */
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px; /* --- Reduziert --- */
}

/* --- Styling für alle Eingabefelder --- */
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 9px; /* --- Reduziert (war 12px) --- */
    font-size: 13px; /* --- Reduziert --- */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-sizing: border-box;
    color: #333;
}

textarea {
    min-height: 80px; /* --- Reduziert --- */
    resize: vertical;
}

/* Visuelles Feedback bei Fokus */
input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #1D3E8E;
    outline: none;
    box-shadow: 0 0 4px rgba(29, 62, 142, 0.15);
}

/* --- Button-Styling --- */
input[type="submit"] {
    background-color: #1D3E8E;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px; /* --- Reduziert --- */
    padding: 10px 20px; /* --- Reduziert --- */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #152c6a;
}

/* --- ID-Anzeige (nicht editierbar) --- */
.form-group-id {
    font-size: 14px; /* --- Reduziert --- */
    color: #666;
}
.form-group-id strong {
    color: #333;
    margin-left: 10px;
}
/* --- NEU: Regeln für 2-Spalten-Grid --- */

/* 1. Der Grid-Container */
/* Dies wird der neue "Wrapper" für unsere Formularfelder */
.form-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten mit gleicher Breite */
    gap: 15px 20px; /* 15px Abstand zwischen Zeilen, 20px zwischen Spalten */
}

/* 2. Regel für Felder, die über beide Spalten gehen sollen */
/* Wir nutzen dies für die Textareas */
.form-grid-container .grid-span-2 {
    grid-column: 1 / -1; /* Bedeutet: "Starte in Spalte 1 und gehe bis zum Ende" */
}

/* 3. (Optional) Wir entfernen den alten Abstand der Felder, */
/* da der "gap" des Grids dies nun übernimmt. */
.form-grid-container .form-group {
    margin-bottom: 0;
}
/* --- NEU: Design für Datentabellen --- */

.data-table {
    width: 100%;
    border-collapse: collapse; /* Saubere Kanten */
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Hält die abgerundeten Ecken sauber */
    margin-top: 20px;
}

/* Tabellen-Kopfzeile */
.data-table thead th {
    background-color: #f0f2f5; /* Heller Header-Hintergrund */
    color: #333;
    font-weight: bold;
    font-size: 13px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

/* Tabellen-Zellen (Daten) */
.data-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}

/* Abwechselnde Zeilenfarben (ersetzt Ihre VBScript-Logik) */
.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover-Effekt für Zeilen */
.data-table tbody tr:hover {
    background-color: #eef4ff; /* Leichter blauer Hover */
}

/* Spezielle Zellen-Stile */
.data-table .status-cell img {
    width: 40px; /* Kleinere Status-Bilder */
    height: 40px;
    vertical-align: middle;
    margin-top: 5px;
}

.data-table .teklif-no {
    font-size: 18px;
    font-weight: bold;
    color: #1D3E8E; /* Akzentfarbe */
    background-color: #f0f2f5;
    text-align: center;
    vertical-align: middle !important;
}

.data-table a {
    color: #1D3E8E;
    text-decoration: none;
    font-weight: bold;
}
.data-table a:hover {
    text-decoration: underline;
}

/* --- NEU: Paginierung / Seiten-Navigation --- */
.pagination {
    padding: 15px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pagination a:hover {
    background-color: #f4f4f4;
    border-color: #aaa;
}

/* --- NEU: Allgemeine Buttons & Links --- */
.action-links {
    margin-top: 15px;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #1D3E8E;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}
.btn:hover {
    background-color: #152c6a;
    color: #ffffff;
}

.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}
/* --- NEU: Design für start.asp (Dashboard & Menü) --- */

/* 2-Spalten-Layout für die Startseite */
.page-layout-grid {
    display: grid;
    /* Linke Spalte (Menü) 280px, rechte Spalte füllt den Rest */
    grid-template-columns: 280px 1fr; 
    gap: 20px; /* Abstand zwischen Menü und Inhalt */
    padding: 20px;
}

/* 1. Spalte: Seiten-Navigation (Ersatz für Spry Menu) */
.side-menu {
    list-style: none;
    padding: 10px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.side-menu li {
    margin: 0 0 4px 0;
    padding: 0;
}
.side-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.side-menu a:hover {
    background-color: #1D3E8E;
    color: #ffffff;
}
.side-menu img {
    width: 20px; /* Kleinere Icons im Menü */
    height: 20px;
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.7;
}
.side-menu a:hover img {
    opacity: 1;
}

/* Untermenüs */
.side-menu ul {
    list-style: none;
    padding-left: 20px; /* Einrücken */
    margin: 5px 0 10px 0;
    /* Standardmäßig anzeigen, da das Spry-JS wegfällt. 
       Ein Hover-Menü wäre möglich, aber klicken ist oft besser. */
}
.side-menu ul a {
    font-size: 13px;
    font-weight: normal;
    padding: 8px 15px 8px 32px; /* Stärker einrücken */
    position: relative;
    background-color: #f9f9f9;
}
.side-menu ul a:hover {
    background-color: #eef4ff;
    color: #1D3E8E;
}
.side-menu .has-submenu {
    background-color: #f0f2f5;
    font-weight: bold;
}
.side-menu .has-submenu:hover {
    background-color: #1D3E8E;
    color: #ffffff;
}
.side-menu hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 5px;
}


/* 2. Spalte: Info-Karten für den Inhalt */
.start-content {
	font-size: 36px;
    /* Dieser Container hält alle Info-Karten */
}

.info-card {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
}
.info-card h2 {
    font-size: 20px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.info-card p, .info-card li {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}
/* Für die Benutzer-Info-Liste */
.info-card ul.user-info {
    list-style: none;
    padding-left: 0;
}
.info-card .user-info li {
    padding: 5px 0;
}
.info-card .user-info strong {
    display: inline-block;
    width: 130px; /* Saubere Ausrichtung */
    color: #333;
}
.info-card .action-icon {
    width: 45px;
    height: 45px;
    vertical-align: middle;
    margin-right: 10px;
}
.info-card .countdown-timer {
    font-size: 20px;
    font-weight: bold;
    color: #1D3E8E;
    background-color: #f4f7f6;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Roter Alarmtext für "Zugriff verweigert" */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
}

/* Uhren-Container im Header */
.header-clock {
    padding: 0;
    background-color: #fff;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    margin-left: 20px; /* Etwas Abstand vom Rand */
}
/* --- NEU: Ergänzungen für start.asp Menü --- */

/* 1. Anpassung für zweizeilige Menüpunkte */
.side-menu a {
    padding: 10px 15px; /* Etwas weniger Abstand oben/unten */
    line-height: 1.4;   /* Basis-Zeilenhöhe für Türkisch */
}
.side-menu ul a {
    padding-left: 52px; /* Stärkeres Einrücken für Untermenüs (Icon (20px) + Padding (15px) + Einrückung (17px)) */
}


/* 2. Styling für den deutschen Text (macht ihn zweizeilig und bündig) */
.side-menu a .lang-tr {
    display: block; /* Stellt sicher, dass der türkische Text oben ist */
}
.side-menu a .lang-de {
    display: block;   /* Erzwingt die neue Zeile */
    font-size: 11px;  /* Kleiner */
    font-weight: normal; /* Dünner */
    color: #666;      /* Etwas ausgegraut */
    margin-top: 2px;
}
.side-menu a:hover .lang-de {
    color: #ffffff;   /* Deutscher Text wird auch weiß beim Hover */
}
.side-menu ul a:hover .lang-de {
    color: #1D3E8E; /* Beim Hover im Untermenü */
}


/* 3. CSS für das Aufklappen (Submenüs standardmäßig ausblenden) */
.side-menu ul {
    display: none; /* Submenü ist versteckt */
    overflow: hidden;
}

/* 4. CSS-Regel, die das Menü anzeigt, wenn die Eltern-LI die Klasse "open" hat */
.side-menu li.open > ul {
    display: block;
}

/* 5. Plus/Minus-Indikator für aufklappbare Menüs */
.side-menu a.has-submenu {
    position: relative;
}
.side-menu a.has-submenu::after {
    content: '+'; /* Plus-Zeichen als Indikator */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #bbb;
}
.side-menu a.has-submenu:hover::after {
    color: #fff;
}

/* Indikator ändert sich zu Minus, wenn geöffnet */
.side-menu li.open > a.has-submenu::after {
    content: '−'; /* Minus-Zeichen */
    color: #fff;
}
.page-menu-column {
    /* Diese Spalte enthält das Menü */
}
/* --- NEU: Stile für defekteaktuell.asp --- */

/* Übersetzt die alte bgcolor="#ff33ff" in eine CSS-Klasse */
.data-table tr.row-highlight-old td {
    background-color: #ffccff; /* Helleres, angenehmeres Pink/Magenta */
}
/* Übersetzt die alte bgcolor="#cccfff" in eine CSS-Klasse */
.data-table tr.row-highlight-new td {
    background-color: #ccccff; /* Helleres Blau/Lila */
}

/* Dein Blink-Effekt für fehlende Fehlerbeschreibung */
.data-table td.blink {
  animation: blinker1 1.5s linear infinite;
}
@keyframes blinker1 {
  50% { background-color: #ff4d4d; color: #ffffff; }
}

/* Dein Blink-Effekt für fehlende Lösung */
.data-table td.blink2 {
  animation: blinker2 1.5s linear infinite;
}
@keyframes blinker2 {
  50% { background-color: #ffff99; }
}

/* Stile für die kleinen Sortier-Pfeile */
.data-table th a img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}
.data-table th a:hover img {
    opacity: 1;
}

/* Stile für die Status-Bilder in der Tabelle */
.data-table .status-cell img {
    width: auto; /* Behält die Originalgröße der Status-PNGs bei */
    max-height: 24px;
    vertical-align: middle;
}
/* --- NEU: Print-Stile (für Berichte) --- */
@media print {
    
    /* Versteckt alles, was 'no-print' Klasse hat */
    .no-print, .no-print * {
        display: none !important;
    }
    
    /* Versteckt unsere Standard-Navigationselemente */
    .header, .navigation, .page-menu-column {
        display: none !important;
    }
    
    /* Stellt sicher, dass der Inhalt die volle Seite einnimmt */
    .page-layout-grid {
        display: block !important; /* Deaktiviert das Grid-Layout */
        padding: 0 !important;
        margin: 0 !important;
    }
    .page-content-column {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Tabellen-Stile für den Druck anpassen */
    .data-table, .data-table tr, .data-table td, .data-table th {
        border: 1px solid #999 !important;
        font-size: 9pt !important;
        background-color: #ffffff !important;
    }
    
    /* Titel für den Bericht sichtbar lassen */
    .page-content-column h2 {
        font-size: 16pt !important;
        text-align: center;
        margin-bottom: 15px;
    }
}
/* --- NEU: Für fällige Wartungen --- */
.data-table tr.wartung-faellig td {
    background-color: #ffe8e6; /* Leichtes Rot */
    font-weight: bold;
    color: #a94442;
}
/* --- NEU: Für Bericht-Detail-Zeilen (berichtgarantie.asp) --- */

/* Dies ist die Haupt-Datenzeile. Wir entfernen den Rand unten. */
.data-table .data-row td {
    border-bottom: none;
    font-size: 11px; /* Etwas kleiner für die vielen Daten */
    vertical-align: top;
}

/* Dies ist die neue "Hizmet"-Zeile */
.data-table .hizmet-row td {
    /* Wichtig: Diese Hintergrundfarbe überschreibt die 'bgcolor'-Farbe,
       damit sie sich leicht abhebt, aber die Gruppierung behält. */
    background-color: #fdfdfd !important; 
    border-bottom: 2px solid #ddd; /* Starke Trennung zum nächsten Datensatz */
    padding: 15px 20px;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    word-wrap: break-word;
}

/* Wenn die Zeile "even" (CCFFFF) ist, machen wir den Hintergrund dunkler */
.data-table tr.row-even.hizmet-row td {
     background-color: #f5f8ff !important;
}
/* --- NEU: Stile für das Download-Portal (Datei-Explorer) --- */

.file-explorer {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-explorer li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex; /* Richtet Icon und Text nebeneinander aus */
    align-items: center;
}

/* Haupteintrag (Ordner oder Datei) */
.file-explorer a.item-link {
    flex-grow: 1; /* Nimmt den meisten Platz ein */
    text-decoration: none;
    color: #1D3E8E;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.file-explorer a.item-link:hover {
    text-decoration: underline;
}

/* Datei-Informationen (Größe, Datum) */
.file-explorer .item-info {
    font-size: 12px;
    color: #777;
    margin-left: 20px;
    min-width: 200px; /* Hält die Spalte ausgerichtet */
    text-align: right;
}

/* Löschen-Link (Admin) */
.file-explorer .delete-link {
    font-size: 12px;
    color: #d9534f; /* Rot */
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}
.file-explorer .delete-link:hover {
    text-decoration: underline;
}

/* Icons für Ordner und Dateien */
.file-explorer .icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.file-explorer .item-folder > a.item-link > .icon {
    background-image: url('images/folder.png'); /* Du musst ein 'folder.png' Bild haben */
}
.file-explorer .item-file > a.item-link > .icon {
    background-image: url('images/file.png'); /* Du musst ein 'file.png' Bild haben */
}

/* Verschachtelte Listen (Unterordner) */
.file-explorer ul {
    list-style: none;
    padding-left: 36px; /* Einrücken für Unterordner */
    margin: 5px 0;
    border-left: 2px dashed #ccc;
}
/* Fügen Sie dies in den <style> Block in lieferantadresse.asp ein: */
html, body {
	/* Wichtig: Stellt sicher, dass das body-Element die volle Höhe und Breite nutzt */
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: auto; /* Erlaubt Scrollen, falls nötig */
	text-align: center;
}
.popup-card {
    /* Stellt sicher, dass Ihr Hauptinhaltscontainer die gesamte Fläche der Seite nutzt */
    min-width: 100%;
    min-height: 100%;
    /* Eventuell ändert sich padding/margin je nach Ihrer genauen Implementierung */
    box-sizing: border-box; 
}
.button-danger {
    background-color: #d9534f; /* Rot */
    color: white;
    border: 1px solid #d43f3a;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
}
/* --- Basis-Styles für alle Buttons --- */
.button-primary, .button-secondary, .button-danger {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid transparent; /* Einheitliche Basis-Linie */
    text-decoration: none; /* Für den Link-Button */
    display: inline-block; /* Für den Link-Button */
}

/* --- 1. Gelesen markieren (Dunkelblau/Primär) --- */
.button-primary {
    background-color: #1D3E8E; /* Dunkelblau (Beispielwert) */
    color: white;
}

/* --- 2. Löschen (Rot) --- */
.button-danger {
    background-color: #d9534f; /* Rot */
    color: white;
    border-color: #d43f3a;
}

/* --- 3. Neue Nachricht senden / Zurück (Sekundär) --- */
.button-secondary {
    background-color: #6c757d; /* Grau, Standard Sekundärfarbe */
    color: white;
    border-color: #5a6268;
}.page-layout-grid .page-content-column .form-card .table-responsive-wrapper .data-table.striped-table.compact-table tbody tr td .btn.no-print {
	color: #FFFFFF;
}
