/* === Imports === */
@import url("buttons.css");
@import url("onoffswitch.css");
@import url("forms.css");
@import url("modals.css");
@import url("navbar.css");

/* === Global Styles === */
html, body {
    height: 100%;
    min-height: 100%;
    background-color: #f9fafb;
    font-family: "Inter", "Asap", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: #1f2d3d;
}

hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

body#LoginForm {
    background-image: url("../../img/basel.jpg");
    background-size: cover;
    background-position: center;
}

/* === Layout === */
.site-wrapper {
    background-color: #f9fafb;
    height: 100%;
}

.site-container,
.site-container-lg {
    padding: 0 2rem;
}

.wrapper {
    overflow: auto;
}

.menu-row {
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 48px;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* === Main Panel === */
.main_area {
    margin: 5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 0.4rem;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* === Typography === */
.heading1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.heading2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

/* === Utilities === */
.cursor-pointer {
    cursor: pointer !important;
}

.cursor-default {
    cursor: default !important;
}

.no-decoration {
    text-decoration: none;
}

.badge {
    background-color: #f1f5f9;
    color: #0f172a;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    float: right;
}

.breadcrumb {
    background-color: transparent !important;
}

.template {
    display: none !important;
}

/* === Responsive === */
@media only screen and (max-width: 1615px) {
    .document-row:first-child {
        width: 100%;
    }
}

/* === Datepicker === */
.ui-datepicker {
    border-radius: 0.4rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: none;
    font-size: 0.9rem;
}

.ui-datepicker-header {
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.6rem;
    background-color: #f8f9fa;
}
/* === End Styles === */

a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

/* === TomSelect Styling === */
.ts-wrapper {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 0.95rem;
    min-height: 38px;
}

.ts-wrapper.single .ts-control {
    padding: 0.5rem 0.75rem;
}

.ts-wrapper .ts-control {
    border: none !important;
    background-color: transparent;
    box-shadow: none;
}

.ts-wrapper.focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

.ts-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.ts-dropdown .option {
    padding: 0.375rem 1rem;
    cursor: pointer;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: #f8f9fa;
    color: #212529;
}

/* Placeholder style */
.ts-wrapper .ts-control input {
    color: #6c757d;
}

/* Dropdown Arrow Alignment */
.ts-wrapper.single .ts-control::after {
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
}
