﻿/* | Indicates a comment section in the CSS
-------------------------------------------------------------- */

/* ===== General Styles ===== */
.nav.nav-tabs .nav-link {
    color: #555;
    border: 1px solid #e5e7eb !important;
    background: #fff;
    margin-right: .5rem;
    border-radius: 10px;
}

    .nav.nav-tabs .nav-link.active {
        background: #212529;
        color: #fff;
        border-color: #000 !important;
    }
html {
    position: relative;
    min-height: 100%;
    height: 100%;
    font-size: 13px;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #000;
    line-height: normal;
    background-color: lightgrey;
    overflow: hidden;
}

.underline-text {
    text-decoration: underline;
}

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;
}


select.disabled-select,
.form-select.disabled-select {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.event-history-table {
    width: 100%;
    table-layout: fixed;
}

    .event-history-table .event-date-column {
        width: 20%;
    }

    .event-history-table .event-user-column {
        width: 20%;
    }

    .event-history-table .event-message-column {
        width: 60%;
    }

    .event-history-table th,
    .event-history-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        vertical-align: top;
    }

/* SendGuard User Action Report */

.sendguard-activity {
    --activity-border: #e7e9ed;
    --activity-muted: #6c757d;
    color: #212529;
}

    .sendguard-activity .activity-hero {
        color: #fff;
        background: linear-gradient(135deg, #000000 0%, #434343 100%);
    }

    .sendguard-activity .activity-hero-icon,
    .sendguard-activity .activity-empty-icon {
        display: grid;
        width: 3.5rem;
        height: 3.5rem;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 1rem;
        font-size: 1.55rem;
    }

    .sendguard-activity .activity-hero-icon {
        color: #fff;
        background: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .2);
    }

    .sendguard-activity .activity-status {
        padding: .6rem .9rem;
        border-radius: 2rem;
        color: #fff;
        background: rgba(255, 255, 255, .14);
        font-size: .875rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .sendguard-activity .activity-empty-icon {
        color: #495057;
        background: #f0f2f4;
    }

    .sendguard-activity .activity-error {
        border-radius: .85rem;
        min-height: 60vh;
        background: #fff;
    }

        .sendguard-activity .activity-error .card-body {
            padding: 3rem 2rem;
            min-height: 60vh;
        }

    .sendguard-activity .activity-error-icon {
        display: grid;
        width: 6rem;
        height: 6rem;
        place-items: center;
        border-radius: 1.5rem;
        font-size: 3rem;
        color: #b02a37;
        background: #fdecea;
    }

    .sendguard-activity .activity-error-title {
        font-size: 1.75rem;
        color: #212529;
    }

    .sendguard-activity .activity-error-text {
        max-width: 680px;
        font-size: 1.15rem;
        line-height: 1.6;
        color: #6c757d;
    }

    .sendguard-activity .card {
        border-radius: .85rem;
    }

    .sendguard-activity .activity-kpi {
        transition: transform .15s ease, box-shadow .15s ease;
    }

        .sendguard-activity .activity-kpi:hover {
            transform: translateY(-2px);
        }

    .sendguard-activity .activity-kpi-icon {
        display: grid;
        width: 3rem;
        height: 3rem;
        place-items: center;
        flex: 0 0 auto;
        border-radius: .8rem;
        font-size: 1.25rem;
    }

    .sendguard-activity .kpi-users {
        color: #0d6efd;
        background: #e7f1ff;
    }

    .sendguard-activity .kpi-emails {
        color: #198754;
        background: #e8f5ee;
    }

    .sendguard-activity .kpi-dlp {
        color: #dc3545;
        background: #fbeaec;
    }

    .sendguard-activity .kpi-confirmations {
        color: #6f42c1;
        background: #f0eafd;
    }

    .sendguard-activity .activity-kpi-value {
        font-size: 1.65rem;
        line-height: 1.15;
        font-weight: 700;
    }

    .sendguard-activity .activity-chart {
        min-height: 18rem;
        height: 18rem;
    }

    .sendguard-activity .activity-policy-filters {
        display: flex;
        gap: .5rem;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .sendguard-activity .activity-policy-filter {
        flex: 0 0 auto;
        border-radius: 2rem;
    }

    .sendguard-activity .activity-table th {
        border-bottom-width: 1px;
        font-size: .72rem;
        letter-spacing: .035em;
        white-space: nowrap;
    }

    .sendguard-activity .activity-table td {
        max-width: 15rem;
        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    .sendguard-activity .activity-main-row {
        cursor: pointer;
    }

        .sendguard-activity .activity-main-row:focus-visible {
            outline: 2px solid #0d6efd;
            outline-offset: -2px;
        }

    .sendguard-activity .activity-subject {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sendguard-activity .activity-policy-badge,
    .sendguard-activity .activity-status-badge {
        display: inline-block;
        max-width: 12rem;
        padding: .35rem .6rem;
        overflow: hidden;
        border-radius: 2rem;
        font-size: .75rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sendguard-activity .activity-policy-badge {
        color: #495057;
        background: #eef0f2;
    }

    .sendguard-activity .status-confirmed {
        color: #146c43;
        background: #dff3e9;
    }

    .sendguard-activity .status-blocked {
        color: #b02a37;
        background: #f8dfe2;
    }

    .sendguard-activity .status-warned {
        color: #997404;
        background: #fff2cd;
    }

    .sendguard-activity .status-processed {
        color: #495057;
        background: #eef0f2;
    }

    .sendguard-activity .activity-detail-row td {
        padding: 0;
        border-top: 0;
        background: #f8f9fa;
    }

    .sendguard-activity .activity-detail-panel {
        padding: 1.5rem 2rem;
        border-top: 1px solid var(--activity-border);
        border-bottom: 1px solid var(--activity-border);
    }

    .sendguard-activity .activity-detail-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .sendguard-activity .activity-detail-list li {
            margin-bottom: .55rem;
            overflow-wrap: anywhere;
        }

    .sendguard-activity .activity-match {
        padding: .55rem .7rem;
        border-left: 3px solid #dc3545;
        border-radius: .25rem;
        background: #fff;
        overflow-wrap: anywhere;
    }

    .sendguard-activity .pagination .page-link {
        color: #343a40;
    }

    .sendguard-activity .pagination .active .page-link {
        color: #fff;
        background: #212529;
        border-color: #212529;
    }

@media (max-width: 767.98px) {
    .sendguard-activity .activity-status {
        white-space: normal;
    }

    .sendguard-activity .activity-detail-panel {
        padding: 1.25rem;
    }
}
/* SendGuard User Action Report */

