html,
body {
    height: 100%; font-size: 13px;
}

.navbar-brand {font-size: 15px; font-weight: bold;}
.logoImage {width: 52px; background: #fff; padding: 5px; margin-top: -13px; margin-right: 5px; border-radius: 5px;}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 4px;
}

.far {font-weight: 900;}

.assignedUser {text-transform: uppercase; background: #fff; display: inline-block; padding: 2px 5px; border-radius: 12px; border: 1px solid #ddd; 
    width: 25px; height: 25px; text-align: center; }
/* ---- app top bar (Trello-like): views/layouts/_topbar.php ---- */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    background: #1d2125;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 14px;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 4px 8px;
    margin-right: 6px;
    border-radius: 4px;
}
.topbar-brand:hover,
.topbar-brand:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
}
.topbar-logo {
    width: 28px;
    height: 28px;
    padding: 2px;
    background: #fff;
    border-radius: 6px;
}
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-link,
.topbar-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    color: #b6c2cf;
    position: relative;
}
.topbar-link:hover, .topbar-link:focus, .topbar-link.active,
.topbar-icon:hover, .topbar-icon:focus,
.open > .topbar-link, .open > .topbar-icon {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
}
.topbar-link.active {
    box-shadow: inset 0 -2px 0 #f59a2b;
}
.topbar-icon {
    padding: 0 9px;
    font-size: 16px;
}
.topbar-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e2483d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.topbar-avatar {
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
}
.topbar-avatar:hover,
.open > .topbar-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.topbar-avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.topbar-avatar-big {
    width: 40px;
    height: 40px;
    font-size: 15px;
    flex: 0 0 auto;
}
.topbar-dropdown {
    position: relative;
}
.topbar-panel {
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(9, 30, 66, .15), 0 0 1px rgba(9, 30, 66, .31);
    min-width: 260px;
    padding: 6px 0;
}
.topbar-panel > li > a {
    padding: 6px 16px;
}
.topbar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
}
.topbar-logout {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    padding: 6px 16px;
    color: #333;
}
.topbar-logout:hover {
    background: #f5f5f5;
}
.topbar-notifications {
    width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}
.topbar-panel-title {
    font-weight: 600;
    text-align: center;
    color: #44546f;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #dcdfe4;
}
.topbar-notification {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f2f4;
}
.topbar-notification.unread {
    background: #fff1e0;
}
.topbar-notification-text {
    color: #172b4d;
    word-wrap: break-word;
}
.topbar-notification-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #626f86;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.topbar-panel-empty {
    padding: 16px;
    color: #626f86;
    text-align: center;
}
.topbar-panel-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-weight: 600;
}
@media (max-width: 900px) {
    .topbar-label {
        display: none; /* icons only on narrow screens */
    }
}
.wrap > .container {
    padding-top: 64px;
}
/* full-width pages (board): no container padding, no footer */
.wrap > .app-full-width {
    padding: 48px 0 0;
}

/* toastr (bower-asset/toastr) in the app's look */
#toast-container > div {
    opacity: 1;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(9, 30, 66, .25);
    padding: 14px 16px 14px 50px;
    width: 340px;
}
#toast-container > div:hover {
    box-shadow: 0 8px 16px rgba(9, 30, 66, .35);
}
#toast-container .toast-success { background-color: #1f845a; }
#toast-container .toast-error { background-color: #ca3521; }
#toast-container .toast-info { background-color: #ee7f01; }
#toast-container .toast-warning { background-color: #b65c02; }

