@import "blanc_toolkit";

/**************************************************************/
/*  Blanc                                                     */
/*  =====                                                     */
/*  Django admin CSS magic                                    */
/*                                                            */
/*  So here we are, in an attempt to add more magic           */
/*  and awesome… it's too big! I'm scared. Hold me.           */
/**************************************************************/

/*
    DJANGO Admin styles
*/

body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: "DejaVu Sans","Bitstream Vera Sans",Arial,sans-serif;
    color: @detail3;
    background: @canvas2 url(../img/blanc/tile_noise_dark.png);
}

/* LINKS */

a:link, a:visited {
    color: @detail2;
    font-weight: auto;
    text-decoration: none;
}

a:hover {
    color: @theme2;
}

a img {
    border: none;
}

a.section:link, a.section:visited {
    color: white;
    text-decoration: none;
}

/* GLOBAL DEFAULTS */

p, ol, ul, dl {
    margin: 3px 0 7px 0;
}

ul { margin-left: 0px; }

p {
    padding: 0;
    font-size: 12px;
    line-height: 19px;
}

h1,h2,h3,h4,h5 {
    font-weight: normal;
}

h1 {
    font-size: 21px;
    color: white;
    padding: 0;
    margin: 0;
}

h2 {
    font-size: 21px;
    font-family: "Accord", "Droid Sans", Arial, sans-serif;
    font-weight: normal;
    margin: 0;
}

h2.subhead {
    font-weight: normal;
    color: red;
    margin-top: 0;
}

h3 {
    font-size: 14px;
    margin: .8em 0 .3em 0;
    color: @detail1;
    font-weight: bold;
}

h4 {
    font-size: 12px;
    margin: 1em 0 .8em 0;
    padding-bottom: 3px;
}

