/* ADMIN GRID */
.ctn-admingrid.medium,
.ctn-grid-medium {
    width:80%;
    margin:0 auto 20px;
}
.ctn-grid-small, 
.ctn-admingrid.small {
    width:50%;
    margin:0 auto 20px;
}

.ctn-grid{
    margin-bottom: 20px;
}
.grid-subtitle{
    padding:0;
    margin:0;
    font-style: italic;
}
.grid-toggle{
	display: inline-block;
	padding-left: 25px;
	background: url('../images/icons/icon-plus.png') no-repeat;
	height: 20px;
	cursor: pointer;
}
.grid-toggle.open{
	background: url('../images/icons/icon-minus.png') no-repeat;
}

.grid-content{
    margin-bottom: 10px;
}
.tab-grid{
    width:100%;
    background: #ddd;
    border-spacing: 1px;
}
.tab-grid th{
    background: #424242;
    color: #fff;
    padding: 5px 2px 8px 2px;
	position: relative;
}
.tab-grid.header-white th{
    background: #fff;
    color: #424242;
}
.tab-grid th a{
	display: block;
	width: 100%;
    color: #fff;
}

.tab-grid  tbody {
max-height:500px;
overflow-y:scroll;
}
.tab-grid thead, tbody tr {

}

.tab-grid td{
    background: #fff;
    color: #333;
    padding: 2px;
    height: 20px;
	word-wrap: break-word;
}
.tab-grid tr.hover td{
	background-color: #f3ebf3;/*#f7f2f7;*/
}
.tab-grid.odd-even tr:nth-child(even) td{
	background: #f7f7f7;
}
.tab-grid.odd-even tr:nth-child(odd) td{
	background: #fff;
}

.tab-grid td.cell-error{
    background: #CC0000;
    color: #FFF;
}
.tab-grid td.grid-td-action{
	position: relative;
}
.tab-grid .tab-head #bt-more-actions{
	height: 16px;
	width: 10px;
	background: url('../images/icons/icon-more-white-v.png') no-repeat;
	position: absolute;
	right: 0;
	top: 3px;
	cursor: pointer;
}

.ctn-box .tab-grid th{
    background: #fff;
    color: #424242;
}
.ctn-box .tab-grid th.sortable:hover,
.ctn-box .tab-grid th.sort-desc,
.ctn-box .tab-grid th.sort-asc,
.ctn-box .tab-grid th.start-sort-desc{
    background-color: #fff;
}

.grid-align-c{
    text-align: center;
}
.grid-align-r{
    text-align: right;
}
.grid-hide{
    display: none;
}
.grid-row-action{
    margin-right: 10px;
}
.grid-link{
	color: #9d1e86;
}
.tab-grid th.sortable{
    cursor: pointer;
}
.tab-grid th.sort-asc,
.tab-grid th.sortable:hover,
.tab-grid th.sort-desc:hover{
    background: #424242 url('../images/grid/up.png') no-repeat center bottom;
}
.tab-grid th.sort-desc,
.tab-grid th.sort-asc:hover,
.tab-grid th.sortable.start-sort-desc:hover{
    background: #424242 url('../images/grid/dn.png') no-repeat center bottom;
}

tr.subrow .tab-grid th.sort-asc,
tr.subrow .tab-grid th.sortable:hover,
tr.subrow .tab-grid th.sort-desc:hover{
    background: #999 url('../images/grid/up.png') no-repeat center bottom;
}
tr.subrow .tab-grid th.sort-desc,
tr.subrow .tab-grid th.sort-asc:hover,
tr.subrow .tab-grid th.sortable.start-sort-desc:hover{
    background: #999 url('../images/grid/dn.png') no-repeat center bottom;
}
tr.subrow{
    display: none;
}
.grid-hover-row tr td.hover {
    background: #ddd;
}
.tab-grid td.td-subrow{
    padding: 10px 20px;
    background: #eee;
}
.tab-grid td.td-subrow th{
    background: #999; 
}
.tab-grid tr.delete td{
    background-color: #ff9999;
}
.tab-grid td.non-breaking-space {
	white-space: nowrap;
}
.grid-row-action{
    color: #9d1e86;
}
.tab-grid .grid-row-action.icon,
.bt-action,
.grid-icon-action{
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
}
/* HIDDEN ACTION */
.ctn-grid.has-hidden-action .tab-grid .grid-row-action.icon.hidden {
	display: none;
}
.ctn-grid.has-hidden-action .tab-grid .grid-row-action.icon.hidden.on {
	display: inline-block;
}

