/* MAIN THEME */

:root{
    --header-bg: #FBFBFB;
    --header-color: #222;
    --primary: #003B65;
    --primary-fg: #003B65;
    --header-color: #fff;
    --header-link-color: #fff;
}

.welcome-msg{
    color: #000;
}

.tree-svg{
    bottom: -33px;
    width: 400px;
    right: 0px;
    position: fixed;
    height: 500px;
    z-index: -99999;
}

.click-to-expand{
    font-size: 8px;
}

#header{
    border-bottom: 1px solid #d2d2d2;
}

#user-tools{
    font-size: 1rem;
}


#user-tools a {
    color: #000 !important;
    text-transform: none !important;
}

#user-tools a.buttonify {
    border-radius: 6.25rem;
    background-color: #023759;
    padding: 0.6875rem 2rem;
    color: #fff !important;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #79aec8;
        --primary-fg: #fff;

        --body-fg: #333;
        --body-bg: #fff;
        --body-quiet-color: #666;
        --body-loud-color: #000;

        --breadcrumbs-fg: #c4dce8;
        --breadcrumbs-bg: var(--primary);

        --link-fg: #447e9b;
        --link-hover-color: #036;
        --link-selected-fg: #5b80b2;

        --hairline-color: #e8e8e8;
        --border-color: #ccc;

        --error-fg: #ba2121;

        --message-success-bg: #dfd;
        --message-warning-bg: #ffc;
        --message-error-bg: #ffefef;

        --darkened-bg: #f8f8f8; /* A bit darker than --body-bg */
        --selected-bg: #e4e4e4; /* E.g. selected table cells */
        --selected-row: #ffc;

        --close-button-bg: #888; /* Previously #bbb, contrast 1.92 */
        --close-button-hover-bg: #747474;
    }
}

.admin-logo{
    height: 3rem;
}

.select2-results__option--highlighted{
    background-color: #d8d8d8 !important;
}

#scrollToEndBtn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#scrollToEndBtn:hover {
    opacity: 1;
}

.obj-id-width {
    width: 300px !important;
}

.tree-node.closed {
    background-image: url('/static/mptt/disclosure-right-black.png') !important;
}

.tree-node.children {
    background-image: url('/static/mptt/disclosure-down-black.png') !important;
}

.drag-handle{
    background-image: url('/static/mptt/arrow-move-black.png') !important;
}

.drag-handle {
    display: none !important;
}

#csv-import {
    width: 600px;
}
#csv-import .form-container {
    border: 1px solid #79aec8;
    border-radius: 4px;
    padding: 10px;
}

#csv-import .form-group {
    margin-bottom: 10px;
}

#csv-import .form-group label {
    display: block;
    margin-bottom: 5px;
}

#csv-import .form-group input[type="file"] {
    display: block;
}

#csv-import .form-actions {
    text-align: right;
}

#csv-import .custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 40px;
    margin-top: 10px;
}

#csv-import .custom-file-input input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#csv-import .custom-file-input .file-label {
    display: inline-block;
    width: 400px;
    height: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#csv-import .custom-file-input .file-button {
    display: inline-block;
    width: 300px;
    height: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #79aec8;
    color: #fff;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}


.admin-pill-button {
  display: inline-block;
  margin:  5px 0px 5px 0px;
  padding: 8px 16px; /* Adjust the padding to control the button size */
  border: none;
  border-radius: 999px; /* Large value to create a pill shape */
  background-color: #003b65; /* Change the background color */
  color: #fff; /* Change the text color */
  font-size: 14px; /* Adjust the font size as needed */
  cursor: pointer; /* Add a pointer cursor on hover */
}

/* Style for the button on hover (optional) */
.admin-pill-button:hover {
  background-color: #0056b3; /* Change the background color on hover */
}


.admin-pill-button a {
    color: #fff !important;
}

.admin-sq-button {
    display: flex;
    align-items: center;
    margin:  0px 0px 5px 0px;
    padding: 0px 10px; /* Adjust the padding to control the button size */
    border: none;
    border-radius: 6px; /* Large value to create a pill shape */
    font-size: 14px; /* Adjust the font size as needed */
    font-weight: 700;
    height: 26px;
    cursor: pointer; /* Add a pointer cursor on hover */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}



.admin-sq-button.blue {
/* revese color */
    background-color: #003b65; /* Change the background color */
    color: #fff; /* Change the text color */
    border: 1px solid #003b65;
}

.admin-sq-button.blue a {
    color: #fff ;
}


.admin-sq-button.blue.disabled {
            /* revese color */
    background-color: #003b6500; /* Change the background color */
    color: #003b65; /* Change the text color */
    border: 1px solid #ccc;
    cursor: not-allowed;
}

.admin-sq-button.blue a {
    color: #fff ;
}


.admin-sq-button.blue.reverse {
/* revese color */
    background-color: #fff ;
    color: #003b65 ;
    border: 1px solid #003b65;
}

.admin-sq-button.blue.reverse a {
    color: #003b65 ;
}

input:invalid {
  border: 2px dashed red;
}

input:invalid:required {
  background-image: linear-gradient(to right, pink, lightgreen);
}

input:valid {
  border: 2px solid black;
}

.srctxt img{
    max-width: 100% !important;
    height: auto !important;
}

.inline-group .tabular td.original p{
    height: 3.1em !important;
}

#branding {
    align-items: center;
}

.hide-mobile{
    display: inline;
}
@media (max-width: 1280px) {
    .hide-mobile{
        display: none;
    }
}
