h1{
	font-size:20px;
}
h2{
	font-size:18px;
}
h3{
	font-size:16px;
}
h4{
	font-size:14px;
}
h5{
	font-size:14px;
}

/*
 * column2: Blueprint span-* + Bootstrap [class*="span"] (margin-left).
 * Контейнерът е 1280px; span-23 + span-5 не запълват ширината — разтягаме основната колона.
 */
#page .column2-layout > .column2-main {
    float: left;
    margin-left: 0 !important;
    margin-right: 6px !important;
    width: calc(100% - 196px) !important;
}

#page .column2-layout > .column2-side {
    float: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 190px !important;
}

#page .column2-layout #content {
    padding: 12px 15px;
}

#page .column2-layout #sidebar {
    padding: 12px 12px 12px 0;
}

#page .column2-layout #content > .workflow-navigation-bar {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

/*
 * Изпратени имейли (short): същият detail-view grid, пълна ширина;
 * ширината на th = th в лявата span6 таблица горе (bootstrap 160px).
 */
.doc-order-compact-header-grid .span6:first-child table.detail-view th,
table.doc-order-compact-sent-mails th {
    width: 160px !important;
    min-width: 160px;
    max-width: 160px;
    box-sizing: border-box;
    display: table-cell;
    vertical-align: top;
    text-align: right;
}

/*
 * Изпратени имейли: span2/span3 в td — отменяме Bootstrap min-height:30px и clearfix височина.
 */
#page table.doc-order-compact-sent-mails > tbody > tr > td {
    line-height: 1.2;
    vertical-align: top;
    padding-top: 3px;
    padding-bottom: 3px;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-item.row-fluid {
    width: auto;
    max-width: 100%;
    margin: 0 0 1px 0 !important;
    *zoom: 1;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-item.row-fluid:before,
#page table.doc-order-compact-sent-mails td .order-sent-mail-item.row-fluid:after {
    display: none !important;
    line-height: 0 !important;
    content: none !important;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-item.row-fluid:last-child {
    margin-bottom: 0 !important;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-item.row-fluid > [class*="span"] {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 10px 0 0 !important;
    line-height: 1.2 !important;
    vertical-align: top;
    box-sizing: border-box;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-pointer {
    font-size: 12px;
    max-width: 220px;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-date {
    color: #6b7280;
    font-size: 11px;
    max-width: 200px;
    margin-right: 0 !important;
    white-space: nowrap;
}

#page table.doc-order-compact-sent-mails td .order-sent-mail-pointer img,
#page table.doc-order-compact-sent-mails td .order-sent-mail-date img {
    vertical-align: middle;
    margin: 0 2px 0 0;
}

/* doc/product 2D matrix order form */
#page .doc-product-matrix__product-title {
    margin: 12px 0 14px;
    font-size: 18px;
    line-height: 1.3;
}

#page .doc-product-matrix {
    margin-bottom: 12px;
}

#page .doc-product-matrix__sticky-head {
    position: -webkit-sticky;
    position: sticky;
    top: var(--doc-matrix-sticky-top, 41px);
    z-index: 1020;
    background-color: #eef1f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#page .doc-product-matrix__sticky-head.doc-product-matrix__sticky-head--fixed {
    position: fixed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#page .doc-product-matrix__sticky-placeholder {
    display: block;
    width: 100%;
}

#page .doc-product-matrix__line--top {
    font-weight: bold;
    background-color: #eef1f5;
}

#page .doc-product-matrix__line--sub {
    font-weight: bold;
    color: #4b5563;
    background-color: #e8ecf2;
}

#page .doc-product-matrix__line--top .doc-product-matrix__axis-label,
#page .doc-product-matrix__line--top .doc-product-matrix__col-head {
    background-color: #eef1f5;
}

#page .doc-product-matrix__line--top .doc-product-matrix__axis-label {
    z-index: 43;
}

#page .doc-product-matrix__line--sub .doc-product-matrix__axis-label,
#page .doc-product-matrix__line--sub .doc-product-matrix__head-empty {
    background-color: #e8ecf2;
}

#page .doc-product-matrix__axis-label {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 42;
    background-color: #ffffff;
}

#page .doc-product-matrix__head-divider {
    border-bottom: 2px solid #c5cdd8;
    margin: 4px 0 6px;
    background-color: #e8ecf2;
}

#page .doc-product-matrix__row {
    border-bottom: 1px solid #d1d5db;
}

#page .doc-product-matrix__row-label {
    flex: 0 0 140px;
    padding: 6px 8px;
    box-sizing: border-box;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 15;
}

#page .doc-product-matrix__row--odd .doc-product-matrix__row-label {
    background-color: #f9fafb;
}

#page .doc-product-matrix__row--even .doc-product-matrix__row-label {
    background-color: #ffffff;
}

#page .doc-product-matrix__row:hover .doc-product-matrix__row-label {
    background-color: #eef2f7;
}

#page .doc-product-matrix__col-head,
#page .doc-product-matrix__head-empty,
#page .doc-product-matrix__cell {
    flex: 0 0 96px;
    width: 96px;
    padding: 6px 4px;
    box-sizing: border-box;
    vertical-align: top;
}

#page .doc-product-matrix__head-empty {
    min-height: 12px;
}

#page .doc-product-matrix__row--odd {
    background-color: #f9fafb;
}

#page .doc-product-matrix__row--even {
    background-color: #ffffff;
}

#page .doc-product-matrix__row:hover {
    background-color: #eef2f7;
}

#page .doc-product-matrix__cell--empty {
    min-height: 48px;
}

#page .doc-product-matrix__stock,
#page .doc-product-matrix__price {
    font-size: 11px;
    line-height: 1.35;
}

#page .doc-product-matrix__col-thumb {
    max-width: 72px;
    height: auto;
    margin-top: 4px;
    display: block;
}

#page .doc-product-matrix__row-thumb {
    max-width: 120px;
    height: auto;
    margin-top: 4px;
    display: block;
}

#page .doc-product-matrix__line,
#page .doc-product-matrix__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: min-content;
}

#page .doc-product-matrix__axis-label {
    flex: 0 0 140px;
    padding: 6px 8px;
    box-sizing: border-box;
}

/* create_cad_1: ред Фактура/Bill + „От начало“ вдясно */
#page .acc-cad-doc-type-toolbar {
    margin-bottom: 10px;
}