.tab-grid span.grid-row-action.icon{
    cursor: default;
}
.grid-icon {
    width: 16px;
    height: 16px;
}
.grid-check-icon{
    cursor: default;
}

.ctn-grid-medium, .ctn-grid.medium{
    width:80%;
    margin:0 auto 20px;
}
.ctn-grid-small, .ctn-grid.small{
    width:50%;
    margin:0 auto 20px;
}
.ctn-grid-xsmall, .ctn-grid.xsmall{
    width:25%;
    margin:0 auto 20px;
}
.grid-loading{
    background: #eee url('/images/loading-213e51e2f5368163f6307e24b7326cbb.gif') 50% 50% no-repeat;
    height: 100px;
    width: 100px;
    box-shadow: 0 0 100px #111;
    position: fixed;
    left: 48%;
    top: 48%;
    z-index: 10;
    display: none;
    border-radius: 50px;
}

.tab-grid .action-display-subrow{
    background: url('../images/icons/icon-plus.png') no-repeat;
}
.tab-grid .action-display-subrow.open{
    background: url('../images/icons/icon-minus.png') 50% 50% no-repeat;
}
.tab-grid .action-display-subrow.loading{
    background: url('../images/loading-form.gif') 50% 50% no-repeat;
}
.tab-grid a.action-delete,
.bt-action-delete{
    background: url('../images/icons/icon-delete.png') 50% 50% no-repeat;
}
.tab-grid a.action-edit,
.bt-action-edit{
    background: url('../images/icons/icon-edit.png') 50% 50% no-repeat;
}
.tab-grid a.action-source{
    background: url('../images/icons/icon-source.png') no-repeat;
}
.tab-grid a.action-unsource{
    background: url('../images/icons/icon-unsource.png') no-repeat;
}
.tab-grid a.action-synchro{
    background: url('../images/icons/icon-synchro.png') no-repeat;
}
.tab-grid a.action-synchro-ref{
    background: url('../images/icons/icon-reset2.png') no-repeat;
}
.tab-grid a.action-assoc{
    background: url('../images/icons/icon-credit-card-add.png') no-repeat;
}
.tab-grid a.action-create-merchant,
.tab-grid a.action-merchant{
    background: url('../images/icons/icon-store.png') no-repeat;
}
.tab-grid a.action-regex-sourcing{
    background: url('../images/icons/icon-regex-sourcing-sprite.png') 0 0 no-repeat;
}
.tab-grid a.action-regex-sourcing.done{
    background: url('../images/icons/icon-regex-sourcing-sprite.png') -36px 0 no-repeat;
}
.tab-grid a.action-regex-sourcing.todo{
    background: url('../images/icons/icon-regex-sourcing-sprite.png') -18px 0 no-repeat;
}
.tab-grid a.action-user{
    background: url('../images/icons/icon-user.png') no-repeat;
}
.tab-grid a.action-add-norm,
.tab-grid a.action-next,
.tab-grid a.action-handle,
.tab-grid a.action-handle-resolver-alert.icon,
.tab-grid a.action-handle-sourcing-alert.icon{
    background: url('../images/icons/icon-play.png') no-repeat;
}
.tab-grid .action-info,
.tab-grid .action-resolver-alert-details.icon{
    background: url('../images/icons/icon-info.png') no-repeat;
}
.tab-grid a.action-assoc-merchant-regie,
.tab-grid a.action-assoc-merchant{
    background: url('../images/icons/icon-store-link.png') no-repeat;
}
.tab-grid .action-geocode{
    background: url('../images/icons/icon-source-in.png') no-repeat;
}
.tab-grid a.action-bind{
    background: url('../images/icons/icon-link.png') no-repeat;
}
.tab-grid a.action-star{
    background: url('../images/icons/icon-star.png') no-repeat;
}
.tab-grid a.action-unstar{
    background: url('../images/icons/icon-unstar.png') no-repeat;
}
.action-ape-by-mcc, .action-mcc-by-ape{
    background: url('../images/icons/icon-percent.png') no-repeat;
}
.icon-pts {
    background: url('../images/icons/icon-credit-card.png') no-repeat;
}
a.action-manual-categorize {
    background: url('../images/icons/icon-action-tag.png') no-repeat;
}
.tab-grid a.action-tunnel{
    background: url('../images/icons/icon-tunnel.png') no-repeat;
}
.tab-grid a.action-presourcing{
    background: url('../images/icons/icon-fast-forward.png') no-repeat;
}
.tab-grid a.action-delete-anodes {
    background: url('../images/icons/icon-delete-server.png') 50% 50% no-repeat;
}
.tab-grid a.action-warning {
    background: url('../images/icons/icon-warning-black.png') 50% 50% no-repeat;
}
.tab-grid a.action-close {
    background: url('../images/icons/icon-close-full.png') 50% 50% no-repeat;
}
.tab-grid a.action-open {
    background: url('../images/icons/icon-open-full.png') 50% 50% no-repeat;
}
.tab-grid a.action-edit-threshold {
	background: url('../images/icons/icon-threshold.png') 50% 50% no-repeat;
}
.tab-grid a.action-edit-inactive-status {
	background: url('../images/icons/icon-play.png') 50% 50% no-repeat;
}
.tab-grid a.action-google {
	background: url('../images/icons/icon-google.png') 50% 50% no-repeat;
}