h5 {
    font-size: 10px;
    margin: 1.5em 0 .5em 0;
    color: @detail1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

ul li {
    list-style-type: square;
    padding: 0 0 0 10px;
}

ul.plainlist {
    margin-left: 0 !important;
}

ul.plainlist li {
    list-style-type: none;
}

li ul {
    margin-bottom: 0;
}

li, dt, dd {
    font-size: 12px;
    line-height: 19px;
}

dt {
    font-weight: bold;
    margin-top: 4px;
}

dd {
    margin-left: 0;
}

form {
    margin: 0;
    padding: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

blockquote {
    font-size: 11px;
    color: #777;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 5px solid #ddd;
}

code, pre {
    font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
    background: inherit;
    color: @detail2;
    font-size: 12px;
}

pre.literal-block {
    margin: 10px;
    background: #eee;
    padding: 6px 8px;
}

code strong {
    color: @detail1;
}

hr {
    clear: both;
    color: #eee;
    background-color: #eee;
    height: 1px;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 1px;
    line-height: 1px;
}

/* TEXT STYLES & MODIFIERS */

.small {
    font-size: 11px;
}

.tiny {
    font-size: 10px;
}

p.tiny {
    margin-top: -2px;
}

.mini {
    font-size: 9px;
}

p.mini {
    margin-top: -3px;
}

.help, p.help {
    font-size: 12px !important;
    color: @detail1;
}

img.help-tooltip {
    cursor: help;
    float: right;
    margin-top: 7px;
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
    vertical-align: middle;
}

.quiet, a.quiet:link, a.quiet:visited {
    color: #999 !important;
    font-weight: normal !important;
}

.quiet strong {
    font-weight: bold !important;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.clear {
    clear: both;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.example {
    margin: 10px 0;
    padding: 5px 10px;
    background: #efefef;
}

.nowrap {
    white-space: nowrap;
}

/* TABLES */

table {
    border-collapse: collapse;
}

td, th {
    font-size: 12px;
    line-height: 19px;
    border-left: none;
    border-right: none;
    border-top: 1px solid white;
    border-bottom: 1px solid @base3;
    vertical-align: top;
    padding: 3px 10px 0 10px;
    background-image: url(../img/blanc/bevel_top_white.png);
    background-position: -1px 0;
    background-repeat: repeat-x;
    color: @detail2;
    font-family: Arial, sans-serif;
}

th {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
}

thead th,
tfoot td {
    color: @detail2;
    padding: 3px 10px;
    font-size: 10px;
    background-color: @base2;
    border-left: none;
    border-right: none;
    border-top: 1px solid white;
    border-bottom: 1px solid @base3;
}

tfoot td {
    border-top: 1px solid white;
    border-bottom: 1px solid @base3;
}

thead th:first-child,
tfoot td:first-child {
    border-left: none !important;
}

thead th.optional {
    font-weight: normal !important;
}

fieldset table {
    border-right: none;
}

tr.row-label td {
    font-size: 9px;
    padding-top: 2px;
    padding-bottom: 0;
    border-bottom: none;
    color: @detail1;
    margin-top: -1px;
}

tr.alt {
    background: @base3 url(../img/blanc/bevel_top_white.png) -1px 0 repeat-x;
}

.row1 {
    background: @base3 url(../img/blanc/bevel_top_white.png) -1px 0 repeat-x;
}
.row1 td, .row1 th { border-bottom: 1px solid @base4; }

.row2 {
    background: @base2 url(../img/blanc/bevel_white.png) -1px 0;
}
.row2 td, .row2 th { border-bottom: 1px solid @base3; }

/* SORTABLE TABLES */

thead th {
    padding: 5px 10px;
    font-size: 10px;
    color: @detail2;
    line-height: 19px;
    text-transform: uppercase;
    background: @base2;
}

thead th a:link, thead th a:visited {
    color: @detail2;
    padding-left: 7px;
}

thead th.sorted {
    background: @base2;
}

thead th.sorted a {
    color: @theme2;
}

table thead th .text span {
    padding: 2px 10px;
    display:block;
}

table thead th .text a {
    display: block;
    cursor: pointer;
    padding: 2px 10px;
}

table thead th.sortable:hover {
    background: @base2;
    color: @theme2;
}

thead th.sorted a.sortremove {
    visibility: hidden;
}

table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

table thead th.sorted .sortoptions {
    display: block;
    padding: 4px 5px 0 5px;
    float: right;
    text-align: right;
}

table thead th.sorted .sortpriority {
    font-size: .8em;
    min-width: 12px;
    text-align: center;
    vertical-align: top;
}

table thead th.sorted .sortoptions a {
    width: 14px;
    height: 12px;
    display: inline-block;
}

table thead th.sorted .sortoptions a.sortremove {
    background: url(../img/sorting-icons.gif) -4px -5px no-repeat;
}

table thead th.sorted .sortoptions a.sortremove:hover {
    background: url(../img/sorting-icons.gif) -4px -27px no-repeat;
}

table thead th.sorted .sortoptions a.ascending {
    background: url(../img/sorting-icons.gif) -5px -50px no-repeat;
}

table thead th.sorted .sortoptions a.ascending:hover {
    background: url(../img/sorting-icons.gif) -5px -72px no-repeat;
}

table thead th.sorted .sortoptions a.descending {
    background: url(../img/sorting-icons.gif) -5px -94px no-repeat;
}

table thead th.sorted .sortoptions a.descending:hover {
    background: url(../img/sorting-icons.gif) -5px -115px no-repeat;
}

/* ORDERABLE TABLES */

table.orderable tbody tr td:hover {
    cursor: move;
}

table.orderable tbody tr td:first-child {
    padding-left: 14px;
    background-image: url(../img/nav-bg-grabber.gif);
    background-repeat: repeat-y;
}

table.orderable-initalized .order-cell, body>tr>td.order-cell {
    display: none;
}

/* FORM DEFAULTS */

input, textarea, select, .form-row p {
    margin: 2px 0;
    padding: 2px 3px;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 11px;
}

select {
    .textbox;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 25px !important;
    background: @base1 url(../img/blanc/bevel_select.png) top right no-repeat;
    &[multiple="multiple"] {
        background-image: none;
        border-radius: 0px;
        padding: 0px  !important;
    }
}

textarea {
    .textbox;
    height: auto;
    color: @detail3;
    vertical-align: top !important;
}

input[type=text], input[type=password], textarea, select, .vTextField {
    .textbox;
    color: @detail1;
    height: auto;
}

.form-row input[type=file] { border:none; font-size: 12px; }

/* FORM BUTTONS */

.button, input[type=submit], input[type=button], .submit-row input {
    .btn;
}

form div input[type=submit] { margin-left: 10px; }

.button:active, input[type=submit]:active, input[type=button]:active {
    background-image: url(../img/nav-bg-reverse.gif);
    background-position: top;
}

.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
	background-image: url(../img/nav-bg.gif);
	background-position: bottom;
	opacity: 0.4;
}

.button.default, input[type=submit].default, .submit-row input.default {
    border: 2px solid #5b80b2;
    background: #7CA0C7 url(../img/default-bg.gif) bottom repeat-x;
    font-weight: bold !important;
    color: white;
    float: right;
    margin-left: 4px !important;
}

.button.default:active, input[type=submit].default:active {
    background-image: url(../img/default-bg-reverse.gif);
    background-position: top;
}

.button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default {
	background-image: url(../img/default-bg.gif);
	background-position: bottom;
	opacity: 0.4;
}


/* MODULES */

.module {
    border: none;
    margin-bottom: 5px;
    background: @base2;
    border-top: none;
}

.module p, .module ul, .module h3, .module h4, .module dl, .module pre {
    padding-left: 10px;
    padding-right: 10px;
}

.module blockquote {
    margin-left: 12px;
}

.module ul, .module ol {
    margin-left: 1.5em;
}

.module h3 {
    margin-top: .6em;
}

.module h2, .module caption, .inline-group h2 {
    background: @theme5;
    color: #fff;
    padding: 0 10px;
    font-size: 14px;
    line-height: 24px;
    font-weight: normal !important;
    font-family: Arial, sans-serif;
    margin: 0;
    border-radius: 5px 5px 0 0;
    border-top: 1px solid @theme4;
    border-bottom: 1px solid @theme6;
}

.module caption {
    font-size: 21px;
    line-height: 37px;
    font-family: "Accord", "Droid Sans";
    font-weight: normal !important;
}

.module table {
    border-collapse: collapse;
    margin-bottom: 0;
}

.module td { padding-bottom: 5px; }

.dashboard #content-main, body.change-form #content-main {
    background: @base3;
    border-radius: 0 0 5px 5px;
}

.dashboard #content-main .module, body.change-form #content-main .module, body.change-form #content-main .inline-group {
    .btn;
    margin: 5px 10px 10px 10px;
    padding: 0;
    overflow: hidden;
    cursor: default;
    display: block;
    border-radius: 5px !important;
}

body.change-form #content-main .module {
    box-shadow: none;
    border-radius: 0;
}

body.change-form #content-main .inline-group {
    overflow: auto;
}

body.change-form #content-main .inline-group fieldset {
    margin: 0;
    border-radius: 0;
    border: none;
}

body.change-form .module.aligned .form-row {
    border-top: 1px solid #fff;
    border-bottom: 1px solid @base3;
}

/* MESSAGES & ERRORS */

