    /*General stylisation*/
/*Button styles*/
.button-group {
    display: flex;
    gap: 10px; /* equal spacing between all buttons */
    margin-top: 3px
}
.bui-button {
    color: #367284;
    background: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

    .bui-button:hover {
        transform: translateY(-2px); /* optional lift */
        color: #e3942c;
        text-decoration: none;
    }

    .bui-button::after {
        display: none !important; /* remove underline animation */
    }
/*Text input style*/
.bui-textbox {
    border: 1px solid #ccc; /* light border all around */
    padding: 6px 10px; /* smaller padding */
    border-radius: 6px; /* rounded corners */
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 250px; /* fixed width instead of full screen */
    max-width: 100%; /* still responsive */
}

    .bui-textbox:focus {
        border-color: #367284; /* highlight border on focus */
        box-shadow: 0 0 0 3px rgba(54,114,132,0.2); /* subtle glow */
    }

    .bui-textbox::placeholder {
        color: #888;
    }

/*Checkbox styles*/
.bui-checkbox-group{
    margin-top: 7px
}
/* Hide default checkbox */
.bui-checkbox input[type="checkbox"] {
    display: none;
}

/* Custom checkbox container */
.bui-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    margin-bottom: 6px; /* space between checkboxes */
}

    /* The custom checkbox square */
    .bui-checkbox .checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid #ccc;
        border-radius: 4px;
        position: relative;
        margin-right: 8px;
        transition: all 0.2s ease-in-out;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* When checked, change background and add a tick */
    .bui-checkbox input[type="checkbox"]:checked + .checkmark {
        background-color: #367284;
        border-color: #367284;
    }

        .bui-checkbox input[type="checkbox"]:checked + .checkmark::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    /* Hover effect */
    .bui-checkbox:hover .checkmark {
        border-color: #367284;
    }

/*Header styles*/
.bui-mini-header {
    font-size: 1.25rem; /* similar to h4 */
    font-weight: 600; /* slightly bold */
    color: #367284; /* matches button color */
    margin: 12px 0 6px 0; /* space above and below */
    position: relative; /* for underline effect */
    display: inline-block;
}
    .bui-mini-header::after {
        display: none !important;
    }
/*  OVERRIDES */
body {
    margin: 0;
}

a {
  color: inherit;
  text-decoration: underline !important;
}

a:hover {
  color: #444;
}

.full_center {
    margin: auto;
    width: 50%;
    border: 3px solid green;
    padding: 10px;
}
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/*Hamburger stuff*/
.bci-hamburger-bars {
    font-size: 30px
}

.bci-hamburger-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between
}

.bci-hamburger-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%; 
}

.bci-hamburger-footer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.bci-hamburger-footer-text p {
        margin: 0;
}

.bci-sidebar--hamburger {
    width: 100%;
    height: 100%;
}
    /* Hamburger full */
    /* Default: show full, hide hamburger */
    .bci-sidebar--full {
    display: flex;
    
}

.bci-sidebar--hamburger {
    display: none;
    
}

/* When screen shrinks, flip them */
@media (max-width: 768px) {
    .bci-sidebar--full {
        display: none;
    }

    .bci-sidebar--hamburger {
        display: flex;
    }
}

/* Debug: red text in hamburger menu */
.bci-sidebar--hamburger {
    color: red;
}

