/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Preload Latin-ext glyphs for Figtree to avoid late-loading Turkish characters (ş, ğ, İ, etc.) */
body::before,
body::after {
    content: "ĞğİıÖöŞşÜüÇç";
    font-family: "Figtree", sans-serif;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Trigger a bold/semibold font file as well (helps reduce layout shifts when 700+ weights are used). */
body::after {
    font-weight: 700;
}

#root {
    height: 100%;
}

.app-container {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h1 {
    color: #0078d4;
    font-size: 22px;
    margin: 0;
    padding: 0;
}

.app-content {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
}

.app-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.app-button:hover {
    background-color: #106ebe;
}

.app-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
} 

.legacy-warning-root {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.legacy-warning {
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-top: 4px solid #0078d4;
    border-radius: 12px;
    padding: 24px 24px 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legacy-warning-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f2f1;
}

.legacy-warning-logo {
    width: 24px;
    height: 24px;
    display: block;
}

.legacy-warning-brand-text {
    font-size: 24px;
    line-height: 24px;
    font-weight: 600;
    color: #201f1e;
    letter-spacing: 0.2px;
}

.legacy-warning-separator {
    height: 1px;
    background: #edebe9;
    margin: 0 0 14px;
}

.legacy-warning h1 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #201f1e;
}

.legacy-warning p {
    margin: 0 0 10px;
    color: #605e5c;
}

.legacy-warning p:last-child {
    margin-bottom: 0;
}

.legacy-warning-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.legacy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.legacy-btn-primary {
    background-color: #0078d4;
    color: #ffffff;
}

.legacy-btn-primary:hover,
.legacy-btn-primary:focus {
    background-color: #106ebe;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
}

.legacy-btn-secondary {
    background-color: #ffffff;
    color: #0078d4;
    border: 1px solid #0078d4;
}

.legacy-btn-secondary:hover,
.legacy-btn-secondary:focus {
    background-color: #f3f9fd;
    color: #106ebe;
    border-color: #106ebe;
}

@media screen and (min-width: 621px) {
    .hk-fin-table {
      table-layout: fixed !important;
      width: 100% !important;
    }
    .hk-fin-table th,
    .hk-fin-table td {
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }
    .hk-fin-table th:nth-child(1), .hk-fin-table td:nth-child(1) { width: 30% !important; }
    .hk-fin-table th:nth-child(2), .hk-fin-table td:nth-child(2) { width: 12% !important; }
    .hk-fin-table th:nth-child(3), .hk-fin-table td:nth-child(3) { width: 14% !important; }
    .hk-fin-table th:nth-child(4), .hk-fin-table td:nth-child(4) { width: 10% !important; }
    .hk-fin-table th:nth-child(5), .hk-fin-table td:nth-child(5) { width: 34% !important; }
  }