/*
 * Stylesheet manifest. Files are listed explicitly in the order require_tree used to give them:
 * with no Sass gem installed, Sprockets 3's require_tree also asks its built-in Sass
 * processor for a cache key, which tries to load the gem and fails.
 *







 */

/* Legacy page rules still in use. Plain CSS since Sass was removed. */


.add-element-button {
  margin-bottom: 20px;
}

form abbr[title], abbr[data-original-title] {
  cursor: help;
  border-bottom: 0;
  color: #EE2B4F;
}

/* Rails wraps missing translations in this span. */
.translation_missing {
  color: #000;
  background-color: yellow;
}

.show-more-uploads {
  margin-bottom: 30px;
}

#archive-transactions input {
  margin-bottom: 12px;
  margin-right: 12px;
}

#admin-template-list .code-icon {
  margin-left: 10px;
}
div.DTE{position:relative}div.DTE div.DTE_Processing_Indicator{position:absolute;top:10px;right:13px;height:32px;width:32px;background:url(/../images/ajax-loader.gif) no-repeat top left;display:none;z-index:20}div.DTE div.DTE_Header{position:absolute;top:0;left:0;height:50px;width:100%;background-color:#f3f3f3;border-bottom:1px solid #ddd;padding:16px 10px 2px 16px;font-size:1.3em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.DTE div.DTE_Footer{position:absolute;bottom:0;left:0;height:50px;width:100%;background-color:#f3f3f3;border-top:1px solid #ddd;padding:10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.DTE div.DTE_Form_Info{margin-bottom:0.5em;display:none}div.DTE div.DTE_Form_Content{position:relative;padding:10px}div.DTE div.DTE_Form_Error{float:left;padding:5px;display:none;color:#b11f1f}div.DTE div.DTE_Form_Buttons button{position:relative;text-align:center;display:block;margin-top:0;padding:5px 15px;cursor:pointer;float:right;font-size:14px;text-shadow:0 1px 0 white;border:1px solid #999;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;-webkit-box-shadow:1px 1px 3px #cccccc;-moz-box-shadow:1px 1px 3px #cccccc;box-shadow:1px 1px 3px #cccccc;background-color:#f9f9f9 100%;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 65%, #f9f9f9 100%);background-image:-moz-linear-gradient(top, #fff 0%, #eee 65%, #f9f9f9 100%);background-image:-ms-linear-gradient(top, #fff 0%, #eee 65%, #f9f9f9 100%);background-image:-o-linear-gradient(top, #fff 0%, #eee 65%, #f9f9f9 100%);background-image:linear-gradient(top, #fff 0%, #eee 65%, #f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='white', EndColorStr='#f9f9f9')}div.DTE div.DTE_Form_Buttons button:hover{border:1px solid #666;-webkit-box-shadow:1px 1px 3px #999999;-moz-box-shadow:1px 1px 3px #999999;box-shadow:1px 1px 3px #999999;background-color:#f4f4f4 100%;background-image:-webkit-linear-gradient(top, #f3f3f3 0%, #dbdbdb 65%, #f4f4f4 100%);background-image:-moz-linear-gradient(top, #f3f3f3 0%, #dbdbdb 65%, #f4f4f4 100%);background-image:-ms-linear-gradient(top, #f3f3f3 0%, #dbdbdb 65%, #f4f4f4 100%);background-image:-o-linear-gradient(top, #f3f3f3 0%, #dbdbdb 65%, #f4f4f4 100%);background-image:linear-gradient(top, #f3f3f3 0%, #dbdbdb 65%, #f4f4f4 100%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#f3f3f3', EndColorStr='#f4f4f4')}div.DTE div.DTE_Form_Buttons button:active{-webkit-box-shadow:inset 1px 1px 3px #999999;-moz-box-shadow:inset 1px 1px 3px #999999;box-shadow:inset 1px 1px 3px #999999}div.DTE div.DTE_Form_Buttons button:focus{border:1px solid #426c9e;text-shadow:0 1px 0 #c4def1;background-color:#a3d0ef 100%;background-image:-webkit-linear-gradient(top, #a3d0ef 0%, #79ace9 65%, #a3d0ef 100%);background-image:-moz-linear-gradient(top, #a3d0ef 0%, #79ace9 65%, #a3d0ef 100%);background-image:-ms-linear-gradient(top, #a3d0ef 0%, #79ace9 65%, #a3d0ef 100%);background-image:-o-linear-gradient(top, #a3d0ef 0%, #79ace9 65%, #a3d0ef 100%);background-image:linear-gradient(top, #a3d0ef 0%, #79ace9 65%, #a3d0ef 100%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#a3d0ef', EndColorStr='#a3d0ef');outline:none}div.DTE div.DTE_Form_Buttons button:focus:after{position:absolute;top:0;left:0;right:0;bottom:0;background:white;display:block;content:" ";-webkit-animation-duration:1s;-webkit-animation-name:buttonPulse;-webkit-animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-webkit-animation-direction:alternate;-moz-animation-duration:1s;-moz-animation-name:buttonPulse;-moz-animation-fill-mode:forwards;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;-moz-animation-direction:alternate;-o-animation-duration:1s;-o-animation-name:buttonPulse;-o-animation-fill-mode:forwards;-o-animation-iteration-count:infinite;-o-animation-timing-function:linear;-o-animation-direction:alternate;animation-duration:1s;animation-name:buttonPulse;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-direction:alternate}div.DTE.DTE_Action_Remove div.DTE_Body_Content{text-align:center;padding:20px 0}@-webkit-keyframes buttonPulse{0%{opacity:0}100%{opacity:0.2}}@-moz-keyframes buttonPulse{0%{opacity:0}100%{opacity:0.2}}@-o-keyframes buttonPulse{0%{opacity:0}100%{opacity:0.2}}@keyframes buttonPulse{0%{opacity:0}100%{opacity:0.2}}div.DTTT_container{float:left}div.DTE_Field input,div.DTE_Field textarea{box-sizing:border-box;background-color:white;-webkit-transition:background-color ease-in-out .15s;transition:background-color ease-in-out .15s}div.DTE_Field input:focus,div.DTE_Field textarea:focus{background-color:#ffffee}div.DTE_Field input[type="color"],div.DTE_Field input[type="date"],div.DTE_Field input[type="datetime"],div.DTE_Field input[type="datetime-local"],div.DTE_Field input[type="email"],div.DTE_Field input[type="month"],div.DTE_Field input[type="number"],div.DTE_Field input[type="password"],div.DTE_Field input[type="search"],div.DTE_Field input[type="tel"],div.DTE_Field input[type="text"],div.DTE_Field input[type="time"],div.DTE_Field input[type="url"],div.DTE_Field input[type="week"]{padding:6px 4px;width:100%}div.DTE_Field div.DTE_Field_Info,div.DTE_Field div.DTE_Field_Message{font-size:11px;line-height:1em}div.DTE_Field div.DTE_Field_Error{font-size:11px;line-height:1em;display:none;color:red;margin-top:5px}div.DTE_Field_Type_textarea textarea{padding:3px;width:100%;height:80px}div.DTE_Field.DTE_Field_Type_date img{vertical-align:middle;cursor:pointer;*cursor:hand}div.DTE_Field.DTE_Field_Type_date input.jqueryui{width:87%;margin-right:1em}div.DTE_Field_Type_checkbox div.DTE_Field_Input>div>div,div.DTE_Field_Type_radio div.DTE_Field_Input>div>div{margin-bottom:0.25em}div.DTE_Field_Type_checkbox div.DTE_Field_Input>div>div:last-child,div.DTE_Field_Type_radio div.DTE_Field_Input>div>div:last-child{margin-bottom:0}div.DTE_Field_Type_checkbox div.DTE_Field_Input>div>div label,div.DTE_Field_Type_radio div.DTE_Field_Input>div>div label{margin-left:0.75em;vertical-align:middle}div.DTE_Body{padding:50px 0}div.DTE_Body div.DTE_Body_Content{position:relative;overflow:auto}div.DTE_Body div.DTE_Body_Content div.DTE_Form_Info{padding:1em 1em 0 1em;margin:0}div.DTE_Body div.DTE_Body_Content div.DTE_Field{position:relative;zoom:1;clear:both;padding:5px 20%;border:1px solid transparent}div.DTE_Body div.DTE_Body_Content div.DTE_Field:after{display:block;content:".";height:0;line-height:0;clear:both;visibility:hidden}div.DTE_Body div.DTE_Body_Content div.DTE_Field:hover{background-color:#f9f9f9;border:1px solid #f3f3f3}div.DTE_Body div.DTE_Body_Content div.DTE_Field>label{float:left;width:40%;padding-top:6px}div.DTE_Body div.DTE_Body_Content div.DTE_Field>div.DTE_Field_Input{float:right;width:60%}html[dir="rtl"] div.DTE_Body div.DTE_Body_Content div.DTE_Field>label{float:right}html[dir="rtl"] div.DTE_Body div.DTE_Body_Content div.DTE_Field>div.DTE_Field_Input{float:left}html[dir="rtl"] div.DTE div.DTE_Form_Buttons button{float:left}@media only screen and (max-width: 768px){div.DTE_Body div.DTE_Body_Content div.DTE_Field{padding:5px 10%}}@media only screen and (max-width: 640px){div.DTE_Body div.DTE_Body_Content div.DTE_Field{padding:5px 0}}@media only screen and (max-width: 580px){div.DTE_Body div.DTE_Body_Content div.DTE_Field{position:relative;zoom:1;clear:both;padding:5px}div.DTE_Body div.DTE_Body_Content div.DTE_Field>label{float:none;width:auto;padding-top:0}div.DTE_Body div.DTE_Body_Content div.DTE_Field>div.DTE_Field_Input{float:none;width:auto}}div.DTE_Bubble{position:absolute;z-index:11;margin-top:-6px;opacity:0}div.DTE_Bubble div.DTE_Bubble_Liner{position:absolute;bottom:0;border:1px solid black;width:300px;margin-left:-150px;background-color:white;box-shadow:2px 2px 7px #555;border-radius:5px;border:2px solid #444;padding:1em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table{display:table;width:100%}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table>form{display:table-cell}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table>form div.DTE_Form_Content{padding:0}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table>form div.DTE_Form_Content div.DTE_Field{position:relative;zoom:1;margin-bottom:0.5em}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table>form div.DTE_Form_Content div.DTE_Field:last-child{margin-bottom:0}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table div.DTE_Form_Buttons{display:table-cell;vertical-align:bottom;padding:0 0 0 0.75em;width:1%}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Header{border-top-left-radius:5px;border-top-right-radius:5px}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Header+div.DTE_Form_Info,div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Header+div.DTE_Bubble_Table{padding-top:42px}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Form_Error{float:none;display:none;padding:0;margin-bottom:0.5em}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close{position:absolute;top:-11px;right:-11px;width:22px;height:22px;border:2px solid white;background-color:black;text-align:center;border-radius:15px;cursor:pointer;*cursor:hand;z-index:12;box-shadow:2px 2px 6px #111}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close:after{content:'\00d7';color:white;font-weight:bold;font-size:18px;line-height:18px}div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close:hover{background-color:#092079;box-shadow:2px 2px 9px #111}div.DTE_Bubble div.DTE_Bubble_Triangle{position:absolute;height:10px;width:10px;top:-6px;background-color:white;border:2px solid #444;border-top:none;border-right:none;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}div.DTE_Bubble_Background{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);background:-ms-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-moz-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-o-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, rgba(0,0,0,0.3)), color-stop(1, rgba(0,0,0,0.7)));background:-webkit-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:radial-gradient(ellipse farthest-corner at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);z-index:10}div.DTE_Bubble_Background>div{position:absolute;top:0;right:0;left:0;bottom:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"}div.DTE_Bubble_Background>div:not([dummy]){filter:progid:DXImageTransform.Microsoft.gradient(enabled='false')}div.DTE_Inline{display:table;width:100%}div.DTE_Inline div.DTE_Inline_Field,div.DTE_Inline div.DTE_Inline_Buttons{display:table-cell;vertical-align:middle}div.DTE_Inline div.DTE_Inline_Field div.DTE_Field,div.DTE_Inline div.DTE_Inline_Buttons div.DTE_Field{padding:0}div.DTE_Inline div.DTE_Inline_Field div.DTE_Field>label,div.DTE_Inline div.DTE_Inline_Buttons div.DTE_Field>label{display:none}div.DTE_Inline div.DTE_Inline_Field div.DTE_Form_Buttons button,div.DTE_Inline div.DTE_Inline_Buttons div.DTE_Form_Buttons button{margin:-6px 0 -6px 4px;padding:5px}div.DTE_Inline div.DTE_Field input[type="color"],div.DTE_Inline div.DTE_Field input[type="date"],div.DTE_Inline div.DTE_Field input[type="datetime"],div.DTE_Inline div.DTE_Field input[type="datetime-local"],div.DTE_Inline div.DTE_Field input[type="email"],div.DTE_Inline div.DTE_Field input[type="month"],div.DTE_Inline div.DTE_Field input[type="number"],div.DTE_Inline div.DTE_Field input[type="password"],div.DTE_Inline div.DTE_Field input[type="search"],div.DTE_Inline div.DTE_Field input[type="tel"],div.DTE_Inline div.DTE_Field input[type="text"],div.DTE_Inline div.DTE_Field input[type="time"],div.DTE_Inline div.DTE_Field input[type="url"],div.DTE_Inline div.DTE_Field input[type="week"]{margin:-6px 0}div.DTED_Lightbox_Wrapper{position:fixed;top:0;left:50%;margin-left:-390px;width:780px;height:100%;z-index:11}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container{*position:absolute;*top:50%;#position:absolute;#top:50%;display:table;height:100%;width:100%}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper{*position:relative;#position:relative;display:table-cell;vertical-align:middle;width:100%}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content{*top:-50%;#top:-50%;position:relative;border:7px solid rgba(220,220,220,0.5);box-shadow:2px 2px 10px #555;border-radius:10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE{background:white;border-radius:6px;box-shadow:0 0 5px #555;border:2px solid #444;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE div.DTE_Header{top:2px;left:2px;right:2px;width:auto;border-top-left-radius:5px;border-top-right-radius:5px}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE div.DTE_Footer{bottom:2px;left:2px;right:2px;width:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTED_Lightbox_Close{position:absolute;top:-11px;right:-11px;width:22px;height:22px;border:2px solid white;background-color:black;text-align:center;border-radius:15px;cursor:pointer;*cursor:hand;z-index:12;box-shadow:2px 2px 6px #111}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTED_Lightbox_Close:after{content:'\00d7';color:white;font-weight:bold;font-size:18px;line-height:18px}div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTED_Lightbox_Close:hover{background-color:#092079;box-shadow:2px 2px 9px #111}div.DTED_Lightbox_Background{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);background:-ms-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-moz-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-o-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:-webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, rgba(0,0,0,0.3)), color-stop(1, rgba(0,0,0,0.7)));background:-webkit-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);background:radial-gradient(ellipse farthest-corner at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);z-index:10}div.DTED_Lightbox_Background>div{position:absolute;top:0;right:0;left:0;bottom:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"}div.DTED_Lightbox_Background>div:not([dummy]){filter:progid:DXImageTransform.Microsoft.gradient(enabled='false')}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Background{height:0}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Shown{display:none}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper{position:absolute;top:0px;left:0px;right:0px;bottom:0px;width:auto;height:auto;margin-left:0;-webkit-overflow-scrolling:touch}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container{display:block}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper{display:block}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content{border:4px solid rgba(220,220,220,0.5);border-radius:0}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE{border-radius:0;box-shadow:0 0 5px #555;border:2px solid #444}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE div.DTE_Header{border-top-left-radius:0;border-top-right-radius:0}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTE div.DTE_Footer{border-bottom-left-radius:0;border-bottom-right-radius:0}body.DTED_Lightbox_Mobile div.DTED_Lightbox_Wrapper div.DTED_Lightbox_Container div.DTED_Lightbox_Content_Wrapper div.DTED_Lightbox_Content div.DTED_Lightbox_Close{top:11px;right:15px}@media only screen and (max-width: 780px){div.DTED_Lightbox_Wrapper{position:fixed;top:0;left:0;width:100%;margin-left:0}}div.DTED_Envelope_Wrapper{position:absolute;top:0;bottom:0;left:50%;height:100%;z-index:11;display:none;overflow:hidden}div.DTED_Envelope_Wrapper div.DTED_Envelope_ShadowLeft{position:absolute;top:0;left:0;width:50%;height:9px;background:url(/../images/shadow_left.png) no-repeat top left;z-index:10}div.DTED_Envelope_Wrapper div.DTED_Envelope_ShadowRight{position:absolute;top:0;right:0;width:50%;height:9px;background:url(/../images/shadow_right.png) no-repeat top right;z-index:10}div.DTED_Envelope_Wrapper div.DTED_Envelope_Container{position:absolute;top:0;left:5%;width:90%;border-left:1px solid #777;border-right:1px solid #777;border-bottom:1px solid #777;box-shadow:3px 3px 10px #555;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background-color:white}div.DTED_Envelope_Wrapper div.DTED_Envelope_Container div.DTE_Processing_Indicator{right:36px}div.DTED_Envelope_Wrapper div.DTED_Envelope_Container div.DTE_Footer{border-bottom-left-radius:5px;border-bottom-right-radius:5px}div.DTED_Envelope_Wrapper div.DTED_Envelope_Container div.DTED_Envelope_Close{position:absolute;top:16px;right:10px;width:18px;height:18px;cursor:pointer;*cursor:hand;z-index:12;text-align:center;font-size:12px;background:#F8F8F8;background:-webkit-gradient(linear, center bottom, center top, from(#ccc), to(#fff));background:-moz-linear-gradient(top, #fff, #ccc);background:linear-gradient(top, #fff, #ccc);text-shadow:0 1px 0 white;border:1px solid #999;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;box-shadow:0px 0px 1px #999;-moz-box-shadow:0px 0px 1px #999;-webkit-box-shadow:0px 0px 1px #999}div.DTED_Envelope_Background{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,0.4);background:-ms-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);background:-moz-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);background:-o-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);background:-webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, rgba(0,0,0,0.1)), color-stop(1, rgba(0,0,0,0.4)));background:-webkit-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);background:radial-gradient(ellipse farthest-corner at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%)}table.dataTable tbody tr.highlight{background-color:#fffbcc !important}table.dataTable tbody tr.highlight,table.dataTable tbody tr.noHighlight,table.dataTable tbody tr.highlight td,table.dataTable tbody tr.noHighlight td{-webkit-transition:background-color 500ms linear;-moz-transition:background-color 500ms linear;-ms-transition:background-color 500ms linear;-o-transition:background-color 500ms linear;transition:background-color 500ms linear}table.dataTable.stripe tbody tr.odd.highlight,table.dataTable.display tbody tr.odd.highlight{background-color:#f9f5c7}table.dataTable.hover tbody tr:hover.highlight,table.dataTable.hover tbody tr.odd:hover.highlight,table.dataTable.hover tbody tr.even:hover.highlight,table.dataTable.display tbody tr:hover.highlight,table.dataTable.display tbody tr.odd:hover.highlight,table.dataTable.display tbody tr.even:hover.highlight{background-color:#f5f1c4}table.dataTable.order-column tbody tr.highlight>.sorting_1,table.dataTable.order-column tbody tr.highlight>.sorting_2,table.dataTable.order-column tbody tr.highlight>.sorting_3,table.dataTable.display tbody tr.highlight>.sorting_1,table.dataTable.display tbody tr.highlight>.sorting_2,table.dataTable.display tbody tr.highlight>.sorting_3{background-color:#f9f5c7}table.dataTable.display tbody tr.odd.highlight>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.highlight>.sorting_1{background-color:#f1edc0}table.dataTable.display tbody tr.odd.highlight>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.highlight>.sorting_2{background-color:#f3efc2}table.dataTable.display tbody tr.odd.highlight>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.highlight>.sorting_3{background-color:#f5f1c4}table.dataTable.display tbody tr.even.highlight>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.highlight>.sorting_1{background-color:#f9f5c7}table.dataTable.display tbody tr.even.highlight>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.highlight>.sorting_2{background-color:#fbf7c9}table.dataTable.display tbody tr.even.highlight>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.highlight>.sorting_3{background-color:#fdf9cb}table.dataTable.display tbody tr:hover.highlight>.sorting_1,table.dataTable.display tbody tr.odd:hover.highlight>.sorting_1,table.dataTable.display tbody tr.even:hover.highlight>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.highlight>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover.highlight>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover.highlight>.sorting_1{background-color:#eae6bb}table.dataTable.display tbody tr:hover.highlight>.sorting_2,table.dataTable.display tbody tr.odd:hover.highlight>.sorting_2,table.dataTable.display tbody tr.even:hover.highlight>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.highlight>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover.highlight>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover.highlight>.sorting_2{background-color:#ebe8bc}table.dataTable.display tbody tr:hover.highlight>.sorting_3,table.dataTable.display tbody tr.odd:hover.highlight>.sorting_3,table.dataTable.display tbody tr.even:hover.highlight>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.highlight>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover.highlight>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover.highlight>.sorting_3{background-color:#eeebbf}
/*!
 * Datepicker for Bootstrap
 *
 * Copyright 2012 Stefan Petre
 * Improvements by Andrew Rowls
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 */

.datepicker {
  padding: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  direction: ltr;
  /*.dow {
		border-top: 1px solid #ddd !important;
	}*/

}
.datepicker-inline {
  width: 220px;
}
.datepicker.datepicker-rtl {
  direction: rtl;
}
.datepicker.datepicker-rtl table tr td span {
  float: right;
}
.datepicker-dropdown {
  top: 0;
  left: 0;
}
.datepicker-dropdown:before {
  content: '';
  display: inline-block;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
  border-top: 0;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  position: absolute;
}
.datepicker-dropdown:after {
  content: '';
  display: inline-block;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
  border-top: 0;
  position: absolute;
}
.datepicker-dropdown.datepicker-orient-left:before {
  left: 6px;
}
.datepicker-dropdown.datepicker-orient-left:after {
  left: 7px;
}
.datepicker-dropdown.datepicker-orient-right:before {
  right: 6px;
}
.datepicker-dropdown.datepicker-orient-right:after {
  right: 7px;
}
.datepicker-dropdown.datepicker-orient-top:before {
  top: -7px;
}
.datepicker-dropdown.datepicker-orient-top:after {
  top: -6px;
}
.datepicker-dropdown.datepicker-orient-bottom:before {
  bottom: -7px;
  border-bottom: 0;
  border-top: 7px solid #999;
}
.datepicker-dropdown.datepicker-orient-bottom:after {
  bottom: -6px;
  border-bottom: 0;
  border-top: 6px solid #ffffff;
}
.datepicker > div {
  display: none;
}
.datepicker.days div.datepicker-days {
  display: block;
}
.datepicker.months div.datepicker-months {
  display: block;
}
.datepicker.years div.datepicker-years {
  display: block;
}
.datepicker table {
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.datepicker td,
.datepicker th {
  text-align: center;
  width: 20px;
  height: 20px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  border: none;
}
.table-striped .datepicker table tr td,
.table-striped .datepicker table tr th {
  background-color: transparent;
}
.datepicker table tr td.day:hover {
  background: #eeeeee;
  cursor: pointer;
}
.datepicker table tr td.old,
.datepicker table tr td.new {
  color: #999999;
}
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
  background: none;
  color: #999999;
  cursor: default;
}
.datepicker table tr td.today,
.datepicker table tr td.today:hover,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today.disabled:hover {
  background-color: #fde19a;
  background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  background-image: linear-gradient(top, #fdd49a, #fdf59a);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  border-color: #fdf59a #fdf59a #fbed50;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  color: #000;
}
.datepicker table tr td.today:hover,
.datepicker table tr td.today:hover:hover,
.datepicker table tr td.today.disabled:hover,
.datepicker table tr td.today.disabled:hover:hover,
.datepicker table tr td.today:active,
.datepicker table tr td.today:hover:active,
.datepicker table tr td.today.disabled:active,
.datepicker table tr td.today.disabled:hover:active,
.datepicker table tr td.today.active,
.datepicker table tr td.today:hover.active,
.datepicker table tr td.today.disabled.active,
.datepicker table tr td.today.disabled:hover.active,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today:hover.disabled,
.datepicker table tr td.today.disabled.disabled,
.datepicker table tr td.today.disabled:hover.disabled,
.datepicker table tr td.today[disabled],
.datepicker table tr td.today:hover[disabled],
.datepicker table tr td.today.disabled[disabled],
.datepicker table tr td.today.disabled:hover[disabled] {
  background-color: #fdf59a;
}
.datepicker table tr td.today:active,
.datepicker table tr td.today:hover:active,
.datepicker table tr td.today.disabled:active,
.datepicker table tr td.today.disabled:hover:active,
.datepicker table tr td.today.active,
.datepicker table tr td.today:hover.active,
.datepicker table tr td.today.disabled.active,
.datepicker table tr td.today.disabled:hover.active {
  background-color: #fbf069 \9;
}
.datepicker table tr td.today:hover:hover {
  color: #000;
}
.datepicker table tr td.today.active:hover {
  color: #fff;
}
.datepicker table tr td.range,
.datepicker table tr td.range:hover,
.datepicker table tr td.range.disabled,
.datepicker table tr td.range.disabled:hover {
  background: #eeeeee;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}
.datepicker table tr td.range.today,
.datepicker table tr td.range.today:hover,
.datepicker table tr td.range.today.disabled,
.datepicker table tr td.range.today.disabled:hover {
  background-color: #f3d17a;
  background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  background-image: linear-gradient(top, #f3c17a, #f3e97a);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  border-color: #f3e97a #f3e97a #edde34;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}
.datepicker table tr td.range.today:hover,
.datepicker table tr td.range.today:hover:hover,
.datepicker table tr td.range.today.disabled:hover,
.datepicker table tr td.range.today.disabled:hover:hover,
.datepicker table tr td.range.today:active,
.datepicker table tr td.range.today:hover:active,
.datepicker table tr td.range.today.disabled:active,
.datepicker table tr td.range.today.disabled:hover:active,
.datepicker table tr td.range.today.active,
.datepicker table tr td.range.today:hover.active,
.datepicker table tr td.range.today.disabled.active,
.datepicker table tr td.range.today.disabled:hover.active,
.datepicker table tr td.range.today.disabled,
.datepicker table tr td.range.today:hover.disabled,
.datepicker table tr td.range.today.disabled.disabled,
.datepicker table tr td.range.today.disabled:hover.disabled,
.datepicker table tr td.range.today[disabled],
.datepicker table tr td.range.today:hover[disabled],
.datepicker table tr td.range.today.disabled[disabled],
.datepicker table tr td.range.today.disabled:hover[disabled] {
  background-color: #f3e97a;
}
.datepicker table tr td.range.today:active,
.datepicker table tr td.range.today:hover:active,
.datepicker table tr td.range.today.disabled:active,
.datepicker table tr td.range.today.disabled:hover:active,
.datepicker table tr td.range.today.active,
.datepicker table tr td.range.today:hover.active,
.datepicker table tr td.range.today.disabled.active,
.datepicker table tr td.range.today.disabled:hover.active {
  background-color: #efe24b \9;
}
.datepicker table tr td.selected,
.datepicker table tr td.selected:hover,
.datepicker table tr td.selected.disabled,
.datepicker table tr td.selected.disabled:hover {
  background-color: #9e9e9e;
  background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  background-image: linear-gradient(top, #b3b3b3, #808080);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  border-color: #808080 #808080 #595959;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker table tr td.selected:hover,
.datepicker table tr td.selected:hover:hover,
.datepicker table tr td.selected.disabled:hover,
.datepicker table tr td.selected.disabled:hover:hover,
.datepicker table tr td.selected:active,
.datepicker table tr td.selected:hover:active,
.datepicker table tr td.selected.disabled:active,
.datepicker table tr td.selected.disabled:hover:active,
.datepicker table tr td.selected.active,
.datepicker table tr td.selected:hover.active,
.datepicker table tr td.selected.disabled.active,
.datepicker table tr td.selected.disabled:hover.active,
.datepicker table tr td.selected.disabled,
.datepicker table tr td.selected:hover.disabled,
.datepicker table tr td.selected.disabled.disabled,
.datepicker table tr td.selected.disabled:hover.disabled,
.datepicker table tr td.selected[disabled],
.datepicker table tr td.selected:hover[disabled],
.datepicker table tr td.selected.disabled[disabled],
.datepicker table tr td.selected.disabled:hover[disabled] {
  background-color: #808080;
}
.datepicker table tr td.selected:active,
.datepicker table tr td.selected:hover:active,
.datepicker table tr td.selected.disabled:active,
.datepicker table tr td.selected.disabled:hover:active,
.datepicker table tr td.selected.active,
.datepicker table tr td.selected:hover.active,
.datepicker table tr td.selected.disabled.active,
.datepicker table tr td.selected.disabled:hover.active {
  background-color: #666666 \9;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
  background-color: #006dcc;
  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  background-image: linear-gradient(top, #0088cc, #0044cc);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  border-color: #0044cc #0044cc #002a80;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker table tr td.active:hover,
.datepicker table tr td.active:hover:hover,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active.disabled:hover:hover,
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled:hover.active,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active:hover.disabled,
.datepicker table tr td.active.disabled.disabled,
.datepicker table tr td.active.disabled:hover.disabled,
.datepicker table tr td.active[disabled],
.datepicker table tr td.active:hover[disabled],
.datepicker table tr td.active.disabled[disabled],
.datepicker table tr td.active.disabled:hover[disabled] {
  background-color: #0044cc;
}
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled:hover.active {
  background-color: #003399 \9;
}
.datepicker table tr td span {
  display: block;
  width: 23%;
  height: 54px;
  line-height: 54px;
  float: left;
  margin: 1%;
  cursor: pointer;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.datepicker table tr td span:hover {
  background: #eeeeee;
}
.datepicker table tr td span.disabled,
.datepicker table tr td span.disabled:hover {
  background: none;
  color: #999999;
  cursor: default;
}
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover {
  background-color: #006dcc;
  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  background-image: linear-gradient(top, #0088cc, #0044cc);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  border-color: #0044cc #0044cc #002a80;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled:hover:hover,
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active,
.datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled:hover.active,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active:hover.disabled,
.datepicker table tr td span.active.disabled.disabled,
.datepicker table tr td span.active.disabled:hover.disabled,
.datepicker table tr td span.active[disabled],
.datepicker table tr td span.active:hover[disabled],
.datepicker table tr td span.active.disabled[disabled],
.datepicker table tr td span.active.disabled:hover[disabled] {
  background-color: #0044cc;
}
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active,
.datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled:hover.active {
  background-color: #003399 \9;
}
.datepicker table tr td span.old,
.datepicker table tr td span.new {
  color: #999999;
}
.datepicker th.datepicker-switch {
  width: 145px;
}
.datepicker thead tr:first-child th,
.datepicker tfoot tr th {
  cursor: pointer;
}
.datepicker thead tr:first-child th:hover,
.datepicker tfoot tr th:hover {
  background: #eeeeee;
}
.datepicker .cw {
  font-size: 10px;
  width: 12px;
  padding: 0 2px 0 5px;
  vertical-align: middle;
}
.datepicker thead tr:first-child th.cw {
  cursor: default;
  background-color: transparent;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
  display: block;
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.input-daterange input {
  text-align: center;
}
.input-daterange input:first-child {
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}
.input-daterange input:last-child {
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}
.input-daterange .add-on {
  display: inline-block;
  width: auto;
  min-width: 16px;
  height: 18px;
  padding: 4px 5px;
  font-weight: normal;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 0 #ffffff;
  vertical-align: middle;
  background-color: #eeeeee;
  border: 1px solid #ccc;
  margin-left: -5px;
  margin-right: -5px;
}
/*
 * Document base that replaces Bootstrap 2's reset, scaffolding and default element styles.
 * Every rule sits in :where(), so it has zero specificity and any component rule wins.
 */

/* Reset */

:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No global border-box: DataTables 1.10, its Editor and jQuery UI size columns and popups for content-box,
   as Bootstrap 2 left them. DS components set border-box themselves. Form fields get it below. */
:where(body) { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
:where(article, aside, details, figcaption, figure, footer, header, main, nav, section) { display: block; }
:where(img) { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
:where(svg:not(:root)) { overflow: hidden; }
:where(table) { max-width: 100%; border-collapse: collapse; border-spacing: 0; background-color: transparent; }
:where([hidden]) { display: none !important; }

/* Text */
:where(a) { color: var(--primary); text-decoration: none; }
:where(a:hover, a:focus) { text-decoration: underline; }
:where(p) { margin: 0 0 10px; }
:where(small) { font-size: 85%; }
:where(strong, b) { font-weight: 600; }
:where(h1, h2, h3, h4, h5, h6) { margin: 10px 0; font-family: inherit; font-weight: 600; line-height: 1.25; color: inherit; }
:where(h1) { font-size: 24px; }
:where(h2) { font-size: 20px; }
:where(h3) { font-size: 17px; }
:where(h4) { font-size: 15px; }
:where(h5) { font-size: 14px; }
:where(h6) { font-size: 12px; }
:where(ul, ol) { margin: 0 0 10px 25px; padding: 0; }
:where(li) { line-height: 20px; }
:where(hr) { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
:where(code, pre) { font-family: var(--font-mono); font-size: 12px; }
:where(pre) { margin: 0 0 10px; padding: 8px; white-space: pre-wrap; word-break: break-word; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); }
:where(abbr[title]) { cursor: help; text-decoration: none; }

/* Forms */
:where(form) { margin: 0 0 20px; }
:where(fieldset) { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(legend) { display: block; width: 100%; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); border: 0; }
:where(label) { display: block; margin-bottom: 4px; }
:where(button, input, select, textarea) { margin: 0; font-family: inherit; font-size: 14px; line-height: 20px; color: inherit; vertical-align: middle; }
:where(button, input[type="button"], input[type="reset"], input[type="submit"], label, select) { cursor: pointer; }
:where(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"],
  input[type="tel"], input[type="url"], input[type="date"], input:not([type]), select, textarea) {
  box-sizing: border-box; height: var(--control-sm); padding: 0 var(--space-2); font-size: 13px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none;
}
:where(select[multiple], select[size]) { height: auto; }
:where(textarea) { height: auto; min-height: 60px; padding: 6px var(--space-2); overflow: auto; vertical-align: top; }
:where(input, select, textarea):focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
:where(input, select, textarea)[disabled] { cursor: not-allowed; background: var(--surface-sunken); color: var(--ink-muted); }
:where(input[type="checkbox"], input[type="radio"]) { margin: 0; accent-color: var(--primary); cursor: pointer; }
:where(input[type="file"]) { line-height: normal; }
:where(::placeholder) { color: var(--ink-subtle); opacity: 1; }

/* Toggled by uploads/destroy.js.erb and export_templates.js */
.hidden { display: none !important; }
/* Balance4u design system components. Scoped to .ds (set on <body> by migrated layouts) or to b4u-* classes nothing uses yet, so this file changes no existing page. */


.ds { font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink); -webkit-font-smoothing: antialiased; }
body.ds { background: var(--canvas); }
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds a { color: var(--primary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.ds a:hover { text-decoration-color: currentColor; }
.ds :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.ds svg.lucide { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }
.ds .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* App bar */
.b4u-appbar { height: var(--appbar-height); background: var(--brand); color: var(--on-brand); display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-6) 0 0; }
.b4u-appbar .logo { height: var(--appbar-height); display: block; }
.b4u-appbar nav { display: flex; gap: var(--space-1); flex: 1; }
.b4u-appbar nav a { color: var(--on-brand); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-md); font-weight: 500; opacity: .88; }
.b4u-appbar nav a:hover { background: var(--brand-strong); opacity: 1; }
.b4u-appbar nav a[aria-current] { background: var(--brand-strong); opacity: 1; }
.b4u-appbar :focus-visible { outline-color: var(--on-brand); }
.b4u-appbar .meta { display: flex; align-items: center; gap: var(--space-4); font-size: 13px; }
.b4u-appbar .org { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 10px; border-radius: var(--radius-md); background: var(--brand-strong); }
.b4u-appbar .lang { display: inline-flex; gap: 2px; }
.b4u-appbar .lang a { color: var(--on-brand); text-decoration: none; padding: 2px 6px; border-radius: var(--radius-sm); font-weight: 500; }
.b4u-appbar .lang a[aria-current] { background: var(--on-brand); color: var(--brand); }
.b4u-avatar { width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--on-brand); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* Tabs */
.b4u-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
/* Tabs still scroll sideways on narrow screens; the bar under them is hidden. */
.b4u-tabs::-webkit-scrollbar { display: none; }
.b4u-tabs a { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-3); color: var(--ink-muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.b4u-tabs a:hover { color: var(--ink); }
.b4u-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--primary); }
.b4u-count { font-family: var(--font-mono); font-size: 12px; line-height: 16px; padding: 0 6px; border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink-muted); }
.b4u-tabs a[aria-current] .b4u-count { background: var(--primary-subtle); color: var(--ink); }

/* Breadcrumb */
.b4u-crumbs { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-muted); margin: 0; padding: 0; list-style: none; }
.b4u-crumbs a { color: var(--ink-muted); }
.b4u-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.b4u-crumbs svg.lucide { width: 14px; height: 14px; }

/* Buttons */
.b4u-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 14px; font: 500 14px/20px var(--font-sans); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .12s, border-color .12s; }
.b4u-btn.primary { background: var(--primary); color: var(--on-primary); }
.b4u-btn.primary:hover { background: var(--primary-hover); }
.b4u-btn.primary:active { background: var(--primary-pressed); }
.b4u-btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-control); }
.b4u-btn.secondary:hover { background: var(--row-hover); }
.b4u-btn.ghost { background: transparent; color: var(--ink); }
.b4u-btn.ghost:hover { background: var(--primary-subtle); }
.b4u-btn.danger { background: var(--danger); color: var(--on-danger); }
/* Hierarchy: the primary (and the destructive) action is the large button, secondary and ghost actions are compact.
   Applies to every page, so a view only names the tone; .sm stays for a compact primary. */
.b4u-btn.sm, .b4u-btn.secondary, .b4u-btn.ghost { height: var(--control-sm); padding: 0 10px; font-size: 13px; }
.b4u-btn.icon { width: var(--control-md); padding: 0; }
.b4u-btn.icon.sm, .b4u-btn.icon.secondary, .b4u-btn.icon.ghost { width: var(--control-sm); }
.b4u-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Banners (flash) */
.b4u-banner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid; }
.b4u-banner .text { flex: 1; }
.b4u-banner .title { font-weight: 600; }
.b4u-banner.success { background: var(--success-subtle); border-color: var(--success); }
.b4u-banner.success > svg { color: var(--success); }
.b4u-banner.danger { background: var(--danger-subtle); border-color: var(--danger); }
.b4u-banner.danger > svg { color: var(--danger); }
.b4u-banner.info { background: var(--info-subtle); border-color: var(--info); }
.b4u-banner.info > svg { color: var(--info); }
.b4u-banner.warning { background: var(--warning-subtle); border-color: var(--warning); }
.b4u-banner.warning > svg { color: var(--warning); }
.b4u-banner > svg.lucide { width: 18px; height: 18px; margin-top: 1px; }

/* Badges */
.b4u-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 500; }
.b4u-badge svg.lucide { width: 12px; height: 12px; stroke-width: 2.25; }
.b4u-badge.success { background: var(--success-subtle); color: var(--success); }
.b4u-badge.warning { background: var(--warning-subtle); color: var(--warning); }
.b4u-badge.danger { background: var(--danger-subtle); color: var(--danger); }
.b4u-badge.internal { background: var(--internal-subtle); color: var(--ink); }
.b4u-badge.external { background: var(--external-subtle); color: var(--ink); }
.b4u-dot { width: 8px; height: 8px; border-radius: var(--radius-full); display: inline-block; }
.b4u-dot.internal { background: var(--internal); }
.b4u-dot.external { background: var(--external); }

/* Card */
.b4u-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.b4u-card > header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.b4u-card > header h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.b4u-card > .body { padding: var(--space-4) var(--space-5); }

/* Tables */
.b4u-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-control) transparent; }
.b4u-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 20px; }
.b4u-table th { position: sticky; top: 0; background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; text-align: left; padding: 8px var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.b4u-table td { height: var(--row-height); padding: 0 var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.b4u-table tbody tr:last-child td { border-bottom: 0; }
.b4u-table tbody tr:hover td { background: var(--row-hover); }
.b4u-table .numeric { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.b4u-table th.numeric { font-family: var(--font-sans); }
.b4u-table .muted { color: var(--ink-muted); }
.b4u-table td.check { width: 36px; padding-right: 0; }
.b4u-table td.src { position: relative; padding-left: 16px; }
.b4u-table td.src::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.b4u-table tr.internal td.src::before { background: var(--internal); }
.b4u-table tr.external td.src::before { background: var(--external); }
.b4u-table tr.match-group td { background: var(--match-group); }
.b4u-table tr.marked td { background: var(--marked); }
.b4u-table tr[aria-selected="true"] td { background: var(--primary-subtle); }
.b4u-table.dense td { height: 28px; }
.b4u-checkbox { width: 16px; height: 16px; accent-color: var(--primary); }

/* Toolbar above tables */
.b4u-toolbar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border-bottom: 1px solid var(--line); }
.b4u-toolbar .spacer { flex: 1; }
.b4u-selection { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--primary-subtle); border-bottom: 1px solid var(--line); font-size: 13px; }

/* Progress */
.b4u-progress { height: 6px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; min-width: 64px; }
.b4u-progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

/* Summary */
.b4u-summary { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-5); align-items: start; }
.b4u-summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: var(--space-2); column-gap: var(--space-4); }
.b4u-summary dt { color: var(--ink-muted); }
.b4u-summary dd { margin: 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.b4u-summary dt.total, .b4u-summary dd.total { padding-top: var(--space-2); border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.b4u-summary dd.total { font-size: 15px; line-height: 22px; font-weight: 500; }
.b4u-summary .side-title { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; margin-bottom: var(--space-3); }
.b4u-summary .diff { text-align: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-sunken); }
.b4u-summary .diff .label { font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 500; }
.b4u-summary .diff .value { font-family: var(--font-mono); font-size: 24px; line-height: 32px; font-weight: 500; }

/* Forms */
.b4u-field { display: grid; gap: 6px; }
.b4u-field label { font-weight: 600; font-size: 13px; }
.b4u-field .req { color: var(--danger); margin-left: 2px; }
.b4u-input { height: var(--control-md); width: 100%; padding: 0 var(--space-3); font: 400 14px/20px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.b4u-input::placeholder { color: var(--ink-subtle); }
.b4u-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.b4u-input[aria-invalid="true"] { border-color: var(--danger); }
.b4u-input-icon { position: relative; }
.b4u-input-icon svg.lucide { position: absolute; right: 10px; top: 10px; color: var(--ink-muted); pointer-events: none; }
.b4u-help { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.b4u-error { font-size: 12px; line-height: 16px; color: var(--danger); display: flex; gap: var(--space-1); align-items: center; }

/* Dialog */
.b4u-scrim { background: var(--scrim); padding: var(--space-6); display: grid; place-items: center; }
.b4u-dialog { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); }
.b4u-dialog > header { padding: var(--space-5) var(--space-5) 0; }
.b4u-dialog > header h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.b4u-dialog > .body { padding: var(--space-3) var(--space-5) var(--space-5); color: var(--ink-muted); }
.b4u-dialog > footer { display: flex; justify-content: flex-end; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); }
/*
 * bootstrap-datepicker recoloured with design tokens. The plugin and its base
 * CSS (../datepicker.css) stay; these rules load after it. Every selector starts
 * with .datepicker.datepicker-dropdown so it only hits the popup, not the inputs
 * that carry a .datepicker class. The plugin also adds Bootstrap's .dropdown-menu
 * class; Bootstrap is gone, so the popup's positioning lives here.
 */

.datepicker.datepicker-dropdown { position: absolute; z-index: 1050; display: none; min-width: 240px; margin: 2px 0 0; list-style: none; padding: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--ink); }
.datepicker.datepicker-dropdown:before, .datepicker.datepicker-dropdown:after { display: none; }

.datepicker.datepicker-dropdown td, .datepicker.datepicker-dropdown th { width: 32px; height: 32px; padding: 0; border-radius: var(--radius-md); }
.datepicker.datepicker-dropdown th.datepicker-switch { width: auto; font-weight: 600; }
.datepicker.datepicker-dropdown th.dow { height: 24px; font-size: 11px; font-weight: 600; color: var(--ink-subtle); cursor: default; }
.datepicker.datepicker-dropdown .cw { width: 24px; font-size: 11px; color: var(--ink-subtle); }
.datepicker.datepicker-dropdown thead tr:first-child th:hover,
.datepicker.datepicker-dropdown tfoot tr th:hover,
.datepicker.datepicker-dropdown table tr td.day:hover,
.datepicker.datepicker-dropdown table tr td span:hover { background: var(--row-hover); color: var(--ink); }
.datepicker.datepicker-dropdown thead tr:first-child th.cw:hover { background: transparent; }
.datepicker.datepicker-dropdown table tr td.old,
.datepicker.datepicker-dropdown table tr td.new,
.datepicker.datepicker-dropdown table tr td span.old,
.datepicker.datepicker-dropdown table tr td span.new { color: var(--ink-subtle); }
.datepicker.datepicker-dropdown table tr td span { height: 44px; line-height: 44px; border-radius: var(--radius-md); }

.datepicker.datepicker-dropdown table tr td.today,
.datepicker.datepicker-dropdown table tr td.today:hover { background: var(--primary-subtle); background-image: none; color: var(--ink); font-weight: 600; filter: none; }

.datepicker.datepicker-dropdown table tr td.active,
.datepicker.datepicker-dropdown table tr td.active:hover,
.datepicker.datepicker-dropdown table tr td.active.today,
.datepicker.datepicker-dropdown table tr td span.active,
.datepicker.datepicker-dropdown table tr td span.active:hover { background: var(--primary); background-image: none; color: var(--on-primary); text-shadow: none; filter: none; border: 0; }

.datepicker.datepicker-dropdown table tr td.disabled,
.datepicker.datepicker-dropdown table tr td.disabled:hover,
.datepicker.datepicker-dropdown table tr td span.disabled { background: none; color: var(--ink-subtle); opacity: .5; cursor: default; }
/*
 * Dialog on the native <dialog> element (app/assets/javascripts/ds_dialog.js).
 * The panel itself (.b4u-dialog with header, .body and footer) comes from components.css.
 */

dialog.b4u-dialog-host { width: 440px; max-width: calc(100vw - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog.b4u-dialog-host.wide { width: 560px; }
dialog.b4u-dialog-host::backdrop { background: rgba(16, 24, 32, 0.45); background: var(--scrim, rgba(16, 24, 32, 0.45)); }
dialog.b4u-dialog-host .b4u-dialog { max-width: none; }
dialog.b4u-dialog-host .b4u-dialog > header h2 { font-family: var(--font-sans); color: var(--ink); }
dialog.b4u-dialog-host .b4u-dialog > header + footer { margin-top: var(--space-5); }
dialog.b4u-dialog-host .b4u-dialog > .body { display: grid; gap: var(--space-3); }
dialog.b4u-dialog-host .b4u-dialog > .body p { margin: 0; }
dialog.b4u-dialog-host .b4u-dialog > .body .ds-stack { display: grid; gap: var(--space-4); }
dialog.b4u-dialog-host .b4u-dialog > .body .ds-field { margin: 0; }
dialog.b4u-dialog-host .b4u-dialog > footer .b4u-btn[disabled] { pointer-events: none; }

/* Option list (advanced marking) */
.ds-check-list { display: grid; gap: var(--space-2); }

/* Label/value list (transaction details) */
.ds-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-4); margin: 0; font-size: 13px; line-height: 18px; }
.ds-details dt { font-weight: 500; color: var(--ink-subtle); }
.ds-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/*
 * DataTables Editor bubble: double-click a transaction cell to edit it
 * (transaction_datatables_wrapper.js.coffee). Restyles the vendor CSS in
 * dataTables.editor.min.css, which this file loads after.
 */

div.DTE_Bubble_Background { background: var(--scrim); }

div.DTE_Bubble div.DTE_Bubble_Liner {
  width: 320px; margin-left: -160px; padding: var(--space-4);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay);
  font: 400 14px/20px var(--font-sans);
}
div.DTE_Bubble div.DTE_Bubble_Triangle {
  background: var(--surface); border: 1px solid var(--line); border-top: none; border-right: none;
}

/* Fields */
div.DTE_Bubble div.DTE_Field { margin-bottom: var(--space-3); }
div.DTE_Bubble div.DTE_Field:last-child { margin-bottom: 0; }
/* Same label as .ds-field .ds-label in forms.css */
div.DTE_Bubble label.DTE_Label { display: block; margin: 0 0 6px; font: 600 13px/18px var(--font-sans); color: var(--ink); }
div.DTE_Bubble div.DTE_Label_Info:empty,
div.DTE_Bubble div.DTE_Field_Message:empty,
div.DTE_Bubble div.DTE_Field_Info:empty { display: none; }
div.DTE_Bubble div.DTE_Field_Input input,
div.DTE_Bubble div.DTE_Field_Input select,
div.DTE_Bubble div.DTE_Field_Input textarea {
  box-sizing: border-box; width: 100%; height: var(--control-md); margin: 0; padding: 0 var(--space-3);
  font: 400 14px/20px var(--font-sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none;
}
div.DTE_Bubble div.DTE_Field_Input textarea { height: auto; min-height: 72px; padding: var(--space-2) var(--space-3); }
div.DTE_Bubble div.DTE_Field_Input input:focus,
div.DTE_Bubble div.DTE_Field_Input select:focus,
div.DTE_Bubble div.DTE_Field_Input textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }

/* Errors */
div.DTE_Bubble div.DTE_Field_Error,
div.DTE_Bubble div.DTE_Form_Error { margin-top: var(--space-1); font-size: 12px; line-height: 16px; color: var(--danger); }
div.DTE_Bubble div.DTE_Field.error input { border-color: var(--danger); }

/* Save button: the primary button from components.css */
div.DTE div.DTE_Form_Buttons button,
div.DTE div.DTE_Form_Buttons button:hover,
div.DTE div.DTE_Form_Buttons button:focus,
div.DTE div.DTE_Form_Buttons button:active {
  float: none; display: inline-flex; align-items: center; justify-content: center;
  height: var(--control-md); padding: 0 14px; font: 500 14px/20px var(--font-sans);
  color: var(--on-primary); background: var(--primary); background-image: none; filter: none;
  border: 1px solid transparent; border-radius: var(--radius-md); box-shadow: none; text-shadow: none;
}
div.DTE div.DTE_Form_Buttons button:hover { background: var(--primary-hover); }
div.DTE div.DTE_Form_Buttons button:active { background: var(--primary-pressed); }
div.DTE div.DTE_Form_Buttons button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
div.DTE div.DTE_Form_Buttons button:focus:after { content: none; animation: none; }

/* Close: a quiet icon button in the corner instead of the black circle */
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close {
  top: var(--space-1); right: var(--space-1); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius-md); box-shadow: none;
}
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close:after { content: '\00d7'; color: var(--ink-subtle); font: 400 20px/1 var(--font-sans); }
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close:hover { background: var(--primary-subtle); box-shadow: none; }
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Close:hover:after { color: var(--ink); }
/* Field and Save button on one row, the button level with the input. The
   close button sits above the button column, so the row needs no extra room. */
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table { display: flex; align-items: flex-end; gap: var(--space-3); }
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table > form { display: block; flex: 1; min-width: 0; margin: 0; }
div.DTE_Bubble div.DTE_Bubble_Liner div.DTE_Bubble_Table div.DTE_Form_Buttons { display: block; width: auto; padding: 0; }
/*
 * IBM Plex Sans and Mono, self-hosted (SIL OFL 1.1, see app/assets/fonts/ibm-plex/OFL.txt).
 * Files come from @fontsource/ibm-plex-sans and @fontsource/ibm-plex-mono 5.1.0, latin and latin-ext subsets.
 * Browsers download a file only when text in that family is rendered.
 */


