﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

.validation-summary-errors {
    color: #f00 !important;
}

.navbar {    
    background: #030303 0% 0% no-repeat padding-box;
    opacity: 1;
}

a.navbar-brand {
    /*white-space: normal;
    text-align: center;
    word-break: break-all;*/
    text-align: left;
    font: normal normal bold 24px/32px Arial;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
}

h1 {
    font-family: Open Sans;
    font-size: 45px/61px !important;
    font-weight: bold;
    letter-spacing: 0px;
    color: #000000;
    opacity: 1;
}

.btn-01 {
    background: #FFEB00 0% 0% no-repeat padding-box;
    font: normal normal 600 14px/20px Source Sans Pro;
    letter-spacing: 0.56px;
    color: #202020;
    opacity: 1;
    cursor: pointer;
    padding: .5rem .9rem;
    line-height: 1.5;
    font-size: 1rem;
    border: 1px solid #000;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.dropdown-item:focus, .dropdown-item:hover, .dropdown-item:active {
    background-color: #FFEB00 !important;
    color: #000 !important;
}

/* Feature menu sections (Components/FeatureMenu) */
.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.dropdown-section + .dropdown-section {
    border-top: 1px solid #e9ecef;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.dropdown-section-setup .dropdown-item {
    color: #495057;
}