ul.messagelist {
    display: block;
    padding: 0 0 5px 0;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

ul.messagelist li {
    font-size: 12px;
    display: block;
    padding: 4px 5px 4px 25px;
    margin: 0 0 3px 0;
    border-bottom: 1px solid #ddd;
    color: @detail1;
    background: #ffc url(../img/icon_success.gif) 5px .3em no-repeat;
}

ul.messagelist li.warning{
    background-image: url(../img/icon_alert.gif);
}

ul.messagelist li.error{
    background-image: url(../img/icon_error.gif);
}

.errornote {
    font-size: 12px !important;
    display: block;
    padding: 4px 5px 4px 25px;
    margin: 0 0 3px 0;
    border: 1px solid red;
    color: red;
    background: #ffc url(../img/icon_error.gif) 5px .3em no-repeat;
}

ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

.errorlist li {
    font-size: 12px !important;
    display: block;
    padding: 4px 5px 4px 25px;
    margin: 0 0 3px 0;
    border: 1px solid red;
    color: white;
    background: red url(../img/icon_alert.gif) 5px .3em no-repeat;
}

.errorlist li a {
 	color: white;
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

td ul.errorlist li {
    margin: 0 !important;
}

.errors {
    background: #ffc;
}

.errors input, .errors select, .errors textarea {
    border: 1px solid red;
}

div.system-message {
    background: #ffc;
    margin: 10px;
    padding: 6px 8px;
    font-size: .8em;
}

div.system-message p.system-message-title {
    padding: 4px 5px 4px 25px;
    margin: 0;
    color: red;
    background: #ffc url(../img/icon_error.gif) 5px .3em no-repeat;
}

.description {
    color: @detail3 !important;
    font-size: 12px;
    padding: 5px 0 0 10px;
    border-bottom: 1px solid @base3;
}

/* BREADCRUMBS */

div.breadcrumbs {
    background: @theme2;
    padding: 2px 10px 3px 10px;
    font-size: 11px;
    color: #fff;
    border-top: 1px solid @theme1;
    border-bottom: 1px solid @theme3;
    text-align: left;
    position: absolute;
    z-index: 1000;
    float: left;
    margin: 49px 0 0 0;
    right: 40px;
    left: 40px;
}

body.dashboard div.breadcrumbs { margin-right: 160px; }

.breadcrumbs a:hover, .breadcrumbs a { color: #fff; }


/* ACTION ICONS */

.addlink {
    padding-left: 15px;
    background: url(../img/icon_addlink.gif) 0 3px no-repeat;
}

.changelink {
    padding-left: 15px;
    background: url(../img/icon_changelink.gif) 0 3px no-repeat;
}

.deletelink {
    padding-left: 15px;
    background: url(../img/icon_deletelink.gif) 0 3px no-repeat;
}

a.deletelink:link, a.deletelink:visited {
    color: #CC3434;
}

a.deletelink:hover {
    color: #993333;
}

/* OBJECT TOOLS */

.object-tools {
    font-size: 10px;
    font-weight: bold;
    font-family: Arial,Helvetica,sans-serif;
    padding-left: 0;
    float: right;
    position: relative;
    margin-top: -55px;
    margin-bottom: 0;
    margin-right: 10px;
}

.form-row .object-tools {
    margin-top: 5px;
    margin-bottom: 5px;
    float: none;
    height: 2em;
    padding-left: 3.5em;
}

.object-tools li {
    display: block;
    float: left;
    background: none;
    padding: 0;
    margin-left: 2px;
    height: auto;
}

.object-tools li:hover {
    background: none;
}

.object-tools a:link, .object-tools a:visited {
    .btn;
    height: auto;
    margin-left: 5px;
}

.object-tools a:hover, .object-tools li:hover a {
    .btn;
    height: auto;
}

.object-tools a.viewsitelink, .object-tools a.golink {
    .btn;
    padding-right: 5px;
}

.object-tools a.viewsitelink:hover, .object-tools a.golink:hover {
    background: @base2 url(../img/blanc/bevel_white.png) -1px 0px no-repeat;
    padding-right: 5px;
}

.object-tools a.addlink {
    background: none;
    padding-right: none;
    .btn;
}

.object-tools a.addlink:hover {
    background: none;
    .btn;
}

/* OBJECT HISTORY */

table#change-history {
    width: 100%;
}

table#change-history tbody th {
    width: 16em;
}

/* PAGE STRUCTURE */

#container {
    position: relative;
    width: 100%;
    min-width: 760px;
    padding: 0;
    margin: 0;
}

#content {
    margin: 10px 40px;
}

#content.colM {
    border-radius: 5px;
    background: @base2;
}

#content.colM p {
    padding-top: 10px;
    padding-left: 10px;
}

#header {
    width: 100%;
}

#content-main {
    float: left;
    width: 100% !important;
    margin-right: 0px;
    display: block;
}

#content-related {
    float: right;
    width: 200px;
    position: absolute;
    margin-right: 0px;
    right: 00px;
}

#recent-actions-module { margin-top: -36px; }

#footer {
    clear: both;
    padding: 10px;
}

/* COLUMN TYPES */

.colMS {
    margin-right: 200px !important;
}

body.dashboard .colMS {
    background: none !important;
    border-radius: 5px;
}
body.dashboard #content h1 { margin-bottom: 0; }
body.dashboard #content-main {
    position: relative;
    float: left;
    width: auto;
    padding-top: 30px;
    border-radius: 0 0 5px 5px;
}

.colSM {
    margin-left: 20em !important;
}

.colSM #content-related {
    float: left;
    margin-right: 0;
    margin-left: -19em;
}

.colSM #content-main {
    float: right;
}

.popup .colM {
    width: 95%;
}

.popup #content { margin: 0; width: auto; margin: 10px; }
.popup #content h1 { margin: 0; }
.popup .object-tools { margin-top: -32px; }

.subcol {
    float: left;
    width: 46%;
    margin-right: 15px;
}

.dashboard #content {
    width: auto;
}

/* HEADER */

#header {
    background: none;
    color: white;
    overflow: visible;
    margin: 0;
}

#header a:link, #header a:visited {
    color: @theme2;
}

#header a:hover {
    text-decoration: none;
    color: @theme1;
}