@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-400-normal-db71f8a28ad8501544fb4e7668e3c6d0b731760b6f20de3525ebaeba597f1922.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-ext-400-normal-9a4ad5a9fd17ad03f878c0f1b126f460c4f409f29c633d5fc7c20276a7060914.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-500-normal-5ef914e59b0047a261844d96acabb60c34d3acab6b85ea24198726ce4781fd37.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-ext-500-normal-b45dda4ca1e499e1e46b0fab82dbb94e06634fbc7de370b2a542049ec749c5dd.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-600-normal-31535a91ce3f6b8ed3ddedadab1e49957e2220263a640df1a3f14f6fdfe15eb6.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-sans-latin-ext-600-normal-19d8e8252c984a204ba97d48d9abfe56a1ab5caa0b3468495d8db57dd144a780.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-mono-latin-400-normal-3c5a451f9ec27a354b0c2bcca636c6ec17a651281aabf29f8427e210a1d31e85.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-mono-latin-ext-400-normal-91e8ae155e1cd949e9b03f82cfa0bfb04ce6bbcf149e807de9385d58c5dfc6ce.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-mono-latin-500-normal-756026ff72eb76fd971ac4b7504cec55eef62109d2684c2cad8da32170b80b37.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/ibm-plex/ibm-plex-mono-latin-ext-500-normal-c8bfbf1336ac25c5bc4fdc21baeae8c3e7be14b27cc53c796ccd3009bd9b2c20.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/*
 * Design-system form fields and buttons that work without a .ds ancestor,
 * so they can sit in pages that are still Bootstrap 2.
 *
 * Selectors are two classes deep on purpose: Bootstrap 2 styles inputs with
 * selectors like input[type="text"] and input[type="text"]:focus, which a
 * single class would lose to.
 */

