﻿@font-face{
    font-family: 'mont';
    src: url('/font/Montserrat-Regular.ttf');
    font-size: 12px;
}
body {
    font-family: 'mont', sans-serif;
}
/*--btn Styles--*/
.btn {
    border-radius: 0px !important;
}
/*--btn Styles--*/

/*--Header--*/
.header {
    background-color: #333;
    padding: 10px 0px 10px 0px;
    color: white;
    display: flex;
    width: 100%;
}

    .header a, .header a:hover, .header a:visited, .header a:active {
        color: inherit;
        text-decoration: none;
    }

    .header span {
        padding-left: 12px;
    }

.heading {
    width: 100%;
}
/*--Header--*/

/*--Footer--*/
.footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    background: #fff;   /* it sits over the page, so it must not be see-through */
}

/* A fixed footer floats above the page, so the last rows of a long screen end up
   underneath it. Reserve the height it takes rather than relying on stray <br>s. */
.content {
    padding-bottom: 90px;
}
/*--Footer--*/

/*--Fixed Table--*/
.tableFixed{
    width: 100% auto;
    overflow-y: auto;
    height: 260px !important;
}
/*--Fixed Table--*/

/*--Loader-- a frosted overlay with a green ring; the markup (.loader > .lds-facebook > 3 divs) is the same on every page --*/
.loader {
    display: none;
    position: fixed;
    inset: 0;
    width: 100% !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(243, 245, 247, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.lds-facebook {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: transparent;
    animation: none;
}
.lds-facebook div { display: none; }
.lds-facebook::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(18, 163, 90, .18);
}
.lds-facebook::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #12a35a;
    border-right-color: #12a35a;
    animation: sb-spin .8s linear infinite;
}
.lds-facebook div:first-child {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 8px;
    background: linear-gradient(145deg, #2fce7f, #0e8a4b);
    color: #fff;
    font: 800 11px/28px "Nunito", "Segoe UI", Arial, sans-serif;
    text-align: center;
    letter-spacing: .04em;
    animation: sb-pulse 1.2s ease-in-out infinite;
}
.lds-facebook div:first-child::before { content: 'SB'; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
@keyframes sb-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .75; } }
body.sb2-dark .loader { background: rgba(15, 23, 42, .7); }
/*--Loader--*/

/*--Mobile--*/
/* The footer is position:fixed, so on a phone it parks itself over the bottom of
   the page and the last rows cannot be reached — scrolling looks stuck. The name
   and the copyright line are of no use on a phone anyway, so the whole strip is
   dropped there and the spacer it needed goes with it. */
@media (max-width: 768px) {
    .footer {
        display: none !important;
    }
    /* the four <br> before the footer only existed to clear it */
    .content + br,
    .content ~ br {
        display: none;
    }
    /* room to scroll past the last row on a phone */
    .content {
        padding-bottom: 24px;
    }
}
/*--Mobile--*/

/* Tight column gutters used by the Tailor measurement sheet (Views/Customer/AddTailor, EditTailor) */
@media only screen and (min-width: 786px) {
    .col-md-pl-5 { padding-left: 5px; }
    .col-md-pr-5 { padding-right: 5px; }
    .col-md-p-5 { padding-left: 5px; padding-right: 5px; }
}

/* Running project's name in the top bar (see _Layout) */
.header .proj-name { font-size: 13px; font-weight: 600; letter-spacing: .4px; color: #9fe0b8; text-transform: uppercase; margin-bottom: 2px; }
.header .proj-name i { margin-right: 4px; }


/* ---- Role tiers (Tools > User Roles) ----------------------------------------
   Salesman: no edit, delete or toggle. The server blocks the actions too
   (BaseController.TierBlocks); this only keeps the buttons away. */
body.tier-salesman .btnRemove, body.tier-salesman .btnDelete, body.tier-salesman .btnDeleteGrp,
body.tier-salesman .btnRemoveItem, body.tier-salesman .btnImgRemove,
body.tier-salesman .btnRevert, body.tier-salesman .btnToggle, body.tier-salesman .btnStatus,
body.tier-salesman a[href*="/Edit?"], body.tier-salesman a[href*="/Edit/"], body.tier-salesman a[href$="/Edit"],
body.tier-salesman a[href*="/EditUser"], body.tier-salesman a[href*="/EditInfo"],
body.tier-salesman .btnUpdateStatus, body.tier-salesman .btnEdit { display: none !important; }
/* Custom roles (Tools > User Roles > Roles): the same buttons, per screen */
body.perm-noedit .btnRevert, body.perm-noedit .btnToggle, body.perm-noedit .btnStatus, body.perm-noedit .btnUpdateStatus, body.perm-noedit .btnEdit,
body.perm-noedit a[href*="/Edit?"], body.perm-noedit a[href*="/Edit/"], body.perm-noedit a[href$="/Edit"], body.perm-noedit a[href*="/EditInfo"],
body.perm-noedit .act-edit, body.perm-noedit .act-toggle,
body.perm-nodelete .btnRemove, body.perm-nodelete .btnDelete, body.perm-nodelete .btnDeleteGrp, body.perm-nodelete .btnRemoveItem, body.perm-nodelete .btnImgRemove, body.perm-nodelete .act-remove,
body.perm-noadd .btnAdd, body.perm-noadd .btnAddNew, body.perm-noadd a[href$="/Add"], body.perm-noadd a[href*="/Add?"], body.perm-noadd .btnSave, body.perm-noadd #btnAdd, body.perm-noadd #btnSave { display: none !important; }