#branding { overflow: hidden; margin-left: 20px; }

#branding h1 {
    color: #fff;
    font-size: 31px;
    font-family: "Accord", "Droid Sans", Arial, sans-serif;
    line-height: 31px;
    letter-spacing: -0.02em;
    font-weight: normal;
    padding: 0;
    margin: 18px 0 18px 0px;
}

#content h1 {
    display: block;
    background: @theme5;
    color: #fff;
    padding: 0 10px;
    font-size: 21px;
    line-height: 37px;
    font-weight: normal;
    font-family: "Accord", "Droid Sans";
    margin: 0 0 23px 0;
    border-radius: 5px 5px 0 0;
    border-top: 1px solid @theme4;
    border-bottom: 1px solid @theme6;
}

#branding h2 {
    padding: 0 10px;
    font-size: 14px;
    margin: -8px 0 8px 0;
    font-weight: normal;
    color: #ffc;
}

#user-tools {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 40px 0 0;
    font-size: 12px;
    text-align: right;
}

/* SIDEBAR */

#content-related h3 {

    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    margin-bottom: 0;
}

#content-related h4 {
    font-size: 11px;
}

#content-related .module { background: none; }

#content-related .module h2 {
    background: transparent url(../img/score.png) bottom left repeat-x;
    color: #fff;
    border: none;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
}

#content-related a, #content-related a:link { color: #fff !important; }
#content-related a:hover { color: #EB1C5E !important; }

#content-related .quiet, #content-related a.quiet:link, #content-related a.quiet:visited {
    color: #cbcbcc !important;
}

/* CHANGELISTS */

#changelist {
    top: 0 !important;
    position: relative;
    width: 100%;
    border-radius: 0 0 5px 5px;
}

#changelist table {
    width: 100%;
    margin-bottom: 0;
}

.change-list .hiddenfields { display:none; }

.change-list .filtered table {
    border-right: none;
    margin-bottom: 0;
}

.change-list .filtered {
    min-height: 400px;
    background: @theme2 !important;
    border-radius: 0 0 5px 5px;
}

.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
    margin-right: 200px !important;
    width: auto !important;
}

.change-list .filtered table tbody th {
    padding-right: 1em;
}

#changelist .toplinks {
    border-bottom: 1px solid @base4 !important;
}

#changelist .paginator {
    color: @detail1;
    border: none;
    border-top: 1px solid #fff;
    background: @base3;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

.change-list .filtered .paginator {
    border-right: none;
}

/* CHANGELIST TABLES */

#changelist table thead th {
    padding: 0;
    white-space: nowrap;
    vertical-align: middle;
}

#changelist table thead th.action-checkbox-column {
    width: 1.5em;
    text-align: center;
}

#changelist table tbody td, #changelist table tbody th {
    border-left: none;
}

#changelist table tbody td:first-child, #changelist table tbody th:first-child {
    border-left: 0;
    border-right: none;
}

#changelist table tbody td.action-checkbox {
    text-align:center;
}

#changelist table tfoot {
    color: @detail1;
}

/* TOOLBAR */

#changelist #toolbar {
    padding: 3px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid @base4;
    background: @base3;
    color: @detail1;
    border-radius: 0 5px 0 0;
}

#changelist #toolbar form input {
    font-size: 11px;
    padding: 1px 2px;
}

#changelist #toolbar form #searchbar {
    .textbox;
    margin-left: 5px;
    color: @detail2;
}

#changelist #toolbar form input[type='submit'] {
    .btn;
    font-size: 14px;
    padding: 0 5px;
}

#changelist #changelist-search img {
    vertical-align: middle;
}

#changelist #changelist-search label {
    display: none;
}

/* FILTER COLUMN */

#changelist-filter {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 200px;
    border-left: none;
    background: @theme2;
    margin: 0;
}

#changelist-filter h2 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 1px solid @theme3;
    border-top: 1px solid @theme2;
    margin-top: -1px;
    background: none;
}

#changelist-filter h3 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    margin-bottom: 0;
}

#changelist-filter ul {
    padding-left: 0;
    margin-left: 10px;
}

#changelist-filter li {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

#changelist-filter a {
    color: @canvas2;
}

#changelist-filter a:hover {
    color: white;
}

#changelist-filter li.selected {
    border-left: none;
    padding: 0px 10px;
    margin: 0px -10px;
    background: @theme5;
}

#changelist-filter li.selected a {
    color: #fff !important;
}

/* DATE DRILLDOWN */

.change-list ul.toplinks {
    display: block;
    background: @base3;
    border-top: 1px solid white;
    border-bottom: 1px solid @base4;
    float: left;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.change-list ul.toplinks li {
    padding: 3px 6px;
    font-weight: bold;
    list-style-type: none;
    display: inline-block;
}

.change-list ul.toplinks .date-back a {
    color: #999;
}

.change-list ul.toplinks .date-back a:hover {
    color: #036;
}

/* PAGINATOR */

.paginator {
    font-size: 11px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 22px;
    margin: 0;
    border-top: 1px solid #ddd;
}

.paginator a:link, .paginator a:visited {
    .btn;
    display: inline-block;
    -webkit-appearance: none;
    
}

.paginator a.showall {
    padding: 0 !important;
    border: none !important;
}

.paginator a.showall:hover {
    color: #036 !important;
    background: transparent !important;
}

.paginator .end {
    border-width: 1px !important;
    margin-right: 6px;
}

.paginator .this-page {
    padding: 3px 6px;
    font-weight: bold;
    font-size: 14px;
    line-height: 25px;
    vertical-align: top;
}

.paginator a:hover {
}

/* ACTIONS */

.filtered .actions {
    margin-right: 200px !important;
    border-right: none;
}

#changelist table input {
    margin: 0;
}

#changelist table tbody tr.selected {
    background-color: #FFFFCC;
}

