html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.thumb32 {
    width: 32px !important;
    height: 32px !important;
}

.thumb48 {
    width: 48px !important;
    height: 48px !important;
}

.thumb64 {
    width: 64px !important;
    height: 64px !important;
}

.uk-notify {
    z-index: 1060;
}

.editable-buttons, .editable-input {
    vertical-align: middle;
}

.editable-input {
    margin-bottom: 5px;
}

.editable.editable-click {
    cursor: pointer;
}

a.badge {
    cursor: pointer
}

.dropzone.dz-clickable * {
    cursor: pointer;
}

.btnNew {
    min-width: 32px;
    min-height: 32px;
    position: relative;
    text-align: center;
}

    .btnNew i {
        font-size: 18px !important;
        position: absolute;
        left: 7px;
        top: 35%;
        transform: translateY(-50%);
    }

.btnNewB {
    min-width: 32px;
    min-height: 32px;
    position: relative;
    text-align: center;
}

    .btnNewB i {
        font-size: 20px !important;
        position: absolute;
        left: 5px;
        top: 53%;
        transform: translateY(-50%);
    }

.hidden {
    display: none !important;
}

.emptyInput {
    color: red;
    margin-left: 5px;
}

label.emptyInput {
    display: inline;
}

.treeview-animated .treeview-animated-list .treeview-animated-items .closed {
    border-radius: 0.3em;
}

.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

@media (max-width: 580px) {
    .topnavbar .dropdown .dropdown-menu {
        position: absolute;
        margin-top: 0;
        top: auto;
        left: 10%;
        right: 21%;
    }

    .brand-logo {
        padding-left: 200px;
    }
}

@media (max-width: 768px) {
    .navbar .navbar-header .navbar-brand .brand-logo,
    .navbar .navbar-header .navbar-brand .brand-logo-collapsed {
        display: block;
        margin: 0 auto;
        padding: 6px 45px;
    }

    .navbar .navbar-header .navbar-brand .brand-logo {
        display: none;
    }
}

#notifDrop {
    width: 350px;
    border-radius: 0.25rem;
    overflow-y: auto;
    max-height: 500px;
}

#notific {
    padding: 0;
}

#notifList {
    display: flex;
    flex-direction: column;
}

.notif-item {
    cursor: pointer;
    display: flex;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

    .notif-item:hover {
        background-color: #f5f5f5;
    }

.notif-unread {
    background-color: #eaf4ff;
}

.notif-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    font-size: 20px;
}

.notif-content {
    flex-grow: 1;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.notif-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.notif-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
}

.notif-meta-row {
    display: flex;
    justify-content: left;
    font-size: 12px;
    color: #999;
    gap: 5px;
}

.notif-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#notifDrop::-webkit-scrollbar {
    width: 6px;
}

#notifDrop::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 3px;
}

#notifDrop::-webkit-scrollbar-track {
    background: transparent;
}

.btn-fixed {
    width: 25px !important;
    height: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.status-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
}

.status-btn:hover {
    opacity: 0.8;
}


