:-moz-any-link:focus {
    outline: none;
}

a {
    -moz-outline: none;
    color: black;
    text-decoration: underline
}

body {
    padding: 7px;
    margin-bottom: 20px;
    font: 16px Calibri, Tahoma;
    font: 12.85px/19px Sans-Serif;
}

body:after {
    display: block;
    height: 20px;
    content: ''
}

a img {
    border: 0
}

h3 {
    font: bold 15px "Helvetica";
    margin: 15px -6px 25px;
    background: #f0f0f0;
    border-bottom: 2px solid #bbb;
    padding: 7px 10px 5px
}

div + h3, form + h3 {
    margin-top: 30px
}

h4 {
    font: bold 13px "Helvetica"
}

hr {
    margin: 18px 5px;
    background: #ddd;
    border: 0;
    height: 4px;
}

.confirm {
    background: #b6e6b8;
    background: #99eb7d;
    border: 1px solid #347c37;
    padding: 6px;
    color: #0f3203
}

.confirm a {
    color: #0e260f
}

.error {
    background: #e8a7a7;
    border: 1px solid #4d0606;
    color: #4d0606
}

.error div, .info div, .notice div {
    padding: 6px 8px;
}

.confirm, .error, .info, .notice {
    margin: 3px 0 10px;
}

.info {
    background: #cfddff;
    border: 1px solid #4b6095;
    color: #072675;
}

.info a {
    color: #022253
}

.notice {
    background: #f5ebaa;
    border: 1px solid #c8a20c;
    color: #2e270c;
}

.notice a {
    color: #2e270c
}

.flash_pending {
    min-height: 40px
}

.flash_pending * {
    margin-bottom: 0
}

fieldset legend {
    font-weight: bold
}

.text-center {
    text-align: center
}

.htmlform fieldset {
    border: 2px solid #a6a6a6;
    min-width: 850px;
    width: 850px;
    padding: 7px;
}

.htmlform .legend {
    display: block;
    background: #565656;
    color: white;
    font: bold 15px Arial;
    padding: 9px 15px 7px
}

.htmlform select {
    width: 98%;
    padding: 4px;
}

.htmlform input, .htmlform textarea {
    width: 96%;
}

.htmlform input.input_product_id {
    width: 100px
}

.htmlform select, .htmlform input, .htmlform textarea {
    border-color: #898b90 !important;
}

.htmlform option {
    padding: 4px
}

.htmlform input[type="radio"], .htmlform input[type="checkbox"] {
    width: 13px;
    margin: 7px 0 7px 5px;
    vertical-align: -2px
}

.htmlform label {
    padding: 5px;
    margin-right: 5px;
}

.htmlform fieldset {
    margin-bottom: 35px;
}

.htmlform .submit {
    border-top: 2px solid #c9c9c9;
    background: #e5e5e5;
    margin: 10px 0 0;
    padding: 5px 10px 6px;
}

.htmlform .error {
    border: 0;
    margin-top: 8px;
    padding: 5px;
}

.htmlform table {
    margin-top: 5px;
}

.htmlform .input_help
{
    position: relative;
    padding: 3px 10px 3px 3px;
}

.htmlform .input_help div
{
    display: none;
}

.htmlform .input_help:hover div
{
    display: block;
    position: absolute;
    top:-12px;
    left:25px;
    background: #638ab9;
    border:1px solid #244b7b;
    padding: 4px;
    width: 170px;
    font-size:11px;
    line-height: 16px;
    color:white;
}

.error a {
    color: #4d0606
}

a.b.important {
    font-weight: bold
}

p {
    margin: 5px 0 15px
}

#js_warning {
    position: fixed;
    top: 41px;
    padding: 5px 10px;
    width: 500px;
    color: #fff;
    left: 430px;
    background: rgba(171, 0, 20, 0.95)
}

.redrow {
    background: #DBA0A7 !important;
}

.errorrow {
    background: #d57d7d !important;
    color: #4d0606
}

.markedrow {
    background: #e4adad !important;
    color: #4d0606
}

.markedrowlight {
    color: #e50909
}

.alternatingrow {
    outline: thin solid red
}

.datatable .headerrow, .headerrow {
    font-weight: bold;
    color: white;
    background: black !important;
}

.datatable .headerrow.light, .headerrow.light {
    background: #213344 !important;
    color: white
}

.datatable .headerrow.notbold, .headerrow.notbold {
    font-weight: normal
}