#changelist .actions {
    color: @detail1;
    padding: 3px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid @base4;
    background: @base3;
    line-height: 25px;
}

#changelist .actions label {
    text-indent: -100em;
    overflow: hidden;
}

#changelist .actions.selected {
    background: #fffccf;
    border-top: 1px solid #fffee8;
    border-bottom: 1px solid #edecd6;
}

#changelist .actions span.all,
#changelist .actions span.action-counter,
#changelist .actions span.clear,
#changelist .actions span.question {
    font-size: 12px;
    margin: 0 0.5em;
    display: none;
}

#changelist .actions:last-child {
    border-bottom: none;
}

#changelist .actions select {
    .btn;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 25px;
    background: @base2 url(../img/blanc/bevel_select.png) top right no-repeat;
}

#changelist .actions select.filtered {
    border-radius: 0 0 4px 4px;
}

#changelist .actions label {
    font-size: 11px;
    margin-left: 0.5em;
}

#changelist #action-toggle {
    display: none;
}

#changelist .actions .button {
    .btn;
    display: inline-block;
    -webkit-appearance: none;
}

/* DASHBOARD */

.dashboard .module table th {
    width: 100%;
}

.dashboard .module table td {
    white-space: nowrap;
}

.dashboard .module table td a {
    display: block;
    padding-right: .6em;
}

/* RECENT ACTIONS MODULE */

.module ul.actionlist {
    margin-left: 0;
    color: @base6 !important;
}

ul.actionlist li {
    list-style-type: none;
    margin: 0 0 5px 0;
}

ul.actionlist li.changelink {
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

/* WIDGETS */

/* SELECTOR (FILTER INTERFACE) */

.selector {
    width: 580px;
    float: left;
}

.selector select {
    width: 270px;
    height: 17.2em;
}

.selector-available, .selector-chosen {
    float: left;
    width: 270px;
    text-align: center;
    margin-bottom: 5px;
}

.selector-chosen select {
    border-top: none;
}

.selector-available h2, .selector-chosen h2 {
    border: 1px solid #ccc;
}

.selector .selector-available h2 {
    background: @base8;
    color: white;
    border-bottom: 1px solid @base9;
}

.selector .selector-filter {
    background: @base8;
    border: none;
    border-top: 1px solid @base7;
    padding: 3px;
    color: #999;
    font-size: 10px;
    margin: 0;
    text-align: left;
}

.selector .selector-filter label {
    width: 16px;
    padding: 2px;
}

.selector .selector-filter input {
    width: 100px;
}

.selector .selector-available input {
    width: 210px;
}

.selector ul.selector-chooser {
    float: left;
    width: 22px;
    height: 50px;
    background: none;
    margin: 10em 5px 0 5px;
    padding: 0;
}

.selector-chooser li {
    margin: 0;
    padding: 3px;
    list-style-type: none;
}

.selector select {
    margin-bottom: 10px;
    margin-top: 0;
}

.selector-add, .selector-remove {
    width: 16px;
    height: 16px;
    display: block;
    text-indent: -3000px;
    overflow: hidden;
}

.selector-add {
    background: url(../img/selector-icons.gif) 0 -161px no-repeat;
    cursor: default;
    margin-bottom: 2px;
}

.active.selector-add {
    background: url(../img/selector-icons.gif) 0 -187px no-repeat;
    cursor: pointer;
}

.selector-remove {
    background: url(../img/selector-icons.gif) 0 -109px no-repeat;
    cursor: default;
}

.active.selector-remove {
    background: url(../img/selector-icons.gif) 0 -135px no-repeat;
    cursor: pointer;
}

a.selector-chooseall, a.selector-clearall {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    color: @detail1;
}

a.selector-chooseall {
    padding: 3px 18px 3px 0;
}

a.selector-clearall {
    padding: 3px 0 3px 18px;
}

a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
    color: #036;
}

a.selector-chooseall {
    background: url(../img/selector-icons.gif) right -265px no-repeat;
    cursor: default;
}

a.active.selector-chooseall {
    background: url(../img/selector-icons.gif) right -285px no-repeat;
    cursor: pointer;
}

a.selector-clearall {
    background: url(../img/selector-icons.gif) left -205px no-repeat;
    cursor: default;
}

a.active.selector-clearall {
    background: url(../img/selector-icons.gif) left -233px no-repeat;
    cursor: pointer;
}

/* STACKED SELECTORS */

.stacked {
    float: left;
    width: 500px;
}

.stacked select {
    width: 480px;
    height: 10.1em;
}

.stacked .selector-available, .stacked .selector-chosen {
    width: 480px;
}

.stacked .selector-available {
    margin-bottom: 0;
}

.stacked .selector-available input {
    width: 430px;
}

.stacked ul.selector-chooser {
    height: 22px;
    width: 50px;
    margin: 0 0 10px 40%;
    background: none;
}

.stacked .selector-chooser li {
    float: left;
    padding: 3px 3px 3px 5px;
}

.stacked .selector-chooseall, .stacked .selector-clearall {
    display: none;
}

.stacked .selector-add {
    background: url(../img/selector-icons.gif) 0 -57px no-repeat;
    cursor: default;
}

.stacked .active.selector-add {
    background: url(../img/selector-icons.gif) 0 -83px no-repeat;
    cursor: pointer;
}

.stacked .selector-remove {
    background: url(../img/selector-icons.gif) 0 -5px no-repeat;
    cursor: default;
}

.stacked .active.selector-remove {
    background: url(../img/selector-icons.gif) 0 -31px no-repeat;
    cursor: pointer;
}

/* DATE AND TIME */

p.datetime {
    display: block;
    position: relative;
    line-height: 20px;
    margin: 0 0 0 130px !important;
    padding: 0 !important;
    color: @detail1;
    font-size: 13px !important;
    font-weight: bold;
}