/* Professional table styling */
#priortable {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
}

    #priortable thead th {
        background-color: #6c757d;
        color: white;
        font-weight: 600;
        font-size: 0.8125rem;
        /*text-align: center;*/
        padding: 10px 8px;
        border: none;
        text-transform: none;
        letter-spacing: normal;
        vertical-align: middle;
    }

        /* First column header styling */
        #priortable thead th:first-child {
            background-color: #d4af37; /* Gold color */
            font-weight: 700; /* Bolder */
            color: #2a2118; /* Dark text for contrast */
        }

    #priortable tbody tr {
        border-bottom: 1px solid #e9ecef;
    }

        #priortable tbody tr:hover {
            background-color: #f8f9fa;
        }

        #priortable tbody tr:last-child {
            border-bottom: none;
        }

    #priortable td {
        padding: 8px 8px;
        vertical-align: middle;
        border: none;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.4;
        /*text-align: center;*/
    }

        /* First column cell styling */
        #priortable td:first-child {
            font-weight: 700; /* Bolder */
            color: #d4af37; /* Gold color */
            background-color: #fffae6; /* Light gold background for better readability */
        }

        /* Word wrap styling for description and indicator columns */
        #priortable td.word-wrap {
            word-wrap: break-word;
            word-break: break-word;
            white-space: normal;
            line-height: 1.4;
        }

        #priortable td.description-column {
            max-width: 280px;
            min-width: 200px;
        }

        #priortable td.indicator-column {
            max-width: 200px;
            min-width: 120px;
        }

        /* Rating Criteria column styling */
        #priortable td.rating-criteria {
            font-size: 0.8125rem;
            font-weight: 600;
            color: #495057;
            text-align: center;
        }

    /* Radio button styling */
    #priortable input[type="radio"] {
        margin-right: 6px;
        transform: scale(0.9);
        accent-color: #6c757d;
    }

    #priortable ul {
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: left;
    }

    #priortable li {
        margin-bottom: 3px;
        padding: 2px 4px;
        display: flex;
        align-items: center;
    }

        #priortable li span {
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.2;
            color: #495057;
        }

/* Professional rating display styling */
.rating-display {
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 6px;
    border-radius: 50%;
    color: white;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rating-0 {
    background-color: #dc3545;
    border: 2px solid #c82333;
}

.rating-1 {
    background-color: #fd7e14;
    border: 2px solid #e55a00;
}

.rating-2 {
    background-color: #0d6efd;
    border: 2px solid #0b57d0;
}

.rating-3 {
    background-color: #198754;
    border: 2px solid #146c43;
}

/* Center alignment for rating column */
#priortable td.rating-column {
    text-align: center;
    vertical-align: middle;
}

/* Criteria column styling */
#priortable td.criteria-column {
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 0.8125rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    #priortable {
        font-size: 0.75rem;
        font-weight: 600;
    }

        #priortable thead th {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 6px 4px;
        }

            /* First column header in mobile */
            #priortable thead th:first-child {
                font-weight: 700;
            }

        #priortable td {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 6px 4px;
        }

            /* First column cells in mobile */
            #priortable td:first-child {
                font-weight: 700;
            }

            #priortable td.word-wrap {
                max-width: 180px;
                min-width: 100px;
            }

            #priortable td.description-column {
                max-width: 200px;
                min-width: 150px;
            }

            #priortable td.indicator-column {
                max-width: 150px;
                min-width: 100px;
            }

        #priortable li span {
            font-size: 0.75rem;
            font-weight: 600;
        }

    .rating-display {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        font-weight: 600;
    }
}

/* Ensures text wraps normally */
.text-wrap {
    white-space: normal !important;
    word-break: break-word;
}

.total-score-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    padding: 0 0.5rem;
}

.total-score-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.total-score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6c757d;
    min-width: 24px;
    text-align: center;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.total-score-max {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .total-score-container {
        justify-content: center;
        margin-top: 1rem;
    }

    .total-score-wrapper {
        padding: 10px 16px;
        gap: 6px;
    }

    .total-score-label {
        font-size: 0.8rem;
    }

    .total-score-value {
        font-size: 1.1rem;
        padding: 3px 6px;
    }

    .total-score-max {
        font-size: 0.8rem;
    }
}

/* Animation for score updates */
.total-score-value.updated {
    animation: scoreUpdate 0.5s ease-in-out;
}

@keyframes scoreUpdate {
    0% {
        transform: scale(1);
        background: white;
    }

    50% {
        transform: scale(1.1);
        background: #e3f2fd;
    }

    100% {
        transform: scale(1);
        background: white;
    }
}

.filter-btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

    .filter-btn:hover {
        cursor: pointer;
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .filter-btn.active {
        outline: 2px solid #fff;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    }