/* SAP GUI Theme Styles
   =====================
   HINWEIS: Die meisten Basis-Styles werden jetzt von 98.css und
   sap-98-bridge.css bereitgestellt. Diese Datei enthält nur noch:
   - Legacy-Kompatibilität
   - Maximized/Minimized Window States
   - SAP-Tabellen (komplexe Styles)
   - Spezifische Overrides
*/

/* ==========================================================================
   WINDOW STATES - Müssen hier bleiben für JavaScript-Interaktion
   ========================================================================== */

.window.sap-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--taskbar-height)) !important;
    border-radius: 0;
}

.window.sap-window.minimized {
    display: none;
}

/* ==========================================================================
   SAP TABELLEN - Komplexe Styles die von 98.css nicht abgedeckt werden
   ========================================================================== */

.sap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.sap-table th {
    background: #000080;
    color: white;
    padding: 3px 6px;
    text-align: left;
    font-weight: normal;
    border: 1px solid #000060;
}

.sap-table td {
    padding: 2px 6px;
    border: 1px solid #808080;
    background: white;
}

.sap-table tr:nth-child(even) td {
    background: #f0f0f0;
}

.sap-table tr:hover td {
    background: #000080;
    color: white;
}

.sap-table tr.selected td {
    background: #000080;
    color: white;
}

.sap-table input {
    width: 100%;
    height: 20px;
    border: 1px solid #808080;
    padding: 1px 3px;
    font-size: 12px;
    background: white;
}

.sap-table input:focus {
    outline: none;
    background: #ffffcc;
}

/* ==========================================================================
   LEGACY BUTTON CLASSES - Für Rückwärtskompatibilität
   ========================================================================== */

.sap-btn {
    /* 98.css übernimmt die Basis-Styles für <button> */
    padding: 4px 16px;
    min-width: 80px;
    font-size: 13px;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #dfdfdf;
    cursor: pointer;
}

.sap-btn:hover {
    background: #d4d4d4;
}

.sap-btn:active {
    border: 2px inset #808080;
    background: #a0a0a0;
}

.sap-btn.primary {
    background: #000080;
    color: white;
    border: 2px outset #4040c0;
    font-weight: bold;
}

.sap-btn.primary:hover {
    background: #0000a0;
    border-color: #6060e0;
}

.sap-btn.primary:active {
    background: #000060;
    border: 2px inset #000060;
}

/* ==========================================================================
   FORM ELEMENT SIZES - Breiten-Klassen für Inputs
   ========================================================================== */

input.short,
.sap-form-group input.short {
    width: 60px;
}

input.medium,
.sap-form-group input.medium {
    width: 140px;
}

input.long,
.sap-form-group input.long {
    width: 260px;
}

/* ==========================================================================
   STATUS INFO - Zusätzliche Statusbar-Elemente
   ========================================================================== */

.sap-status-info {
    color: #808080;
    font-size: 11px;
}

/* ==========================================================================
   REQUIRED FIELD MARKER
   ========================================================================== */

.required::after {
    content: " *";
    color: #ff0000;
}

/* ==========================================================================
   LEGACY SUPPORT - Alte Klassen die noch referenziert werden könnten
   ========================================================================== */

/* Falls .sap-titlebar noch irgendwo verwendet wird */
.sap-titlebar {
    cursor: move;
}

/* Toolbar Button Legacy */
.sap-toolbar-btn {
    min-width: 23px;
    min-height: 22px;
}

/* F4-Hilfe Button */
.f4-btn {
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    font-size: 10px;
}
