body.win31 div#winCalculator {
    width: 286px /*!important*/;
    height: 275px /*!important*/;
}

body.win31 div#calcNormalwin31 {
    display: block;
    width: 274px;
    height: 230px;
    padding: 5px;
    background-color: #fff;
}

body.win31 div#calcNormalmac6 {
    display: none;
}

body.win31 div.screen {
    margin-bottom: 10px;
    text-align: right;
}

body.win31 div#calcScreenNormalwin31,
body.win31 div#calcScreenScientific {
    display: inline-block;
    width: 195px;
    height: 22px;
    margin-right: 10px;
    padding: 5px 7px;
    border: 1px solid #000;
    text-align: right;
    overflow: hidden;
}

/*body.win31 div.calculator * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

body.win31 div.calculator div.buttons div,
body.win31 div.calculator div.button {
    display: inline-block;
    width: 37px;
    height: 23px;
    padding-top: 5px;
    border: 1px solid #000;
    border-radius: 5px/10px;
    text-align: center;
    font-family: sans-serif;
    font-size: 15px;
    cursor: pointer;
}

body.win31 div.buttons {
    margin-bottom: 8px;
    text-align: left;
}

body.win31 div.calculator div.buttons div.action,
body.win31 div.calculator div.button.action {
    border-radius: unset;
    width: 40px;
    margin-left: 28px;
}

body.win31 div.calculator div.buttons div.cancel,
body.win31 div.calculator div.button.cancel {
    width: 50px;
    border-color: #f00;
    color: #f00;
}

body.win31 div.calculator div.buttons div.number,
body.win31 div.calculator div.button.number {
    border-color: #00f;
    color: #00f;
}

body.win31 div.calculator div.buttons div.arithmetic,
body.win31 div.calculator div.button.arithmetic {
    border-color: #f00;
    color: #000;
}

body.win31 div.calculator div.buttons div.memory,
body.win31 div.calculator div.button.memory {
    border-color: #f0f;
    color: #f0f;
}

body.win31 div.calculator div.buttons div.parentheses,
body.win31 div.calculator div.button.parentheses {
    border-color: #000;
    color: #000;
}

body.win31 div.calculator div.buttons div.math,
body.win31 div.calculator div.button.math {
    border-color: #5aa;
    color: #000;
}

body.win31 div.calculator div.buttons div.statistics,
body.win31 div.calculator div.button.statistics {
    border-color: #00f;
    color: #000;
}

/* Mac */
body.mac6 div#winCalculator {
    width: 106px !important;
    height: 169px !important;
    background: url('../img/mac_calc_bg.gif') no-repeat top left !important;
    border: none;
}

body.mac6 div#calcNormalwin31 {
    display: none;
}

body.mac6 div#calcNormalmac6 {
    display: block;
    width: 86px;
    height: 169px;
    padding: 0px 12px 0px 8px;
    background-color: none;
}

body.mac6 div#winCalculator.window,
body.mac6 div#winCalculator.windowNoResize,
body.mac6 div#winCalculator.windowNoSnap,
body.mac6 div#winCalculator.windowLocked {
    background: none;
}

body.mac6 div#winCalculator div.winC1,
body.mac6 div#winCalculator div.winM,
body.mac6 div#winCalculator div.titleBar div.titleLeftMenu,
body.mac6 div#winCalculator div.titleBar div.titleRightMenu,
body.mac6 div#winCalculator div.menuBar,
body.mac6 div#winCalculator div.statusBar,
body.mac6 div#winCalculator div.winC3 {
    display: none;
}

body.mac6 div#winCalculator div.titleBar {
    height: 24px;
    background: none;
}

body.mac6 div#winCalculator div.titleBar div.title {
    width: calc(100% - 7px);
    left: 0;
    padding-right: 7px;
    padding-top: 1px;
    text-align: right;
    background: none;
}

body.mac6 div#winCalculator div.titleBar div.title span {
    padding: 0;
}

body.mac6 div#winCalculator div.windowContainer {
    height: 139px;
    background: none;
    border: none;
}

body.mac6 div.screen {
    /*margin-bottom: 10px;
    text-align: right;*/
    height: 23px;
}

body.mac6 div#calcScreenNormalmac6,
body.mac6 div#calcScreenScientific {
    display: inline-block;
    width: 76px;
    height: 13px;
    margin-right: 10px;
    padding: 2px 5px 5px 5px;
    background: #fff;
    border: 1px solid #000;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
}

body.mac6 div.calculator div.buttons div,
body.mac6 div.calculator div.button {
    display: inline-block;
    width: 15px;
    height: 13px;
    padding-top: 1px;
    border: 1px solid #000;
    background: #fff;
    text-align: center;
    font-family: sans-serif;
    font-size: 11px;
    cursor: pointer;
}

body.mac6 div.buttons {
    height: 20px;
    max-height: 20px;
    margin-bottom: 3px;
    padding-left: 2px;
    text-align: left;
    overflow: visible;
}

body.mac6 div.calculator div.buttons div {
    box-shadow: 2px 2px;
}

body.mac6 div.arithmeticplus {
    height: 36px !important;
    /*padding-top: 28px;*/
}

body.mac6 div.arithmeticplus span {
    /*display: block;*/
    padding-top: 20px;
}

body.mac6 div.number0 {
    width: 37px !important;
}