@media (min-width: 992px) {
    /* Each column is as wide as its longest item, so every item stays on one line.
       Two columns per row on narrower desktops, all four side by side once there is room. */
    .dropdown-menu-sections.show {
        display: grid;
        grid-template-columns: repeat(2, max-content);
    }

    .dropdown-menu-sections .dropdown-item {
        white-space: nowrap;
    }

    .dropdown-menu-sections .dropdown-section + .dropdown-section {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    .dropdown-menu-sections .dropdown-section-setup {
        border-left: 1px solid #e9ecef;
        background-color: #f8f9fa;
    }
}

@media (min-width: 1300px) {
    .dropdown-menu-sections.show {
        grid-template-columns: repeat(4, max-content);
    }
}

.nav-link {
    font: normal normal 600 14px/20px Source Sans Pro;
    letter-spacing: 0.56px;
    color: #FFFFFF !important;
    opacity: 1;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.alert {
    /*z-index: -1 !important;*/
}
.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom-yellow {
  border-bottom: 10px solid #F2CE27 !important;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.text-black {
    color: #000000 !important;
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.25rem;
    border-bottom: 4px solid #F2CE27;
}

.page-heading-icon {
    font-size: 1.9rem;
    color: #030303;
    background-color: #F2CE27;
    border-radius: 50%;
    padding: 0.5rem;
}

.page-heading h1 {
    margin: 0;
    font-size: 1.75rem !important;
    font-weight: bold;
}

.page-heading-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Reusable modern card/form panels (ClauseTracking, etc.)
-------------------------------------------------- */
.detail-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.detail-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #202020;
    margin-bottom: 1rem;
}

.detail-card-title i {
    color: #F2CE27;
    margin-right: 0.35rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.detail-value {
    font-size: 0.95rem;
    color: #202020;
}

.detail-card table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #6c757d;
    border-top: 0;
}

.detail-actions {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 0.25rem;
}

@media (max-width: 767px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    /*font-family: 'Open Sans';
    font-size: '14px/18px';*/
    
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
  background: #E5E5E5 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 0.9;
    color: #000000 !important;
}

.k-grid .k-command-cell > .k-button + .k-button {
    margin-inline-start: 0 !important;
}

.k-button {
    margin-bottom: 0px !important;
}

.k-grid-Edit {
    background-color: rgb(0, 120, 212) !important;
    color: white !important;
    padding-right: 10px !important;
}

    .k-grid-Edit:hover {
        background-color: rgb(0, 120, 255) !important;
    }

.k-grid-Delete {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
    padding-right: 10px !important;
}

.k-toolbar .k-input, .k-toolbar .k-picker {
    width: 20em !important;
}

.grid-a {
    color: #0366d6 !important;
    text-decoration: underline !important;
}

.btn-white {
    color: #fff !important;
    cursor: pointer !important;
}

.accordionHeader {
    color: #000;
    background-color: #F2CE27;
    width: 100%;
    line-height: 1.5;
    padding: .375rem .75rem;
    font-size: 1rem;
    display: block;
    font-weight: bold;
}

.k-window-titlebar, .k-dialog-titlebar {
    display: none !important;
}


.bg-orange {background-color: orange !important; }
.bg-yellow {background-color: yellow !important; }
/* Users & Features admin (Feature/Index, Edit, Create)
-------------------------------------------------- */
.feature-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.feature-stat { flex: 1 1 140px; background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 0.6rem 0.9rem; border-left: 4px solid #F2CE27; }
.feature-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.feature-stat-label { color: #6c757d; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.feature-tabs .nav-link { color: #202020 !important; font-weight: 600; }
.feature-tabs .nav-link:not(.active) { color: #6c757d !important; }
.feature-tabs .nav-link.active { border-top: 3px solid #F2CE27; }

.feature-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.2rem; }
.feature-row-chips { display: flex; flex-wrap: wrap; flex: 1; }
.feature-row-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #6c757d; min-width: 3.6rem; padding-top: 0.25rem; }
.feature-chip { display: inline-block; font-size: 0.78rem; line-height: 1.3; padding: 0.1rem 0.5rem; border-radius: 1rem; background: #f1f3f5; border: 1px solid #dee2e6; color: #202020; white-space: nowrap; margin: 0.1rem 0.1rem 0.1rem 0; }
.feature-chip-all { background: #fff6cc; border-color: #F2CE27; font-weight: 600; }
.feature-chip-missing { background: #fff; border-style: dashed; color: #6c757d; text-decoration: line-through; }

.access-count { font-weight: 700; }
.access-bar { height: 6px; background: #e9ecef; border-radius: 3px; margin-top: 0.25rem; overflow: hidden; }
.access-bar > div { height: 100%; background: #F2CE27; }

.feature-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.feature-matrix-group { background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 0.75rem 0.9rem; }
.feature-matrix-group-title { font-weight: 700; font-size: 1.05rem; border-bottom: 3px solid #F2CE27; padding-bottom: 0.3rem; margin-bottom: 0.4rem; }
.feature-matrix-item summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 0.3rem 0.2rem; border-radius: 0.25rem; list-style: none; }
.feature-matrix-item summary::-webkit-details-marker { display: none; }
.feature-matrix-item summary::before { content: "\25B8"; color: #6c757d; margin-right: 0.4rem; }
.feature-matrix-item[open] summary::before { content: "\25BE"; }
.feature-matrix-item summary:hover { background: #f8f9fa; }
.feature-matrix-name { flex: 1; }
.feature-matrix-users { font-size: 0.78rem; font-weight: 600; background: #202020; color: #fff; border-radius: 1rem; padding: 0.05rem 0.5rem; white-space: nowrap; }
.feature-matrix-users.is-empty { background: #e9ecef; color: #6c757d; }
.feature-matrix-list { padding: 0.2rem 0.2rem 0.5rem 1.2rem; }

.feature-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #6c757d; margin: 0.5rem 0 0.15rem; }

.user-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-bottom: 1rem; }
.user-summary-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #6c757d; }

.feature-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.feature-group-card { background: #fff; border: 1px solid #dee2e6; border-radius: 0.5rem; overflow: hidden; }
.feature-group-card.has-selection { border-color: #F2CE27; }
.feature-group-header { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.5rem 0.75rem; background: #f8f9fa; border-bottom: 1px solid #dee2e6; cursor: pointer; font-weight: 700; }
.feature-group-card.has-selection .feature-group-header { background: #fff6cc; }
.feature-group-title { flex: 1; }
.feature-group-count { font-size: 0.8rem; font-weight: 600; color: #6c757d; }
.feature-group-body { padding: 0.25rem 0.75rem 0.6rem; }
.feature-item { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.2rem 0; cursor: pointer; font-weight: normal; }
.feature-checklist-toolbar .btn-link { padding-top: 0; padding-bottom: 0; }


/* Icon-only grid command buttons (opt in per command with .grid-icon-btn)
-------------------------------------------------- */
.k-grid .k-command-cell:has(.grid-icon-btn) { white-space: nowrap; }
.k-grid .k-button.grid-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    margin-right: 4px;
    border-radius: 6px;
    justify-content: center;
}
.k-grid .k-button.grid-icon-btn .k-button-text { display: none; }
.k-grid .k-button.grid-icon-btn .k-button-icon { margin: 0; font-size: 15px; }
.k-grid .k-button.k-grid-Activate.grid-icon-btn { background-color: #d4edda !important; border-color: #c3e6cb !important; color: #155724 !important; }
.k-grid .k-button.k-grid-Activate.grid-icon-btn:hover { background-color: #c3e6cb !important; }
.k-grid .k-button.k-grid-Delete.grid-icon-btn:hover { background-color: #f5c6cb !important; }
.k-grid .k-button.k-grid-Deactivate.grid-icon-btn { background-color: #f8d7da !important; border-color: #f5c6cb !important; color: #721c24 !important; }
.k-grid .k-button.k-grid-Deactivate.grid-icon-btn:hover { background-color: #f5c6cb !important; }