.datatable .headerrow.lighter, .headerrow.lighter {
    background: #4d4d4d !important;
    color: white !important
}

.datatable .headerrow.lightest, .headerrow.lightest {
    background: #b7b7b7 !important;
    color: black !important;
}

.headerrow a {
    color: #fff
}

table.datatable {
    border: 1px solid black;
    border-style: inset;
    border-collapse: collapse;
    width: 100%;
    margin: 5px 0 10px;
}

table.datatable td {
    border: 1px solid black;
    text-overflow: ellipsis;
    overflow: hidden;
    /*white-space: nowrap;*/
}

table.datatable thead th
{
    text-align: left;
}

.datatable tr:nth-child(even) {
    background: #e0e0e0;
}

.datatable.noalternate tr:nth-child(even) {
    background: #fff
}

table.datatable table.datatable td {
    border: 0
}

tr td, tr th
{
    padding: 3px 5px;
}

.sortabletable tr.header {
    background:black; //url('../design/tablesort_header_bg.gif');
    color:white;
    text-align: left;
}

.sortabletable th
{
    padding:4px 5px;
    border-right:1px solid black;
    font-weight: normal;
}

.sortabletable th.header {
    background: url('../design/ascdesc.gif') no-repeat left;
    padding-left:20px;
    cursor:pointer;
}

.sortabletable th.headerSortUp {
    background-image: url('../design/desc.gif');
}

.sortabletable th.headerSortDown {
    background-image: url('../design/asc.gif');
}

.red {
    color: #e60909
}

.green {
    color: #085509
}

.blue {
    color: blue
}

a.b {
    background: white;
    text-decoration: none !important;
    color: black;
    text-decoration: none;
    padding: 2px 6px;
    margin-top: -1px;
    display: inline-block;
    font: 12px Arial;
    border: 1px solid #777;
    -moz-border-radius: 7px;
    white-space: nowrap;
}

a.b {
    border-color: #707070;
    background: url('../design/button_bg.png') repeat-x
}

a.b:hover {
    background: url('../design/button_bg_hover.png');
    border-color: #b1433c
}

#hhelp button {
    cursor: pointer;
    margin: 0;
    padding: 0
}

#hhelp {
    padding: 4px;
    background: #a0a0a0;
    border-bottom: 1px solid #444;
    font: 12px Tahoma;
    margin: -15px -15px 15px
}

#hhelp a.but, #hhelp form button {
    background: #ddd;
    border: 1px solid #555;
    font: 13px Tahoma;
    border-radius: 0px;
    text-shadow: none;
    color: black;
    padding: 4px 8px;
    text-decoration: none;
}

#hhelp a.but:hover, #hhelp form button:hover {
    background: white
}

#hhelp form {
    display: inline;
    padding-left: 3px
}

#hhelp form input {
    width: 130px;
    margin: 0;
    border: 1px solid #505050;
    padding: 3px;
}

#hhelp img {
    border: 0
}

#hhelp a.logo {
    margin: 0 10px 0 10px;
    display: block;
    float: left;
    padding: 0;
}

#hhelp .right {
    float: right;
    padding: 6px
}

#hhelp .bruker {
    padding: 0 10px;
    min-width: 140px;
    display: inline-block;
    text-align: right;
}

#tw_quickmenu {
    display: inline-block;
    padding-left: 7px;
    margin-bottom: -4px;
}

#tw_quickmenu div {
    display: inline-block;
    margin-left: 2px;
    height: 32px;
    margin-bottom: -8px;
}

#tw_quickmenu div ul {
    display: none;
    list-style-type: none;
    position: absolute;
    background: #a0a0a0;
    border: 1px solid #444;
    border-width: 0 1px 1px;
    margin-left: -5px;
    top: 23px;
    z-index: 100;
    padding: 15px 15px 4px 6px
}

#tw_quickmenu div:hover ul, #tw_quickmenu div ul:hover {
    display: block;
}

#tw_quickmenu div ul li {
    margin-bottom: 10px;
}

#tw_quickmenu div ul li a {
    color: black;
    text-decoration: none
}

#tw_quickmenu div ul li a:hover {
    text-decoration: underline
}

table.cell_padding td {
    padding: 4px 6px
}

fieldset table, fieldset form {
    margin: 0
}

fieldset.form_fieldset {
    margin-bottom: 30px;
}

fieldset.form_fieldset table {
    margin-top: 6px
}