.check-merid-assoc-off{
    background: url('../images/grid/icon-merid-assoc-sprite.png') no-repeat; 
}
.check-merid-assoc-on{
    background: url('../images/grid/icon-merid-assoc-sprite.png') no-repeat -18px 0; 
}
#grid-merchants-regie .grid-td-check{
    
}
#grid-merchants-regie .grid-td-check .ctn-rm-handle-step{
    cursor: pointer;
	width: 24px;
}
.grid-td-type_icons {
	white-space: nowrap;
}

.rm-handle-item {
    width: 4px;
    height: 12px;
    background: #ccc;
    display: inline-block;
    margin-right: 1px;
}
.rm-handle-item.status0 {
    background: #CC0000;
}
.rm-handle-item.status1 {
    background: green;
}
.rm-handle-item.status2 {
    background: orange;
}

.rm-handle-item.step4 {
    margin-right:0;
}

.rm-handle-step0{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat; 
    cursor:pointer;
}
.rm-handle-step1{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -17px 0;
    cursor:pointer;
}
.rm-handle-step2{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -34px 0;
    cursor:pointer;
}
.rm-handle-step3{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -51px 0;
    cursor:pointer;
}
.rm-handle-step4{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -68px 0;
    cursor:pointer;
}
.rm-handle-step5{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -85px 0;
    cursor:pointer;
}
.rm-handle-step6{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -102px 0;
    cursor:pointer;
}
.rm-handle-step7{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -119px 0;
    cursor:pointer;
}
.rm-handle-step8{
    background: url('../images/icons/icon-regie-merchant-step-sprite.png') no-repeat -136px 0;
    cursor:pointer;
}
.tab-grid .action-publish{
    background: url('../images/icons/icon-publish.png') no-repeat;
}
.tab-grid .action-unpublish{
    background: url('../images/icons/icon-unpublish.png') no-repeat;
}
.tab-grid span.action-no-publish{
    background: url('../images/icons/icon-no-publish.png') no-repeat;
}

