@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("./variables.css");
@import url("./trihita-clean-global.css");
@import url("./layout/sidebar.css");
@import url("./layout/header.css");
@import url("./layout/footer.css");
@import url("./components/button.css");
@import url("./components/card.css");
@import url("./components/table.css");
@import url("./components/form.css");
@import url("./components/filter.css");
@import url("./components/modal.css");
@import url("./components/badge.css");
@import url("./components/alert.css");

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--thc-bg);
    color: var(--thc-text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.thc-shell {
    min-height: 100vh;
    padding: 18px;
}

.thc-content-shell {
    min-height: calc(100vh - 36px);
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thc-main {
    min-width: 0;
    flex: 1;
}

.thc-page {
    min-width: 0;
}

.thc-skip-link {
    position: fixed;
    top: -80px;
    left: 18px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--thc-green-800);
    color: #fff;
    transition: top 0.2s ease;
}

.thc-skip-link:focus {
    top: 18px;
}

@media (max-width: 1100px) {
    .thc-shell {
        padding: 14px;
    }

    .thc-content-shell {
        min-height: calc(100vh - 28px);
        margin-left: 228px;
    }
}

@media (max-width: 767px) {
    .thc-shell {
        padding: 12px;
    }

    .thc-content-shell {
        min-height: calc(100vh - 24px);
        margin-left: 0;
        gap: 10px;
    }
}
