
/* COMMON - BEGIN */

/* FONT SETTINGS */
.tf-select,
.tf-input,
.tf-textarea,
.tf-multiple,
.tf-label,
.tf-fieldset legend,
.tf-file,
.tf-file input,
.tf-radio,
.tf-checkbox,
.tf-button,
.tf-input.tf-color,
.tf-input.tf-range {
    font-size: 13px;
    cursor: pointer;
}

/* FIELD - NORMAL */
.tf-select .tf-selected,
.tf-input,
.tf-multiple,
.tf-textarea,
.tf-file .tf-info,
.tf-radio,
.tf-checkbox {
    background: #f0f0f0;
    background: -webkit-linear-gradient(top, #e3e3e3, #fff);
    background: -moz-linear-gradient(top, #e3e3e3, #fff);
    background: -ms-linear-gradient(top, #e3e3e3, #fff);
    background: -o-linear-gradient(top, #e3e3e3, #fff);
    background: linear-gradient(to bottom, #e3e3e3, #fff);
    box-shadow: inset 0 0 2px #6b6b6b;
    border: 1px solid #6b6b6b;
    border-radius: 4px;
    color: #6b6b6b;
    padding: 6px 10px;
}

/* FIELD - FOCUSED */
.tf-select.tf-focused .tf-selected,
.tf-select .tf-menu,
.tf-multiple.tf-focused,
.tf-input:focus, .tf-textarea:focus,
.tf-file.tf-focused .tf-info,
.tf-radio.tf-focused,
.tf-checkbox.tf-focused {
    background: #d2eaf6;
    background: -webkit-linear-gradient(top, #d2eaf6, #fff);
    background: -moz-linear-gradient(top, #d2eaf6, #fff);
    background: -ms-linear-gradient(top, #d2eaf6, #fff);
    background: -o-linear-gradient(top, #d2eaf6, #fff);
    background: linear-gradient(to bottom, #d2eaf6, #fff);
    box-shadow: inset 0 0 2px #1b79b8;
    border: 1px solid #1b79b8;
    color: #1b79b8;
}

/* BUTTON - NORMAL */
.tf-button,
.tf-file .tf-button {
    background: #6b6b6b;
    background: -webkit-linear-gradient(top, #ababab, #6b6b6b);
    background: -moz-linear-gradient(top, #ababab, #6b6b6b);
    background: -ms-linear-gradient(top, #ababab, #6b6b6b);
    background: -o-linear-gradient(top, #ababab, #6b6b6b);
    background: linear-gradient(to bottom, #ababab, #6b6b6b);
    box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff;
    border: 1px solid #6b6b6b;
    border-radius: 4px;
    padding: 6px 10px;
}

/* BUTTON - FOCUSED */
.tf-file.tf-focused .tf-button,
.tf-button.tf-focused,
.tf-select.tf-focused .tf-button{
    background: #1b79b8;
    background: -webkit-linear-gradient(top, #59b5f2, #1b79b8);
    background: -moz-linear-gradient(top, #59b5f2, #1b79b8);
    background: -ms-linear-gradient(top, #59b5f2, #1b79b8);
    background: -o-linear-gradient(top, #59b5f2, #1b79b8);
    background: linear-gradient(to bottom, #59b5f2, #1b79b8);
    border-color: #1b79b8;
}

/* BLACK OUTLINE, WHITE TEXT */
.tf-select .tf-menu .tf-hover,
.tf-multiple .tf-hover,
.tf-multiple .tf-selected,
.tf-button {
    color: #fff;
    text-shadow:
        1px 0 rgba(0,0,0,.2),
        -1px 0 rgba(0,0,0,.2),
        0 -1px rgba(0,0,0,.2),
        0 1px rgba(0,0,0,.2),
        1px 1px rgba(0,0,0,.2),
        -1px -1px rgba(0,0,0,.2),
        1px -1px rgba(0,0,0,.2),
        -1px 1px rgba(0,0,0,.2);
}

/* COMMON - END */

/* SELECT BOX - BEGIN */

.tf-select .tf-selected {
    border-radius: 4px 0 0 4px;
}
.tf-select .tf-button {
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.tf-select .tf-button span {
    display: block;
    background: url('img/ui-icons_white.png') -64px -15px;
    width: 16px;
    margin-left: 4px;
    margin-right: 5px;
}
.tf-select .tf-menu {
    border-radius: 0 0 4px 4px;
}
.tf-select .tf-menu div,
.tf-multiple div {
    border: 1px solid transparent;
    border-left-width: 0;
    border-right-width: 0;
    padding: 6px 10px;
    margin-top: -1px;
}
.tf-select .tf-menu .tf-hover,
.tf-multiple.tf-focused .tf-hover,
.tf-multiple.tf-focused .tf-selected,
.tf-select.tf-opened.tf-focused .tf-button {
    border-color: #1b79b8;
    background: #59b5f2;
    background: -webkit-linear-gradient(top, #1b79b8, #59b5f2);
    background: -moz-linear-gradient(top, #1b79b8, #59b5f2);
    background: -ms-linear-gradient(top, #1b79b8, #59b5f2);
    background: -o-linear-gradient(top, #1b79b8, #59b5f2);
    background: linear-gradient(to bottom, #1b79b8, #59b5f2);
    box-shadow: inset 0 0 7px #fff, inset 0 0 3px #fff;
}
.tf-select.tf-opened .tf-button {
    background: #ababab;
    background: -webkit-linear-gradient(top, #6b6b6b, #ababab);
    background: -moz-linear-gradient(top, #6b6b6b, #ababab);
    background: -ms-linear-gradient(top, #6b6b6b, #ababab);
    background: -o-linear-gradient(top, #6b6b6b, #ababab);
    background: linear-gradient(to bottom, #6b6b6b, #ababab);
}
.tf-select.tf-opened .tf-button {

}
.tf-select .tf-menu .tf-group-last,
.tf-select .tf-menu div.tf-last {
    border-bottom-width: 0;
}
.tf-select .tf-menu ul {
    overflow: hidden;
}
.tf-select .tf-menu li.tf-last {
    margin-bottom: -1px;
}
.tf-select .tf-menu .tf-last {
    border-radius: 0 0 4px 4px;
}
.tf-select.tf-opened .tf-selected {
    border-radius: 4px 0 0 0;
}
.tf-select.tf-opened .tf-button {
    border-radius: 0 4px 0 0;
}
.tf-select .tf-menu li,
.tf-multiple.tf-focused li {
    border-bottom: 1px solid #54b0e0;
    border-top: 1px solid #54b0e0;
    margin: -1px 0;
}
.tf-select .tf-menu li > span,
.tf-multiple li > span,
.tf-multiple.tf-focused li > span {
    display: block;
    padding: 6px 10px;
    text-align: center;
    font-weight: bold;
    color: #6b6b6b;
    background: #a7deff;
    border-bottom: 1px solid #54b0e0;
    cursor: default;
    white-space: nowrap;
}

/* SELECT BOX - END */

/* MULTIPLE SELECT BOX - BEGIN */

.tf-multiple {
    padding: 0;
}
.tf-multiple li {
    border: 1px solid #54b0e0;
    border-right: none;
    border-left: none;
    margin: -1px 0;
}
.tf-multiple li > span {
    color: #70a5d1;
    border-color: #54b0e0;
    background: #c1ddf5;
}
.tf-multiple .tf-hover,
.tf-multiple .tf-selected,
.tf-multiple.tf-focused .tf-hover {
    background: #b7def2;
    background: -webkit-linear-gradient(top, #54b0e0, #b7def2);
    background: -moz-linear-gradient(top, #54b0e0, #b7def2);
    background: -ms-linear-gradient(top, #54b0e0, #b7def2);
    background: -o-linear-gradient(top, #54b0e0, #b7def2);
    background: linear-gradient(to bottom, #54b0e0, #b7def2);
    box-shadow: inset 0 0 2px #fff, inset 0 0 2px #fff;
    border-color: #54b0e0;
}
.tf-multiple .tf-hover,
.tf-multiple .tf-selected {
    border: 1px solid #54b0e0;
    border-left: none;
    border-right: none;
}
.tf-multiple div.tf-first {
    border-top: none;
    border-radius: 4px 4px 0 0;
    margin-top: 0;
}
.tf-multiple div.tf-last {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}
.tf-multiple .tf-group-first {
    border-top: none;
    margin-top: 0;
}
.tf-multiple li.tf-last,
.tf-multiple .tf-group-last {
    border-bottom: none;
}

/* MULTIPLE SELECT BOX - END */

/* FILE UPLOAD BOX - BEGIN */

.tf-file {
    width: 200px;
    padding: 0;
    overflow: auto;
}
.tf-file .tf-info, .tf-file.tf-focused .tf-info {
    padding: 6px 10px;
    border-radius: 4px 0 0 4px;
    border-right: none;
}
.tf-file .tf-button {
    border-radius: 0 4px 4px 0;
    color: transparent;
    text-shadow: none;
    padding: 6px 8px;
}
.tf-file .tf-button span {
    margin: 0 0 0 -4px;
    width: 16px;
    height: 16px;
    display: block;
    overflow: hidden;
    background: url('img/ui-icons_white.png') -16px -96px;
}
.tf-file .tf-button:after {
    content: "\00a0";
}
.tf-file input::-webkit-file-upload-button {
    cursor: pointer;
}

/* FILE UPLOAD BOX - END */

/* RADIO BUTTON - BEGIN */

.tf-radio {
    width: 15px;
    height: 15px;
    padding: 0;
    border-radius: 8px;
}
.tf-radio input {
    width: 17px;
    height: 17px;
    margin: -1px 0 0 -1px;
    cursor: pointer;
}
.tf-radio span {
    width: 15px;
    height: 15px;
    display: block;
    float: right;
}
.tf-radio.tf-checked span {
    background: url('img/ui-icons_black.png') -80px -145px;
}
.tf-radio.tf-checked.tf-focused span {
    background-image: url('img/ui-icons_blue.png');
}

/* RADIO BUTTON - END */

/* CHECK BOX - BEGIN */

.tf-checkbox {
    padding: 0;
    width: 15px;
    height: 15px;
    border-radius: 3px;
}
.tf-checkbox input {
    width: 17px;
    height: 17px;
    margin: -1px 0 0 -1px;
    cursor: pointer;
}
.tf-checkbox.tf-checked span {
    width: 15px;
    height: 15px;
    display: block;
    background: url('img/ui-icons_black.png') -64px -145px;
    float: right;
}
.tf-checkbox.tf-focused.tf-checked span {
    background-image: url('img/ui-icons_blue.png');
}


/* CHECK BX - END */

/* BUTTON */
.tf-button {
    overflow: hidden;
    padding: 0;
}
.tf-button span {
    margin: 3px 7px;
    float: right;
}
.tf-button input,
.tf-button button {
    cursor: pointer;
}

/* TEXT & TEXTAREA - BEGIN */

.tf-input, .tf-textarea {
    outline: none;
    cursor: text;
    margin: 0;
}
/*.tf-input.tf-readOnly,
.tf-textarea.tf-readOnly,
.tf-input.tf-readOnly:focus,
.tf-textarea.tf-readOnly:focus {
    background: #e4e4e4;
    background: -webkit-linear-gradient(top, #e4e4e4, #fff);
    background: -moz-linear-gradient(top, #e4e4e4, #fff);
    background: -ms-linear-gradient(top, #e4e4e4, #fff);
    background: -o-linear-gradient(top, #e4e4e4, #fff);
    background: linear-gradient(to bottom, #e4e4e4, #fff);
    box-shadow: inset 0 0 2px #a2a2a2;
    border: 1px solid #a2a2a2;
    border-radius: 4px;
    color: #888;
    padding: 6px 10px;
}*/

/* PLACEHOLDER COLORS */

.tf-input::-webkit-input-placeholder,
.tf-textarea::-webkit-input-placeholder {
    color: #bbb;
}
.tf-input:-moz-placeholder,
.tf-textarea:-moz-placeholder {
    color: #aaa;
}
.tf-input::-moz-placeholder,
.tf-textarea::-moz-placeholder {
    color: #aaa;
}
.tf-input:-ms-input-placeholder,
.tf-textarea:-ms-input-placeholder {
    color: #bbb;
}
.tf-input:focus::-webkit-input-placeholder,
.tf-textarea:focus::-webkit-input-placeholder {
    color: #abc7d6;
}
.tf-input:focus:-moz-placeholder,
.tf-textarea:focus:-moz-placeholder {
    color: #54B0E0;
}
.tf-input:focus::-moz-placeholder,
.tf-textarea:focus::-moz-placeholder {
    color: #54B0E0;
}
.tf-input:focus:-ms-input-placeholder,
.tf-textarea:focus:-ms-input-placeholder {
    color: #abc7d6;
}

/* READ-ONLY PLACEHOLDERS */

.tf-input.tf-readOnly::-webkit-input-placeholder,
.tf-textarea.tf-readOnly::-webkit-input-placeholder {
    color: #d4d4d4;
}
.tf-input.tf-readOnly:-moz-placeholder,
.tf-textarea.tf-readOnly:-moz-placeholder {
    color: #dedede;
}
.tf-input.tf-readOnly::-moz-placeholder,
.tf-textarea.tf-readOnly::-moz-placeholder {
    color: #dedede;
}
.tf-input.tf-readOnly:-ms-input-placeholder,
.tf-textarea.tf-readOnly:-ms-input-placeholder {
    color: #d4d4d4;
}
.tf-input.tf-readOnly:focus::-webkit-input-placeholder,
.tf-textarea.tf-readOnly:focus::-webkit-input-placeholder {
    color: #d4d4d4;
}
.tf-input.tf-readOnly:focus:-moz-placeholder,
.tf-textarea.tf-readOnly:focus:-moz-placeholder {
    color: #dedede;
}
.tf-input.tf-readOnly:focus::-moz-placeholder,
.tf-textarea.tf-readOnly:focus::-moz-placeholder {
    color: #dedede;
}
.tf-input.tf-readOnly:focus:-ms-input-placeholder,
.tf-textarea.tf-readOnly:focus:-ms-input-placeholder {
    color: #d4d4d4;
}

/* TEXT & TEXTAREA - END */

/* FIELD SET */
.tf-fieldset {
border: 1px solid #6B6B6B;
    box-shadow: inset 0 0 4px #6B6B6B;
    border-radius: 4px;
    background: #fff;
    background: -webkit-linear-gradient(top, #e3e3e3, #fff);
    background: -moz-linear-gradient(top, #e3e3e3, #fff);
    background: -ms-linear-gradient(top, #e3e3e3, #fff);
    background: -o-linear-gradient(top, #e3e3e3, #fff);
    background: linear-gradient(to bottom, #e3e3e3, #fff);
    margin: 0 10px 10px 0;
    padding: 10px;
}
.tf-fieldset legend {
    font-weight: bold;
    color: #6B6B6B;
    text-shadow:
        1px 0 rgba(255,255,255,.5),
        -1px 0 rgba(255,255,255,.5),
        0 -1px rgba(255,255,255,.5),
        0 1px rgba(255,255,255,.5),
        1px 1px rgba(255,255,255,.5),
        -1px -1px rgba(255,255,255,.5),
        1px -1px rgba(255,255,255,.5),
        -1px 1px rgba(255,255,255,.5),
        0 0 5px #fff;
}

/* MISC */

.tf-label {
    color: #6b6b6b;
    margin: 0 3px;
}
.tf-label.tf-focused {
    color: #1b79b8;
}
.tf-disabled {
    opacity: .5;
    filter: alpha(opacity=50);
}
.tf-disabled,
.tf-disabled input,
.tf-disabled button,
.tf-disabled *
*.tf-disabled {
    cursor: default;
}
.tf-file.tf-disabled input::-webkit-file-upload-button {
    cursor: pointer;
}
.tf-fieldset.tf-disabled,
.tf-form.tf-disabled {
    opacity: 1;
    filter: alpha(opacity=100);
}

.tf-input.tf-color {
    width: 30px;
    padding: 0;
    height: 24px;
}
.tf-input.tf-number {
    text-align: right;
}
.tf-input.tf-range {
    height: 9px;
    margin: 8px 0 7px 0;
}
.tf-input.tf-search,
.tf-input.tf-search.tf-readOnly{
    border-radius: 11px;
}
.tf-input.tf-datetime,
.tf-input.tf-datetime-local,
.tf-input.tf-month,
.tf-input.tf-time,
.tf-input.tf-week,
.tf-input.tf-datetime:focus,
.tf-input.tf-datetime-local:focus,
.tf-input.tf-month:focus,
.tf-input.tf-time:focus,
.tf-input.tf-week:focus {
    padding: 1px 5px;
}