fieldset.form_fieldset input[type="text"], fieldset.form_fieldset input[type="password"] {
    width: 250px;
    padding: 2px;
    background: #fff;
    border: 1px solid #888
}

fieldset.form_fieldset legend {
    padding: 1px 4px;
}

fieldset.form_fieldset div.submit {
    padding: 10px 5px 5px;
}

fieldset.form_fieldset .error {
    width: 98%;
}

table.produkt_info_table td {
    text-align: center;
    padding: 3px 10px
}

div.eposthistorikk_vis {
    margin: 0 0 20px;
}

.eposthistorikk_vis .epost_header {
    background: #ccc;
    font: bold 15px Tahoma;
    padding: 5px;
    margin: 0 0 5px;
}

.eposthistorikk_vis .melding {
    padding: 15px 15px 15px;
    border: 1px solid #555;
    max-height: 220px;
    overflow: auto;
    line-height: 1.2
}

tr.eposthistorikk_row {
    cursor: pointer
}

tr.eposthistorikk_row.selected {
    background: #3362a9;
    color: #fff
}

ul {
    margin: 10px 0 5px;
    padding-left: 12px;
    list-style-type: square
}

ul li {
    margin-left: 8px;
}

button::-moz-focus-inner, a.button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

a.button {
    text-decoration: none;
}