/* LOADING ANIMATION */
.loader {
    width: 16px;
    height: 16px;
    border: 3px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*  FULL SCREEN SETUP */
.bci-full {
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
}

.bci-right-full {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bci-right-bottom {
    height: 100%;
    overflow-y: scroll;
    overflow-x: scroll;
    flex: 1 1 100%;
    padding: 1rem;
    width: 100%;
}


/*  BLACK SIDEBAR */
.bci-sidebar {
    background-image: url("/BookConnect.UI/images/bci-black-sm.png");
    background-color: #1e1f21;
    color: rgb(245, 244, 243);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 15px 15px;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 14px;
    font-weight: 400;
    min-width: 200px;
    height: 100%;
    width: 200px;
}

.bci-sidebar-menu { 
    list-style: none;
    padding: 0;
    margin-top: 0px !important;
}

.bci-expander-row {
    background-image: url("/images/bookconnect-b32.png");
    background-color: #1e1f21;
    color: rgb(245, 244, 243);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 15px 15px;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 14px;
    font-weight: 400;
    width: 0px;
    min-height: 0px;
    height: 0px;
    overflow: hidden;
}

.bci-toggle {
    display: none;
    text-align: right;
    color: lightgray;
}

.bci-toggle-check {
    display: none;
}

.bci-toggle-header {
    margin-left: 1rem;
    font-size: 1.2rem;
    width: 100%;
    padding-top: 0rem;
    vertical-align: top;
}

.bci-toggle-label {
    font-size: 2rem;
    margin-top: -0.75rem;
}



    .bci-toggle-label::before {
        content: ' ';
        display: inline-block;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 5px solid currentColor;
        vertical-align: middle;
        margin-right: .7rem;
        transform: translateY(-2px);
        transition: transform .2s ease-out;
    }

.collapsible-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height .25s ease-in-out;
}

.bci-sidebar-menu-pane {
    margin-top: 10px;
}


@media all and (max-width: 1000px) {
    .bci-sidebar {
        width: 100%;
        min-height: 60px;
        padding-top: .75rem;
        overflow: hidden;
        /* height: 64px; */
        /*background-image: url("/images/bookconnect-b32.png"); */
        background-image: none;
        transition: max-height .25s ease-in-out;
    }

    .bci-sidebar--hamburger {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        width: 100%;
    }

    .bci-sidebar-menu-pane {
        max-height: none !important;
        overflow: visible !important;
    }

    .bci-toggle-label {
        display: inline;
        float: right;
        margin-right: 2rem;
    }

    .bci-toggle-header {
        display: inline;
    }

    .bci-toggle-header-icon {
        display: inline-block;
        margin-left: 1rem;
    }

    .bci-toggle-check:checked + .bci-toggle-label::before {
        transform: rotate(90deg) translateX(-3px);
    }

    .bci-toggle-check:checked + .bci-toggle-label + .bci-sidebar-menu-pane {
        max-height: 100vh;
    }

    .bci-sidebar-bottom {
        position: relative;
    }

    .bci-full {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .bci-sidebar-menu {
        margin-top: 0px;
    }


    .bci-expander-title {
        margin-bottom: 1rem;
    }

    .bci-sidebar-bottom {
        display: none;
    }

    .bci-header-items-container {
        gap: 0.2rem;
    }

    .bci-expander-row {
        padding-left: 4rem;
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding-right: 2rem;
        color: lightgray;
        height: 64px;
        min-height: 64px;
    }
}


/*  BLACK ITEM */

.bci-app-menu-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-right: 1em;
}

.bci-sidebar-subitem {
    padding-left: 3.5rem;
    color: #D1D5DB;
    width: 100%;
    cursor: pointer;
}

.bci-sidebar-item {
    line-height: 34px;
}

    .bci-sidebar-item .bci-menu-row {
        margin-left: 1rem;
    }

    .bci-sidebar-item .bci-menu-icon {
        line-height: 1.75rem;
    }


    .bci-sidebar-item:hover:not(.disabled-menu), .SidebarItemRow:focus, .DragContainer--isDragging .SidebarItemRow {
        background-color: rgba(255,255,255,.08)
    }

    .bci-sidebar-item.is-selected {
        background-color: rgba(255,255,255,.16)
    }

        .bci-sidebar-item.is-selected:hover, .bci-sidebar-item.is-selected:focus {
            background-color: rgba(255,255,255,.2)
        }

.bci-menu-arrow {
    margin-right: 0.5rem;
    width: 0.5rem;
}

.bci-menu-icon {
    font-size: 1.125rem;
    margin-right: 0.5rem;
    --tw-text-opacity: 1;
    color: rgba(156, 163, 175, var(--tw-text-opacity));
}


/* SIDEBAR BOTTOM */
.bci-sidebar-bottom {
    bottom: 0.75rem;
    position: fixed;
    margin-left: 1rem;
    margin-right: 1rem;
}

.disabled-menu{
    opacity: .65;
}

.bci-menu-text {
}

.bci-menu-row {
    display: flex;
    align-items: center;
}

.bci-sidebar-bottom .bci-menu-row {
    line-height: 21px;
}

.bci-menu-cursor:not(.disabled-menu) {
    cursor: pointer;
}

.bci-clickable:hover {
    background-color: rgba(255,255,255,.08)
}





.bci-user-name {
    font-size: 0.8125rem;
    line-height: 1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* BCI HEADER */

.bci-header-full {
    width: 100%;
    border-width: 0;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: #9CA3AF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-height: 2rem !important;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}

.bci-header-items-container {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
}

.bci-header-title {
    display: flex;
    margin-right: 1rem;
}

.bci-header-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
}

.bci-header-items-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: auto;
    margin-left: 0.9rem;
    display: flex;
    align-items: center;
}

.bci-header-items-middle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: auto;
    margin-left: 0.9rem;
    display: flex;
    align-items: center;
}

