.muted { color:#666 }
.small { font-size:.8em }
.strong { font-weight:bold }

.role.admin { color:#900; font-weight:bold }
.role.mod { color:#009; font-weight:bold }
.role.verif { color:#099; font-weight:bold }

.danger { color:red !important }

.green { color:#0a0 }
.red { color:#a00 }
.blue { color:#00a }

td.title a, .title span {
    display: inline-block;
    letter-spacing: -1px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all; 
    white-space: nowrap;
    line-height: 20px;
}

td.title {
    padding: 4px 0;
}

td.title a.b {
    font-weight: bold;
}

td.title.img .thumb {
    display: inline-block; vertical-align: middle; margin-right: 8px
}

td.title.img .thumb img {
    height: 40px;
    width: 70px;
    border: #666 1px solid;
}

td.title.img .info b {
    display: block;
}

td.title.img .info {
    display: inline-block; vertical-align: middle;
}


td a img {
    vertical-align: middle;
    margin-right: 1px;
    border: #555 1px solid;
}

.wide-text {
    padding: 15px;
}

.page_title {
        font-family: Tahoma, Geneva, Verdana, sans-serif !important;
        font-size: 24px !important;
        text-align: center;
}

.notifbox {
    position: absolute;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: #ffeaa5;
    border: 1px solid #c0a344;
    text-align: center;
    min-width: 45px;
    padding: 6px 8px;
    display: none;
    zoom: 1;
    font-size: 10px;
    line-height: 11px;
    z-index: 1000;
}
.notifbox .arrow {
    width: 14px;
    height: 17px;
    position: absolute;
    top: -13px;
    left: 0;
    background: url("/static/img/ui/notif_arrow.png") no-repeat 0 0;
}
select.select {
    background: none;
    border: none;
    border-bottom: #aaa 1px solid;
    padding: 2px 5px 2px 0;
    margin: 7px 0 5px 7px;
    font-weight: 600;
}

/* #region description */
.descr pre {
    font-family: Tahoma, Verdana, sans-serif;
    margin: 10px 0;
    font-size: 1.3em;
    line-height: 1.3;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 100%;
}

div.descr strong {
    font-family: Tahoma, Verdana, sans-serif;
    margin: 5px 0;
    font-size: 1.4em;
    line-height: 1.2;
    color: #555;
}

.d-t, .d-t.expanded {
    transition: max-height 0.2s ease-out;
    -webkit-transition: max-height 0.2s ease-out;
}

.d-t {
    overflow: hidden;
}

.description-toggle {
    text-align: center;
    position: relative;
    z-index: 1;
    margin: -4px 0;
    overflow: hidden;
    display: none;
}
.description-toggle button {
    background: none;
    border: none;
    width: 35%;
    cursor: pointer;
}


div.description-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    z-index: -1;
}

div.description-toggle span {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 1em;
    color: #555;
    padding: 0 15px;
    text-shadow: 6px 0 5px #fff, 4px 0 3px #fff, 0 0 4px #fff, 0 0 4px #fff, -4px 0 3px #fff, -6px 0 5px #fff;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
}

div.description-toggle .collapse {
    display: none;
}

/* #endregion */

/* #region buttons */
.btn-old {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid;
	border-color: #bbb;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    user-select: none;
    text-decoration: none;
    height: 31px;
    padding: 0 10px;
    font-size: 1.1em;
	text-decoration: none !important;
}

.btn-old img {
    vertical-align: middle;
    height: 16px;
    margin-top: -2px;
    margin-right: 4px;
}

.btn-old span {
	display: inline-block;
    vertical-align: middle;
    font-size: 1.3em;
    line-height: 31px;
	text-decoration: none !important ;
}

.btn-old a {
	text-decoration: none !important;
	color: inherit !important;
}

.btn-light {
	background: #eee;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#eeeeee, endColorstr=#cccccc, GradientType=0);
    background: linear-gradient(#eee, #ccc);
    color: #000 !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.btn-light:hover {
	background: #ddd;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#eeeeee, endColorstr=#bbbbbb, GradientType=0);
    background: linear-gradient(#eee, #bbb);
    border-color: #aaa;
}

.btn-light.active, .btn-light:active, .btn-light.active:active {
	background: #aaa;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aaaaaa, endColorstr=#bbbbbb, GradientType=0);
    background: linear-gradient(#aaa, #bbb);
    border-color: #aaa;
}

					/* ie8 kostyl */
.btn-old.unactive, .btn-old.unactive:hover {
	background: #aaa;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aaaaaa, endColorstr=#999999, GradientType=0);
    background: linear-gradient(#aaa, #999) !important;
    border-color: #aaa !important;
	cursor: default;
}

.btn-light.active:hover  {
	background: #aaa;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aaaaaa, endColorstr=#999999, GradientType=0);
    background: linear-gradient(#aaa, #999);
    border-color: #aaa;
}

.btn-red {
	background: #b22;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#bb2222, endColorstr=#aa0000, GradientType=0);
    background: linear-gradient(#b22, #a00);
    border-color: #600;
    color: #fff !important;
    text-shadow: 0 1px 1px #000;
}

.btn-red span {
	filter: progid:DXImageTransform.Microsoft.Shadow(color=#440000, direction=180, strength=2);
}

.btn-red:hover {
	background: #e44;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ee4444, endColorstr=#bb0000, GradientType=0);
    background: linear-gradient(#e44, #b00);
}

.btn-red:active {
	background: #a00;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aa0000, endColorstr=#bb2222, GradientType=0);
    background: linear-gradient(#a00, #b22);
}
/* #endregion */

/* #region icon buttons */
/*! Icons by www.aha-soft.com licensed under Creative Commons Attribution-Share Alike 3.0 License !*/

.__copyright {
content: "Icons by www.aha-soft.com licensed under Creative Commons Attribution-Share Alike 3.0 License"
}

.icn-btn-box a.icn-btn {
    margin: 0 3px ;
}
.icn-btn {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
}
.icn-btn img {
    width: 16px;
    height: 16px;
}

a.icn-btn.remove {
    background: url("/static/img/status/remove.png");
}
a.icn-btn.remove:hover {
    background-image: url("/static/img/status/remove_h.png");
}

a.icn-btn.edit {
    background: url("/static/img/status/edit.png");

}
a.icn-btn.edit:hover {
    background-image: url("/static/img/status/edit_h.png");
}


/* #endregion */

/* #region sub_btn */
.subscribe_btn.light {
    min-width: 110px;
}
.subscribe_btn span.text.subscribed,
.subscribe_btn span.text.unsubscribe,
.subscribe_btn.subscribed span.text.subscribe,
.subscribe_btn.subscribed span.text.unsubscribe,
.subscribe_btn.subscribed:hover span.text.subscribed  {display: none}
.subscribe_btn.subscribed span.text.subscribed,
.subscribe_btn.subscribed:hover span.text.unsubscribe {display: inline-block}

.subscribe_btn.light {
    background: #f5f5f5;
    border: #aaa 1px solid;
    cursor: pointer;
    border-radius: 2px;
    padding: 0;
    display: inline-block;
}
.subscribe_btn.light.wide {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.subscribe_btn a {
    display: block;
}
.subscribe_btn.light:active {
    background: #e5e5e5;
}
.subscribe_btn.wide .count {
    text-align: right;
    margin-right: 0;
}

.subscribe_btn.light span {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    line-height: 14px;
    color: #444;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}
.subscribe_btn.light .text {
    padding: 4px 6px;
}
.subscribe_btn.light .count {
    border-radius: 1px;
    border: #aaa 1px solid;
    padding: 1px 3px;
    text-align: center;
    margin-right: 2px;
    float: right;
    margin-top: 2px;
}
/* #endregion */

/* #region kebab menu */
.kebab {
    position: relative;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    display: inline-block;
}

.kebab.hover:hover .insides {
    display: block !important;
}

.kebab .summary {
    user-select: none;
    display: inline;
    width: 24px;
    height: 24px;
    text-align: center;
    display: block;
    background: #eee;
    border: #aaa 1px solid;
    line-height: 0.2px;
}
.kebab .summary:before {
    margin-top: 3px;
    content: ".\A.\A.";
    display: block;
    line-height: 4px;
    white-space: pre;
    color: #333;
    text-align: center;
}

/* right зарезервировано говнокодерами на сайте */
.kebab.r ul {
    right: 0;
}

.kebab .insides {
    background: #eee;
    position: absolute;
    padding: 0;
    border: #aaa 1px solid;
    border-bottom: none;
    margin-top: 12px;
    z-index: 50;
}
.kebab .insides li:first-child::before {
    content: "";
    background: url("/static/img/ui/kebab_arrow.png") no-repeat 0 0;
    position: absolute;
    top: -13px;
    right: 7px;
    width: 14px;
    height: 17px;
}
.kebab .insides li:first-child::before {
    left: 4px;
    right: auto;
}
.kebab.r .insides li:first-child::before {
    right: 7px;
    left: auto;
}
.kebab .insides li:first-child:hover::before {
    background: url("/static/img/ui/kebab_arrow_h.png");
}
.kebab .insides li:first-child:active::before {
    background: url("/static/img/ui/kebab_arrow_a.png");
}
.kebab .insides li {
    list-style-type: none;
    margin: 0;
    padding: 3px 5px;
    border-bottom: #bbb 1px solid;
    min-width: 48px;
}

.kebab .insides li a {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 16px;
    display: table;
}

.kebab .insides li .icon {
    display: table-cell;
    vertical-align: middle;
    margin-right: 6px;
    border: none;
}

.kebab .insides li span {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}

.kebab .insides li:hover, .kebab span.summary:hover {
    background: #ccc;
    color: #444;
    border-color: #aaa;
}
.kebab .insides li:active, .kebab span.summary:active {
    background: #aaa;
    color: #333;
    border-color: #ccc;
}
/* #endregion */
/* #region info table */

.info-table {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
	margin-bottom: 15px;
}

.form-group p, .form-group label {
	display: block;
    margin: 5px 0;
    font-weight: bold;
}

.form-group span {
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
	background: linear-gradient(#eee, #fff);
	background: #efefef;
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #aaa;
    border-radius: 0px;
    box-sizing: border-box;
    font-family: Verdana, sans-serif;
	white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: auto; 
}

.form-group select {
    padding: 4px 2px;
}
.form-group option[selected] {
	font-weight: bold;
}

.form-group textarea {
    resize: vertical;
	width: 100%;
    min-height: 120px; 
}

.errors {
    background: url(/static/img/status/error.gif);
    background-repeat: no-repeat;
    padding: 0 0 2px 20px;
    margin: 2px 0;
}
.errors span {
    margin: 0;
    font-weight: bold;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
}

.info-table td.main, .info-table td.description, .info-table td.illustration {
    padding: 10px;
    vertical-align: top;
	box-sizing: border-box; 
}

.info-table td.main {
    min-width: 250px;
    max-width: 450px;
    width: 30%;
}


.info-table td.description {
    border-left: 1px solid #600;
	width: 70%;
}

.info-table td.illustration {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 10px 0;
    box-sizing: border-box;
}

.info-table td.illustration img {
	box-shadow: #000 0 4px 6px -6px;
}

.info-table li {
    font-size: 1.2em;
}

.info-table input.submit_video, .form-group input.submit_video {
    background: url(/static/img/submit1.png) center center no-repeat;
    color: #fff;
    font-family: Verdana, sans-serif;
    border: 0;
    position: absolute;
    width: 135px;
    height: 44px;
    cursor: pointer;
}

.info-table .item {
    margin-bottom: 4px;
}

.action-panel-transition {
    -moz-transition:max-height 250ms ease;
    -webkit-transition:max-height 250ms ease;
    transition:max-height 250ms ease;
}

.message-box {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #600;
    background: #ff000011;
    padding: 4px;
}

.message-box p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: bold;
}


#upload_description #status img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

#upload_description #status span {
    font-family: Verdana, sans-serif;
    font-weight: 600;
    font-size: 12px;
    
    display: inline-block;
    vertical-align: middle;
    margin-top: 2px;
}
/* #endregion */

/* #region table */
.shedule thead {
    background-color: #a00;
    background: linear-gradient(#bbb, #888);
    padding-left: 8px !important;
}
.shedule thead tr th {
    color: #fff !important;
    text-shadow: 0 1px 1px #000;
    border-right: 1px solid #888 !important;
    font-size: 12px !important;
    font-weight: 600;
    padding: 2px 6px;
    text-align: left;
}
.shedule tbody tr:first-child td {
    padding-top: 8px !important;
    border-top: 2px solid #bbb !important;
}
.shedule tbody td {
    padding-left: 6px;
}

.shedule tbody td, .shedule thead th {
    border-bottom: 1px solid #ccc !important;
}
/* #endregion */
/* #region pages */
.pagination {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}
.pagination a {
    font-size: 12px !important;
    text-decoration: none !important;
    min-width: 20px;
    height: 20px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 20px;
    border: 1px solid #aaa;
    color: #000 !important;
    margin: 0 3px !important;
}
/* #endregion */
/* #region expanded button */
.expanded_btn {
    background: #eee;
    border: #aaa 1px solid;
    display: inline-block;
    margin: 4px 0;
}

.expanded_btn button,
.expanded_btn a {
    display: inline-block;
    padding: 0 6px;

    font-size: 12px;
    font-weight: bold !important;
    line-height: 24px;

    color: #222 !important;
    text-decoration: none;

    user-select: none;
    cursor: pointer;
}

.expanded_btn button:hover,
.expanded_btn a:hover {
    background: #ccc;
}

.expanded_btn button:active,
.expanded_btn a:active {
    background: #bbb;
}


.expanded_btn button {
    background: none;
    border: none;
}

.expanded_btn a {
    border-left: solid #999 1px
}
/* #endregion */

/* #region search filters form */
.search-filters {
    padding: 5px;
    padding-top: 0;
}

.search-filters ul {
    width: 100%;
    display: table;
}

.search-filters ul li {
    display: table-cell;
    vertical-align: top;
    min-width: 0;
}

.search-filters ul li:last-child {
    width: 1%;
    white-space: nowrap;
}

.search-filters label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-filters input,
.search-filters select,
.search-filters textarea {
    margin-left: 5px;
    box-sizing: border-box;
    min-width: 0;
}
.search-filters textarea {
    vertical-align: middle;
    min-height: 22px;
    height: 22px;
    resize: vertical;
}

/* #endregion */