.datetimeshortcuts { font-size: 13px !important; }

.datetime span {
    font-size: 13px;
    color: @detail2;
    font-weight: normal;
    white-space: nowrap;
}

table p.datetime {
    font-size: 10px;
    margin-left: 0;
    padding-left: 0;
}

/* FILE UPLOADS */

p.file-upload {
    line-height: 20px;
    margin: 0;
    padding: 0 !important;
    color: @detail1;
    font-size: 12px !important;
    font-weight: bold;
}

.file-upload a {
    font-weight: normal;
}

.file-upload .deletelink {
    margin-left: 5px;
}

span.clearable-file-input { margin-left: 10px; }

span.clearable-file-input label {
    color: #333;
    font-size: 12px;
    display: inline;
    float: none;
}

/* CALENDARS & CLOCKS */

.calendarbox, .clockbox {
    margin: 5px auto;
    font-size: 11px;
    width: 16em;
    text-align: center;
    background: white;
    position: relative;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.12);
    border-radius: 10px;
}

.calendarbox { border-radius: 10px; overflow: hidden; }

.clockbox {
    width: auto;
}

.calendar {
    margin: 0;
    padding: 0;
}

.calendar table {
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    background: white;
    width: 100%;
}

.calendar caption, .calendarbox h2 {
    margin: 0;
    font-size: 13px;
    text-align: center;
    border-top: none;
}

.calendar th {
    font-size: 10px;
    color: @detail1;
    padding: 2px 3px;
    text-align: center;
    background: #e1e1e1 url(../img/nav-bg.gif) 0 50% repeat-x;
    border-bottom: 1px solid #ddd;
}

.calendar td {
    font-size: 11px;
    text-align: center;
    padding: 0;
    border-top: 1px solid #eee;
    border-bottom: none;
}

.calendar td.selected a {
    background: #C9DBED;
}

.calendar td.nonday {
    background: #efefef;
}

.calendar td.today a {
    background: #fff;
    color: @theme5;
}

.calendar td a, .timelist a {
    display: block;
    font-weight: bold;
    padding: 4px;
    text-decoration: none;
    color: @detail1;
}

.calendar td a:hover, .timelist a:hover {
    background: @detail1;
    color: white;
}

.calendar td a:active, .timelist a:active {
    background: @theme5;
    color: white;
}

.calendarnav {
    font-size: 10px;
    text-align: center;
    color: #ccc;
    margin: 0;
    padding: 1px 3px;
}

.calendarnav a:link, #calendarnav a:visited, #calendarnav a:hover {
    color: #999;
}

.calendar-shortcuts {
    background: white;
    font-size: 11px;
    line-height: 16px;
    border-top: 1px solid #eee;
    padding: 3px 0 4px;
    color: #ccc;
}

.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
    display: block;
    position: absolute;
    font-weight: bold;
    font-size: 12px;
    line-height: 37px;
    background: none;
    padding: 0px 10px;
    color: white;
    border-radius: 0 5px 0 0;
}
.calendarbox .calendarnav-previous { border-radius: 5px 0 0 0; }

.calendarnav-previous:hover, .calendarnav-next:hover {
    background: none;
    color: @detail1;
}

.calendarnav-previous {
    top: 0;
    left: 0;
}

.calendarnav-next {
    top: 0;
    right: 0;
}

.calendar-cancel {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 21px;
    background: #e1e1e1 url(../img/nav-bg.gif) 0 50% repeat-x;
    border-top: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}

.calendar-cancel:hover {
    background: #e1e1e1 url(../img/nav-bg-reverse.gif) 0 50% repeat-x;
    color: @theme5 !important;
}

.calendar-cancel a {
    color: @detail1;
    display: block;
    &:hover { color: @theme5; }
}

ul.timelist, .timelist li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.timelist a {
    padding: 2px;
}

/* INLINE ORDERER */

ul.orderer {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    list-style-type: none;
}

ul.orderer li {
    list-style-type: none;
    display: block;
    padding: 0;
    margin: 0;
    border: 1px solid #bbb;
    border-width: 0 1px 1px 0;
    white-space: nowrap;
    overflow: hidden;
    background: #e2e2e2 url(../img/nav-bg-grabber.gif) repeat-y;
}

ul.orderer li:hover {
    cursor: move;
    background-color: #ddd;
}

ul.orderer li a.selector {
    margin-left: 12px;
    overflow: hidden;
    width: 83%;
    font-size: 10px !important;
    padding: 0.6em 0;
}

ul.orderer li a:link, ul.orderer li a:visited {
    color: #333;
}

ul.orderer li .inline-deletelink {
    position: absolute;
    right: 4px;
    margin-top: 0.6em;
}

ul.orderer li.selected {
    background-color: #f8f8f8;
    border-right-color: #f8f8f8;
}

ul.orderer li.deleted {
    background: #bbb url(../img/deleted-overlay.gif);
}

ul.orderer li.deleted a:link, ul.orderer li.deleted a:visited {
    color: #888;
}

ul.orderer li.deleted .inline-deletelink {
    background-image: url(../img/inline-restore.png);
}

ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover {
    cursor: default;
}

/* EDIT INLINE */

.inline-deletelink {
    float: right;
    text-indent: -9999px;
    background: transparent url(../img/inline-delete.png) no-repeat;
    width: 15px;
    height: 15px;
    border: 0px none;
    outline: 0; /* Remove dotted border around link */
}

.inline-deletelink:hover {
    background-position: -15px 0;
    cursor: pointer;
}

.editinline button.addlink {
    border: 0px none;
    color: #5b80b2;
    font-size: 100%;
    cursor: pointer;
}

.editinline button.addlink:hover {
    color: #036;
    cursor: pointer;
}

.editinline table .help {
    text-align: right;
    float: right;
    padding-left: 2em;
}