.tab-grid .grid-icon.yes{
    background: url('../images/icons/icon-true.png') no-repeat;
}
.tab-grid .grid-icon.no{
    background: url('../images/icons/icon-false.png') no-repeat;
}

.icon-offline {
	background: url('../images/grid/icon-offline-online.png') no-repeat;
}
.icon-online {
	background: url('../images/grid/icon-offline-online.png') no-repeat -16px 0;
}
.icon-offline-online {
	background: url('../images/grid/icon-offline-online.png') no-repeat;
	width: 32px;
}

.grid-align-c .grid-icon {
    margin:0 auto;    
}

.action-merchant-desassoc {
    width: 17px;
    height: 16px;
    background: url('../images/icons/icon-store-unlink.png') no-repeat;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}


.grid-vertical.tab-grid{
    padding-bottom: 20px;
}
.grid-vertical th{
    text-align: left;
    background: #fff;
    color: #333;
}
.grid-vertical th.th-head{
    text-align: center;
    background: #333;
    color: #fff;
}

.grid-td-action-first,
.grid-td-state,
.grid-td-sync,
.grid-td-sourced{
    width: 30px;
    text-align: center;
}
.grid-td-action.td-loading{
    background: #fff url('../images/loading-form.gif') no-repeat center center;
}
.grid-td-pts{
    position: relative;
}

/* GRID MERCHANTS */
.grid-merchants{
    margin-bottom: 20px;
}
.grid-merchants .grid-td-action-first{
    width: 52px;
}
.grid-merchants .grid-td-action{
	width: 150px;
}
.grid-merchants td.grid-td-name{
    position: relative;
}
a.link-merchant-name{
    font-weight: bold;
    color: #333;
}
tr.not-selectable a.link-merchant-name{
    color: #999;
}
a.link-merchant-name:hover{
    color: #9d1e86;
}
.grid-td-name .deleted{
    color: #cc0000;
}

.pts-done-row{
    font-weight: bold;
}
.pts-done-row,
.pts-history-row{
    margin:0;
    padding:0;
    padding-bottom: 5px;
}
#grid-merchants td.grid-td-state{
    cursor: pointer;
}

.tab-grid tr.not-selectable td{
    background: #f7f7f7;
    color: #999;
}
.tab-grid .grid-td-checkbox {
    width: 30px;
}
.tab-grid .pts-merid {
    cursor: pointer;
}

.tab-grid tr.not-valid td.grid-td-checkbox{
    background: #fff url('../images/icons/icon-forbidden.png') 50% 50% no-repeat;
}
#ctn-grid-regie-merchant-search tr.associated td.grid-td-checkbox{
    background: #fff url('../images/icons/icon-link-red.png') 50% 50% no-repeat;
}
#ctn-grid-regie-merchant-search tr.current-associated td.grid-td-checkbox{
    background: #fff url('../images/icons/icon-link-green.png') 50% 50% no-repeat;
}

.fusion-merid{
    background: url('../images/icons/icon-store-red.png') no-repeat;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.fusion-merid.current{
    background: url('../images/icons/icon-store-green.png') no-repeat;
}
.icon-merid-assoc {
    background: url('../images/icons/icon-store-blue.png') no-repeat;
}
.icon-merid-current {
    background: url('../images/icons/icon-store-green.png') no-repeat;
}
.icon-merid-sourced {
    background: url('../images/icons/icon-store-orange.png') no-repeat;
}
.icon-merid-published {
    background: url('../images/icons/icon-store-red.png') no-repeat;
}

#bt-del-pts-selected{
    margin-left: 20px;
    vertical-align: top;
}

.tab-grid .grid-row-num,
.tab-grid tr.not-selectable .grid-row-num,
.tab-grid tr.current-alert-pts .grid-row-num{
    text-align: right;
    background: #eee;
    color: #999;
	width: 25px;
}
.tab-grid .grid-row-num.hover,
.tab-grid tr.not-selectable .grid-row-num.hover,
.tab-grid tr.current-alert-pts .grid-row-num.hover,
.tab-grid tr.hover td.grid-row-num{
    background: #424242;
    color: #fff;
}
#grid-pts-by-siret .grid-row-num{
    width: 20px;
}
#regex-sourcing-loading{
    display: none;
    vertical-align: middle;
}

