﻿/* | Indicates a comment section in the CSS
-------------------------------------------------------------- */

/* ===== General Styles ===== */
html {
    position: relative;
    min-height: 100%;
    height: 100%;
    font-size: 13px;
}

:root {
    --app-bg: #f4f6f8;
    --app-surface: #ffffff;
    --app-border: #e3e8ef;
    --app-text: #111827;
    --app-muted: #6b7280;
    --app-accent: #0d6efd;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #000;
    line-height: normal;
    background-color: lightgrey;
    overflow: hidden;
}

.app-shell {
    min-height: 100vh;
    background: var(--app-bg);
}

.underline-text {
    text-decoration: underline;
}

.breadcrumb-nav {
    margin-bottom: 12px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 6px 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--app-accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af;
}

.minimal-tabs {
    border-bottom: 1px solid var(--app-border);
}

.minimal-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--app-muted);
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 0;
}

.minimal-tabs .nav-link.active,
.minimal-tabs .nav-link:hover {
    color: var(--app-text);
    background: transparent;
    border-bottom-color: var(--app-accent);
}

.table-responsive-modern {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.table-modern {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: #f8fafc;
    color: var(--app-text);
    border-bottom: 1px solid var(--app-border);
    padding: 12px;
    font-weight: 700;
}

.table-modern tbody td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f9fbfd;
}

.table-compact thead th,
.table-compact tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    /* layout for the panel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .loading-overlay[hidden] {
        display: none !important;
    }

.loading-overlay__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1a1d23;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a1d23;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

main {
    flex: 1;
    padding: 20px 32px;
}

h1 {
    font-size: 48px;
    line-height: 64px;
}

h3 {
    font-size: 28px;
    margin-bottom: 37px;
}

.sub-heading {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    font-size: 13px;
    font-weight: normal;
}

.ms-Dialog {
    max-width: initial;
    width: 600px;
    padding-bottom: 0;
}

.ms-Dialog-content {
    min-height: 200px;
    padding-bottom: 30px;
}

.ms-Dialog-actions {
    display: flex;
    height: 91px;
    background-color: rgba(233, 237, 243, 0.3);
    align-items: center;
    justify-content: flex-end;
    margin: 0 -24px;
    padding: 0 24px;
}

    .ms-Dialog-actions > button {
        margin-left: 20px;
    }

.ms-ContextualMenu-item a:hover {
    text-decoration: none;
}

.ms-link-button {
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    vertical-align: top;
    padding-top: 0px;
    padding-right: 16px;
    padding-bottom: 0px;
    padding-left: 16px;
    min-width: 163px;
    height: 43px;
    background-color: rgb(255, 255, 255);
    color: rgb(50, 49, 48);
    user-select: none;
    outline: transparent;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(138, 136, 134);
    border-image: initial;
    text-decoration: none;
    border-radius: 2px;
}

    .ms-link-button:hover {
        background-color: rgb(243, 242, 241);
        color: rgb(32, 31, 30);
        text-decoration: none;
    }

    .ms-link-button:active {
        background-color: rgb(237, 235, 233);
        color: rgb(32, 31, 30);
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.ms-Button {
    min-width: 170px;
    font-size: 20px;
    height: auto;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 0px;
    line-height: 50px;
}

    .ms-Button .ms-Button-label {
        font-size: 18px;
    }

    .ms-Button.ms-Button--small {
        line-height: 30px;
    }

        .ms-Button.ms-Button--small .ms-Button-label {
            font-size: 18px;
        }

.ms-Button--gray {
    background-color: #707071;
}

    .ms-Button--gray:hover {
        background-color: #605e5c;
    }

    .ms-Button--gray:active {
        background-color: #707071;
    }

    .ms-Button--gray .ms-Button-label, .ms-Button--gray:hover .ms-Button-label {
        color: white;
    }

a.ms-Button {
    text-decoration: none;
}

.ms-Label, .ms-TextField .ms-Label {
    font-size: 16px;
    font-weight: 600;
}

.ms-Link {
    font-size: 15px;
}

    .ms-Link:focus, .ms-Link:hover {
        text-decoration: none;
    }

.ms-Table tbody td {
    font-size: 15px;
    line-height: 70px;
}

.ms-Table td, .ms-Table th {
    border-bottom: 1px solid #E9EDF3;
    color: #000;
}

.ms-Table-head, .ms-Table thead th {
    font-size: 18px;
    font-weight: 700;
    line-height: 60px;
    color: #000;
}

.ms-Table-row, .ms-Table tr {
    font-size: 14px;
}

.ms-Toggle-field .ms-Label {
    white-space: nowrap;
    position: relative;
    top: -5px;
}

/*.ms-Toggle-description {
    font-size: 14px;
}*/

.wrapper-section {
    display: flex;
    flex-flow: column;
    min-width: 807px;
    min-height: 353px;
    background: #FFFFFF;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    padding: 24px 40px 0;
}

    .wrapper-section h1 {
        margin-bottom: 20px;
    }

    .wrapper-section p {
        font-size: 24px;
        margin-bottom: 36px;
    }

    .wrapper-section .content {
        flex: 1;
        /*        padding-bottom: 10px;*/
    }

    .wrapper-section .bottom-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /*  justify-content: center;*/
        min-height: 80px;
        background: rgba(233, 237, 243, 0.3);
        margin: 0 -40px;
        padding-right: 20px; /* Add right padding */
        gap: 10px; /* Add vertical space between button and text */
    }

        .wrapper-section .bottom-action span {
            margin-top: 2px;
            font-size: 0.95em;
        }