button, a.button {
    background: #222;
    cursor: pointer;
    color: white;
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid rgba(11, 33, 70, 0.6);
    border-width: 1px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius:3px;
    font: bold 12px Arial;
    text-shadow: 0 -1px 1px rgba(11, 38, 81, 0.10);
    background-image: -webkit-linear-gradient(#2d6299, #183e7c);
    background-image: -moz-linear-gradient(-90deg, #2d6299, #183e7c);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -moz-margin-end: 3px;
    margin: 2px;
}

button.small, a.button.small {
    padding: 1px 5px;
    font: bold 11px Arial;
}

button:not([disabled]):hover, a.button:not([disabled]):hover {
    background-image: -webkit-linear-gradient(#275584, #14356b);
    background-image: -moz-linear-gradient(-90deg, #275584, #14356b);
}

button.red, a.button.red {
    background-image: -webkit-linear-gradient(#cd2515, #871209);
    background-image: -moz-linear-gradient(-90deg, #cd2515, #871209);
    color: white;
    border-color: #501010;
}

button.red:hover, a.button.red:hover {
    background-image: -webkit-linear-gradient(#bc1404, #760108);
    background-image: -moz-linear-gradient(-90deg, #bc1404, #760108);
}

button.green, a.button.green {
    background-image: -webkit-linear-gradient(#457617, #2c6409);
    background-image: -moz-linear-gradient(-90deg, #457617, #2c6409);
    color: white;
    border-color: #294e13;
}

button.green:not([disabled]):hover, a.button.green:not([disabled]):hover {
    background-image: -webkit-linear-gradient(#3b6a10, #255805);
    background-image: -moz-linear-gradient(-90deg, #3b6a10, #255805);
}

button.dark, a.button.dark {
    background-image: -webkit-linear-gradient(#5e5e5e, #404040);
    background-image: -moz-linear-gradient(-90deg, #5e5e5e, #404040);
    color: white;
    border-color: #222;
}

button.dark:hover, a.button.dark:hover {
    background-image: -webkit-linear-gradient(#525252, #3a3a3a);
    background-image: -moz-linear-gradient(-90deg, #525252, #3a3a3a);
}

button.silver, a.button.silver {
    background-image: -webkit-linear-gradient(#848484, #696969);
    background-image: -moz-linear-gradient(-90deg, #848484, #696969);
    color: white;
    border-color: #383838;
}

button.silver:hover, a.button.silver:hover {
    background-image: -webkit-linear-gradient(#787878, #5f5f5f);
    background-image: -moz-linear-gradient(-90deg, #787878, #5f5f5f);
}

button.white, a.button.white {
    background-image: -webkit-linear-gradient(#f5f5f5, #c0c0c0);
    background-image: -moz-linear-gradient(-90deg, #f5f5f5, #c0c0c0);
    color: black;
    border-color: #ddd;
}

button.white:hover, a.button.white:hover {
    background-image: -webkit-linear-gradient(#d0d0d0, #b0b0b0);
    background-image: -moz-linear-gradient(-90deg, #d0d0d0, #b0b0b0);
}

button.brown, a.button.brown {
    background-image: -webkit-linear-gradient(#533208, #442a07);
    background-image: -moz-linear-gradient(-90deg, #533208, #442a07);
    color: white;
    border-color: #382102;
}

button.brown:hover, a.button.brown:hover {
    background-image: -webkit-linear-gradient(#442a07, #382205);
    background-image: -moz-linear-gradient(-90deg, #442a07, #382205);
}

button[disabled], a.button[disabled] {
    opacity: 0.55;
    cursor: default
}

input[type='text'], input[type='password'] {
    border: 1px solid #555;
    padding: 4px 5px;
}

.float-right {
    float: right
}

.paginator {
    background: #dac4a8;
    padding: 6px 10px 0;
    margin-top: 20px;
    height: 32px
}

.paginator .submit, .paginator .rows_per_page {
    float: right;
    margin-left: 17px;
}

.paginator .pages, .paginator .num_pages {
    float: left;
}

.paginator .pages, .paginator .num_pages {
    margin: 5px 17px 0 0;
    font: bold 14px Arial;
}

.paginator .pages a {
    padding: 4px 5px;
    margin: 0 3px;
    background: #6c4511;
    text-decoration: none;
    color: white;
}

.paginator .pages a.active {
    background: transparent;
    color: #6c4511
}

table.dropship_order td img {
    padding: 0 2px;
}

.span_title {
    background-color: #e6c7a8
}

.clearer {
    clear: both;
}

.search_fields input, .search_fields select {border:1px solid #505050;padding:3px}
.search_fields input.halfwidth {width:62px;}
.search_fields input:focus {background:yellow}
.search_fields input {border:1px solid #505050; width:130px;}
.highlight_match {background:#f5b9b9; color:#930000; font-weight:bold;}

.status_table
{
    width: 700px;
    border-collapse: collapse;
}

.status_table tr td
{
    padding:5px 10px;
    width: 50%;
    background: #d5d5d5;
    border:1px solid #fff;
    border-width:0 1px 1px 0;
}

.status_table tr td.label
{
    background: #0f2b53;
    border-width:0 1px 1px 1px;
    color:white;
    text-align: right;
}

.status_table tr:first-child td
{
    border-top-width: 1px;
}

.chat-wrapper {
    float: right;
    width: 65%;
}

.chat {
    padding: 10px;
    border: solid 1px #cfcfcf;
    background: #fffFFF;
    height: 341px;
    overflow: auto;
    display: block;
    margin: 0px;
}
#update_market_messages {
    margin-bottom: 10px;
}

.chat-dialog {
    display: block;
    background: #fff;
    padding: 5px;
    clear: both;
    position: relative;
}

.chat-dialog .main-chat-content {
    border: 2px solid #efefef;
    padding: 10px;
}

.chat-dialog .sending-date {
    font-size: 12px;
    color: #9a9a9a;
}

.chat-dialog p {
    margin-bottom: 0;
    margin-top: 0;
}

.chat-dialog.shop-message .main-chat-content {
    margin-left: 300px;
}

.chat-dialog.market-message .main-chat-content {
    margin-right: 300px;
}

.chat-dialog .sender-and-recipient {
    position: absolute;
    width: 250px;
    margin-top: 27px;
}

.chat-dialog.market-message .sender-and-recipient {
    right: 30px;
}

.chat-dialog.shop-message .sender-and-recipient {
    text-align: right;
    left: 30px;
}

.chat-dialog .message-subject {
    font-weight: bold;
}

.chat-form-block {
    padding: 10px;
    float: left;
    width: 30%;
    border: solid 1px #cfcfcf;
    background: #fffFFF;
}

.chat-form-block .form-group {
    margin-bottom: 10px;
}
.chat-form-block input {
    width: 100%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}

#market_message_send_status, #update_market_messages_status {
    margin-left: 10px;
    font-weight: bold;
}

.remove-attachment {
    font-weight: bold;
    vertical-align: center;
    text-align: center;
    cursor: pointer;
    float: right;
    margin-right: 5px;
}
.attachment-row {
    padding: 5px;
    border: solid 1px #cfcfcf;
    line-height: 32px;
    margin-top: 5px;
}
.add-attachment-row {
    color: #00A5E3;
    cursor: pointer;
    margin-top: 5px;
}
.message_file {
    background: #8a8a8a;
    display: inline-block;
    line-height: 18px;
    padding: 3px 5px;
    margin-right: 5px;
    color: #fff;
}
#purchase_form {
    float: left;
}

.filter-table {
    margin:15px auto;
    border:1px dotted black;
    padding:5px 10px 10px;
}