/* Buttons (base styles are in components.css) */

.b4u-btn, .b4u-btn:hover, .b4u-btn:focus { text-decoration: none; }
.b4u-btn { box-sizing: border-box; vertical-align: middle; white-space: nowrap; text-shadow: none; }
.b4u-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.b4u-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.b4u-btn.sm.icon { width: var(--control-sm); }
.b4u-btn.ghost { color: var(--ink-muted); }
.b4u-btn.ghost:hover { color: var(--ink); }
.b4u-btn.ghost.delete-button:hover { color: var(--danger); background: var(--danger-subtle); }
.b4u-btn .caret { border-top-color: currentColor; margin: 0 0 0 2px; vertical-align: middle; }
.b4u-btn.hidden { display: none; }
.btn-group > .b4u-btn + .b4u-btn, .b4u-btn + .b4u-btn { margin-left: var(--space-2); }
.btn-group > .b4u-btn { float: none; }
.btn-group.open > .b4u-btn.dropdown-toggle { box-shadow: none; }

/* Form layout */
/* div. outranks Bootstrap's .form-actions, which loads after this file. */
div.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; background: none; border-top: 1px solid var(--line); }
div.form-actions .b4u-btn + .b4u-btn { margin-left: 0; }
/* Bootstrap's clearfix pseudo-elements become flex items and push the first button in by one gap. */
div.form-actions::before, div.form-actions::after { content: none; }
.ds-form-notice { margin-bottom: var(--space-4); }