.bci-header-items-right {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: start;
    margin-right: 0.9rem;
    margin-left: 0.9rem;
    align-items: center;
}

.bci-header-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
}

.bci-header-text {
    font-size: 1.875rem;
}

.bci-header-items-left {
    display: flex;
    font-weight: 600;
    align-items: center;
    padding-right: 1rem;
    height: 100%;
}

.bci-logout-button {
    background-color: transparent;
    background-image: none;
    color: inherit;
    border: inherit;
    padding: inherit;
}

/* BCI TOOLBAR */

.bci-toolbar {
    background-color: #F3EBC3;
    padding: 2px;
    padding-bottom: 4px;
    margin-left: -8px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.bci-toolbar-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bci-toolbar-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bci-toolbar-left {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.bci-toolbar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: #2D4E6B;
    font-size: 14px;
    border: 1px solid #1c344a;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

    .bci-toolbar-link:hover {
        background: #3b6084;
        transform: translateY(-1px);
    }


    .bci-toolbar-link i,
    .bci-toolbar-link span {
        display: flex;
        align-items: center; /* centers contents within each item */
        line-height: 1;
    }
 

.bci-toolbar-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 0px 10px 0px 10px;
}

.bci-toolbar-search {
    margin: 0px 10px 0px 10px;
}

/* BREADCRUMB */

        .bci-breadcrumb-font-size {
    font-size: 14px;
}
.bci-breadcrumb-margin {
    margin-bottom: 0px;
    margin-left: -4px;
}

/* POP FRAME */

.bci-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.bci-popframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

@media (max-width: 768px) {
    .bci-popframe {
        width: 100vw;
        height: calc(100vh - 46.6px); /* adjust if your header height is different */
        top: 46.6px; /* this makes it appear *under* a fixed header */
        right: 0;
    }
}

.header {
    background-color: #f1f1f1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* BCI COMBO BOX */

.combo-box {
    margin: 0px !important;
}

.combo-box-container {
    margin-bottom: 10px;
}

/* REMITTANCE */
.remittance-dropdowns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.remittance-row {
    display: flex;
    justify-content: space-between;
}

.paginator {
    border-top: none !important;
    margin-top: 0px !important;
    padding: 0px !important;
}

.remittance-header-grid {
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 0.5rem 1rem;
    align-items: center;
}

.remit-panel-header .combo-box-container {
    margin-bottom: 0px !important;
}

/* SEARCH BAR */
.bci-search {
    padding: 5px;
    width: 200px;
    border-bottom-width: 1px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-radius: 3px !important;
}

.clear-button {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-60%);
    background: transparent;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: gray;
    padding: 0;
    line-height: 1;
}

.search-icon-button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    color: gray;
    padding: 9px;
    line-height: 1;
}

.clear-button:hover {
    color: black;
}

.search-icon-button:hover {
    color: black;
}

/* QUICKGRID OVERRIDES */

.quickgrid-fix tbody tr {
    min-height: 0;
    height: auto;
}

.quickgrid-fix tbody tr:has(td:only-child:empty),
.quickgrid-fix tbody tr td:empty {
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.quickgrid-font-size {
    font-size: 14px;
}

.payment-summary-font-size {
    font-size: 12px;
    padding: 0px !important;
}

.wider-column {
    width: 800px;
}

/* REPORTS */
.sales-report-selector {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.sales-report-selector-buttons {
    margin-bottom: 10px;
}

/* UNALLOCATED */

.bci-unallocated-dropdowns {
    display: flex;
    flex-direction: column !important;
    flex-wrap: wrap;
    padding-right: 20px;
}

.unallocated-submit-button {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    padding-bottom: 10px;
}

.unallocated-action-buttons {
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}