/***** panel with 3 round corners and 1 (upper-left) folded corner *****/
.dgsPanelNote {
    position: relative;
    width: 395px;
    padding: 1em 1.5em;
    margin: .5em auto;
    color: #fff;
    /*background: #97C02F;*/
    overflow: hidden;
}
.dgsPanelNote:before { 
    content: ""; position: absolute;
    top: 0; right: 0;
    border-width: 0 16px 16px 0;                /* This trick side-steps a webkit bug */
    border-style: solid;
    /*border-color: #fff #fff #658E15 #658E15;*/    /* A bit more verbose to work with .rounded too */
    /*background: #658E15;*/                        /* For when also applying a border-radius */
    display: block; width: 0;                   /* Only for Firefox 3.0 damage limitation */
    /* Optional: shadow */
    -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
       -moz-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
            box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
}

.dgsPanelNote.default           { background: #97C02F; }
.dgsPanelNote.default:before    { border-color: #fff #fff #658E15 #658E15; background: #658E15; }

/* variations by color */
.dgsPanelNote.green             { background: #D8F6CE; color: black; }
.dgsPanelNote.green:before      { border-color: #fff #fff #009966 #009966; background: #009966; }

.dgsPanelNote.red               { background: #C93213; }
.dgsPanelNote.red:before        { border-color: #fff #fff #97010A #97010A; background: #97010A; }

.dgsPanelNote.blue              { background: #D0E0EB; color: black; font-weight: 500; /* B0E6FC 8CD1EC 7092BE */}
.dgsPanelNote.blue:before       { border-color: #fff #fff #88ABC2 #88ABC2; background: #88ABC2; }

.dgsPanelNote.taupe             { background: #999868; }
.dgsPanelNote.taupe:before      { border-color: #fff #fff #BDBB8B #BDBB8B; background: #BDBB8B; }

.dgsPanelNote.yellow            { background: #cccc00; }
.dgsPanelNote.yellow:before     { border-color: #fff #fff #ffff00 #ffff00; background: #ffff00; }
.dgsPanelNote.yellow2           { background: #F2F5A9; color: black; }
.dgsPanelNote.yellow2:before    { border-color: #fff #fff #ffff00 #ffff00; background: #ffff00; }

.dgsPanelNote.gray              { background: #c0c0c0; }
.dgsPanelNote.gray:before       { border-color: #fff #fff #e0e0e0 #e0e0e0; background: #e0e0e0; }

.dgsPanelNote.lightgray         { background: #f0f0f0; color: black; }
.dgsPanelNote.lightgray:before  { border-color: #fff #fff #c0c0c0 #c0c0c0; background: #c0c0c0; }

/* ROUNDED CORNERS VERSION
 * All modern browsers can produce this effect with a single pseudo-element.
 * However, they all have bugs (mainly to do with border-radius) that make this a bit tricky.
 * As far as I can tell, this is the only cross-browser method for the moment.
 * Can't use this method for the simple effect because Opera 11 will only show backgrounds
 * through transparent borders if there is a border-radius applied.
 */
 
.dgsPanelNote.rounded {
    -webkit-border-radius:5px 0 5px 5px;
    -moz-border-radius:5px 0 5px 5px;
    border-radius:5px 0 5px 5px;
}

.dgsPanelNote.rounded:before {
    border-width:8px;                               /* Triggers a 1px 'step' along the diagonal in Safari 5 (and Chrome 10) */
    border-color:#fff #fff transparent transparent; /* Avoids the 1px 'step' in webkit. Background colour shows through */
    -webkit-border-bottom-left-radius:5px;
    -moz-border-radius:0 0 0 5px;
    border-radius:0 0 0 5px;
}