/* Field */
.ds-field { display: grid; gap: 6px; max-width: 480px; margin: 0 0 var(--space-4); font-family: var(--font-sans); }
.ds-field .ds-label { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.ds-field .ds-label abbr[title] { color: var(--danger); border: 0; text-decoration: none; cursor: default; margin-left: 2px; }

.ds-field .ds-input {
  box-sizing: border-box; display: block; width: 100%; height: var(--control-md); margin: 0;
  padding: 0 var(--space-3); font: 400 14px/20px var(--font-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md);
  box-shadow: none; transition: border-color .12s;
}
.ds-field textarea.ds-input { height: auto; min-height: 88px; padding: var(--space-2) var(--space-3); resize: vertical; }
.ds-field select.ds-input { padding-right: var(--space-8); }
.ds-field select.ds-input[multiple] { height: auto; min-height: 120px; padding: var(--space-1); }
.ds-field input[type="file"].ds-input { height: auto; padding: 6px var(--space-2); }
.ds-field .ds-input::placeholder { color: var(--ink-subtle); }
.ds-field .ds-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); box-shadow: none; }
.ds-field .ds-input[readonly], .ds-field .ds-input[disabled] { background: var(--surface-sunken); color: var(--ink-muted); cursor: not-allowed; }
.ds-field .ds-input.is-invalid { border-color: var(--danger); }

