body {
    color: #333;
}
a {
    color: #e7700d;
    text-decoration: none;
}
a:hover {
    color: #999;
}
body.login {
    align-items: center;
    background-image: url('/assets/images/crary_background_tmp.jpg');
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 0;
}

.backdrop-overlay {
    width: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    max-width: 450px;
    width: 100%;
    padding: 15px;
}

.login-logo {
    padding: 0 40px;
}
.login-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.login-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #139b68 0%, #0f6344 100%);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 2rem;
    text-align: center;
}

.login-header h3 {
    margin: 0;
    font-weight: 600;
}

.login-body {
    padding: 2rem;
}

.form-control:focus {
    border-color: #139b68;
    box-shadow: 0 0 0 0.25rem rgba(19, 155, 104, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #139b68 0%, #0f6344 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #18b87d 0%, #127953 100%);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.password-toggle {
    cursor: pointer;
    color: #868686;
}

.password-toggle:hover {
    color: #fff;
}

.link-subtle {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.menubar {
    align-items: center;
    background-color: #0f6344;
    color: #fff;
    display: flex;
    flex-direction: row;
    height: 50px;
    justify-content: space-between;
    padding: 0 20px;
}
.menu-logo img {
    height: 20px;
}
.menu-box {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.menu-box a {
    border-radius: 3px;
    color: #fff;
    font-size: 0.8rem;
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    text-transform: uppercase;
}
.menu-box a:hover {
    background-color: rgba(153, 153, 153, 0.5);
}
.menu-box a i {
    color: rgba(255,255,255,0.6);
}
.page-content {
    margin: 0 auto;
    max-width: 1000px;
    min-height: 600px;
    padding: 40px 20px;
}
.page-content-header {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}
.page-title {
    flex-grow: 1;
}
.page-actions i {
    font-size: 1.8rem;
}

.autocomplete-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    display: none;
    padding: 8px 12px;
}

.search-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 20px;
}
.search-container .form-control {
    font-size: 0.9rem;
}
.search-container .search-label {
    color: #999;
    font-weight: 600;
}
.search-container .search-field {
    max-width: 300px;
}
.search-container .search-buttons {
    align-items: center;
    display: flex;
    flex-grow: 1;
    gap: 5px;
}
.search-container .search-buttons a {
    color: #999;
    display: inline-block;
    font-size: 1.3rem;
    height: 38px;
    line-height: 38px;
    width: 38px;
    vertical-align: middle;
}
.search-container .search-buttons a:hover {
    color: #e7700d;
}
.ui-autocomplete.ui-menu {
  font-size: 0.8rem;
}

.pagination {
    align-items: center;
    color: #999;
    flex-direction: column;
}
.pagination .page-numbers {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}
.pagination .page-numbers div {
    height: 30px;
    text-align: center;
    width: 30px;
}
.pagination .page-numbers .active {
    color: #333;
    font-weight: 600;
}
.pagination .page-change {
    color: #999;
    cursor: pointer;
    height: 100%;
    width: 100%;
}
.pagination .page-change:hover {
    color: #e7700d;
}
.pagination.bottom {
    margin-top: 20px;
}
.pagination.top {
    margin-bottom: 20px;
}
.pagination .page-previous, .pagination .page-next,
.pagination .page-ellipses {
    color: #ddd;
}
.pagination .page-previous, .pagination .page-next {
    font-size: 1.2rem;
}
.pagination .page-records {
    font-size: 0.8rem;
    line-height: 1;
    text-align: center;
}

.part-container {
    display: flex;
    flex-direction: row;
    gap: 80px;
}
.part-details {
    flex-basis: 50%;
}
.part-cart {
    flex-basis: 50%;
}
.part-details .part-details-heading {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 15px;
}
.part-details .part-details-heading .part-details-title {
    flex-grow: 1;
}
.part-details .part-details-heading .part-details-title h4 {
    margin-bottom: 5px;
}
.part-cart {
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
}
.part-stock {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.part-stock-row {
    display: flex;
    flex-direction: row;
    font-size: 0.9rem;
    gap: 10px;
    justify-content: space-between;
    padding: 4px 10px;
}
.part-stock-row.odd {
    background-color: #f3f3f3;
}
.part-amount {
    color: #999;
}
.part-amount.instock {
    color: #333;
    font-weight: 600;
}
#cart-add {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    width: 100px;
}
#cart-add input[type="text"] {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
}
#cart-add button {
    flex-basis: 100%;
    font-size: 0.9rem;
}

.review-container {
    display: flex;
    flex-direction: row;
    gap: 80px;
}
.review-profile {
    flex: 1;
}
.review-profile h4 {
    margin-bottom: 15px;
}
.review-profile div {
    margin-bottom: 15px;
}
.review-parts {
    flex: 1;
    max-width: 350px;
}
.review-parts h4 {
    margin-bottom: 15px;
}

.cart-row {
    border-bottom: 1px dotted #ccc;
    display: grid;
    font-size: 0.9rem;
    gap: 5px 2px;
    padding: 2px 0;
}
.part-cart .cart-row {
    grid-template-columns: 20px 1fr 80px 30px;
}
.review-parts .cart-row {
    grid-template-columns: 20px 1fr 80px;
}

.cart-row .cart-price {
    text-align: right;
}
.cart-row .cart-remove {
    color: #bbb;
    cursor: pointer;
    font-size: 1rem;
    text-align: right;
}
.cart-row .cart-remove:hover {
    color: #e7700d;
}
.cart-total {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 2px 32px 2px 0;
    text-align: right;
}
#review-parts-contents .cart-total {
    padding-right: 2px;
}
.review-header {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}
#part-submit-btn {
    display: block;
    font-size: 0.8rem;
    margin: 20px auto 0;
}
.review-profile .review-header {
    margin-bottom: 0;
}
.review-profile .btn, .review-parts .btn {
    font-size: 0.8rem;
}
.review-parts .btn {
    float: right;
}
.cart-submit {
    margin-top: 30px;
    text-align: center;
}

.user-heading, .user-row {
    align-items: center;
    border-bottom: 1px solid #efefef;
    display: grid;
    padding: 0 5px 4px;
}
.user-list-dealer .user-row,
.user-list-dealer .user-heading {
    grid-template-columns: 120px 1fr 1fr;
}
.user-list-admin .user-row,
.user-list-admin .user-heading {
    grid-template-columns: 80px 1fr;
}
.user-heading div {
    font-size: 0.8rem;
    text-transform: uppercase;
}
.user-row:hover {
    background-color: rgba(231, 112, 13, 0.2);
    cursor: pointer;
}
#user-form label {
    font-weight: 600;
}
.form-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
}
.form-row .mb-3 {
    flex: 1;
}
input:read-only {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    color: #555;
    cursor: default;
}

.footer {
    display: flex;
    justify-content: center;
    width: 100%;
}
.footer-content {
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.8rem;
    padding: 20px;
    text-align: center;
    width: 1000px;
}
.footer-content p {
    margin-bottom: 0.5rem;
}