.ms-ContextualMenu.ms-ContextualMenu--hasChecks .ms-ContextualMenu-link, .ms-ContextualMenu.ms-ContextualMenu--hasIcons .ms-ContextualMenu-link {
    padding: 0 16px 0 15px !important;
}

.user-management section {
    display: none;
}

#ISVManagement section:nth-child(n+2) {
    display: none;
}

.center {
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.activate-center {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-direction: column;
}

.ms-ContextualHost {
    left: auto !important;
    right: 28px;
}

header {
    display: flex;
    height: 58px;
    border-bottom: 1px solid #E9EDF3;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo span {
        font-size: 16px;
        font-weight: 600;
        margin-left: 9px;
    }

        .logo span a {
            color: #000;
            text-decoration: none !important;
        }

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    min-height: 65px;
    flex-shrink: 0;
    border-top: 1px solid #E9EDF3;
    color: #477BA1;
    font-size: 13px;
}

.login-section {
    width: 620px;
    height: 344px;
    background: #FFFFFF;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 2px;
}

    .login-section header {
        border: none;
        height: auto;
        padding: 25px;
    }

    .login-section p, .login-section a {
        margin: 35px 0 0 65px;
    }


/*#seatBasedSection table {
    min-height: 150px;
}*/

/* User Management page */
#seatBasedSection p {
    font-size: 13px;
}

#purchaseLicenseButton {
    position: relative;
}

/* ===== Sidebar Navigation ===== */
.sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: margin-left 0.3s ease;
}

    .sidebar .nav-link {
        padding: 8px 16px;
        font-size: 13px;
        border-left: 3px solid transparent;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

        .sidebar .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-left-color: rgba(255, 255, 255, 0.3);
        }

        .sidebar .nav-link.active {
            background-color: rgba(255, 255, 255, 0.15);
            border-left-color: #0d6efd;
            font-weight: 600;
        }

    .sidebar .nav {
        overflow-y: auto;
    }

.sidebar-footer {
    margin-top: auto;
    flex-shrink: 0;
}

    .sidebar-footer .nav-link {
        padding: 4px 0;
        font-size: 13px;
    }

        .sidebar-footer .nav-link:hover {
            opacity: 0.8;
        }

/* Make body fill the viewport and prevent scroll on outer body */
body {
    height: 100vh;
    overflow: hidden;
}

/* Ensure the flex wrapper between sidebar and main fills available space */
.d-flex.flex-grow-1.overflow-hidden {
    min-height: 0;
    flex: 1;
}

main.overflow-auto {
    overflow-y: auto;
}

/* Responsive: hide sidebar on small screens, show with toggle */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 58px;
        left: 0;
        bottom: 0;
        z-index: 1040;
        margin-left: -250px;
    }

        .sidebar.sidebar-open {
            margin-left: 0;
        }
}

/* ===== Status Badges ===== */
.status-active {
    background: linear-gradient(135deg, #1e7e34 0%, #198754 100%);
    color: white;
}

.status-trial {
    background: linear-gradient(135deg, #cb9d12 0%, #fd7e14 100%);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

/* ===== Custom Theme Utilities ===== */
.bg-custom-dark {
    background-color: #212529 !important;
}

.text-custom-light {
    color: #f8f9fa !important;
}

.bg-custom-light {
    background-color: #f8f9fa !important;
}

.text-custom-muted {
    color: #6c757d !important;
}

/* ===== Custom Context Menu ===== */
.custom-context-menu {
    display: none;
    position: absolute;
    z-index: 1100;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 4px 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

    .custom-context-menu button {
        display: block;
        width: 100%;
        padding: 5px 10px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
    }

        .custom-context-menu button:hover {
            background: #f0f0f0;
        }

    .custom-context-menu .menu-header {
        padding: 4px 12px;
        font-size: 0.7rem;
        font-weight: 700;
        color: #6b7280;
        background-color: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .custom-context-menu ul li {
        padding: 4px 12px;
        font-size: 0.8rem;
        cursor: pointer;
        color: #374151;
        transition: background-color 0.1s;
        display: flex;
        align-items: center;
        line-height: 1.4;
    }

        .custom-context-menu ul li:hover {
            background-color: #eff6ff;
            color: #2563eb;
        }

            .custom-context-menu ul li:hover i {
                color: #2563eb !important;
            }

        .custom-context-menu ul li i {
            font-size: 0.8rem;
            width: 16px;
            text-align: center;
            margin-right: 8px !important;
        }

    .custom-context-menu .dropdown-divider {
        margin: 3px 0;
    }

#tagsMenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
    width: 100%;
}

#insertTagsButton::after {
    transform: rotate(270deg);
}

/* ===== Offcanvas Overrides ===== */
#offcanvasright {
    width: 60vw;
}

.search-card,
.create-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.search-header,
.create-header {
    background: linear-gradient(135deg, #1a1d23, #2c3038);
    color: #fff;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-body,
.create-body {
    padding: 1.75rem 1.5rem;
}

.search-section + .search-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef0f3;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #6b7078;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1d23;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e2e5ea;
    padding: 0.6rem 0.85rem;
    font-size: 0.925rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0078d4;
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
    }

.btn-search {
    background: #1a1d23;
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .btn-search:hover {
        background: #000;
        transform: translateY(-1px);
    }

.btn-reset {
    background: #f1f3f6;
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    color: #4a4f57;
    transition: background 0.15s ease;
}

    .btn-reset:hover {
        background: #e5e8ec;
        color: #1a1d23;
    }

.btn-create {
    border: 1.5px solid #1a1d23;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    color: #1a1d23;
    transition: background 0.15s ease, color 0.15s ease;
}

    .btn-create:hover {
        background: #1a1d23;
        color: #fff;
    }