.ds-field .ds-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ds-field .ds-error { margin: 0; font-size: 12px; line-height: 16px; color: var(--danger); }
.ds-field.ds-field-error .ds-hint { display: none; }

/* Date field with calendar add-on */
.ds-field .ds-date { display: flex; margin: 0; padding: 0; font-size: 14px; white-space: normal; }
.ds-field .ds-date .ds-input, .ds-field .ds-date input { flex: 1; min-width: 0; height: var(--control-md); border-radius: var(--radius-md) 0 0 var(--radius-md); }
.ds-field .ds-date .add-on {
  box-sizing: border-box; display: grid; place-items: center; width: var(--control-md); height: var(--control-md);
  padding: 0; margin: 0; color: var(--ink-muted); background: var(--surface-sunken);
  border: 1px solid var(--line-control); border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; text-shadow: none; cursor: pointer;
}

/* Checkbox with its label beside it */
.ds-field.ds-check { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-2); }
.ds-field.ds-check .checkbox { display: contents; }
.ds-field.ds-check .ds-hint, .ds-field.ds-check .ds-error { grid-column: 2; }
.ds-field .ds-check-label { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; }
.ds-field input[type="checkbox"], .ds-field input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
/* Bootstrap's .checkbox input[type="checkbox"] floats the box 20px to the left */
.ds-field .checkbox input[type="checkbox"], .ds-field .radio input[type="radio"] { float: none; margin: 0; }
.ds-field label.checkbox, .ds-field label.radio { padding-left: 0; }

/* Check box and radio collections */
.ds-field.ds-options .checkbox, .ds-field.ds-options .radio { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 var(--space-4) 0 0; padding: 0; min-height: 0; font-size: 14px; color: var(--ink); }
.ds-field.ds-options .checkbox input, .ds-field.ds-options .radio input { float: none; margin: 0; }
.ds-field.ds-options label.checkbox, .ds-field.ds-options label.radio { font-weight: 400; }
/* simple_form nests label > input + text inside span.checkbox, so the label needs the gap too */
.ds-field.ds-options .checkbox > label, .ds-field.ds-options .radio > label { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 400; cursor: pointer; }
/* kaminari pagination (app/views/kaminari) */

