.global-library-frame { min-width: 600px; }

.library-frame.upgrade               { min-width: 600px; min-height: calc(100vh - 60px); background-color: #fff; }
.library-frame.upgrade .inner        { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 480px; }
.library-frame.upgrade .inner        { text-align: center; }
.library-frame.upgrade .inner .image { display: block; width: 440px; height: 250px; margin: 0 auto; }
.library-frame.upgrade .inner .image { background: url('/static/img/local-library/local-library.svg') no-repeat center center; background-size: contain; }
.library-frame.upgrade .inner .text  { margin-top: 20px; font-weight: 300; font-size: 24px; color: #424242; }
.library-frame.upgrade .inner .text a { font-weight: 400; }
.library-frame.upgrade .inner .button { margin: 20px auto 0; }

.global-library-inner { position: relative; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }

.global-library-filter { float: left; padding: 40px; width: 180px; background-color: #fff; font-size: 14px; }

.global-library-filter fieldset:disabled { display: none; }
.global-library-filter .sub-title    { margin: 20px 0 10px 0; color: #228dcf; text-transform: uppercase; font-weight: bold; font-size: 14px; line-height: 21px; }
.global-library-filter hr            { border: none; height: 1px; background-color: #b2b2b2; margin: 20px 0 0 0; }
.global-library-filter .ctrl-clear   { float: right; margin-top: 20px; font-size: 12px; line-height: 21px; text-decoration: none; }

.global-library-filter .input-frame                { position: relative; }
.global-library-filter .input-frame > .input       { border: none; border-bottom: 1px solid #b2b2b2; padding: 3px; font-size: 14px; line-height: 30px; width: 100%; }
.global-library-filter .input-frame > .input:focus { border-color: #228dcf; }
.global-library-filter .input-frame > .icon        { display: block; position: absolute; top: 0; color: #228dcf; font-size: 18px; line-height: 36px; text-align: center; text-decoration: none; cursor: pointer; }
.global-library-filter .input-frame      > .input  { padding-left: 3px; padding-right: 20px; }
.global-library-filter .input-frame      > .icon   { width: 20px; right: 0; left: auto; }
.global-library-filter .input-frame.left > .input  { padding-left: 20px; padding-right: 3px; }
.global-library-filter .input-frame.left > .icon   { width: 20px; left: 0; right: auto; }
.global-library-filter .input-frame.wide > .input  { padding-right: 36px; }
.global-library-filter .input-frame.wide > .icon   { width: 36px; }
.global-library-filter .input-frame.left.wide > .input { padding-left: 36px; }

.global-library-filter .input-frame.query > .icon  { color: #999; text-align: left; }

.global-library-filter .loading      { position: absolute; left: 0; top: 0; height: 2px; width: 0; background-color: #228dcf; }
.global-library-filter .loading.anim { animation: 1s linear infinite loading-anim; }
@keyframes loading-anim {
	000% { width: 0; }
	100% { width: 100%; }
}

.global-library-filter ul.sources li          a { display: block; color: #999; line-height: 28px; padding: 0 5px; text-decoration: none; }
.global-library-filter ul.sources li.selected a { color: #fff; background-color: #1f3c77; border-radius: 3px; }


.global-library-items { padding: 40px 0; margin: 0 40px 0 300px; position: relative; }

.global-library-items li            { display: inline-block; position: relative; width: 130px; margin: 10px; vertical-align: top; }
.global-library-items li > .picture { display: block; width: 130px; height: 160px; }
.global-library-items li > .picture { background: no-repeat center center; background-size: cover; }
.global-library-items li > .title   { margin: 10px 0; font-size: 14px; line-height: 21px; height: 42px; width: 100%; font-weight: 600; overflow: hidden; }
.global-library-items li > .title div { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; }
.global-library-items li > .title a { display: block; margin-left: 5px; float: right; }

.global-library-items li .rating         { position: relative; height: 18px; line-height: 18px; font-size: 18px; color: #f9b83b; width: 104px; }
.global-library-items li .rating > *     { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.global-library-items li .rating > * > i { margin: 0 2px; display: inline-block; }
.global-library-items li .rating > .e    { width: 100%; }

.global-library-items li .actions           { position: absolute; overflow: hidden; top: 0; left: 0; width: 100%; }
.global-library-items li .actions:before    { position: absolute; content:""; opacity: 0.9; z-index: 0; top: 0; left: 0; right: 0; bottom: 0; background-color: #1f3c77; }

.global-library-items li       .actions            { height: 0; }
.global-library-items li:hover .actions            { height: 160px; }

.global-library-items li .actions                  { font-size: 12px; text-align: center; }
.global-library-items li .actions *                { position: relative; z-index: 2; }
.global-library-items li .actions .iconic          { display: inline-block; overflow: hidden; background-color: #fff; width: 30px; height: 30px; border-radius: 15px; line-height: 30px; font-size: 18px; margin: 10px 10px 0 10px; color: #228dcf; }
.global-library-items li .actions .iconic a        { display: block; width: 30px; height: 30px; line-height: 30px; color: #228dcf; }
.global-library-items li .actions .iconic a.action-bookmark { color: #f54f62; }
.global-library-items li .actions .iconic a.action-copy     { color: #228dcf; }

.global-library-items li .actions .iconic.save { position: absolute; left: 20%; top: 15%; transform: translate(-50%, -50%); margin: 0; }
.global-library-items li .actions .iconic.view { position: absolute; left: 80%; top: 15%; transform: translate(-50%, -50%); margin: 0; }
.global-library-items li .actions .iconic.copy { position: absolute; left: 20%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.global-library-items li .actions .iconic.edit { position: absolute; left: 80%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
/*
.global-library-items li .actions .action-open     { position: absolute; bottom: 10px; left: 0; right: 0; color: #ffbc2d; }
.global-library-items li .actions .action-open i   { font-size: 18px; }
*/

.global-library-items li .info        { position: absolute; z-index: 20; top: 0; width: 300px; }
.global-library-items li .info:before { position: absolute; content:""; opacity: 0.9; z-index: 0; top: 0; bottom: 0; background-color: #1f3c77; box-shadow: 0 0 2px 0 rgba(0,0,0,0.3); }
.global-library-items li .info:after  { position: absolute; content:""; opacity: 0.9; z-index: 2; top: 10px; border: 10px solid transparent; border-width: 7px 10px; }

.global-library-items li                  .info  { display: none; opacity: 0; height: 0; }
.global-library-items li .actions:hover + .info  { display: block; opacity: 1; height: auto; }

.global-library-items li .info .inner                    { position: relative; z-index: 1; color: #fff; padding: 10px 20px; }
.global-library-items li .info .inner > div              { margin: 2px 0; font-size: 12px; line-height: 21px; }
.global-library-items li .info .inner > div       > span { display: inline-block; font-weight: bold; }
.global-library-items li .info .inner > div.title        { font-size: 14px; color: #ffbc2d; }
.global-library-items li .info .inner > div.descr > span { display: block; }

.global-library-items li .info          { right: 130px; left: auto; }
.global-library-items li .info.r        { right: auto; left: 130px; }
.global-library-items li .info:before   { right: 20px; left: 0; }
.global-library-items li .info.r:before { right: 0; left: 20px; }
.global-library-items li .info:after    { left: auto; right: 0; border-left-color: #1f3c77; border-right-color: transparent; }
.global-library-items li .info.r:after  { left: 0; right: auto; border-left-color: transparent; border-right-color: #1f3c77; }
.global-library-items li .info   .inner { margin: 0 20px 0 0; }
.global-library-items li .info.r .inner { margin: 0 0 0 20px; }