.editinline tfoot .addlink {
    white-space: nowrap;
}

.editinline table thead th:last-child {
    border-left: none;
}

.editinline tr.deleted {
    background: #ddd url(../img/deleted-overlay.gif);
}

.editinline tr.deleted .inline-deletelink {
    background-image: url(../img/inline-restore.png);
}

.editinline tr.deleted td:hover {
    cursor: default;
}

.editinline tr.deleted td:first-child {
    background-image: none !important;
}

/* EDIT INLINE - STACKED */

.editinline-stacked {
    min-width: 758px;
}

.editinline-stacked .inline-object {
    margin-left: 210px;
    background: white;
}

.editinline-stacked .inline-source {
    float: left;
    width: 200px;
    background: #f8f8f8;
}

.editinline-stacked .inline-splitter {
    float: left;
    width: 9px;
    background: #f8f8f8 url(../img/inline-splitter-bg.gif) 50% 50% no-repeat;
    border-right: 1px solid #ccc;
}

.editinline-stacked .controls {
    clear: both;
    background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
    padding: 3px 4px;
    font-size: 11px;
    border-top: 1px solid #ddd;
}

/* FORM ROWS */

.form-row {
    overflow: hidden;
    padding: 10px;
    font-size: 13px;
    color: @detail1;
    border-bottom: 1px solid @base4;
    border-top: 1px solid @base2;
}

.form-row input {
    vertical-align: middle;
    .textbox;
    color: @detail1;
}

.form-row img {
    vertical-align: middle;
    color: @detail1;
}

form .form-row p {
    padding-left: 0;
    font-size: 11px;
}

/* FORM LABELS */

form h4 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

label {
    font-weight: normal !important;
    color: @detail2;
    font-size: 14px;
}

.required label, label.required {
    font-weight: bold !important;
    color: @detail1 !important;
}

/* RADIO BUTTONS */

form ul.radiolist li {
    list-style-type: none;
    margin-left: 0;
}

form ul.radiolist label {
    float: none;
    display: inline;
}

form ul.inline {
    margin-left: 0;
    padding: 0;
}

form ul.inline li {
    float: left;
    padding-right: 7px;
}

input[type=radio] { margin-top: -2px; }

/* ALIGNED FIELDSETS */

.aligned label {
    display: block;
    padding: 3px 10px 0 0;
    float: left;
    width: 120px;
}

.aligned ul label {
    display: inline;
    float: none;
    width: auto;
}

.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
    .textbox;
    width: 350px;
}

form .aligned p, form .aligned ul {
    margin-left: 130px;
    padding-left: 1px;
    padding-top: 5px !important;
    overflow: hidden;
}

form .aligned table p {
    margin-left: 0;
    padding-left: 0;
}

form .aligned p.help {
    padding-left: 0px !important;
    margin: 0;
}

.aligned .vCheckboxLabel {
    float: none !important;
    display: inline;
    padding-left: 4px;
}

.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
    width: 610px;
}

.checkbox-row p.help {
    margin-left: 0;
    padding-left: 0 !important;
}

fieldset .field-box {
    float: left;
    margin-right: 20px;
}

/* WIDE FIELDSETS */

.wide label {
    width: 15em !important;
}

form .wide p {
    margin-left: 15em;
}

form .wide p.help {
    padding-left: 38px;
}

.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
    width: 450px;
}

/* COLLAPSED FIELDSETS */

fieldset.collapsed * {
    display: none;
}

fieldset.collapsed h2, fieldset.collapsed {
    display: block !important;
}

fieldset.collapsed h2 {
    background-image: none;
    background-position: bottom left;
    color: #fff;
}

fieldset h2 a:hover {
    color: #fff;
}

fieldset.collapsed .collapse-toggle {
    background: transparent;
    display: inline !important;
}

fieldset.wide.aligned.module {
    display: block;
    overflow: hidden;
    border-top: 1px solid @base4;
    background: @base3;
    border-bottom: 1px solid @base2;
}

/* MONOSPACE TEXTAREAS */

fieldset.monospace textarea {
    font-family: "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace;
}

/* SUBMIT ROW */

.submit-row {
    padding: 10px 10px;
    text-align: right;
    background: none;
    border: none;
    margin: 0;
    overflow: hidden;
}

body.popup .submit-row {
    overflow: auto;
}

.submit-row input {
    margin: 0 0 0 5px;
}

.submit-row input[type=submit] {
    .btn;
}

.submit-row p {
    margin: 0.3em;
}

.submit-row p.deletelink-box {
    float: left;
    margin: 0 !important;
    padding: 0 !important;
}

.submit-row .deletelink {
    .btn;
    background: @base2 url(../img/icon_deletelink.gif) 5px 6px no-repeat;
    padding-left: 20px;
}

/* CUSTOM FORM FIELDS */

.vSelectMultipleField {
    vertical-align: top !important;
}

.vCheckboxField {
    border: none;
}

.vDateField, .vTimeField {
    margin-right: 2px;
    width: 100px;
}

.vURLField {
    width: 30em;
}

.vLargeTextField, .vXMLLargeTextField {
    width: 48em;
}

.flatpages-flatpage #id_content {
    height: 40.2em;
}

.module table .vPositiveSmallIntegerField {
    width: 2.2em;
}

.vTextField {
    width: 20em;
}

.vIntegerField {
    width: 5em;
}

.vForeignKeyRawIdAdminField {
    width: 5em;
}

/* INLINES */

.inline-group {
    padding: 0;
    border: 1px solid #ccc;
    margin: 10px 0;
}

.inline-group .aligned label {
    width: 120px;
}

.inline-related {
    position: relative;
}

.inline-related h3 {
    margin: 0;
    color: #fff;
    text-shadow: 0 1px @base8;
    padding: 3px 10px;
    font-size: 14px;
    background: @base5;
    border-top: 1px solid @base8;
    border-bottom: none;
    b {
        font-weight: normal !important;
    }
}