.b4u-pager { display: inline-flex; margin: var(--space-4) var(--space-3) var(--space-4) 0; vertical-align: middle; }
.b4u-pager ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.b4u-pager a, .b4u-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 var(--space-2); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1; color: var(--ink-muted); text-decoration: none; }
.b4u-pager a:hover { background: var(--row-hover); color: var(--ink); text-decoration: none; }
.b4u-pager a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.b4u-pager [aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.b4u-pager .gap span { color: var(--ink-subtle); }
/*
 * Data screens: Status (StatusSummary), status badges for uploads, matchers
 * and exports (status_helper.rb), and the uploads table.
 */

/* Status badge: all four states are rendered, the .bar-* class picks one */

.b4u-status { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.b4u-status > .b4u-badge { display: none; }
.b4u-status.bar-success > .state-success,
.b4u-status.bar-warning > .state-warning,
.b4u-status.bar-danger > .state-danger,
.b4u-status.bar-none > .state-none { display: inline-flex; }
/* The pollers add the new class without always removing the old one (matchers.js
   leaves bar-none on success), so the later state wins: done or failed over running,
   running over not started. */
.b4u-status:is(.bar-success, .bar-danger) > :is(.state-none, .state-warning),
.b4u-status.bar-warning > .state-none { display: none; }
.b4u-status:is(.bar-success, .bar-danger) > .b4u-progress { display: none; }
.b4u-badge.neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.b4u-status > .b4u-progress { display: none; width: 64px; }
.b4u-status.bar-warning > .b4u-progress { display: block; }
.b4u-status.bar-warning .state-warning svg { animation: b4u-spin 1.2s linear infinite; }
@keyframes b4u-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .b4u-status.bar-warning .state-warning svg { animation: none; } }

/* Status page */
.ds-status { display: grid; gap: var(--space-5); max-width: 960px; font-family: var(--font-sans); color: var(--ink); }
.ds-status-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
@media (max-width: 760px) { .ds-status-sides { grid-template-columns: minmax(0, 1fr); } }
.ds-status .ds-disclosure { margin: 0; }
.ds-status .ds-disclosure .b4u-card { max-width: calc(50% - var(--space-5) / 2); }
@media (max-width: 760px) { .ds-status .ds-disclosure .b4u-card { max-width: none; } }

.ds-figures-card > header h3 { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); color: var(--ink); }
.ds-figures-card > .body { padding: var(--space-2) var(--space-5) var(--space-4); }