.link-merchant{
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 15px;
    background: url('../images/icons/icon-store-white.png') no-repeat;
    vertical-align: middle;
}
.remove-current-merchant{
    display: inline-block;
    width: 16px;
    height: 18px;
    margin-left: 15px;
    background: url('../images/icons/icon-close.png') no-repeat 50%;
    vertical-align: middle;
}
.remove-current-merchant.light{
    background: url('../images/icons/icon-close-white.png') no-repeat 50%;
}

/* MERCHANT INFO */
.tab-grid td.grid-td-name,
.ctn-grid.grid-pts td.grid-td-pts{
    position: relative;
    padding-right: 20px;
}
.ctn-grid .grid-icon-info,
.grid-icon-info-plus{
    height: 16px;
    width: 16px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    background: url('../images/icons/icon-info.png') no-repeat;
}
.grid-icon-info-plus{
    background: url('../images/icons/icon-info-purple.png') no-repeat;
}

/* GRID SUPERMERCHANT HISTORY */
.histo-add, .histo-remove{
    width: 6px;
    height: 10px;
    display: inline-block;
    margin: 0 5px 0 3px;
}
.histo-add{
    background: url('../images/icons/icon-histo-add.png') no-repeat;
}
.histo-remove{
    background: url('../images/icons/icon-histo-remove.png') no-repeat;
}

.geocode-manual{
    color: #009900;
}
.geocode-auto{
    color: #ff6600;    
}
.geocode-error{
    color: #cc0000;   
}


.grid-merchants-group .subrow.grid-pts .grid-pts-history,
#ctn-merchant-fusion #grid-merchants .grid-pts-history{
    display: none;
}


/* MERCHANT CHECK */
#ctn-grid-merchants-check .grid-td-regex .yes {
    cursor: pointer;
}

#toggle-bound-pts {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icons/icon-plus.png') no-repeat;
    margin-left: 10px;
    vertical-align: sub;
    cursor: pointer;
}
#toggle-bound-pts.open {
    background: url('../images/icons/icon-minus.png') no-repeat;
}

/* LARGEUR COLONNE */
#grid-merchants-regie .grid-td-action{
    width: 65px;
}
#grid-supermerchants .grid-td-action{
    width: 85px;
}
/* UNIVERSE */
#ctn-grid-universe .grid-td-action{
    width: 120px;
}

/* CATEGORY MERCHANTS */
#grid-category-merchants .grid-td-action{
    text-align: center;
	width: 60px;
}

#grid-presourcing-conflict .grid-td-action{
	width: 60px;
}
#grid-presourcing-conflict .grid-td-date{
	width: 140px;
}

/* STACKED HISTORY */
.tab-grid.stacked-history .grid-th-action{
	width: 30px;
}
.tab-grid.stacked-history .grid-th-date{
	width: 150px;
}
.tab-grid.stacked-history .grid-row-num{
	width: 50px;
}
.ctn-supermerchant-history .grid-td-extid{
	width: 100px;
}

.tab-grid .ui-sortable-helper{
    display: table;
}
.tab-grid tr.ui-sortable-handle{
	cursor: move;
}

/* SEGMENTS */
#grid-segments .grid-td-action{
	width: 60px;
}
#grid-segments .grid-td-order{
	width: 60px;
}

#grid-inactive-merchants .grid-td-action{
	width: 85px;
}
#grid-merchants-closed .grid-td-action{
	width: 60px;
}
.grid-td-rm_ids {
	width: 80px;
}

#grid-sourcing-alerts-history .grid-td-merchant_name {
	position: relative;
}

/* PRIORITY CELL */
.tab-grid td.alert-priority1 {
	background: red;
}
.tab-grid td.alert-priority2 {
	background: orange;
}
.tab-grid td.alert-priority3 {
	background: yellow;
}

