/* generic smallbutton classes */
/* regular .button is for giant gray buttons, so we call this one
/* .smallbutton */

/* create a button from a piece of text,
   these should be combined with a subclass, like add or delete */
a.smallbutton, input[type="submit"].smallbutton, button.smallbutton {
    display: inline-block;
    margin: 1px 7px 1px 1px;
    padding: 5px 10px 6px 7px;
    -moz-box-shadow: 0 1px 2px #777;
    -webkit-box-shadow: 0 1px 2px #777;
    box-shadow: 0 1px 2px #777;
    cursor: pointer;

    border: 1px solid #666;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;

    font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-indent: 26px;
    text-decoration: none;
    font-weight: bold;
    color: #565656;
    text-shadow: 0 1px 0 #fff;

    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 8px 6px;

    /* (the background-image is set by the smallbutton subclass */
}

a.smallbutton:hover, input[type="submit"].smallbutton:hover {
    background-color:#dff4ff;
    border: 1px solid #666;
    color:#336699;
}

a.smallbutton:active, input[type="submit"].smallbutton:active { 
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}

a.smallbutton img {
    display: none;
}

/* a small smallbutton, where we want to hide the text.
   these need to be used with one of the subclasses. */
a.minibutton {
    overflow: hidden;
    width: 16px;
    text-indent: 17px;
    
    display: inline-block;
    margin: 1px 7px 1px 1px;
    padding: 1px;
    cursor: pointer;

    background-repeat: no-repeat;
    background-position: 1px 1px;
}

/* the subclasses, they each add a little icon to our smallbutton */

.smallbutton.delete, .minibutton.delete { background-image: url("/images/cross.png")  }
.smallbutton.add, .minibutton.add { background-image: url("/images/add.png")    }
.smallbutton.edit, .minibutton.edit { background-image: url("/images/pencil.png") }
.smallbutton.back, .minibutton.back { background-image: url("/images/table_go.mirror.png") }
.smallbutton.save, .minibutton.save { background-image: url("/images/disk.png") }
.smallbutton.pending, .minibutton.pending { background-image: url("/images/traffic.png") }
.smallbutton.approve, .minibutton.approve { background-image: url("/images/tick.png") }
.smallbutton.reject, .minibutton.reject  { background-image: url("/images/cross.png") }
.smallbutton.pdf, .minibutton.pdf { background-image: url("/images/pdf_16.png") }
.smallbutton.print, .minibutton.print { background-image: url("/images/printer.png") }
.smallbutton.excel, .minibutton.excel { background-image: url("/images/page_excel.png") }
.smallbutton.report, .minibutton.report { background-image: url("/images/report.png") }
/* licence for report.png: CC Attribution 3.0. Image from http://led24.de/ */

/* POSITIVE - a smallbutton for a good thing */

smallbutton.positive, a.smallbutton.positive, input[type="submit"].smallbutton.positive {
    color:#529214;
}
a.smallbutton.positive:hover, smallbutton.positive:hover, input[type="submit"].smallbutton.positive:hover {
    background-color:#E6EFC2;
    border:1px solid #C6D880;
    color:#529214;
}
a.smallbutton.positive:active, input[type="submit"].smallbutton.positive:active {
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}

/* NEGATIVE - a smallbutton for a bad thing */

a.smallbutton.negative, smallbutton.negative, input[type="submit"].smallbutton.negative {
    color:#d12f19;
}
a.smallbutton.negative:hover, smallbutton.negative:hover, input[type="submit"].smallbutton.negative:hover {
    background-color:#fbe3e4;
    border:1px solid #fbc2c4;
    color:#d12f19;
}
a.smallbutton.negative:active, input[type="submit"].smallbutton.negative:active {
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}