/* ---- auth pages (login, 2FA, waiting for approval): layout param "bare" ---- */
body.auth-page {
    background: #f7f8f9;
    min-height: 100%;
}
.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(9, 30, 66, .12);
    border: 1px solid #dcdfe4;
    border-top: 4px solid #ee7f01;
    padding: 32px 36px 28px;
    color: #172b4d;
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #172b4d;
}
.auth-brand img {
    width: 40px;
    height: 40px;
}
.auth-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 18px 0 20px;
}
.auth-text {
    text-align: center;
    color: #44546f;
    margin-bottom: 20px;
}
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    border: 1px solid #c1c7d0;
    border-radius: 6px;
    color: #172b4d;
    font-weight: 600;
    background: #fff;
}
.auth-google:hover,
.auth-google:focus {
    background: #f1f2f4;
    color: #172b4d;
    text-decoration: none;
}
.auth-hint {
    font-size: 12px;
    color: #626f86;
    text-align: center;
    margin: 8px 0 0;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #626f86;
    font-size: 12px;
    margin: 20px 0 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1 1 auto;
    border-top: 1px solid #dcdfe4;
}
.auth-form .form-control {
    height: 40px;
    border-radius: 6px;
    border-color: #8590a2;
}
.auth-form .form-control:focus {
    border-color: #f59a2b;
    box-shadow: 0 0 0 1px #f59a2b;
}
.auth-form .checkbox {
    margin-top: 0;
}
.auth-submit {
    height: 40px;
    border-radius: 6px;
    font-weight: 600;
    background: #ee7f01;
    border-color: #ee7f01;
}
.auth-submit:hover,
.auth-submit:focus {
    background: #c96a00;
    border-color: #c96a00;
}
.auth-secondary {
    text-align: center;
    margin-top: 8px;
}
.auth-pending-avatar {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.auth-qr {
    text-align: center;
    margin-bottom: 16px;
}
.auth-code {
    text-align: center;
    font-size: 22px;
    letter-spacing: 6px;
}
.auth-footer {
    margin-top: 20px;
    color: #626f86;
    font-size: 12px;
}

/* ---- regular app pages: light background, white rounded tables ---- */
body.app-page {
    background: #f7f8f9;
    color: #172b4d;
}
.app-page .wrap > .container h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0 18px;
}
.app-page .wrap > .container .table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .31);
    border: 0;
}
.app-page .wrap > .container .table > thead > tr > th {
    background: #f1f2f4;
    color: #44546f;
    font-weight: 600;
    border-bottom: 1px solid #dcdfe4;
}
.app-page .footer {
    background: transparent;
    border-top: 1px solid #dcdfe4;
    color: #626f86;
}
/* white card for page content (customer pages) */
.page-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .31);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}
.page-head h1 {
    margin: 0 !important;
}
.page-sub {
    color: #626f86;
}
.time-entry {
    font-size: 12px;
    margin-bottom: 2px;
}
.time-entry-date {
    color: #626f86;
    display: inline-block;
    min-width: 54px;
}
.report-totals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.report-totals span {
    display: block;
    font-size: 12px;
    color: #626f86;
}
.report-totals strong {
    font-size: 16px;
}
.report-totals-main strong {
    color: #b35c00;
    font-size: 18px;
}
.auth-tagline {
    text-align: center;
    color: #626f86;
    font-size: 12px;
    margin: 4px 0 0;
}

/* "Zaloguj jako" preview bar (components/Impersonation.php) */
/* floats at the bottom - the top bar is position: fixed and would cover it */
.impersonation-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2000;                /* above the top bar and Bootstrap modals (1050) */
    background: #fff4d6;
    border: 1px solid #f5cd47;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(9, 30, 66, .25);
    color: #172b4d;
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
}
.impersonation-form {
    display: inline-block;
    margin-left: 10px;
}

/* brand colour (M2 logo orange) over Bootstrap's default blue */
a { color: #b35c00; }
a:hover, a:focus { color: #8a4600; }
.text-primary { color: #b35c00; }
.btn-primary { background-color: #ee7f01; border-color: #d97300; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.open > .dropdown-toggle.btn-primary { background-color: #c96a00; border-color: #b35c00; }
.label-primary, .badge-primary { background-color: #ee7f01; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background-color: #ee7f01; }
.pagination > li > a, .pagination > li > span { color: #b35c00; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span { background-color: #ee7f01; border-color: #ee7f01; }
.form-control:focus { border-color: #f59a2b; box-shadow: 0 0 0 1px #f59a2b; }
input[type="checkbox"], input[type="radio"] { accent-color: #ee7f01; }

/* users form: boards the person sees */
.user-boards-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
}
.user-board {
    display: block;
    font-weight: normal;
    margin: 2px 0;
}
.user-board.is-checked { font-weight: 600; }

/* "Na pewno?" confirmation popover (web/js/app.js mtsConfirm) - replaces the browser's confirm dialog */
.mts-confirm {
    position: fixed;
    z-index: 3000;                 /* above modals and board popovers */
    width: 304px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(9, 30, 66, .15), 0 0 1px rgba(9, 30, 66, .31);
    padding: 12px;
    color: #172b4d;
}
.mts-confirm.is-centered {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
}
.mts-confirm-head {
    position: relative;
    text-align: center;
    font-weight: 600;
    color: #44546f;
    margin-bottom: 10px;
}
.mts-confirm-close {
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 18px;
    line-height: 1;
    color: #626f86;
}
.mts-confirm-close:hover { color: #172b4d; text-decoration: none; }
.mts-confirm-text {
    font-size: 14px;
    margin-bottom: 12px;
}
.mts-confirm .btn-danger {
    background: #c9372c;
    border-color: #c9372c;
    font-weight: 600;
}
.mts-confirm .btn-danger:hover,
.mts-confirm .btn-danger:focus { background: #ae2e24; border-color: #ae2e24; }
.mts-confirm-cancel { color: #44546f; margin-top: 2px; }

/* "‹ Użytkownicy" - way back to the list above a page title */
.page-back {
    display: inline-block;
    margin: 0 0 4px;
    font-size: 13px;
    color: #44546f;
}
.page-back:hover,
.page-back:focus { color: #b35c00; text-decoration: none; }