/* Figures table: label column plus right-aligned mono figures */
table.ds-figures { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; line-height: 20px; }
table.ds-figures th, table.ds-figures td { padding: 6px 0; border: 0; vertical-align: baseline; background: none; }
table.ds-figures thead th { padding-top: var(--space-2); padding-bottom: var(--space-2); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--line); }
table.ds-figures th[scope="row"] { font-weight: 400; color: var(--ink-muted); text-align: left; }
table.ds-figures th[scope="row"] .b4u-dot { margin-right: var(--space-2); }
table.ds-figures .numeric { padding-left: var(--space-5); text-align: right; white-space: nowrap; }
table.ds-figures td.numeric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
table.ds-figures tr.total th, table.ds-figures tr.total td { padding-top: var(--space-2); border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
table.ds-figures tbody + tbody tr:first-child th, table.ds-figures tbody + tbody tr:first-child td { padding-top: var(--space-4); }
table.ds-figures tbody.preview th, table.ds-figures tbody.preview td { color: var(--ink-muted); }
.ds-inline-link { margin-left: var(--space-2); font-size: 12px; color: var(--primary); }

/* Uploads table: menus must not be clipped by the frame */
.b4u-table-wrap.ds-uploads { overflow: visible; margin-bottom: var(--space-3); }
.ds-uploads .b4u-table th a { color: inherit; text-decoration: none; }
.ds-uploads .b4u-table th a:hover { color: var(--ink); text-decoration: underline; }
.ds-uploads .b4u-table td { white-space: nowrap; }
.ds-uploads .b4u-table td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.ds-uploads .b4u-table td .b4u-btn { margin-right: 2px; }
#uploads-list .ds-list-title { margin-top: var(--space-5); }
.b4u-banner.hidden { display: none; }
/* Same column widths in the internal and external tables, so they line up */
.ds-uploads .b4u-table { table-layout: fixed; }
.ds-uploads .b4u-table th:nth-child(1) { width: 24%; }
.ds-uploads .b4u-table th:nth-child(2) { width: 15%; }
.ds-uploads .b4u-table th:nth-child(3) { width: 10%; text-align: right; }
.ds-uploads .b4u-table th:nth-child(4) { width: 9%; }
.ds-uploads .b4u-table th:nth-child(5) { width: 14%; }
.ds-uploads .b4u-table th:nth-child(6) { width: 14%; }
.ds-uploads .b4u-table th:nth-child(7) { width: 120px; }
.ds-uploads .b4u-table td { overflow: hidden; text-overflow: ellipsis; }
.ds-uploads .b4u-table td:nth-child(7) { overflow: visible; }

/* Panels and headings shared by the remaining screens */
.ds-panel { margin: 0 0 var(--space-5); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); font-family: var(--font-sans); color: var(--ink); }
.ds-panel > :last-child { margin-bottom: 0; }
.ds-section-title { margin: var(--space-6) 0 var(--space-3); font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ds-subsection-title { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.ds-form-section { margin: var(--space-5) 0; }
.ds-form-section > .ds-section-title { margin-top: 0; }
.ds-context { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); font-family: var(--font-sans); font-size: 13px; color: var(--ink-muted); }
.ds-context svg.lucide { color: var(--ink-subtle); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ds-select { height: var(--control-sm); margin: 0; padding: 0 var(--space-2); font: 13px/1 var(--font-sans); border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.b4u-table.nested { margin-top: var(--space-2); background: var(--surface-sunken); border-radius: var(--radius-md); }
.b4u-table.nested th { position: static; }
.data-matcher-info-link { margin-left: var(--space-2); }

/* Reconciliation form: one processing bundle row of three fields */
.ds-field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 760px) { .ds-field-row { grid-template-columns: minmax(0, 1fr); } }

/* Import template preview */
.ds-template-preview { margin: 0 0 var(--space-5); }
.ds-template-toolbar { display: flex; justify-content: flex-end; margin: 0 0 var(--space-2); }
.ds-template-preview .b4u-table th.column-select { min-width: 150px; padding-top: var(--space-2); padding-bottom: var(--space-2); vertical-align: bottom; }
.ds-template-preview .b4u-table th.column-select .ds-field { margin: 0; gap: 4px; }
.ds-template-preview .b4u-table th.column-select .ds-input { height: var(--control-sm); font-size: 13px; }
.ds-template-preview .b4u-table th.row-label { position: static; background: var(--surface); color: var(--ink-muted); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.ds-template-preview .b4u-table thead th.row-label { position: sticky; background: var(--surface-sunken); }
.ds-template-preview .b4u-table tr.raw-row td, .ds-template-preview .b4u-table tr.raw-row th { border-bottom-color: var(--line-strong, var(--line)); }
.ds-template-preview .b4u-table td.parsed { background: var(--success-subtle); color: var(--ink); }
.ds-template-preview .b4u-table tr.duplicated-row td { background: var(--warning-subtle); }

/* Export template: ordered field list and filter */
.ds-sortable { display: grid; gap: 4px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.ds-sortable-item { display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13px; }
.ds-sortable-item.ui-sortable-helper { box-shadow: var(--shadow-overlay); }
.ds-sortable-item.ui-sortable-placeholder { visibility: visible !important; background: var(--surface-sunken); border-style: dashed; }
.ds-grip { display: inline-flex; color: var(--ink-subtle); cursor: grab; }
.ds-check-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-6); }
@media (max-width: 640px) { .ds-check-grid { grid-template-columns: minmax(0, 1fr); } }

/* Upload form */
.ds-upload-side { display: grid; gap: var(--space-3); align-content: start; }
.ds-upload-side > .b4u-btn { justify-self: start; }
.ds-upload-side .ds-panel { margin: 0; display: grid; gap: var(--space-4); }
.ds-upload-side .ds-panel .ds-field, .ds-panel > .ds-field { margin: 0; }

/* Advanced filter on the transaction lists: compact "label [from] - [to]" rows */
.ds-filter-panel form { margin: 0; }
.ds-filter-panel { margin: var(--space-2) 0 0; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); font-family: var(--font-sans); font-size: 13px; }
.ds-filter-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); }
@media (max-width: 900px) { .ds-filter-sides { grid-template-columns: minmax(0, 1fr); } }
.ds-filter-side { display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ds-filter-side legend { display: flex; align-items: center; gap: var(--space-2); width: auto; margin: 0 0 var(--space-1); padding: 0; border: 0; font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.ds-filter-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.ds-filter-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.ds-filter-dash { color: var(--ink-subtle); }
.ds-filter-panel input.ds-filter-input { width: 100%; height: var(--control-sm); margin: 0; padding: 0 var(--space-2); font: 13px/1 var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none; box-sizing: border-box; }
.ds-filter-panel input.ds-filter-input.amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ds-filter-panel input.ds-filter-input::placeholder { color: var(--ink-subtle); font-family: var(--font-sans); }
.ds-filter-panel input.ds-filter-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
/* .datepicker (legacy datepicker.css) adds 4px padding to the wrapper; cancel it so date and plain inputs line up. */
.ds-filter-panel .ds-filter-date { display: flex; min-width: 0; margin: 0; padding: 0; font-size: 13px; white-space: normal; }
.ds-filter-panel .ds-filter-date input.ds-filter-input { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.ds-filter-panel .ds-filter-date .add-on { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: var(--control-sm); margin: 0; padding: 0; background: var(--surface-sunken); border: 1px solid var(--line-control); border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--ink-muted); box-sizing: border-box; cursor: pointer; }
.ds-filter-more { display: block; }
.ds-filter-more > .ds-filter-row { margin-top: 6px; }
.ds-filter-more > summary { width: max-content; padding: 2px 0; color: var(--ink-muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.ds-filter-more > summary:hover { color: var(--ink); }
.ds-filter-panel div.form-actions { margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; }
.ds-filter-panel div.form-actions .b4u-btn { height: var(--control-sm); padding: 0 12px; font-size: 13px; }

/* Admin activity log */
.ds-activity { display: grid; gap: 4px; margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--ink); }
.ds-activity p { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.ds-activity-meta { color: var(--ink-muted); }
.ds-activity-label { color: var(--ink-muted); font-weight: 500; }
.ds-activity-changes { margin: 0; padding: var(--space-2) var(--space-3); background: var(--surface-sunken); border: 0; border-radius: var(--radius-md); font: 12px/18px var(--font-mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); }
/*
 * App shell on the design system: app bar, page head with breadcrumb and tabs,
 * flash banners, admin menu and the sign-in card.
 *
 * Until stage 3 the page content below the shell is still Bootstrap 2, so `.ds`
 * goes on the shell elements only, never on <body> or around Bootstrap form
 * controls (.ds switches to border-box sizing, which Bootstrap 2 inputs don't expect).
 */

/* App bar extras */

.b4u-appbar { margin-bottom: var(--space-3); }
.b4u-appbar + .ds-page-head, .b4u-appbar + .ds-flash { margin-top: calc(-1 * var(--space-3)); }
.b4u-appbar .home { display: block; line-height: 0; }
.b4u-appbar .home:focus-visible { outline-offset: -2px; }
.b4u-appbar a.logout { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-brand); text-decoration: none; padding: 4px 10px; border-radius: var(--radius-md); }
.b4u-appbar a.logout:hover { background: var(--brand-strong); }
.b4u-appbar .org svg.lucide { width: 14px; height: 14px; }

/* Language switch with flags */
.b4u-appbar .lang { gap: 4px; }
.b4u-appbar .lang a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; }
.b4u-appbar .lang .flag { display: block; width: 18px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.b4u-appbar .lang a:not([aria-current]) .flag { opacity: .8; }
.b4u-appbar .lang a:not([aria-current]):hover { background: var(--brand-strong); }
.b4u-appbar .lang a:not([aria-current]):hover .flag { opacity: 1; }

@media (max-width: 760px) {
  .b4u-appbar { gap: var(--space-2); padding-right: var(--space-3); overflow-x: auto; }
  .b4u-appbar .logo { height: 40px; }
  .b4u-appbar nav a { padding: 6px var(--space-2); white-space: nowrap; }
  .b4u-appbar .org { display: none; }
  .b4u-appbar a.logout .logout-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ds-page-head, .ds-flash { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* Page head: breadcrumb, title, tabs */
.ds-page-head { padding: var(--space-3) var(--space-6) 0; background: var(--surface); margin-bottom: var(--space-3); }
.ds-page-head .b4u-crumbs { margin-bottom: var(--space-1); }
.ds-page-head .b4u-crumbs li { list-style: none; display: inline-flex; align-items: center; }
/* The reconciliation name is the last breadcrumb and the page heading */
.b4u-crumbs-title { margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.ds-page-head .b4u-tabs { margin: 0 calc(-1 * var(--space-3)); }

/* Flash banners */
.ds-flash { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6) 0; margin-bottom: var(--space-4); }
.ds-page-head + .ds-flash { padding-top: 0; }

/* Admin menu */
.b4u-sidenav { display: grid; gap: 2px; padding: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.b4u-sidenav a { display: flex; align-items: center; gap: var(--space-2); padding: 8px var(--space-3); border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.b4u-sidenav a:hover { background: var(--row-hover); color: var(--ink); text-decoration: none; }
.b4u-sidenav a[aria-current] { background: var(--primary-subtle); color: var(--ink); }

/* Sign-in: styled with tokens but not under .ds, because it wraps Bootstrap form controls */
.ds-auth { display: grid; justify-items: center; align-content: start; gap: var(--space-5); padding: var(--space-10) 0; }
.ds-auth-notice { box-sizing: border-box; width: 100%; max-width: 446px; font-size: 13px; line-height: 20px; }
.ds-auth-card { box-sizing: border-box; width: 100%; max-width: 446px; padding: var(--space-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ds-auth-card h1 { margin: 0 0 var(--space-6); font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); }
.ds-auth-card .form-actions { margin: var(--space-5) 0 0; padding: 0; border: 0; }
.ds-auth-card .form-actions .b4u-btn { width: 100%; }
.ds-auth-card .links { margin-top: var(--space-4); font-size: 13px; }

/* Admin layout: fixed-width menu and a content column that can shrink */
.ds-admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: start; padding: 0 var(--space-6) var(--space-8); }
.ds-admin-nav { position: sticky; top: var(--space-4); }
.ds-admin-main { min-width: 0; }

/* Page content below the shell (single-column and reconciliation layouts) */
.ds-main { display: block; padding: 0 var(--space-6) var(--space-8); }
@media (max-width: 760px) { .ds-main { padding: 0 var(--space-4) var(--space-6); } }
.b4u-sidenav a { white-space: nowrap; }
@media (max-width: 900px) {
  .ds-admin-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: 0 var(--space-4) var(--space-6); }
  .ds-admin-nav { position: static; }
  .ds-admin-nav .b4u-sidenav { display: flex; flex-wrap: wrap; gap: 4px; }
}
/*
 * Transaction lists (Simple, Manual, Reconciled, Preview) on DataTables 1.10,
 * styled as the DS TransactionTable. The tables carry .b4u-table.dense
 * (components.css); these rules cover the DataTables chrome and the CDN
 * Bootstrap 2 integration styles, which load after application.css, so
 * selectors start at .transaction-list to outrank them.
 */

/* Frame and type */

.transaction-list { font-family: var(--font-sans); font-size: 13px; line-height: 20px; color: var(--ink); }
.transaction-list .dataTables_scroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.transaction-list .dataTables_scrollHead { background: var(--surface-sunken); }
.transaction-list table.dataTable { margin: 0 !important; border: 0; min-width: 500px; }
/* The list fills the window down to its footer */
.transaction-list .dataTables_scrollBody { height: calc(100vh - 370px) !important; min-height: 240px; max-height: none; scrollbar-width: thin; scrollbar-color: var(--line-control) transparent; }
.transaction-list .dataTables_scrollBody table.dataTable thead th { padding-top: 0; padding-bottom: 0; border: 0; }

/* Header */
.transaction-list table.dataTable thead th { padding: 4px var(--space-3); background-color: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; }
.transaction-list table.dataTable thead th:last-child { border-right: 0; }
.transaction-list table.dataTable thead th.numeric { text-align: right; }
.transaction-list table.dataTable thead .sorting, .transaction-list table.dataTable thead .sorting_asc, .transaction-list table.dataTable thead .sorting_desc { cursor: pointer; background-position: right 4px center; padding-right: 22px; }

/* Rows: no stripes, hover instead */
.transaction-list table.dataTable tbody td { height: 24px; padding: 0 var(--space-3); background-color: var(--surface); border-top: 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.transaction-list table.dataTable tbody tr.odd td, .transaction-list table.dataTable tbody tr.even td { background-color: var(--surface); }
.transaction-list table.dataTable tbody tr:hover td { background-color: var(--row-hover); }
.transaction-list table.dataTable tbody td.numeric { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* States: staged match group, keyboard cursor (marked-row), selected (TableTools .active) */
.transaction-list table.dataTable tbody tr.match-group td { background-color: var(--match-group); }
.transaction-list table.dataTable tbody td.marked-row { background-color: var(--marked); }
/* The CDN DataTables Bootstrap CSS colours selected rows with !important, so this has to as well. */
.transaction-list table.table tbody tr.active td,
.transaction-list table.table tbody tr.active:hover td { background-color: var(--primary-subtle) !important; color: var(--ink) !important; }

/* When the source column is hidden, the first visible cell carries the marker. */
.transaction-list table.dataTable tbody tr.internal > td:first-child:not(.src) { box-shadow: inset 4px 0 0 var(--internal); }
.transaction-list table.dataTable tbody tr.external > td:first-child:not(.src) { box-shadow: inset 4px 0 0 var(--external); }
.transaction-list table.table tbody tr.active > td:first-child:not(.src) { box-shadow: inset 4px 0 0 var(--primary); }

/* Source column: 4px marker plus the word */
.transaction-list table.dataTable tbody td.src { position: relative; width: 64px; padding-left: 14px; color: var(--ink-muted); font-size: 12px; }
.transaction-list table.dataTable tbody td.src::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.transaction-list table.dataTable tbody td.src.internal::before { background: var(--internal); }
.transaction-list table.dataTable tbody td.src.external::before { background: var(--external); }

/* Toolbar from DataTables. With the Bootstrap 2 integration, TableTools renders
   div.DTTT.btn-group > a.btn (not .DTTT_container / .DTTT_button), so these
   rules target that markup and undo Bootstrap's joined gradient buttons. */
.transaction-list .DTTT.btn-group { display: inline-flex; flex-wrap: wrap; gap: 4px; float: none; margin: 0 var(--space-2) var(--space-2) 0; vertical-align: middle; }
.transaction-list .DTTT.btn-group > .btn { float: none; display: inline-flex; align-items: center; height: var(--control-sm); margin: 0; padding: 0 10px; background: var(--surface); background-image: none; border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none; color: var(--ink); font: 500 13px/1 var(--font-sans); text-shadow: none; filter: none; }
.transaction-list .DTTT.btn-group > .btn:hover, .transaction-list .DTTT.btn-group > .btn:focus { background: var(--row-hover); color: var(--ink); text-decoration: none; }
.transaction-list .DTTT.btn-group > .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.transaction-list .DTTT.btn-group > .btn:active { box-shadow: none; }
.transaction-list .DTTT.btn-group > .btn.disabled { opacity: .45; background: var(--surface); cursor: default; }
.transaction-list .ColVis { float: none; display: inline-flex; gap: 4px; margin: 0 0 var(--space-2); vertical-align: middle; }
/* The list title is kept for screen readers; a colour mark before the column buttons names the side */
.transaction-list .ds-list-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
#internal-transactions .ColVis::before, #external-transactions .ColVis::before { content: ""; align-self: center; width: 4px; height: 16px; margin-right: 4px; border-radius: var(--radius-sm); }
#internal-transactions .ColVis::before { background: var(--internal); }
#external-transactions .ColVis::before { background: var(--external); }
.transaction-list .ColVis button.ColVis_Button { height: var(--control-sm); padding: 0 10px; background: var(--surface); background-image: none; border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none; color: var(--ink); font: 500 13px/1 var(--font-sans); }
.transaction-list .ColVis button.ColVis_Button:hover { background: var(--row-hover); }
.transaction-list .ColVis .b4u-btn { margin: 0; }

/* Footer: info, pager, page length */
.transaction-list .dataTables_wrapper { display: flow-root; }
/* Footer, the same two lines under both lists so they stay level:
   entry count and pager, then page length and search */
.transaction-list .dataTables_info { float: left; margin: var(--space-2) var(--space-4) 0 0; padding: 0; line-height: 28px; color: var(--ink-muted); font-size: 12px; }
.transaction-list .dataTables_paginate.pagination { margin: var(--space-2) 0 0; height: auto; }
.transaction-list .dataTables_paginate.pagination ul { display: flex; gap: 4px; margin: 0; box-shadow: none; border-radius: 0; }
.transaction-list .dataTables_paginate.pagination li { list-style: none; }
.transaction-list .dataTables_paginate.pagination ul > li > a { float: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 var(--space-2); background: transparent; border: 0; border-radius: var(--radius-md); color: var(--ink-muted); font: 500 13px/1 var(--font-sans); text-decoration: none; }
.transaction-list .dataTables_paginate.pagination ul > li > a:hover { background: var(--row-hover); color: var(--ink); }
.transaction-list .dataTables_paginate.pagination ul > li.active > a { background: var(--primary); color: var(--on-primary); }
.transaction-list .dataTables_paginate.pagination ul > li.disabled > a { opacity: .45; background: transparent; }
.transaction-list .dataTables_length { float: left; clear: left; margin-top: var(--space-2); color: var(--ink-muted); font-size: 12px; }
.transaction-list .dataTables_length select { width: auto !important; height: var(--control-sm) !important; margin: 0 4px; padding: 0 var(--space-2); font-size: 13px !important; border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.transaction-list .dataTables_processing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--ink-muted); font-size: 13px; }
/* Float the indicator over the table so showing and hiding it never moves the rows. */
.transaction-list .dataTables_wrapper, .transaction-list .dataTables_scroll { position: relative; }
.transaction-list .dataTables_processing { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; padding: 4px 12px; line-height: 18px; width: auto; height: auto; white-space: nowrap; pointer-events: none; }

/* Column search under each list */
.transaction-list .search { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); float: none; clear: both; margin-top: var(--space-2); color: var(--ink-muted); font-size: 12px; }
/* Wide enough for page length and search side by side: lift the search onto the page length line */
@media (min-width: 1280px) { .transaction-list .search { clear: none; margin-top: -28px; } }
.transaction-list .search select, .transaction-list .search input { height: var(--control-sm) !important; margin: 0; padding: 0 var(--space-2); font: 13px/1 var(--font-sans) !important; color: var(--ink); background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none; box-sizing: border-box; }
.transaction-list .search select { width: 110px !important; }
.transaction-list .search select.wide { width: 160px !important; }
.transaction-list .search input { width: 140px !important; }
.transaction-list .search input:focus, .transaction-list .search select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.transaction-list .search .b4u-btn { margin: 0; }

/* Two lists side by side (Manual) */
.ds-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.ds-list-title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ds-list-title::before { content: ""; width: 4px; height: 16px; border-radius: var(--radius-sm); }
.ds-list-title.internal::before { background: var(--internal); }
.ds-list-title.external::before { background: var(--external); }
@media (max-width: 1100px) { .ds-split { grid-template-columns: minmax(0, 1fr); } }

/* Selection bar: sticks to the top while scrolling the list */
.ds-selection-bar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); margin: 0 0 var(--space-2); padding: 2px var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); font-family: var(--font-sans); font-size: 13px; line-height: 18px; }
.ds-selection-side { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--space-3); }
.ds-selection-side.external { justify-content: flex-end; text-align: right; }
.ds-selection-side.internal .ds-selection-label::before, .ds-selection-side.external .ds-selection-label::before { content: ""; display: inline-block; width: 4px; height: 12px; margin-right: 6px; border-radius: var(--radius-sm); vertical-align: -1px; }
.ds-selection-side.internal .ds-selection-label::before { background: var(--internal); }
.ds-selection-side.external .ds-selection-label::before { background: var(--external); }
.ds-selection-label { color: var(--ink-muted); font-weight: 500; }
.ds-selection-figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.ds-selection-count { color: var(--ink-subtle); font-size: 12px; }
.ds-selection-diff { display: flex; flex-direction: row; align-items: baseline; gap: var(--space-2); padding: 2px var(--space-4); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ds-selection-diff .ds-selection-figure { font-size: 13px; }

/* Options above the lists */
.ds-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 13px; color: var(--ink); }
.ds-list-options { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-right: auto; }
.ds-inline-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; cursor: pointer; }
.ds-inline-check input[type="checkbox"] { margin: 0; }
.ds-inline-field { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-size: 13px; color: var(--ink-muted); }
.ds-inline-field input { width: 80px; height: var(--control-sm); margin: 0; padding: 0 var(--space-2); font: 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); border: 1px solid var(--line-control); border-radius: var(--radius-md); box-shadow: none; box-sizing: border-box; }
.ds-list-toolbar #filter-form { flex-basis: 100%; }

