@import "variables.css";
@import "text.css";
@import "forms.css";
@import "template.css";
@import "nav.css";
@import "tables.css";
@import "utilities.css";
@import "modal.css";
@import "sales-orders/sales-orders.css";
@import "sales-orders/sales-order-items.css";
@import "items/items.css";
@import "skeleton.css";
@import "responsive.css";
@import "components.css";
@import "warehouse/picklist.css";
@import "warehouse/packer.css";
@import "warehouse/receiving.css";
@import "warehouse/replenish.css";
@import "warehouse/scan-batch.css";

html {
    height: 100%;
}

body {
    margin: 0px;
    box-sizing: border-box;
    padding: 0px;
    font-family: Molde, -apple-system, BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
    letter-spacing: .04em;
    font-weight: 300;
    height: 100%;
    min-height: 100%;
    width: 100%;
    background-color: var(--background-color);
}

body.app-shell-locked {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

body.app-shell-locked #app,
body.app-shell-locked #app > .template {
    height: 100vh;
}

hr {
    border: 0px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

#app {
    width: 100%;
    height: 100%;
}

.login-view {
    display: grid;
    grid-template-columns: auto 250px auto;
    grid-template-rows: auto 400px auto;
    text-align: center;
    width: 100%;
    height: 100%;
}

.form-view {
    display: grid;
    grid-template-columns: auto 350px auto;
    grid-template-rows: auto 500px auto;
    text-align: left;
    width: 100%;
    height: 100%;
}

.login-view.center-view {
    grid-template-columns: auto 400px auto;
}

.forgot-password-container {
    margin: 100px auto;
    width: 350px;
}


.form-view .login-container, .login-view .login-container {
    grid-column-start: 2;
    grid-row-start: 2;
}

img.login-logo {
    margin-bottom: 16px;
}

.login-view .login-container .input-group, .login-view .login-container .input-group input {
    text-align: center;
}

.view {
    position: relative;
}

pre.chat-message {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 15px;
    background-color: var(--white);
    color: var(--very-dark-grey);
    border: 1px solid var(--light-grey);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
}

pre.chat-message:hover {
    opacity: .75;
    cursor: pointer;

}

pre.chat-message.muted {
    background-color: var(--light-grey);
    color: var(--dark-grey)
}

pre.chat-message.user {
    background-color: var(--highlight-on-light);
    
}

/* Customize scrollbar for WebKit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 4px; /* Width of the scrollbar */
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: var(--very-dark-grey); /* Color of the scrollbar thumb */
    border-radius: 0px; /* Rounded corners for the thumb */
  }

.section {
    
    padding: 16px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0px 0px 16px #dfdfdf;
    margin-bottom: 15px;
}

.modal .section {
    padding: 0px;
    box-shadow: none;
}

.section dl {
    margin: 0px;
}
.section .input-group {
    margin-top: 16px;
}

.report-content {
    width: 100%;
    overflow-x: auto;
}

.report-content-scrollable {
    width: max-content;
    min-width: 100%;
}

.cost-details {
    background-color: var(--error-light);
}

.revenue-details {
    background-color: var(--success-light);
}

.report-stat {
    background-color: var(--light-grey);
    border-radius: var(--border-radius);
    padding: 16px;
    color: var(--dark-grey);
    font-size: 28px
}

.report-stat h4, .report-stat h3 {
    font-size: 14px;
    color: var(--very-dark-grey);
    font-weight: 200;
}

.note-preview {
    white-space: pre-wrap;
    max-height: 6em;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Lead Kanban */
.lead-kanban {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    overflow: auto;
    padding-bottom: 12px;
}

.lead-kanban__column {
    min-width: 280px;
    max-width: 340px;
    flex: 0 0 auto;
}

.lead-kanban__column-header {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0px 0px 16px #dfdfdf;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.lead-kanban__column-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-kanban-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0px 0px 16px #dfdfdf;
    padding: 12px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}

.lead-kanban-card:hover {
    border-color: rgba(0,0,0,0.10);
    box-shadow: 0px 0px 20px rgba(0,0,0,0.10);
}

.lead-kanban-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lead-kanban-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--light-grey);
    color: var(--very-dark-grey);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.lead-kanban-card__title {
    min-width: 0;
}

.lead-kanban-card__name strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-kanban-card__meta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--dark-grey);
}

.lead-kanban-card__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 18px;
}

.lead-kanban-card__meta-row a {
    color: var(--link);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-kanban-card__meta-row a:hover {
    text-decoration: underline;
}

.lead-kanban-card__icon {
    color: var(--very-dark-grey);
    opacity: 0.75;
    width: 14px;
    text-align: center;
}

.lead-kanban-card__tags {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lead-kanban-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--highlight-on-light);
    color: var(--very-dark-grey);
    border: 1px solid rgba(0,0,0,0.06);
}

.lead-kanban-pill--secondary {
    background: var(--light-grey);
}

.lead-kanban-card__status {
    margin-top: 10px;
}

.lead-kanban-card__status .input-group {
    margin-top: 0;
}

.lead-kanban-card__status .input-group label {
    display: none;
}

.lead-kanban-card__status .input-group select {
    padding: 8px 22px 8px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.note-preview:hover {
    opacity: .75;
}

.note-preview.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255,255,176,0) 0%, rgba(255,255,176,0.7) 60%, rgba(255,255,176,1) 100%);
    pointer-events: none;
    z-index: 1;
}

.note-preview.truncated::before {
    content: '...';
    position: absolute;
    bottom: 4px;
    right: 8px;
    color: var(--dark-grey);
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
}