.inline-related h3 span.delete {
    float: right;
}

.inline-related h3 span.delete label {
    margin-left: 2px;
    font-size: 14px;
}

.inline-related fieldset {
    margin: 0;
    background: #fff;
    border: none;
}

.inline-related fieldset.module h3 {
    margin: 0;
    padding: 2px 5px 3px 5px;
    font-size: 11px;
    text-align: left;
    font-weight: bold;
    background: #bcd;
    color: #fff;
}

.inline-group .tabular fieldset.module {
    border: none;
    border-bottom: 1px solid #ddd;
}

.inline-related.tabular fieldset.module table {
    width: 100%;
}

.last-related fieldset {
    border: none;
}

.inline-group .tabular tr.has_original td {
    padding-top: 2em;
}

.inline-group .tabular tr td.original {
    padding: 2px 0 0 0;
    width: 0;
    _position: relative;
}

.inline-group .tabular th.original {
    width: 0px;
    padding: 0;
}

.inline-group .tabular td.original p {
    position: absolute;
    left: 0;
    height: auto;
    padding: 2px 10px !important;
    overflow: hidden;
    font-size: 9px;
    font-weight: bold;
    color: @detail1;
    _width: 700px;
}

.inline-group ul.tools {
    padding: 0;
    margin: 0;
    list-style: none;
}

.inline-group ul.tools li {
    display: inline;
    padding: 0 5px;
}

.inline-group div.add-row,
.inline-group .tabular tr.add-row td {
    color: @detail1;
    padding: 3px 5px;
    border-bottom: none;
    border-top: 1px solid #fff !important;
    background: @base2;
    font-size: 14px;
    line-height: 23px;
}

.inline-group .tabular tr.add-row td {
    padding: 0;
    border-bottom: none;
}

.inline-group ul.tools a.add,
.inline-group div.add-row a,
.inline-group .tabular tr.add-row td a {
    background: url(../img/icon_addlink.gif) 5px 3px no-repeat;
    padding-left: 20px;
    font-size: 14px;
    outline: 0; /* Remove dotted border around link */   
}

.inline-group .tabular tr.add-row td a {
    display: block;
    line-height: 24px;
    height: 24px;
    background: url(../img/icon_addlink.gif) 10px 10px no-repeat;
    border-top: 1px solid white;
    padding-left: 23px;
    padding: 3px 23px;
}

.empty-form {
    display: none;
}

/* IE 6 & 7 */

/* Proper fixed width for dashboard in IE6 */

.dashboard #content {
    *width: 768px;
}

.dashboard #content-main {
    *width: 535px;
}

/* IE 6 ONLY */

/* Keep header from flowing off the page */

#container {
    _position: static;
}

/* Put the right sidebars back on the page */

.colMS #content-related {
    _margin-right: 0;
    _margin-left: 10px;
    _position: static;
}

/* Put the left sidebars back on the page */

.colSM #content-related {
    _margin-right: 10px;
    _margin-left: -115px;
    _position: static;
}

.form-row {
    _height: 1%;
}

/* Fix right margin for changelist filters in IE6 */

#changelist-filter ul {
    _margin-right: -10px;
}

/* IE ignores min-height, but treats height as if it were min-height */

.change-list .filtered {
    _height: 400px;
}

/* IE doesn't know alpha transparency in PNGs */

.inline-deletelink {
    background: transparent url(../img/inline-delete-8bit.png) no-repeat;
}

/* IE7 doesn't support inline-block */
.change-list ul.toplinks li {
    zoom: 1;
    *display: inline;
}

/* LOGIN FORM */

body.login {
    background: @canvas2 url(../img/blanc/tile_noise_dark.png);
}

.login #container {
    background: #efaf02 url(../img/blanc/tile_danger.png);
    border: none;
    border-radius: 15px;
	border-radius: 15px;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
    box-shadow: 1px 1px 10px #000;
    -webkit-box-shadow: 1px 1px 10px #000;
    -moz-box-shadow: 1px 1px 10px #000;
    width: 250px;
    min-width: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    padding: 10px 0;
}

.login #content {
    width: 230px;
    margin: 0 auto;
    background: #f6f6f6;
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    display: block;
    padding: 0;
    box-shadow: 1px 1px 10px #000;
    -webkit-box-shadow: 1px 1px 10px #000;
    -moz-box-shadow: 1px 1px 10px #000;
}

.login #branding { overflow: hidden; margin-left: 0px; }

.login #content-main {
    border-radius: 7px;
    overflow: hidden;
}

.login #header {
    position: absolute;
    margin: 0 auto;
    margin-top: -80px !important;
    width: 250px;
    text-align: center;
}

.login form {
    margin-top: 0;
}

.login .form-row {
    padding: 10px;
    float: left;
    width: 100%;
}

.login .form-row, .login .submit-row {
    border-top: 1px solid #fff;
}

.login .form-row label, .login .form-row label.required {
    float: left;
    width: auto;
    padding-right: 0;
    line-height: 18px;
    text-align: left;
    font-size: 14px;
    color: #333;
    font-weight: normal !important;
}

.login .form-row #id_username, .login .form-row #id_password {
    width: 14em;
}

.login span.help {
    font-size: 10px;
    display: block;
}

.login .submit-row {
    clear: both;
    padding: 10px 0;
    text-align: center;
}

.login .password-reset-link {
    text-align: center;
}

.login #footer { display: none; }

.login .errornote {
    background: @theme5;
    color: #fff;
    border-radius: 7px 7px 0 0;
}

.login .errorlist {
    margin: -10px 0 0 -10px !important;
    li { background-color: @theme5; border: none; }
}

.login .submit-row input[type="submit"] {
    width: 100px;
}

/* RTL */

/* add that back in later */