/* Column chooser popup. ColVis appends it to <body>, outside .transaction-list,
   so these rules start at body to outrank the CDN ColVis styles. */
body ul.ColVis_collection { width: auto; min-width: 200px; max-height: 360px; overflow-y: auto; margin: 4px 0 0; padding: var(--space-1); list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); font-family: var(--font-sans); z-index: 2002; }
body ul.ColVis_collection li { position: static; float: none; display: block; width: auto; height: auto; margin: 0; padding: 0; text-align: left; background: transparent; background-image: none; border: 0; border-radius: var(--radius-md); box-shadow: none; }
body ul.ColVis_collection li:hover { background: var(--row-hover); }
body ul.ColVis_collection li label { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: 6px var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink); cursor: pointer; }
body ul.ColVis_collection li input[type="checkbox"] { margin: 0; }
body ul.ColVis_collection li span { padding: 0; }
html body div.ColVis_collectionBackground { background: transparent; opacity: 0; }
/*
 * Balance4u design system tokens, generated from the design system's tokens.json (version 2).
 * Source: https://claude.ai/artifact/3SjJaTuermHdDwuEUZRjAd
 * Change values there first, then regenerate this file. Dark values apply only under [data-theme="dark"].
 */

:root, [data-theme="light"] {
  --brand: #677581;
  --on-brand: #ffffff;
  --brand-strong: #56636e;
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-sunken: #eef1f4;
  --row-hover: #f3f5f7;
  --ink: #1d2730;
  --ink-muted: #56626e;
  --ink-subtle: #6b7783;
  --line: #dfe3e8;
  --line-control: #8a96a3;
  --primary: #4a5a6a;
  --primary-hover: #3b4957;
  --primary-pressed: #2f3a46;
  --on-primary: #ffffff;
  --primary-subtle: #e8edf2;
  --focus: #2f6fdb;
  --internal: #3b74c4;
  --internal-subtle: #e3eefc;
  --external: #b86f0a;
  --external-subtle: #fdf0d9;
  --match-group: #eef8f5;
  --marked: #fff4c2;
  --success: #1f7a3d;
  --success-subtle: #e3f4e8;
  --warning: #8a5a00;
  --warning-subtle: #fdf1d6;
  --danger: #b42318;
  --danger-subtle: #fde8e6;
  --on-danger: #ffffff;
  --info: #2b5fa8;
  --info-subtle: #e4eefb;
  --scrim: rgba(16,24,32,0.45);
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06);
  --shadow-md: 0 4px 12px rgba(16,24,40,0.08);
  --shadow-overlay: 0 16px 40px rgba(16,24,40,0.18);
}

[data-theme="dark"] {
  --brand: #677581;
  --on-brand: #ffffff;
  --brand-strong: #56636e;
  --canvas: #12171c;
  --surface: #1a2027;
  --surface-sunken: #232b33;
  --row-hover: #20272f;
  --ink: #e7ecf0;
  --ink-muted: #a3aeb9;
  --ink-subtle: #8693a0;
  --line: #2c353e;
  --line-control: #66737f;
  --primary: #9fb3c6;
  --primary-hover: #b5c6d6;
  --primary-pressed: #8aa0b5;
  --on-primary: #12171c;
  --primary-subtle: #263240;
  --focus: #7fb0f0;
  --internal: #6aa0e8;
  --internal-subtle: #1c2c42;
  --external: #e0a043;
  --external-subtle: #3a2c14;
  --match-group: #182a2a;
  --marked: #3a3416;
  --success: #6fcf8f;
  --success-subtle: #163021;
  --warning: #e6b450;
  --warning-subtle: #33280f;
  --danger: #f08a80;
  --danger-subtle: #3a1a17;
  --on-danger: #12171c;
  --info: #7fb0f0;
  --info-subtle: #172a44;
  --scrim: rgba(0,0,0,0.6);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
  --shadow-overlay: 0 16px 40px rgba(0,0,0,0.6);
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --appbar-height: 44px;
  --control-sm: 28px;
  --control-md: 36px;
  --row-height: 36px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 999px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
/*
 * Tooltip, disclosure and menu (app/assets/javascripts/ds_widgets.js,
 * app/helpers/disclosure_helper.rb). They replace Bootstrap 2's tooltip,
 * collapse/toggle and dropdown plugins.
 */

/* Tooltip */

.b4u-tip { position: fixed; z-index: 2000; max-width: 260px; padding: 4px var(--space-2); border-radius: var(--radius-sm, 4px); background: var(--ink); color: var(--surface); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; pointer-events: none; box-shadow: var(--shadow-sm); }

/* Disclosure ("Advanced options") */
.ds-disclosure { margin: var(--space-2) 0 var(--space-5); }
.ds-disclosure > summary { display: inline-flex; align-items: center; gap: var(--space-2); padding: 4px 0; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink-muted); cursor: pointer; list-style: none; }
.ds-disclosure > summary::-webkit-details-marker { display: none; }
.ds-disclosure > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s ease; }
.ds-disclosure[open] > summary::before { transform: rotate(45deg); }
.ds-disclosure > summary:hover { color: var(--ink); }
.ds-disclosure > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-md); }
.ds-disclosure[open] > summary { margin-bottom: var(--space-3); }

/* Menu */
.b4u-menu { position: relative; display: inline-block; }
.b4u-menu > summary { list-style: none; }
.b4u-menu > summary::-webkit-details-marker { display: none; }
.b4u-menu > summary svg.lucide-chevron-down { margin-left: -2px; opacity: .8; transition: transform .12s ease; }
.b4u-menu[open] > summary svg.lucide-chevron-down { transform: rotate(180deg); }
.b4u-menu .b4u-menu-list { position: absolute; z-index: 1000; top: calc(100% + 4px); left: 0; min-width: 200px; max-height: 360px; overflow-y: auto; margin: 0; padding: var(--space-1); list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); }
.b4u-menu .b4u-menu-list li { margin: 0; }
.b4u-menu .b4u-menu-list a { display: block; padding: 7px var(--space-3); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.b4u-menu .b4u-menu-list a:hover, .b4u-menu .b4u-menu-list a:focus-visible { background: var(--row-hover); color: var(--ink); text-decoration: none; outline: none; }
td .b4u-menu .b4u-menu-list { right: 0; left: auto; }
/*! jQuery UI - v1.10.4 - 2014-03-07
* http://jqueryui.com
* Includes: jquery.ui.core.css, jquery.ui.theme.css
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */


.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-widget{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#eee url(/images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url(/images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#f6f6f6 url(/images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#1c94c4}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#1c94c4;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #fbcb09;background:#fdf5ce url(/images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#c77405}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#c77405;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #fbd850;background:#fff url(/images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#eb8f00}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#eb8f00;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fed22f;background:#ffe45c url(/images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#b81900 url(/images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(/images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(/images/ui-icons_ffffff_256x240.png)}.ui-state-default .ui-icon{background-image:url(/images/ui-icons_ef8c08_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(/images/ui-icons_ef8c08_256x240.png)}.ui-state-active .ui-icon{background-image:url(/images/ui-icons_ef8c08_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(/images/ui-icons_228ef1_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(/images/ui-icons_ffd27a_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#666 url(/images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat;opacity:.5;filter:Alpha(Opacity=50)}.ui-widget-shadow{margin:-5px 0 0 -5px;padding:5px;background:#000 url(/images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x;opacity:.2;filter:Alpha(Opacity=20);border-radius:5px}
/*!
 * jQuery contextMenu - Plugin for simple contextMenu handling
 *
 * Version: git-master
 *
 * Authors: Rodney Rehm, Addy Osmani (patches for FF)
 * Web: http://medialize.github.com/jQuery-contextMenu/
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *   GPL v3 http://opensource.org/licenses/GPL-3.0
 *
 */


.context-menu-list {
    margin:0; 
    padding:0;
    
    min-width: 120px;
    max-width: 250px;
    display: inline-block;
    position: absolute;
    list-style-type: none;
    
    border: 1px solid #DDD;
    background: #EEE;
    
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
       -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
         -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.context-menu-item {
    padding: 2px 2px 2px 24px;
    background-color: #EEE;
    position: relative;
    -webkit-user-select: none;
       -moz-user-select: -moz-none;
        -ms-user-select: none;
            user-select: none;
}

.context-menu-separator {
    padding-bottom:0;
    border-bottom: 1px solid #DDD;
}

.context-menu-item > label > input,
.context-menu-item > label > textarea {
    -webkit-user-select: text;
       -moz-user-select: text;
        -ms-user-select: text;
            user-select: text;
}

.context-menu-item.hover {
    cursor: pointer;
    background-color: #39F;
}

.context-menu-item.disabled {
    color: #666;
}

.context-menu-input.hover,
.context-menu-item.disabled.hover {
    cursor: default;
    background-color: #EEE;
}

.context-menu-submenu:after {
    content: ">";
    color: #666;
    position: absolute;
    top: 0;
    right: 3px;
    z-index: 1;
}

/* icons
    #protip:
    In case you want to use sprites for icons (which I would suggest you do) have a look at
    http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement 
    .context-menu-item.icon:before {}
 */
.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
.context-menu-item.icon-edit { background-image: url(/images/page_white_edit.png); }
.context-menu-item.icon-cut { background-image: url(/images/cut.png); }
.context-menu-item.icon-copy { background-image: url(/images/page_white_copy.png); }
.context-menu-item.icon-paste { background-image: url(/images/page_white_paste.png); }
.context-menu-item.icon-delete { background-image: url(/images/page_white_delete.png); }
.context-menu-item.icon-add { background-image: url(/images/page_white_add.png); }
.context-menu-item.icon-quit { background-image: url(/images/door.png); }

/* vertically align inside labels */
.context-menu-input > label > * { vertical-align: top; }

/* position checkboxes and radios as icons */
.context-menu-input > label > input[type="checkbox"],
.context-menu-input > label > input[type="radio"] {
    margin-left: -17px;
}
.context-menu-input > label > span {
    margin-left: 5px;
}

.context-menu-input > label,
.context-menu-input > label > input[type="text"],
.context-menu-input > label > textarea,
.context-menu-input > label > select {
    display: block;
    width: 100%;
    
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
            box-sizing: border-box;
}

.context-menu-input > label > textarea {
    height: 100px;
}
.context-menu-item > .context-menu-list {
    display: none;
    /* re-positioned by js */
    right: -5px;
    top: 5px;
}

.context-menu-item.hover > .context-menu-list {
    display: block;
}

.context-menu-accesskey {
    text-decoration: underline;
}
